emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] org-latex and figures


From: Eric Schulte
Subject: Re: [Orgmode] org-latex and figures
Date: Fri, 28 Jan 2011 09:01:20 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Hi,

This seems like it should be easily customizable.  I've replaced the
hardcoded "htb" values with `org-latex-default-figure-position' a new
defcustom variable which can be customized to change this behavior.
Please pull the latest from git, try it out and let me know if you run
into any problems.

Best -- Eric

Chris Malone <address@hidden> writes:

> 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 <address@hidden> 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.
>>> address@hidden
>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>>
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> address@hidden
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode



reply via email to

[Prev in Thread] Current Thread [Next in Thread]