From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/8142 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: line numbering interupted Date: Wed, 05 Jun 2002 21:30:56 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <5.1.0.14.1.20020605211820.03230968@server-1> References: <001001c20ba0$f94903e0$40d64ca5@MATTHEW> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1035398571 25062 80.91.224.250 (23 Oct 2002 18:42:51 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:42:51 +0000 (UTC) Cc: Original-To: "Matthew Huggett" In-Reply-To: <001001c20ba0$f94903e0$40d64ca5@MATTHEW> Xref: main.gmane.org gmane.comp.tex.context:8142 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:8142 At 05:21 PM 6/4/2002 +0900, Matthew Huggett wrote: >Hi: > >I have a document with line-numbering. When I use one of my own commands--- >for example, \Red{Some Words in Red}--- the line-numbering stops working. >The line-numbering works fine without these homemade commands. Any ideas as >to why this might be? This is a limitation of tex: one cannot disassemble boxes with marks (which we used to keep track of colors. So, the solution is: \setupcolors[state=local] which is ok as long as color does not cross pages. A better way is (in cont-new.tex): \newevery \everyshapebox \relax \def\beginofshapebox% {\setbox\oldshapebox\normalvbox \bgroup \reshapingboxtrue \the\everyshapebox \normalhbox to \shapesignal{\strut\hss}% \prevdepth\dp\strutbox} \appendtoks \localcolortrue \to \everyshapebox Now, the latest version has a problem with spacing (introduced when extending the number placement), in cont-new there should be (only in latest version!): \def\dodoschrijfregelnummer% {% beware of em's, the font is already switched ! \setbox\scratchbox\hbox {\setbox0\hbox{\@@rncommando{\regelweergave}}\vsmashbox0% \ifcase\linenumberlocation \rlap{\hbox to \@@rnbreedte{\box0\hss}}% was \llap, nog testen !! \or %\llap{\hbox to \@@rnbreedte{\hss\box0\hskip\linkermargeafstand}}% \inleftmargin {\forgetall \doifelse\@@rnbreedte\v!marge {\hsize\linkermargebreedte}{\hsize\@@rnbreedte}% \alignedline\@@rnuitlijnen\v!rechts{\box0\hskip\@@rnafstand}}% \else \inrightmargin {\forgetall \doifelse\@@rnbreedte\v!marge {\hsize\rechtermargebreedte}{\hsize\@@rnbreedte}% \alignedline\@@rnuitlijnen\v!links{\hskip\@@rnafstand\box0}}% \fi}% \vsmashbox\scratchbox \box\scratchbox} Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------