emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] Re: LaTeX export of images


From: Sébastien Vauban
Subject: [Orgmode] Re: LaTeX export of images
Date: Wed, 23 Sep 2009 16:04:10 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)



Hi Francesco,

Francesco Pizzolante wrote:
> 1) Images in the middle of the text
>
> If I have the following example:
>
>     ,----
>     | For this example, I will use this image [[myimage.png]] which is a very 
> good one.
>     `----
>
> Then, when exported, it produces the following LaTeX code:
>
>     ,----
>     | For this example, I will the use this image
>     | \centerline{\includegraphics{myimage}} which is a very good one.
>     `----
>
> Which produces weird layout when compiled to PDF.
>
> In this case, we should just generate \includegraphics{myimage} without the
> centerline command.

Given the output of the `\centerline' command, I guess that the inlining of an
image inside a line of text is not supported as is by Org. I can second such a
choice.

For such an effect, then, you still have a solution: simply write a chunk of
LaTeX code in your Org file.


> 2) Images in floats
>
> In the case of floats, the correct generated code should be something like:
>
> \begin{figure}[htb]
>         \centering
>         \includegraphics{myimage}
>         \label{LABEL}
>         \caption{CAPTION}
> \end{figure}
>
> and not
>
> \begin{figure}[htb]
>         \centerline{\includegraphics{myimage}}
>         \label{LABEL}
>         \caption{CAPTION}
> \end{figure}
>
> This can also be fixed quickly I think.

I'm not really aware of the `\centerline' command in LaTeX. It's true that, in
order to center, the most commonly usages are:

- the `\centering' command, to be put inside a group, or

- the `center' environment -- but this is generally considered as evil, as it
  adds unwanted spaces around.


> Now, the question is: is it correct to identify a "float" image thanks to its
> caption and label attributes? Can't we have a "float" image without label or
> caption?

That's right that I generally would also like to have all figures exported as
floats (or, at least, that such a decision would not just depend on the
presence or absence of a label/caption).

Best regards,
  Seb

-- 
Sébastien Vauban






reply via email to

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