From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: LATEX text in figure environment Date: Tue, 24 Nov 2015 11:23:14 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49891) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1Akx-0003zx-3E for emacs-orgmode@gnu.org; Tue, 24 Nov 2015 05:23:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1Aks-0000Pt-Io for emacs-orgmode@gnu.org; Tue, 24 Nov 2015 05:23:27 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:34265) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1Aks-0000PM-Cp for emacs-orgmode@gnu.org; Tue, 24 Nov 2015 05:23:22 -0500 Received: by wmvv187 with SMTP id v187so201639744wmv.1 for ; Tue, 24 Nov 2015 02:23:21 -0800 (PST) Received: from Rainers-MacBook-Pro.local ([2a01:e35:8baa:b070:bc5d:c4e1:626d:45c3]) by smtp.gmail.com with ESMTPSA id h67sm17361614wmf.17.2015.11.24.02.23.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Nov 2015 02:23:19 -0800 (PST) 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: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi I want to add a todo note (from the todonotes package) in a figure environment. What I want should look as follow, so that the to note sits in the environment (based on [http://tex.stackexchange.com/a/256802/6941] ): ,---- | \begin{figure}[htb] | \centering | \includegraphics[width=3D.9\linewidth]{fig-strategies.pdf} | \caption{from \cite{Roura-Pascual2009_rmkc}} | \todo[inline]{This figure needs to be redone and further info added} | \end{figure} `---- I tried =2D-8<---------------cut here---------------start------------->8--- #+LATEX: \todo[inline]{This figure needs to be redone and further info adde= d} #+CAPTION: from cite:Roura-Pascual2009_rmkc [[file:fig-strategies.pdf]] =2D-8<---------------cut here---------------end--------------->8--- but this results in the todo being outside the environment: ,---- | \todo[inline]{This figure needs to be redone and further info added} | \begin{figure}[htb] | \centering | \includegraphics[width=3D.9\linewidth]{fig-strategies.pdf} | \caption{from \cite{Roura-Pascual2009_rmkc}} | \end{figure} `---- =2D-8<---------------cut here---------------start------------->8--- #+CAPTION: from cite:Roura-Pascual2009_rmkc [[file:fig-strategies.pdf]] #+LATEX: \todo[inline]{This figure needs to be redone and further info adde= d} =2D-8<---------------cut here---------------end--------------->8--- resulting in the todo being behind the environment and =2D-8<---------------cut here---------------start------------->8--- #+CAPTION: from cite:Roura-Pascual2009_rmkc #+LATEX: \todo[inline]{This figure needs to be redone and further info adde= d} [[file:fig-strategies.pdf]] =2D-8<---------------cut here---------------end--------------->8--- resulting in no environment at all (as #+CAPTION is not before the figure). At the moment I am using =2D-8<---------------cut here---------------start------------->8--- #+begin_figure {{{if-latex-else([[file:fig-strategies.pdf]], [[file:fig-strategies.png]])}= }} #+LATEX: \caption{from \cite{Roura-Pascual2009_rmkc}} #+LATEX: \todo[inline]{This figure needs to be redone and further info adde= d} #+end_figure =2D-8<---------------cut here---------------end--------------->8--- which gives me what I want: ,---- | \begin{figure} | \includegraphics[width=3D.9\linewidth]{fig-strategies.pdf} | \caption{from \cite{Roura-Pascual2009_rmkc}} | \todo[inline]{This figure needs to be redone and further info added} | \end{figure} `---- But it is really not org-ish (caption specified as LaTeX, citation as latex, environment specified). Is there a way to achieve this more org like? Am I missing some #+....? Thanks, Rainer =2D-=20 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,= UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCAAGBQJWVDqWAAoJENvXNx4PUvmCh+8IAKb9dF6l6IrAFwAfYz81SVgu R66qb2hshXvloMaVJTe/Sc9t+Bpm/wxJSnechjSTO3r8Pinx3+kkh0T0qy+Sk5VZ /H+d+n7OfWaOV7VC/MMIXrHZIryYfzR0bRc8EOpbScihTHUpfH7wuO7JW7R4G87J F9NRE5PyeyP+M4HEqDHuR3GEAcdnsuG02D6TBPx2F2q9mMz9D0zW3HCRomvtK284 /5HRJ6M8+Ps9yXeMTiL62iFAc9se0fHQv8c+KiqJ1VY3RfGtEQ8UOA+p7cNYSGDT b3svWvNhsDd/LwT0zIHNxzG3ljIc+BCj/ti3G/ObGis8WeZU9OV6/yYJDYyDQm4= =ClIl -----END PGP SIGNATURE----- --=-=-=--