From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: LaTeX export of images Date: Wed, 23 Sep 2009 16:04:10 +0200 Message-ID: <87d45hoizp.fsf@mundaneum.com> References: <87pr9jf68i.fsf@missioncriticalit.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <87pr9jf68i.fsf-djc/iPCCuDYQheJpep6IedvLeJWuRmrY@public.gmane.org> (Francesco Pizzolante's message of "Tue, 22 Sep 2009 15:39:57 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: Francesco Pizzolante Cc: mailing-list-org-mode 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 t= he > 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 suc= h 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 lik= e: > > \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 --=20 S=C3=A9bastien 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