RE: FWD: [NTG-context] \inmargin, \setupindenting, and overfull boxes
![](https://secure.gravatar.com/avatar/4d93e6d89c1355aade84cc5c1d6a2065.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
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