From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: LATEX text in figure environment Date: Tue, 24 Nov 2015 10:42:02 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1B3H-0000WY-1w for emacs-orgmode@gnu.org; Tue, 24 Nov 2015 05:42:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1B3C-0006MT-Tb for emacs-orgmode@gnu.org; Tue, 24 Nov 2015 05:42:22 -0500 Received: from plane.gmane.org ([80.91.229.3]:42513) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1B3C-0006M8-Nm for emacs-orgmode@gnu.org; Tue, 24 Nov 2015 05:42:18 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1a1B35-00014y-UH for emacs-orgmode@gnu.org; Tue, 24 Nov 2015 11:42:12 +0100 Received: from 193.63.223.193 ([193.63.223.193]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 Nov 2015 11:42:11 +0100 Received: from andreas.leha by 193.63.223.193 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 Nov 2015 11:42:11 +0100 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 Hi Rainer, Rainer M Krug writes: > 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=.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 > > #+LATEX: \todo[inline]{This figure needs to be redone and further info added} > #+CAPTION: from cite:Roura-Pascual2009_rmkc > [[file:fig-strategies.pdf]] > > > 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=.9\linewidth]{fig-strategies.pdf} > | \caption{from \cite{Roura-Pascual2009_rmkc}} > | \end{figure} > `---- > > #+CAPTION: from cite:Roura-Pascual2009_rmkc > [[file:fig-strategies.pdf]] > #+LATEX: \todo[inline]{This figure needs to be redone and further info added} > > > resulting in the todo being behind the environment and > > #+CAPTION: from cite:Roura-Pascual2009_rmkc > #+LATEX: \todo[inline]{This figure needs to be redone and further info added} > [[file:fig-strategies.pdf]] > > > resulting in no environment at all (as #+CAPTION is not before the > figure). > > At the moment I am using > > #+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 added} > #+end_figure > > which gives me what I want: > > > ,---- > | \begin{figure} > | \includegraphics[width=.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 #+....? > Does this do what you want? #+ATTR_LATEX: :caption \caption{from cite:Roura-Pascual2009_rmkc}\todo[inline]{This figure needs to be redone and further info added} [[file:fig-strategies.pdf]] Best, Andreas