From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myles English Subject: Re: [new exporter] no \caption and \label upon export of #+BEGIN_LATEX block Date: Sat, 10 Nov 2012 22:09:52 +0000 Message-ID: <87fw4hqfdb.fsf@gmail.com> References: <87haoxqfq1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38594) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXJFS-0007RW-W7 for emacs-orgmode@gnu.org; Sat, 10 Nov 2012 17:09:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TXJFP-0001Vv-Tn for emacs-orgmode@gnu.org; Sat, 10 Nov 2012 17:09:54 -0500 Received: from mail-wg0-f49.google.com ([74.125.82.49]:48764) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXJFP-0001Vq-NN for emacs-orgmode@gnu.org; Sat, 10 Nov 2012 17:09:51 -0500 Received: by mail-wg0-f49.google.com with SMTP id gg4so2401145wgb.30 for ; Sat, 10 Nov 2012 14:09:51 -0800 (PST) In-reply-to: <87haoxqfq1.fsf@gmail.com> 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 Myles English writes: > Hello, > > I'd like to use a tikz snippet in a few different documents and it would > be convenient to be able to include it in a latex document like so: > > #+CAPTION: a fine figure > #+NAME: figure:fine_figure > #+ATTR_LaTeX: width=5cm > #+BEGIN_LATEX > \input{/home/myles/tex/tikz_figure.tex} > #+END_LATEX I realise now that this is wishful thinking because org doesn't know that the input file will result in a graphic and so doesn't know to wrap the input file in \begin{figure} \end{figure}. > What is exported is just the \input line, with no \label or \caption, i.e.: > > \input{/home/myles/tex/tikz_figure.tex} > > I believe this was possible with current (old) exporter, based on this > thread: > > http://lists.gnu.org/archive/html/emacs-orgmode/2012-10/msg00267.html > > Is it currently possible or could it be added please? > > On second thoughts, perhaps another way to do it would be to have a > source block make the tikz graphic as a standalone pdf/eps and then > insert it as a link to the file. The disadvantage of that would be that > the tikz .tex file would need to be expanded to have it's own > \begin/end{document} and would loose some flexibility. Any thoughts on > that route? > > Thanks, > > Myles > > Org-mode version 7.9.2 (release_7.9.2-571-g359891 @ /home/myles/.emacs.d/plugins/org-mode/lisp/)