[OS X TeX] Marginal note is vertically moved
Christian
maillists at gmx.de
Sat May 10 04:52:05 EDT 2008
Am 10.05.2008 um 09:54 schrieb Ross Moore:
> 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}}}
That really helped, thanks a bunch.
> 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.
Now I know why \textcolor was at least working regarding the base - it
also calls \leavevmode, but unfortunately it ignors the color and the
\raggedright command.
>>
>> --------------
>> \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
Thanks
Christian
More information about the MacOSX-TeX
mailing list