From: Hans Hagen <pragma@wxs.nl>
Cc: <ntg-context@ntg.nl>
Subject: Re: line numbering interupted
Date: Wed, 05 Jun 2002 21:30:56 +0200 [thread overview]
Message-ID: <5.1.0.14.1.20020605211820.03230968@server-1> (raw)
In-Reply-To: <001001c20ba0$f94903e0$40d64ca5@MATTHEW>
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
-------------------------------------------------------------------------
prev parent reply other threads:[~2002-06-05 19:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-04 8:21 Matthew Huggett
2002-06-05 19:30 ` Hans Hagen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5.1.0.14.1.20020605211820.03230968@server-1 \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).