emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* LaTeX export of images
@ 2009-09-22 13:39 Francesco Pizzolante
       [not found] ` <87pr9jf68i.fsf-djc/iPCCuDYQheJpep6IedvLeJWuRmrY@public.gmane.org>
  2009-09-29  9:28 ` Carsten Dominik
  0 siblings, 2 replies; 16+ messages in thread
From: Francesco Pizzolante @ 2009-09-22 13:39 UTC (permalink / raw)
  To: mailing-list-org-mode

Hi,

I have a question about the LaTeX export of images.

I wondering why we treat differently images with caption/label than the ones
that do not have caption/label.

I suppose that we want to make the difference between images that appear in
the middle of the text and those who will appear in a float (with possibly
label and caption).


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.


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.

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?


Thanks for your help and input.

Francesco


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

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

end of thread, other threads:[~2009-10-20 10:18 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-22 13:39 LaTeX export of images Francesco Pizzolante
     [not found] ` <87pr9jf68i.fsf-djc/iPCCuDYQheJpep6IedvLeJWuRmrY@public.gmane.org>
2009-09-23 14:04   ` Sébastien Vauban
2009-09-23 15:30     ` Jeff Kowalczyk
2009-09-23 21:09       ` Sébastien Vauban
2009-09-29  9:30         ` Carsten Dominik
2009-10-02  6:55         ` Carsten Dominik
2009-10-02 13:04           ` Darlan Cavalcante Moreira
2009-10-02 15:23             ` Nick Dokos
2009-10-03  7:05               ` Carsten Dominik
2009-10-05 14:19                 ` Darlan Cavalcante Moreira
     [not found]                 ` <B2499F80-4D9D-4F76-9432-ACF04E38C8EE-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-10-13 10:03                   ` Francesco Pizzolante
2009-10-20 10:18                     ` Carsten Dominik
2009-09-29  9:28 ` Carsten Dominik
2009-09-29 19:32   ` Nick Dokos
2009-09-30  7:30     ` Carsten Dominik
     [not found]     ` <8809.1254252762-/Z0n3E7Cx4uRQBexplnFlPegYHeGw8Jk@public.gmane.org>
2009-09-30  8:53       ` Francesco Pizzolante

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).