From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Positioning of images - export to LaTeX Date: Tue, 10 Mar 2015 09:29:58 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50044) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVLAW-00006s-UQ for emacs-orgmode@gnu.org; Tue, 10 Mar 2015 10:30:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YVLAV-00014H-KI for emacs-orgmode@gnu.org; Tue, 10 Mar 2015 10:30:00 -0400 Received: from mail-ob0-x22e.google.com ([2607:f8b0:4003:c01::22e]:41762) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVLAV-000145-Fg for emacs-orgmode@gnu.org; Tue, 10 Mar 2015 10:29:59 -0400 Received: by obcva8 with SMTP id va8so1886127obc.8 for ; Tue, 10 Mar 2015 07:29:58 -0700 (PDT) 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: Rainer M Krug Cc: emacs-orgmode On Tue, Mar 10, 2015 at 9:13 AM, Rainer M Krug wrote: > Hi > > I am struggling with float positioning. I would like to have a float at > the bottom of a page. Consider the following code: > > --8<---------------cut here---------------start------------->8--- > * Some text > #+NAME: test > #+begin_src R :exports results :file-ext pdf :results graphics :width 8 :height 3 > plot(runif(100)) > #+end_src > > #+RESULTS: test > [[file:test.pdf]] > --8<---------------cut here---------------end--------------->8--- > > which produces a pdf with the float directly after the heading. Now I > would like to have the float at the bottom of the page. > > I know about the float placement option, but how can I use them from > org? I have seem > http://orgmode.org/manual/LaTeX-specific-attributes.html but where do I > c=have to put the > > ,---- > | #+ATTR_LATEX: :placement {b} > `---- > > so that the float is at the bottom of the page? Latex attributes have to go above the =#+results: name= line so that babel doesn't get confused. If you put it in between the name and file link, re-running the block will generate a new one, as babel won't recognize it. This seems to work for me, though from a previous email I took a cue that I believe you need to also specify it as a float.[1] Someone else can correct if that's wrong! #+begin_src org #+attr_latex: :float t :placement [b] #+RESULTS: test [[file:test.pdf]] #+end_src I get this as a result: #+begin_src latex \section{Some text} \label{sec-1} \begin{figure}[b] \centering \includegraphics[width=.9\linewidth]{test2.pdf} \end{figure} #+end_src [1] https://www.mail-archive.com/emacs-orgmode@gnu.org/msg82889.html This pushes it to the bottom for me! John > > Rainer > > -- > Rainer M. Krug > email: Rainerkrugsde > PGP: 0x0F52F982