Problémy s \marginpar
Matej Cepl
cepl at surfbest.net
Fri Sep 19 19:42:52 CEST 2003
Dobrý den,
nadefinoval jsem si toto:
\usepackage{ifthen}
\usepackage{color}
\definecolor{lightgray}{gray}{0.9}
\newboolean{commentvisible}
\@ifclasswith{article}{draft}{%
\setboolean{commentvisible}{true}%
}{%
\setboolean{commentvisible}{false}%
}
\newsavebox{\@commentbox}
\newlength{\@commentwidth}
\newcommand{\mc at commentbox}[1]{%
\ifthenelse{\boolean{commentvisible}}{%
\marginpar{%
\fcolorbox{black}{lightgray}{%
\setlength{\@commentwidth}{\marginparwidth}%
\addtolength{\@commentwidth}{-2\fboxrule}%
\addtolength{\@commentwidth}{-2\fboxsep}%
\parbox{\@commentwidth}{%
\footnotesize{\sffamily \unhbox#1}%
}%
}%
}
}
}
\renewenvironment{comment}%
{\begin{lrbox}{\@commentbox}}
{\end{lrbox}\mc at commentbox{\@commentbox} }
ale nepracuje to, jak bych si představoval -- když použiji tento příkaz
s fonty Lido (nebo Times, to je jedno -- ale CM fungují), tak horní
okraj \fcolorboxu není vidět (viz příklad na
http://www.volny.cz/cepls/tmp/kahan_HLR-1999-413.tar.gz).
Nevíte někdo, kde je problém?
Díky,
Matěj
--
Matej Cepl,
GPG Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
More information about the csTeX
mailing list