Hi Andreas and all,

Andreas Leha <andreas.l...@med.uni-goettingen.de> writes:

> Eric suggested/uses this format (thanks for sharing, Eric):
>   [[cite:jones-etal-2000][Jones et al., 2000]]
>          ^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^
>              key           displayed in org

I'd suggest to treat org-link-abbrev-alist and locally defined
abbreviated links differently when opening the link at point and
when exporting the buffer.

At expand time, the exporter could attach a list of export functions
(filters?) to the expanded link, depending on the local setting for
the abbreviated link or `org-link-abbrev-alist'.  For example:

 #+LINK: cite file:my.bib::%s org-latex-bibtex-link
 
 (setq org-link-abbrev-alist
   '(("cite" "file:my.bib::%s" 'org-latex-bibtex-link)))
 
Then org-latex-bibtex-link would internally find the link, process
the BibTeX entry and return a sensible \cite{...} string.

What do you think?

-- 
 Bastien

Reply via email to