From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Lundin Subject: Re: Exporting for word processors Date: Sat, 09 May 2009 10:48:08 -0500 Message-ID: <871vqycm6f.fsf@fastmail.fm> References: <87ws8r5plf.fsf@fastmail.fm> <978fd2360905090456sd9b81afodf389ae72f4523ee@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M2omP-0000vl-2u for emacs-orgmode@gnu.org; Sat, 09 May 2009 11:48:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M2omK-0000vG-BR for emacs-orgmode@gnu.org; Sat, 09 May 2009 11:48:00 -0400 Received: from [199.232.76.173] (port=56488 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M2omK-0000vD-5H for emacs-orgmode@gnu.org; Sat, 09 May 2009 11:47:56 -0400 Received: from out4.smtp.messagingengine.com ([66.111.4.28]:33942) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M2omJ-0002Ea-OF for emacs-orgmode@gnu.org; Sat, 09 May 2009 11:47:55 -0400 In-Reply-To: <978fd2360905090456sd9b81afodf389ae72f4523ee@mail.gmail.com> (Sebastian Titz's message of "Sat, 9 May 2009 13:56:54 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastian Titz Cc: emacs-orgmode@gnu.org, windsor.10@osu.edu Hi Sebastian, Sebastian Titz writes: > Matthew Lundin wrote: > >> I am in the same position --- i.e., I use emacs/auctex/org-mode/biblatex >> in a field in which MS Word is the default option. Many of the things I >> write have to be converted to doc format at some point. > could you elaborate on how you use biblatex with org-mode and auctex, > since auctex doesn't support biblatex? I'll try to keep this brief, since I don't want to talk too much about AUCTeX in the org-mode forum. I've found that AUCTeX and RefTeX work very well with biblatex, since all biblatex requires is to run latex, then bibtex, then latex again. I use the Chicago Manual of Style biblatex package: http://www.ctan.org/tex-archive/macros/latex/exptl/biblatex-contrib/biblatex-chicago-notes-df/ To make this work with AUCTeX, I've created a custom reftex-cite-format for the citation types I use most often: --8<---------------cut here---------------start------------->8--- (setq reftex-cite-format '( (?c . "\\cite[]{%l}") (?C . "\\cites[]{%l}") (?t . "\\citetitle[]{%l}") (?T . "\\citetitles[]{%l}") (?a . "\\autocite[]{%l}") (?A . "\\autocites[]{%l}") (?h . "\\headlessfullcite[]{%l}") (?x . "[]{%l}") (?X . "{%l}") )) (setq reftex-cite-prompt-optional-args t) --8<---------------cut here---------------end--------------->8--- I've also set the following variable to get the appropriate faces: --8<---------------cut here---------------start------------->8--- (setq font-latex-match-reference-keywords '(("cites" "[{") ("autocite" "[{") ("autocites" "[{") ("citetitle" "[{") ("citetitles" "[{") ("headlessfullcite" "[{"))) --8<---------------cut here---------------end--------------->8--- Finally, I've had to hack at a couple of reftex functions to change the regular expressions that are used to identify citation macros for: 1) jumping to the matching entry in the bib file (reftex-view-crossref) 2) generating a bib file from a tex file (reftex-all-used-citation-keys). - This is necessary because the current regexps don't recognize the plural citation macros (e.g. \cites, \autocites, etc.). Unfortunately, these regexps are hardcoded into reftex, so I have to load the rewritten functions via a reftex-mode-hook. And since Carsten is no longer the maintainer of RefTeX, it's not quite as easy to get a customize option for a RefTeX regexp as it is to get one in org-mode. :) The whole setup is by no means perfect, but it works fine for me. Now, for the org-mode part of the post. I generally use org-mode for drafting and AUCTeX for revising/polishing and adding formal citations. If I plan exporting something quickly from org-mode, I use the following function for a quick and dirty way to get citation info from my bib files into my org-mode files. (And, of course, I make heavy use of org-mode's wonderful footnote features.) --8<---------------cut here---------------start------------->8--- (defun my-reftex-citations () (interactive) (let ((reftex-cite-format '( (?f . "%a. %t. %j, %v, %b. %r: %u, %y. %p.\n") (?F . "<<%l>>\n\n%a. %t. %j, %v, %b. %r: %u, %y. %p.\n") (?s . "%a, %t, %y\n") (?c . "\\cite[]{%l}" (?l . "[[%l]]\n") (?L . "%a, %t, %y. [[%l]]\n")))) (reftex-citation))) (define-key text-mode-map (kbd "C-c y") 'my-reftex-citations) --8<---------------cut here---------------end--------------->8--- If I wanted to export for biblatex directly from org-mode (which I haven't tried yet), I think I would ignore most of the special biblatex/Chicago macros and just use the \cite macro inside of footnotes to make conversion/export to other formats a bit easier. Hope this helps. Matt