Patches item #603, was opened at 2006-09-07 10:35
You can respond by visiting:
http://sarovar.org/tracker/?func=detail&atid=495&aid=603&group_id=106
Category: Primitives
Group: v1.40.0
Status: Open
Resolution: None
Priority: 8
Submitted By: Heiko Oberdiek (oberdiek)
Assigned to: Martin Schröder (oneiros)
Summary: Patch ColorStackTransformMatrix
Initial Comment:
Subject: Patch ColorStackTransformMatrix
Date: 2006/09/07
Author: Heiko Oberdiek
The patch is based on pdftex-1.40.0-beta-20060906
It tries to solve two FAQ problems:
* missing color stack
* wrong annotation rectangles (links, anchors)
if the material was scaled or rotated.
Files:
ColorStackTransformMatrix.patch
The patch, apply it in src/texk/web2c/pdftexdir:
patch
Comment By: Heiko Oberdiek (oberdiek) Date: 2006-09-12 16:38
Message:
Logged In: YES
user_id=1276
| Two questions come to mind:
| - how does this patch interact with existing documents,
The design principle is that the patch does not have an
effect if the new primitives are not used (modulo bugs).
| i.e.
| what must be changed when using this patch? Obviously the
| use of \pdfliteral must be checked. Anything else?
LaTeX's color/graphics: pdftex.def that support the
new primitives.
| - does this collide with pdftex's use of the cm? The only
| use of the transformation matrix by pdftex I could find
| concerns magnifications, so that's most likely not a
| problem.
I had played a little with magnification, but not too
intensively.
| Btw: gcc with -Wall -std=c99 gives this warning:
| ../../../../src/texk/web2c/pdftexdir/utils.c: In function
| ‘newcolorstack’:
| ../../../../src/texk/web2c/pdftexdir/utils.c:1366:
| warning:
| operation on ‘colstacks’ may be undefined
Assignments to colstacks are controlled by colstack_size,
thus the warnung can be gnored. To avoid the warning
replace
static colstack_type *colstacks;
by
static colstack_type *colstacks = NULL;
Yours sincerely
Heiko