I managed to get what I wanted - a sort of
margin notes that works from inside floats.

They are one line, must be used at the
beginning of a text line, and may 
overlap if there's many of them.  Still, they
work for me. \makebox and \raisebox with 0 size
is used so the note won't disturb the 
current text position.  

Helge Hafting

\newcommand{\floatmarginlineright}[1]{%
 \makebox[0mm][l]{\raisebox{0mm}[0mm][0mm]{%
 \hspace{\textwidth}\hspace{\marginparsep}%
 \makebox[\marginparwidth][l]{\small\sffamily{}#1}}}}

\newcommand{\floatmarginlineleft}[1]{%
 \makebox[0mm][l]{\raisebox{0mm}[0mm][0mm]{%
 \hspace{-\marginparsep}\hspace{-\marginparwidth}%
 \makebox[\marginparwidth][r]{\small\sffamily{}#1}}}}

%this one always goes in the outer margin
\newcommand{\floatmarginline}[1]{%
 \ifthenelse{\isodd{\value{page}}}%
 {\floatmarginlineright{#1}}%
 {\floatmarginlineleft{#1}}}

Reply via email to