[XeTeX] centering a picture

Stephen Moye stephenmoye at mac.com
Mon Aug 29 19:04:12 CEST 2005


 
On Monday, August 29, 2005, at 11:14AM, Yves Codet <ycodet at club-internet.fr> wrote:

>Hello.
>
>Here is another of my beginner's questions.
>
>If, using the "float" package, I write this:
>
>\begin{table}[H]
>	\begin{center}
>		\XeTeXpicfile "indus_pictogramme_figuier.gif" width 6cm
>		\caption{Pictogrammes de l?Indus: figuier.}
>	\end{center}
>\end{table}
>
>the caption is centered but the picture is at the left margin.
>
>But if, imitating an example by Jonathan, I write this:
>
>\begin{table}[H]
>	\begin{center}
>		\framebox{\setbox0=\hbox{\XeTeXpicfile 
>"indus_pictogramme_figuier.gif" width 6cm}\box0}
>		\caption{Pictogrammes de l?Indus: figuier.}
>	\end{center}
>\end{table}
>
>everything is centered. Is this a normal behaviour of LaTeX?
>
>Incidentally, some time ago (about one year actually) members of this 
>list helped me to write Sanskrit hyphenation patterns. I have been 
>using them since then and they seem to work well: so far I haven't 
>noticed any unwanted hyphenation. I wrote to Johannes Braams, asking 
>him if he could modify Babel so as to allow the inclusion of these 
>patterns thanks to his package, but got no reply. Since they may be 
>useful to other people in the TeX community, I would be glad to put 
>them at their disposal. To whom should I send them, without them to 
>land into a spam box?
>
>Kind regards,

All you need to do is to make sure that the \XeTeXpicfile object is in horizontal mode:

\leavevmode\XeTeXpicfile "indus_pictogramme_figuier.gif" width 6cm

SGM



More information about the XeTeX mailing list