[OS X TeX] Problem with \hfill

Bruno Voisin bvoisin at mac.com
Mon Oct 3 03:54:26 EDT 2005


Le 2 oct. 05 à 19:04, Ewan Delanoy a écrit :

> if I resize my page settings with the following commands :
>
> \addtolength{\textwidth}{4cm}
> \addtolength{\textheight}{4cm}
>
> then \hfill has an unwanted behaviour : for example,
>
> \hfill {Q. E. D. } \newline              in the source file
>
> produces
>
> Line n      (...) Q.
> Line n+1  E.D.
>
> in the output file. Does anyone know a way to fix this ?

To make sure "Q. E. D." isn't spread over several lines, you should  
use unbreakable spaces namely "Q.~E.~D.", or even better include the  
thing inside a box namely \mbox{Q.~E.~D.}.

In any case, I think it would be better to use, in LaTeX:

\begin{flushright}
   Q.~E.~D. \\
   [similar lines, if necessary, all separated by "\\"]
\end{flushright}

Bruno Voisin------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the MacOSX-TeX mailing list