Hi Thomas, "Thomas S. Dye" <t...@tsdye.com> writes:
> (org-add-link-type > "citet" 'ebib > (lambda (path desc format) > (cond > ((eq format 'latex) > (if (and desc) > (format "\\citet[%s]{%s}" desc path) > (format "\\citet{%s}" path)))))) > > [[citet:green84:_settl_patter_studies_ocean]] > > yields this: > > \citet[citet:green84:_settl\_patter\_studies\_ocean] > {green84:_settl_patter_studies_ocean} This is because "_" chars are usually protected from conversion in links, but the LaTeX exporter might be confused by links it doesn't know. What about this : (org-add-link-type "citet" 'ebib (lambda (path desc format) (cond ((eq format 'latex) (if (and desc) (org-export-latex-protect-string (format "\\citet[%s]{%s}" desc path)) (org-export-latex-protect-string (format "\\citet{%s}" path))))))) Check for other uses of `org-export-latex-protect-string' in org-latex.el to better understand in what contexts this function is useful. HTH, -- Bastien _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode