From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: how to handle backend-specific types as fuzzy link targets during export Date: Mon, 30 Jun 2014 12:37:42 -0400 Message-ID: <87tx72cpzr.fsf@gmail.com> References: <87pphyefo6.fsf@gmail.com> <87ha3aldw3.fsf@nicolasgoaziou.fr> <87d2dyeaqd.fsf@gmail.com> <87d2dylak0.fsf@nicolasgoaziou.fr> <87mwd2cu4d.fsf@gmail.com> <87simuz5rq.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1ebW-0004UT-9a for emacs-orgmode@gnu.org; Mon, 30 Jun 2014 12:38:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X1ebQ-0000w7-PP for emacs-orgmode@gnu.org; Mon, 30 Jun 2014 12:38:54 -0400 Received: from mail-qc0-x22b.google.com ([2607:f8b0:400d:c01::22b]:62496) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1ebQ-0000w0-Kd for emacs-orgmode@gnu.org; Mon, 30 Jun 2014 12:38:48 -0400 Received: by mail-qc0-f171.google.com with SMTP id w7so7246476qcr.16 for ; Mon, 30 Jun 2014 09:38:48 -0700 (PDT) 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 Nicolas Goaziou writes: > Hello, > > Eric Schulte writes: > >> Attached > > OK, now I get it. > > You're working at the wrong level. `latex-fragment' is an object > (inline) type, but you're inserting it at the element's level. The > equivalent (non inline) element is `latex-environment', which is, for > example: > > \begin{equation} > 1+1=2 > \end{equation} > > So you could simply replace `latex-fragment' type with > `latex-environment', and your example should work properly. > Confirmed, using `latex-environment' does give the desired behavior. A related question. Is there a command to re-number figures in export? After adding latex-environments in a function added to the `org-export-filter-parse-tree-functions' hook, all figures are numbered "1". Thanks, > > HTH, > > > Regards, -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D (see https://u.fsf.org/yw)