Re: [Ebib-users] Org-mode integration
Brought to you by:
joostkremers
From: <ts...@ts...> - 2011-07-19 16:12:38
|
Joost Kremers <joo...@fa...> writes: > On Tue, Jul 12, 2011 at 04:56:23PM -1000, Thomas S. Dye wrote: >> I use ebib in Org-mode sometimes where the citation commands I use are >> Org-mode links, rather than LaTeX commands. I'm wondering if it is >> possible to turn off the automatic insertion of \ with >> ebib-insert-bibtex-key? It would be great to be able to configure ebib >> so it would enter something like [[cite:bibtex-key][123]], instead of >> \cite[123]{bibtex-key}. > > I've just pushed a quick hack that should do this. It's not configurable, but at > least if you push to an org-mode buffer, Ebib now creates an org link rather > than a LaTeX command. It takes the form of [[cite:bibtex-key][123]] if you > provide an optional argument (only one optional argument is supported). If you > don't provide an optional argument, the link form is > [[cite:bibtex-key][bibtex-key]] (which is actually the form that I use: I don't > export from org to LaTeX...) > > This may only partially do what you want, so I'd appreciate suggestions for > improvement. However, since I'm leaving on holiday tomorrow, you may have to > wait a couple of weeks until I have time to implement them. :-) Aloha Joost, This works very nicely for me. At first, I worked around the default by entering a space and then deleting [ ] in the org-mode buffer. Then, I redefined my citation link types to parse a semi-colon separated list of 2 items corresponding to the prenote and postnote optional arguments to the biblatex command. In this version, entering just the ; separator is equivalent to an link without a description, so I have a very convenient path to any result I want. BTW, the export capability of ebib is extremely handy in my work. It allows me to create a custom bib file as I work on a document. Thanks again, Tom -- T.S. Dye & Colleagues, Archaeologists 735 Bishop St, Suite 315, Honolulu, HI 96813 Tel: 808-529-0866, Fax: 808-529-0884 http://www.tsdye.com |