[OS X TeX] Marginal note is vertically moved
Ross Moore
ross at ics.mq.edu.au
Sat May 10 09:54:36 CEST 2008
Hello Christian,
On 10/05/2008, at 4:58 PM, Christian wrote:
> Hello,
>
> The following minimal example shows in my case a vertically moved
> side note. The side note does not share the same base line with the
> text to which it belongs to.
>
> What could be the reason for this behaviour and how could I resolve
> it?
Try
\newcommand{\randt}[1]{\marginpar{\sffamily\slshape
\footnotesize\leavevmode\color{blue}\raggedright{#1}}}
Otherwise the \color command places its whatsit in vertical
rather than horizontal mode. This means that the marginpar
aligns its top with the baseline of the text, rather than
aligning text baselines.
>
> --------------
> \documentclass{scrartcl} \usepackage[svgnames]{xcolor} \newcommand
> {\randt}[1]{\marginpar{\sffamily\slshape% \footnotesize\color{blue}
> \raggedright{#1}}} \begin{document} Hier steht jetzt text \randt
> {sezb erbu eaubra eroaebr} Hier steht jetzt text Hier steht jetzt
> text Hier steht jetzt text Hier steht jetzt text Hier steht jetzt
> text \end{document}
> --------------
>
> Christian
Hope this helps,
Ross
------------------------------------------------------------------------
Ross Moore ross at maths.mq.edu.au
Mathematics Department office: E7A-419
Macquarie University tel: +61 (0)2 9850 8955
Sydney, Australia 2109 fax: +61 (0)2 9850 8114
------------------------------------------------------------------------
More information about the macostex-archives
mailing list