From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tyler Morgan Subject: Issue with org-mode latex export captions Date: Thu, 27 Jul 2017 16:16:36 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_VI1PR1001MB1167962D987ED36A0ABE0C59FBBE0VI1PR1001MB1167_" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39570) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dalT2-0000WQ-QA for emacs-orgmode@gnu.org; Thu, 27 Jul 2017 12:16:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dalSw-0007Fy-Lq for emacs-orgmode@gnu.org; Thu, 27 Jul 2017 12:16:52 -0400 Received: from mail-pf0-x236.google.com ([2607:f8b0:400e:c00::236]:36765) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dalSw-0007Ej-Ck for emacs-orgmode@gnu.org; Thu, 27 Jul 2017 12:16:46 -0400 Received: by mail-pf0-x236.google.com with SMTP id z129so45914004pfb.3 for ; Thu, 27 Jul 2017 09:16:44 -0700 (PDT) Received: from VI1PR1001MB1167.EURPRD10.PROD.OUTLOOK.COM ([40.101.7.117]) by smtp.gmail.com with ESMTPSA id v21sm37428770pfk.152.2017.07.27.09.16.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 27 Jul 2017 09:16:42 -0700 (PDT) Content-Language: en-US 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" To: "emacs-orgmode@gnu.org" --_000_VI1PR1001MB1167962D987ED36A0ABE0C59FBBE0VI1PR1001MB1167_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable I am running org-version 9.0.9 (9.0.9-54-g16dbf0-elpa) and have run into an= issue with org-mode=92s LaTeX/PDF export function. Everything looks normal= when I create figure captions using the standard: #+CAPTION: This is a caption. #+NAME: fig:figure1 #+ATTR_LATEX: :width 15.0cm [[/loc/to/figure1.jpg]] Meaning that the LaTeX that is produced contains the caption, the name as a= LaTeX label, etc. However, when I define the caption directly in LaTeX in = order to use some of its added functionality, as in: #+NAME: fig:figure1 #+ATTR_LATEX: :width 15.0cm :caption \caption[This is a caption.]{This is a= much longer version of my caption that I don=92t want included in my TOC.} [[/loc/to/figure1.jpg]] The resulting LaTeX no longer includes a label attribute, which means that = all of the references I have made to this figure in the text are now undefi= ned. I know that defining a LaTeX caption overwrites the org-mode caption f= ield, but I=92m not sure why it also removes the #+NAME (or #+LABEL, which = I have also tried) from the figure. This isn=92t the end of the world, as I= can go through the LaTeX at the end in order to manually add the labels ba= ck to the figures. However, I have many figures in a document that I=92m wo= rking on at the moment, and it would be nice to understand why this is happ= ening. If anyone has any ideas on why this is happening, or a way that I could dea= l with it, I would greatly appreciate it. Thank you, Tyler Morgan --_000_VI1PR1001MB1167962D987ED36A0ABE0C59FBBE0VI1PR1001MB1167_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

I am= running org-version 9.0.9 (9.0.9-54-g16dbf0-elpa) and have run into an iss= ue with org-mode=92s LaTeX/PDF export function. Everything looks normal whe= n I create figure captions using the standard:

 

#= 3;CAPTION: This is a caption.

#= 3;NAME: fig:figure1

#= 3;ATTR_LATEX: :width 15.0cm

[[/l= oc/to/figure1.jpg]]

 

Mean= ing that the LaTeX that is produced contains the caption, the name as a LaT= eX label, etc. However, when I define the caption directly in LaTeX in orde= r to use some of its added functionality, as in:

 

#= 3;NAME: fig:figure1

#= 3;ATTR_LATEX: :width 15.0cm :caption \caption[This is a caption.]{This is a= much longer version of my caption that I don=92t want included in my TOC.}=

[[/l= oc/to/figure1.jpg]]

 

The = resulting LaTeX no longer includes a label attribute, which means that all = of the references I have made to this figure in the text are now undefined.= I know that defining a LaTeX caption overwrites the org-mode caption field, but I=92m not sure why it also remo= ves the #+NAME (or #+LABEL, which I have also tried) from the figur= e. This isn=92t the end of the world, as I can go through the LaTeX at the = end in order to manually add the labels back to the figures. However, I have many figures in a document that I=92m work= ing on at the moment, and it would be nice to understand why this is happen= ing.

 

If a= nyone has any ideas on why this is happening, or a way that I could deal wi= th it, I would greatly appreciate it.

 

Than= k you,

Tyle= r Morgan

--_000_VI1PR1001MB1167962D987ED36A0ABE0C59FBBE0VI1PR1001MB1167_--