Hi,
I've wrote a simple filter to customize how links are exported in
latex:
#+BEGIN_SRC
(defun dmd--latex-bib-link-filter (data backend info)
"Convert a bib link to a citation (e.g. bib:foo93 -> \cite{foo93})."
(let* ((beg (next-property-change 0 data))
(link (if beg (get-text-property beg :parent data))))
(cond ((and link
(org-export-derived-backend-p backend 'latex)
(string= (org-element-property :type link) "bib"))
(format "\\cite{%s}" (org-element-property :path link)))
((and link
(org-export-derived-backend-p backend 'latex)
(string= (org-element-property :type link) "file")
(string= (org-element-property :path link) "~/.bib.bib"))
(format "\\cite{%s}" (org-element-property :search-option link)))
(t data))))
#+END_SRCAnd I was wondering whether there is an easier way to retrieve the org properties stored in the text properties of DATA. Best, -- Daimrod/Greg
signature.asc
Description: PGP signature
