emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Float placement in org-latex
@ 2014-11-15 17:00 Pete Ley
  2014-11-15 17:26 ` Thomas S. Dye
  2014-11-15 17:33 ` Rasmus
  0 siblings, 2 replies; 4+ messages in thread
From: Pete Ley @ 2014-11-15 17:00 UTC (permalink / raw)
  To: emacs-orgmode

Just a quick question for someone new to and quickly becoming enamored
with org-latex-export. 

I'm encountering a problem with my floats. Namely, I have a section with
not much text and several floats, it's probably about a page worth of
actual text and 7-10 gnuplot-generated graph images. I have the gnuplot
code inline in the text and the images are included from the #+RESULTS. 

My problem is that LaTeX keeps pushing them farther down the page until
some of them are at the end, after the appendices. Is there a way I can
maybe shrink the images to make them fit or force it to render them
inline even if it leaves some blank space on the page? I wouldn't mind
making them all quite small and having text flow around them but I'd
rather not have to put in these settings for each and every graph. Can I
do this as a default setting for all of them?

Is there a set of best practices for this kind of thing? Sorry if this
is a beginner question, but I haven't had much luck searching.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Float placement in org-latex
  2014-11-15 17:00 Float placement in org-latex Pete Ley
@ 2014-11-15 17:26 ` Thomas S. Dye
  2014-11-18 14:28   ` Pete Ley
  2014-11-15 17:33 ` Rasmus
  1 sibling, 1 reply; 4+ messages in thread
From: Thomas S. Dye @ 2014-11-15 17:26 UTC (permalink / raw)
  To: Pete Ley; +Cc: emacs-orgmode

Aloha Pete,

Pete Ley <peteley11235@gmail.com> writes:

> Just a quick question for someone new to and quickly becoming enamored
> with org-latex-export. 
>
> I'm encountering a problem with my floats. Namely, I have a section with
> not much text and several floats, it's probably about a page worth of
> actual text and 7-10 gnuplot-generated graph images. I have the gnuplot
> code inline in the text and the images are included from the #+RESULTS. 
>
> My problem is that LaTeX keeps pushing them farther down the page until
> some of them are at the end, after the appendices. Is there a way I can
> maybe shrink the images to make them fit or force it to render them
> inline even if it leaves some blank space on the page? I wouldn't mind
> making them all quite small and having text flow around them but I'd
> rather not have to put in these settings for each and every graph. Can I
> do this as a default setting for all of them?
>
> Is there a set of best practices for this kind of thing? Sorry if this
> is a beginner question, but I haven't had much luck searching.

I think the variable you might want is
org-export-latex-image-default-option, which you can set in your .emacs,
or on a per-file basis, see
http://lists.gnu.org/archive/html/emacs-orgmode/2010-02/msg00355.html.

The problem you're describing with floats collecting at the end of a
document is a fact of life in LaTeX, and is often caused by one
too-large image.  One way is to set a smaller size for the image, and another
is to ensure that [p] is one of the letters in the placement
attribute--this lets a float appear on its own page.

hth,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Float placement in org-latex
  2014-11-15 17:00 Float placement in org-latex Pete Ley
  2014-11-15 17:26 ` Thomas S. Dye
@ 2014-11-15 17:33 ` Rasmus
  1 sibling, 0 replies; 4+ messages in thread
From: Rasmus @ 2014-11-15 17:33 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

Pete Ley <peteley11235@gmail.com> writes:

> Just a quick question for someone new to and quickly becoming enamored
> with org-latex-export. 
>
> I'm encountering a problem with my floats. Namely, I have a section with
> not much text and several floats, it's probably about a page worth of
> actual text and 7-10 gnuplot-generated graph images. I have the gnuplot
> code inline in the text and the images are included from the #+RESULTS. 
>
> My problem is that LaTeX keeps pushing them farther down the page until
> some of them are at the end, after the appendices. Is there a way I can
> maybe shrink the images to make them fit or force it to render them
> inline even if it leaves some blank space on the page? I wouldn't mind
> making them all quite small and having text flow around them but I'd
> rather not have to put in these settings for each and every graph. Can I
> do this as a default setting for all of them?
>
> Is there a set of best practices for this kind of thing? Sorry if this
> is a beginner question, but I haven't had much luck searching.

Maybe you want to check the placeins package if they are pushed to far
away.  Further there's placement options h, H, p that may be of
interest to you.

You can access graphicx options using #+ATTR_LATEX as described in the
manual:

(info "(org) LaTeX specific attributes")

Hope it helps,
Rasmus

-- 
Together we will make the possible totalllly impossible!

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Float placement in org-latex
  2014-11-15 17:26 ` Thomas S. Dye
@ 2014-11-18 14:28   ` Pete Ley
  0 siblings, 0 replies; 4+ messages in thread
From: Pete Ley @ 2014-11-18 14:28 UTC (permalink / raw)
  To: Thomas S. Dye; +Cc: emacs-orgmode, Pete Ley

org-export-latex-image-default-option is just what I'm looking for, I
think. I figured making all the images smaller would do it, I just
didn't know if there was a way to do that without putting a #+ATTR_LATEX
on every image or something. Thanks!

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-11-18 14:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-15 17:00 Float placement in org-latex Pete Ley
2014-11-15 17:26 ` Thomas S. Dye
2014-11-18 14:28   ` Pete Ley
2014-11-15 17: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).