I am using the marginpar command with the package marginfix. The package is very chatty and clutters the console when LaTeX runs. The author (Stephen Hicks) anticipated that some people might not like it and provided a no-debug option. This is done when compiling the sty file out of the ins and dtx files and not an run-time option. The version that is packaged with TeXLive 2011 has debug on. I fixed it for myself, but is there a recommended practice? Contact the author, contact someone at CTAN, fix it for yourself and keep quiet? Or is debug supposed to be on?
Asked
Active
Viewed 268 times
1 Answers
4
Save the following code as xmarginfix.sty and call
\usepackage[<options>]{xmarginfix}
instead of \usepackage[<options>]{marginfix}. The only option to marginfix is ypos that is honored by xmarginfix, which has also debug and nodebug (the default, that disables the messages from marginfix).
\ProvidesPackage{xmarginfix}
\DeclareOption{debug}{\let\XMF@debug\@empty}
\DeclareOption{nodebug}{\let\XMF@debug\relax}
\DeclareOption{ypos}{\PassOptionsToPackage{\CurrentOption}{marginfix}}
\ExecuteOptions{nodebug}
\ProcessOptions\relax
\edef\XMF@ecl{\number\errorcontextlines}
\def\XMF@debug{\@ifstar\@gobble\@gobble}
\RequirePackage{marginfix}
\@ifundefined{XMF@debug}
{\let\MFX@debug\XMF@debug\errorcontextlines=\XMF@ecl\relax}
{}
\endinput
Just a temporary hack, or maybe it could become something more stable if the author of marginfix is not reachable.
egreg
- 1,121,712
.insfile on CTAN, which will have been used by TeX Live and MiKTeX to unpack the code from the.dtx. The.inshas thedebugoption enabled, so the code is unpacked in debug mode. Only the maintainer can (usually) fix the CTAN release, so it'd down to him. – Joseph Wright Oct 16 '11 at 16:14\makeatletter\let\MFX@debug\@gobble\makeatotherafter loading marginfix. – egreg Oct 17 '11 at 15:16