From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: Positioning of images - export to LaTeX Date: Tue, 10 Mar 2015 15:49:46 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVLTr-0005zv-Ig for emacs-orgmode@gnu.org; Tue, 10 Mar 2015 10:50:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YVLTn-0000ZC-0a for emacs-orgmode@gnu.org; Tue, 10 Mar 2015 10:49:59 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:43680) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVLTm-0000Z1-R7 for emacs-orgmode@gnu.org; Tue, 10 Mar 2015 10:49:54 -0400 Received: by widem10 with SMTP id em10so3663267wid.2 for ; Tue, 10 Mar 2015 07:49:54 -0700 (PDT) In-Reply-To: (John Hendy's message of "Tue, 10 Mar 2015 09:29:58 -0500") 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-orgmode --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable John Hendy writes: > 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=3Dhave 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 =3D#+results: name=3D 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! You are spot on. I was missing the =3D:float t=3D part. Now it works. Thanks a lot, Rainer > > #+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=3D.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 > > =2D-=20 Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBAgAGBQJU/wSOAAoJENvXNx4PUvmCVEwH/3wRg/HAjaccx1GHxAGA9kgp 9htS9hBZETMzjxN6CgHIrtx9Z/oWQdrRX3IeIo77NcjHPvdOITf9LXZKYXrPGBIQ 6gMaAbC6fLkj54pMIcU6FWcedPX+EHV9nIpg8bzpm0b0SMdkIuG1iJ8BFvA03Vnx rG8vwKJW2bHYztQPyAH60ymfi27ZgLo7HDYX1Owu/SrlaJ9DiBAPEIu7gIt66MWC 5hRJcaxuba8vvg5EXAxKNHAN6vHFEqYv1aHYML7E89QvSusOawO1dXehdV/w/Yjf BIvY+ToRXi0rVsEsFisHV53PReq2wTooG4XUz+6RDHQYVbkAJJbNtHOvAfFF6Fw= =z22o -----END PGP SIGNATURE----- --=-=-=--