From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: how to handle backend-specific types as fuzzy link targets during export Date: Tue, 24 Jun 2014 15:08:31 +0200 Message-ID: <87d2dylak0.fsf@nicolasgoaziou.fr> References: <87pphyefo6.fsf@gmail.com> <87ha3aldw3.fsf@nicolasgoaziou.fr> <87d2dyeaqd.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59577) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzQSC-0007tE-HU for emacs-orgmode@gnu.org; Tue, 24 Jun 2014 09:08:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzQS2-00026d-DA for emacs-orgmode@gnu.org; Tue, 24 Jun 2014 09:08:04 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:40686) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzQS2-00026B-7W for emacs-orgmode@gnu.org; Tue, 24 Jun 2014 09:07:54 -0400 In-Reply-To: <87d2dyeaqd.fsf@gmail.com> (Eric Schulte's message of "Tue, 24 Jun 2014 08:46:34 -0400") 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: Eric Schulte Cc: Org Mode Mailing List Eric Schulte writes: > Sure. I have added a function to org-export-filter-parse-tree-functions > which replaces a custom keyword with either a latex-fragment or an HTML > link wrapped in a paragraph depending on the export backend. The latex > fragment basically has the following content, > > "\\begin{figure} > \\centering > \\input{%s} > \\caption[%s]{\\label{%s}%s} > \\end{figure}\n\n" > > and I assign it a :name property to match the label in the above. I > then have links elsewhere in the file which reference this label. I still do not get it. Could you show your (possibly simplified) filter function? Also, what code do you want ox-latex to generate? Note that #+NAME is internal Org syntax. It cannot possibly be compatible with random raw LaTeX code. IOW, even if you can write raw LaTeX in an Org buffer, it doesn't mean that Org will understand the LaTeX code you wrote. Regards, -- Nicolas Goaziou