|
From: | Myles English |
Subject: | Re: [O] [new exporter] what is the label syntax for LaTeX export? |
Date: | Thu, 08 Nov 2012 03:27:28 +0000 |
User-agent: | mu4e 0.9.9.5-dev1; emacs 24.2.1 |
Nicolas Goaziou writes: > Colons are now allowed in targets. > > Thanks for submitting the suggestion. Thanks a lot Nicolas. In case anyone else finds this useful, here is the filter I'll use to replace \ref with \autoref: (defun my-autoref-filter-link-func (output backend info) (when (and (memq backend '(e-latex)) (string-match "\\\\ref\{\\(.*\\)\}" output)) (replace-match (concat "\\\\autoref{" (match-string 1 output) "}") nil nil output))) (add-to-list 'org-export-filter-link-functions 'my-autoref-filter-link-func) Myles
[Prev in Thread] | Current Thread | [Next in Thread] |