From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Captions below figures in LaTeX export Date: Mon, 20 Oct 2014 23:13:19 +0200 Message-ID: <20141020211319.GB2381@chitra.no-ip.org> References: <20141020194406.GA2381@chitra.no-ip.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgKGf-0001FP-1m for emacs-orgmode@gnu.org; Mon, 20 Oct 2014 17:13:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XgKGZ-0006GJ-1h for emacs-orgmode@gnu.org; Mon, 20 Oct 2014 17:13:28 -0400 Received: from mail-wi0-x236.google.com ([2a00:1450:400c:c05::236]:53646) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgKGY-0006GE-Qs for emacs-orgmode@gnu.org; Mon, 20 Oct 2014 17:13:22 -0400 Received: by mail-wi0-f182.google.com with SMTP id n3so151749wiv.3 for ; Mon, 20 Oct 2014 14:13:22 -0700 (PDT) Content-Disposition: inline In-Reply-To: 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: John Hendy Cc: Emacs Org mode Hi John, On Mon, Oct 20, 2014 at 04:04:55PM -0500, John Hendy wrote: > > On Mon, Oct 20, 2014 at 2:44 PM, Suvayu Ali wrote: > > Hi everyone, > > > > I am trying to export to LaTeX, and I include images like this: > > > > #+name: fig:ads-glw-plot > > #+caption: \BtoDh events measured using the GLW, and ADS methods. > > #+attr_latex: :width 0.9\linewidth :placement [!ht] > > [[file:ali/ADS_GLW_Fig2_Fig4.pdf]] > > > > When exported this generates LaTeX code like this: > > > > \begin{figure}[!ht] > > \caption{\label{fig:ads-glw-plot}\BtoDh events measured using the GLW, and ADS methods.} > > \centering > > \includegraphics[width=0.9\linewidth]{ali/ADS_GLW_Fig2_Fig4.pdf} > > \end{figure} > > > > I would like to put the caption command after includegraphics. Is that > > possible? I tried reordering the #+caption: line without success. > > > This seems similar, though for tables. Perhaps the code could be adapted? > - http://stackoverflow.com/questions/15642388/make-org-mode-table-caption-appear-below-table-when-exported-to-latex That was very helpful! There is a master variable called org-latex-caption-above. Setting it to nil, puts the caption below for all elements. One can selectively put the caption above for some elements by setting that variable to a list. Thank you, :) -- Suvayu Open source is the future. It sets us free.