[texhax] Nested list vertical misalignment with \marginpar

Vince Pileggi vinpile at rogers.com
Sat Apr 21 14:53:25 CEST 2007


HI,
Just to bring closure to this small issue:
On Tuesday 17 April 2007 23:48, Donald Arseneau wrote:
In response to my previous question:
> >"Vince Pileggi" <vinpile at rogers.com> writes:
> > Need help to left justify second line...
> Do you know what \reversemarginpar means?  I think you were trying
> to use \marginpar{} without any silly \hspace.
Thanks for the advice Donald!
Found that for example the direct use of \marginpar{(4)} left justifies and
vertically misaligns the number to the adjacent line and puts '(4)' on the
right margin by default(news to me). To place '(4)' on left  margin with the
right spacing and correct vertical alignment, this (from Ch3-'Basic
Formatting Tools' from <<The LaTeX Companion>>, 2nd edition Frank
Mittelbach, Michel Goossens, Johannes Braams, David Carlisle, Chris Rowley
ISBN 0-201-36299-6 available at
http://www.latex-project.org/guides/books.html; Thanks for making Ch 3
freely available; I need to invest in this book.) used the following (did
the trick for me):
\reversemarginpar
\newcommand\marginlabel[1]{\mbox{}\marginpar
    {\raggedright\hspace{0pt}#1}}
\marginlabel[(4)]

Regards,
Vince

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 269.4.0/762 - Release Date: 4/15/2007
4:22 PM
 



More information about the texhax mailing list