%\filename{mnotemacros.tex}
%\edited{last by stolfi on Sat Mar  7 09:30:28 1987}

% MARGINAL NOTES

\catcode`@=11\endlinechar=-1

  \message{marginal notes ...}
  
  % Use \leftnote{Foo} in horizontal mode to get "Foo" hboxed and inserted
  % at the left of the current line. Baselines will usually be aligned.
  % Ditto for \rightnote.

  \def\leftnote#1{\m@rgnote{#1}{}}
  \def\rightnote#1{\m@rgnote{}{#1}}
  \def\m@rgnote#1#2{{\setbox0=\strutbox
      \vadjust{\kern-\dp0
          \vbox to 0pt{\null\vss
              \hbox{\hbox to 0pt{\hss #1}\kern\textwidth\hbox to 0pt{#2\hss}}
              \kern -\prevdepth
              \hrule height0pt width 0pt depth \dp0
            }
        }
    }}


\catcode`@=12\endlinechar=`\^^M

% END

