* Captions below figures in LaTeX export
@ 2014-10-20 19:44 Suvayu Ali
[not found] ` <CA+M2ft_aDFzMV8Hn+TSfHKtjK9+s6wM3eaFGkfcXmTQWcu01UA@mail.gmail.com>
2014-10-21 11:33 ` Rasmus
0 siblings, 2 replies; 3+ messages in thread
From: Suvayu Ali @ 2014-10-20 19:44 UTC (permalink / raw)
To: Emacs Org mode
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.
Any thoughts, ideas? Thanks in advance.
Cheers,
--
Suvayu
Open source is the future. It sets us free.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Captions below figures in LaTeX export
[not found] ` <CA+M2ft_aDFzMV8Hn+TSfHKtjK9+s6wM3eaFGkfcXmTQWcu01UA@mail.gmail.com>
@ 2014-10-20 21:13 ` Suvayu Ali
0 siblings, 0 replies; 3+ messages in thread
From: Suvayu Ali @ 2014-10-20 21:13 UTC (permalink / raw)
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 <fatkasuvayu+linux@gmail.com> 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Captions below figures in LaTeX export
2014-10-20 19:44 Captions below figures in LaTeX export Suvayu Ali
[not found] ` <CA+M2ft_aDFzMV8Hn+TSfHKtjK9+s6wM3eaFGkfcXmTQWcu01UA@mail.gmail.com>
@ 2014-10-21 11:33 ` Rasmus
1 sibling, 0 replies; 3+ messages in thread
From: Rasmus @ 2014-10-21 11:33 UTC (permalink / raw)
To: emacs-orgmode
Hi,
Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:
> I would like to put the caption command after includegraphics. Is that
> possible? I tried reordering the #+caption: line without success.
If you are using a very recent version of Org, you could check
`org-latex-caption-above'. Example:
(let ((org-latex-caption-above nil))
(with-temp-buffer
(insert "#+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]]")
(org-mode) (org-latex-export-as-latex nil nil nil t)))
Hope it helps,
Rasmus
--
Er du tosset for noge' lårt!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-10-21 11:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-20 19:44 Captions below figures in LaTeX export Suvayu Ali
[not found] ` <CA+M2ft_aDFzMV8Hn+TSfHKtjK9+s6wM3eaFGkfcXmTQWcu01UA@mail.gmail.com>
2014-10-20 21:13 ` Suvayu Ali
2014-10-21 11:33 ` Rasmus
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).