[OS X TeX] \hfill confusion

Vic Norton vic at norton.name
Mon Aug 8 16:37:25 CEST 2011


I am confused about \hfill. On my system it won't push a minipage all the way to the right. Here is an illustrative script.

   \documentclass{article} 
   \usepackage[parfill]{parskip}
   \thispagestyle{empty}
   
   \begin{document}
   xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx
   xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx

   \begin{minipage}{2.0in}
   xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx
   \end{minipage}
   \hfill
   \begin{minipage}{2.0in}
   xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx
   \end{minipage}

   \end{document}

The second minipage does not get pushed to the right-hand border. So how do I push a minipage to the right-hand border of a page?

I'm attaching a picture of the output of the above script.

Regards,

Vic

-------------- next part --------------
A non-text attachment was scrubbed...
Name: hfill-minpage.png
Type: image/png
Size: 2051 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20110808/12fc8596/attachment.png>
-------------- next part --------------




More information about the macostex-archives mailing list