[XeTeX] centering a picture
William F. Adams
wadams at atlis.com
Mon Aug 29 18:55:05 CEST 2005
On Aug 29, 2005, at 11:19 AM, Yves Codet wrote:
> 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?
I believe you should put a blank line or force a paragraph after the
manually placed graphic.
> 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?
Best would be to upload it to your local CTAN node (http://www.ctan.org
for starters) or perhaps Jonathan could host it on sil.org?
William
--
William Adams, publishing specialist
voice - 717-731-6707 | Fax - 717-731-6708
www.atlis.com
More information about the XeTeX
mailing list