emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] New exporter queries, captions


From: Thomas S. Dye
Subject: Re: [O] New exporter queries, captions
Date: Sun, 30 Sep 2012 19:20:32 -1000

Nicolas Goaziou <address@hidden> writes:

> Hello,
>
> address@hidden (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,

Very nice.  Works like a charm here.

Thanks for all your work.

All the best,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]