Hello,

t...@tsdye.com (Thomas S. Dye) writes:

> Is it possible to expand links, too?  If I have
> #+CAPTION: Data from [[textcite:ladefoged08:_variab_hawaii][;]].
> I get
> \caption{Data from [[textcite:ladefoged08:_variab_hawaii][;]].}
>
> My textcite link type is here:
>
> #+name: define-biblatex-textcite-link
> #+begin_src emacs-lisp :results silent :exports none
>   (org-add-link-type 
>    "textcite" 'ebib
>    (lambda (path desc format)
>      (cond
>       ((eq format 'html)
>        (format "(<cite>%s</cite>)" path))
>       ((eq format 'latex)
>        (if (or (not desc) (equal 0 (search "textcite:" desc)))
>            (format "\\textcite{%s}" path)
>          (format "\\textcite[%s][%s]{%s}"
>                  (cadr (split-string desc ";"))
>                  (car (split-string desc ";"))  path))))))
> #+end_src

It is now possible to have links in captions.


Regards,

-- 
Nicolas Goaziou

Reply via email to