auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX] Re: AucTeX and BibLaTeX


From: Leo
Subject: [AUCTeX] Re: AucTeX and BibLaTeX
Date: Tue, 21 Apr 2009 18:53:55 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (darwin)

On 2009-04-21 08:23 +0100, Sven Bretfeld wrote:
> Hello to all
>
> Auctex doesn't recognize if one uses Biblatex instead of Bibtex.

I use BibLaTeX in my thesis writing and it seems very stable. I also
recall that it is in feature freeze before it gets to 1.0. The current
release is 0.8c. So now it is not a bad time to discuss this issue.

There are two things to do. One is to make reftex recognise it and
support its citing commands.

The second thing is a style file. For a start, I have the following in
biblatex.el.

(TeX-add-style-hook
 "biblatex"
 (lambda ()
   (LaTeX-add-environments
    "refsection" "refsegment")
   ;; handle indentation elegantly
   ;; fixme: cause M-q to fail
   ;; (add-to-list 'LaTeX-indent-environment-list
   ;;              '("refsection"
   ;;                (lambda ()
   ;;                  ;; force-type is a dynamic variable in 
`LaTeX-indent-calculate'
   ;;                  (- (LaTeX-indent-calculate-last force-type) 
LaTeX-indent-level))))
   ;; (add-to-list 'LaTeX-indent-environment-list
   ;;              '("refsegment"
   ;;                (lambda ()
   ;;                  (- (LaTeX-indent-calculate-last force-type) 
LaTeX-indent-level))))
   ))

refsection or refsegment is used to produce per-chapter bibliography.
Unfortunately you have to wrap the whole chapter inside these
environments and thus by default all lines will be indented. This is
worse than it sounds.

The commented code is my attempt to tackle this issue but it just stops
auto-fill from working. I'd appreciate any hint on fixing this problem.

Best wishes,
-- 
.: Leo :. [ sdl.web AT gmail.com ] .: I use Emacs :.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]