[NTG-pdftex] [ pdftex-Patches-812 ] added \pdfkeeplinedimen primitive

noreply at sarovar.org noreply at sarovar.org
Sun Jun 24 10:28:37 CEST 2007

Patches item #812, was opened at 2007-06-23 19:23
You can respond by visiting: 

Category: Primitives
Group: v1.50.0
Status: Open
Resolution: None
Priority: 5
Submitted By: The Thanh Han (hanthethanh)
Assigned to: Hartmut Henkel (hhenkel)
Summary: added \pdfkeeplinedimen primitive

Initial Comment:
This patch introduces a new primitive
\pdfkeepdimenline, which is an addon to bring some more
flexibity to the existing \pdflastlinedepth,
\pdffirstlineheight, \pdfeachlinedepth and
\pdfeachlineheight primitives. Those primitives are set
to 0 by default, and they take effect only if the user
sets them to a non-zero value (as one can guess from
their names, they fix line dimensions of a paragraph). 

The issue with those primitives is that it's impossible
to use them with 0, as this value means "don't change
line dimens". So this patch introduces
\pdfkeepdimenline, a dimen register keeping the value
for "don't change line dimens". By default all are set
to 0, so the default behaviour is unchanged. 

For example, to set depth of each line after line
breaking to zero, one can say:


Testing/comments welcome.


>Comment By: Taco Hoekwater (taco)
Date: 2007-06-24 10:28

Logged In: YES 

I see an advantage in having a configurable parameter over
the arbitrary constant that \prevdepth currently uses. But
if that is the case, it makes sense to apply it to
\prevdepth as well.

So how about \pdfignoreddimen instead, that defaults to
-1000pt, and is also used by \prevdepth ?


Comment By: The Thanh Han (hanthethanh)
Date: 2007-06-24 10:26

Logged In: YES 

another patch uploaded, so the pdftex team can choose
between them. Hope to make Nobody (None) happy. 


Comment By: Nobody (None)
Date: 2007-06-23 19:29

Logged In: NO 

This is completely clunky and awkward.  Instead of having
some magic variable which changes the meaning of _all_
addresses here, how about just using \prevdepth's default
for "no change", namely -1000pt?


You can respond by visiting: 

More information about the ntg-pdftex mailing list