From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: New exporter queries, captions Date: Thu, 13 Sep 2012 06:57:02 -1000 Message-ID: References: <87obl9sxkp.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53366) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCCj6-0001PC-Ve for emacs-orgmode@gnu.org; Thu, 13 Sep 2012 12:57:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCCiz-0007ve-HN for emacs-orgmode@gnu.org; Thu, 13 Sep 2012 12:57:16 -0400 Received: from oproxy12-pub.bluehost.com ([50.87.16.10]:40816) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1TCCiz-0007v6-8C for emacs-orgmode@gnu.org; Thu, 13 Sep 2012 12:57:09 -0400 In-Reply-To: <87obl9sxkp.fsf@gmail.com> (Nicolas Goaziou's message of "Thu, 13 Sep 2012 18:21:26 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: Org-mode Nicolas Goaziou writes: > Hello, > > tsd@tsdye.com (Thomas S. Dye) writes: > >> Three queries about captions in the new exporter: >> >> 1) The old exporter allowed a structure like this #+CAPTION: [Short >> caption]{Long caption.} to export \caption[Short caption]{Long caption.} >> to LaTeX. The new exporter gives something like this \caption{[Short >> caption]{Long caption.}} Can the former behavior be implemented in the >> new exporter? > > Correct syntax is: > > #+CAPTION[short]: long > > much like: > > #+RESULTS[hash]: name > Got it. Thanks. >> 2) Caption text appears to require markup in the export target language, >> rather than org markup. So, for LaTeX export I need something like >> >> #+CAPTION: Things: \textit{a}, some; \textit{b}, other. >> Rather than, #+CAPTION: /a/, some; /b/, other. Shouldn't caption text >> >> honor org markup so it can be exported correctly to different backends? >> Is there a switch for this? > > That was a bug. Captions honor Org syntax again. Thanks. > 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 "(%s)" 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 >> 3) My captions are often long. Is it possible to enter these so they >> aren't all on one line? Something like >> >> #+CAPTION: Line one >> #+CAPTION: Line two >> >> would be great. > > It is now implemented. > Terrific. Thanks! All the best, Tom -- T.S. Dye & Colleagues, Archaeologists 735 Bishop St, Suite 315, Honolulu, HI 96813 Tel: 808-529-0866, Fax: 808-529-0884 http://www.tsdye.com