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

Reply via email to