From: "Sébastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: Francesco Pizzolante
<public-fpz-djc/iPCCuDYQheJpep6IedvLeJWuRmrY-wOFGN7rlS/M9smdsby/KFg@public.gmane.org>
Cc: mailing-list-org-mode
<public-emacs-orgmode-mXXj517/zsQ-wOFGN7rlS/M9smdsby/KFg@public.gmane.org>
Subject: Re: LaTeX export of images
Date: Wed, 23 Sep 2009 16:04:10 +0200 [thread overview]
Message-ID: <87d45hoizp.fsf@mundaneum.com> (raw)
In-Reply-To: <87pr9jf68i.fsf-djc/iPCCuDYQheJpep6IedvLeJWuRmrY@public.gmane.org> (Francesco Pizzolante's message of "Tue, 22 Sep 2009 15:39:57 +0200")
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
_______________________________________________
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
next prev parent reply other threads:[~2009-09-23 14:04 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d45hoizp.fsf@mundaneum.com \
--to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
--cc=public-emacs-orgmode-mXXj517/zsQ-wOFGN7rlS/M9smdsby/KFg@public.gmane.org \
--cc=public-fpz-djc/iPCCuDYQheJpep6IedvLeJWuRmrY-wOFGN7rlS/M9smdsby/KFg@public.gmane.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.