emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Chris Malone <chris.m.malone@gmail.com>
To: "Thomas S. Dye" <tsd@tsdye.com>
Cc: emacs-orgmode@gnu.org, Andrea Crotti <andrea.crotti.0@gmail.com>
Subject: Re: org-latex and figures
Date: Thu, 27 Jan 2011 15:35:00 -0500	[thread overview]
Message-ID: <AANLkTinLiaN9Sgh1osG=iGEhS6HUtKWTg7x6B19aFZYG@mail.gmail.com> (raw)
In-Reply-To: <29E1F9F4-5F76-45FE-9F02-2DB658597A07@tsdye.com>


[-- Attachment #1.1: Type: text/plain, Size: 2355 bytes --]

Hi Andrea,

I'm inclined to agree with Tom - there is no default that will work in all
instances.  That being said, you can use an #ATTR_LATEX line to modify the
placement for each image - see here:
http://orgmode.org/org.html#Images-in-LaTeX-export

Alternatively, (and this is very much a hack, which I can't guarantee will
work) you could make the org-mode default behaviour be [ptb] by replacing
the =(floatp "[htb]")= line with =(floatp "[ptb]")= in the
=org-export-latex-format-image= function definition in the file
org/lisp/org-latex.el ... you would have to do something similar to the
=org-export-latex-tables= function for tables.

HTH,
Chris


On Thu, Jan 27, 2011 at 11:53 AM, Thomas S. Dye <tsd@tsdye.com> wrote:

> Hi Andrea,
>
> There is no default that will work in all situations.  A default of [ptb]
> will typically generate some pages with just a figure and lots of white
> space.  I make a lot of latex documents and I find the path of least
> resistance is to use a default of [htb!] and pay attention to the large
> figures so they don't float to the end and take the other figures with them.
>
> All the best,
> Tom
>
> On Jan 27, 2011, at 4:04 AM, Andrea Crotti wrote:
>
>  I could not understand why on earth my pdf had all the images after the
>> whole document.
>> Then I found this:
>>
>> http://www.eng.cam.ac.uk/help/tpl/textprocessing/float_hint.html
>>
>> and found out that the default for a figure was
>> \begin{figure}[ptb]
>>
>> while in the generated latex file from org I had
>> \begin{figure}[htb]
>>
>> So I changed to the default and now it works fine...
>> Isn't that default maybe a bit dangerous?
>>
>> The fact is that if the first image doesn't fit "here" it will be
>> printed late and all the others after.
>>
>> I might also just use the latex code here for these things, I don't care
>> to export to other formats, it's just nicer to look if it's in org syntax
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

[-- Attachment #1.2: Type: text/html, Size: 3400 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2011-01-28  7:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-27 14:04 org-latex and figures Andrea Crotti
2011-01-27 16:53 ` Thomas S. Dye
2011-01-27 20:35   ` Chris Malone [this message]
2011-01-28 15:56     ` Eric S Fraga
2011-01-28 16:42       ` Thomas S. Dye
2011-01-28 17:09         ` Eric S Fraga
2011-01-28 16:01     ` Eric Schulte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTinLiaN9Sgh1osG=iGEhS6HUtKWTg7x6B19aFZYG@mail.gmail.com' \
    --to=chris.m.malone@gmail.com \
    --cc=andrea.crotti.0@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=tsd@tsdye.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).