[NTG-pdftex] [ pdftex-Bugs-389 ] Spacing Bug with \pdfliteral direct

noreply at sarovar.org noreply at sarovar.org
Thu Jul 14 10:28:08 CEST 2005

Bugs item #389, was opened at 2005-07-14 08:34
You can respond by visiting: 

Category: Literals
Group: v1.30.0
Status: Open
Resolution: None
Priority: 5
Submitted By: Hartmut Henkel (hhenkel)
Assigned to: The Thanh Han (hanthethanh)
Summary: Spacing Bug with \pdfliteral direct

Initial Comment:
"\pdfliteral direct" screws up spacing. Hans found it.
Therefore one has to use the non-direct variant e. g.
for changing color in text, which results in tedious

The trivial patch seems to solve this. Now it's
possible to define color "direct". See the test.pdf
file. Actually i don't understand at all what the patch
does, but it seemed to be the only place where the literal
interferes with position calculations.

It seems that the patch does not mangle the horizontal
positioning calculation; see the placement of the
\vrule after the ET, which is independent from whether
\pdfliteral direct is used or not.

Rough patch. Tests welcome.

Regards, Hartmut


>Comment By: Taco Hoekwater (taco)
Date: 2005-07-14 10:28

Logged In: YES 

I did some extra tests with spaces around the grey text,
and it output turned out ok.

I don't understand this trickery with pdf_first_space_corr
at all, but since it seems to work i'm reluctant to spend
an indeterminate amount of time on discovering the intent
of it.

Patch looks good, afaict.


You can respond by visiting: 

More information about the ntg-pdftex mailing list