emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Re: LaTeX export of images


From: Darlan Cavalcante Moreira
Subject: Re: [Orgmode] Re: LaTeX export of images
Date: Mon, 05 Oct 2009 11:19:54 -0300
User-agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.7 Emacs/23.1.50 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

At Sat, 3 Oct 2009 09:05:38 +0200,
Carsten Dominik wrote:
> 
> 
> On Oct 2, 2009, at 5:23 PM, Nick Dokos wrote:
> 
> > Darlan Cavalcante Moreira <address@hidden> wrote:
> >
> >> At Fri, 2 Oct 2009 08:55:22 +0200,
> >> Carsten Dominik wrote:
> >>> Do we need to implement a way so that text can be made to flow  
> >>> around
> >>> a figure, just as it is possible in HTML export?  What would be the
> >>> right LaTeX package to use for this purpose?
> >>>
> >> The Latex wikibook
> >> http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions#Wrapping_text_around_figures
> >> suggests the wrapfigure package, but it also warns that some manual  
> >> adjustments
> >> is often required. Therefore, if this is implemented in the latex  
> >> exporter it is
> >> probably a good idea to provide options to include latex commands  
> >> that will be
> >> put before and after the \includegraphics command. See the example  
> >> in the
> >> section "Tip for figures with too much white space" of the wikibook  
> >> where some
> >> \vspace were used to adjust white space around the figure.
> >>
> >
> > ... and the TeX FAQ seems to agree that wrapfig is probably the best  
> > option:
> >
> >    http://www.tex.ac.uk/cgi-bin/texfaq2html?label=textflow
> >
> > It also mentions some additional limitations.
> >
> > Nick
> >
> 
> 
> OK, I have now modified image placement in LaTeX.
> 
> 1. Image in text
> 
>     [[./img/x.png]]
> 
> 2. Floating image with caption and modified size and placement
> 
>     #+CAPTION: My caption
>     #+ATTR_LATEX: placement=[H] width=0.6\textwidth
>     [[./img/x.png]]
> 
> 3. Wrapping text around the image
> 
>     #+ATTR_LaTeX: wrap
>     #+ATTR_HTML: align="left"
>     [[./img/x.png]]
> 
> 4. Wrapping text around the image with modified size and wrapfigure  
> placement
> 
>     #+ATTR_LaTeX: wrap width=0.38\textwidth placement={r}{0.4\textwidth
>     #+ATTR_HTML: align="right" width="250"
>     [[./img/x.png]]
> 
> Even if there is a caption, wrap will work and force the
> image to be non-floating with text wrapped around.
> 
> Comments?
> 
> - Carsten
> 
> P.S. if you have customized org-export-latex-classes, you might have  
> to undo, then redo this customization, or add the float and wrapfigure  
> environments by hand
> to all classes you want to use.
> 
> 

I haven't tested it yet, but this seems to the best way to do it.
Thanks Carsten.

-- 
Darlan Cavalcante Moreira
address@hidden




reply via email to

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