RE: FWD: [NTG-context] \inmargin, \setupindenting, and overfull boxes
CORRECTION: should be =============================================== \let\normalinmargin\inmargin \def\inmargin#1{{\parindent0pt \normalinmargin{#1}}} \def\INMARGIN#1{{\advance\leftskip by -2\parindent \inmargin{#1} \advance\rightskip by -2\parindent}} =============================================== ============================ Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523
Idris Samawi Hamid wrote:
CORRECTION: should be
=============================================== \let\normalinmargin\inmargin \def\inmargin#1{{\parindent0pt \normalinmargin{#1}}}
\def\INMARGIN#1{{\advance\leftskip by -2\parindent \inmargin{#1} \advance\rightskip by -2\parindent}} ===============================================
can you make me a minimal example showing the problem? Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hans Hagen wrote:
can you make me a minimal example showing the problem?
Idris' original example shows the 'problem': \setupindenting[medium] \starttext \input knuth \inmargin{This is a test.} \stoptext The output will be fine, but there will be one 'Overfull hbox' message printed on the terminal for each \inmargin command. If there are a lot of margin notes, this can clutter the output considerably, and that's not so much a problem, but an annoyance. I've run into this as well, in context as well as in latex and in my own macros. The problem is usually something like: \vbox{\hsize 0pt \dontleavehmode} Greetings, Taco
Taco Hoekwater wrote:
If there are a lot of margin notes, this can clutter the output considerably, and that's not so much a problem, but an annoyance. I've run into this as well, in context as well as in latex and in my own macros. The problem is usually something like:
i've added a \dontcomplain to the main macro now Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Idris Samawi Hamid
-
Taco Hoekwater