From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: LaTeX export of images Date: Tue, 29 Sep 2009 11:28:59 +0200 Message-ID: <10AD8929-948F-4985-8E26-F49C0DF525A7@gmail.com> References: <87pr9jf68i.fsf@missioncriticalit.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MsZ1C-00038h-1x for emacs-orgmode@gnu.org; Tue, 29 Sep 2009 05:29:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsZ16-00036z-PH for emacs-orgmode@gnu.org; Tue, 29 Sep 2009 05:29:09 -0400 Received: from [199.232.76.173] (port=34828 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsZ16-00036u-Kj for emacs-orgmode@gnu.org; Tue, 29 Sep 2009 05:29:04 -0400 Received: from mail-ew0-f208.google.com ([209.85.219.208]:38590) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MsZ16-00051M-9d for emacs-orgmode@gnu.org; Tue, 29 Sep 2009 05:29:04 -0400 Received: by ewy4 with SMTP id 4so3283250ewy.31 for ; Tue, 29 Sep 2009 02:29:03 -0700 (PDT) In-Reply-To: <87pr9jf68i.fsf@missioncriticalit.com> 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@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Francesco Pizzolante Cc: mailing-list-org-mode On Sep 22, 2009, at 3:39 PM, Francesco Pizzolante wrote: > 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. Yes sure, but what is wrong with \centerline? does the \centering lead to a different result? - Carsten > > 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@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode