[texhax] dotfill leaders on first line of paragraph only ?

Philip TAYLOR P.Taylor at Rhul.Ac.Uk
Wed Dec 7 19:46:59 CET 2011



Philip TAYLOR wrote:

> OK, thank you William : in that case it is presumably necessary only
> to redefine the font selectors so that when I (for example) use
> \normalfont in my document, this does not resolve to a simple
> font selector but rather to a macro that expands to
> \concealednormalfont \special {...}.

Unfortunately not as simple as I had hoped.
Now, given :

	\let \Font = \font
	\def \font #1= #2 at #3 pt
		{
			\message {Loading font \string #1 = #2 at #3 pt}
			\expandafter \Font \csname font:\string #1\endcsname = #2 at #3 pt \relax
			\edef #1{\csname font:\string #1\endcsname \special {color cmyk 0 0 0 1}}
		}

(i.ẹ, initially mapping all fonts to black)

I get

> ** WARNING ** You've mistakenly made a global color change within nested colors.
> ** WARNING ** You've mistakenly made a global color change within nested colors.
> ** WARNING ** You've mistakenly made a global color change within nested colors.

(repeated many many times).
** Phil.


More information about the texhax mailing list