[XeTeX] [tex-live] Seemingly inexplicable shift in page origin between TL 2014 and TL 2016
Ross Moore
ross.moore at mq.edu.au
Fri Jul 15 09:25:58 CEST 2016
Hi David,
On Jul 15, 2016, at 4:47 PM, David Carlisle <d.p.carlisle at gmail.com<mailto:d.p.carlisle at gmail.com>> wrote:
Is there a mechanism similar to \hypersetup that allows the options to be changed
*after* the package has been loaded?
Not really, although the actual setting is in \AtBeginDocument{\AtBeginDVI so as long
as you set the relevant registers to the right value it'll get set up (but let me know if you need more hooks)
No, I don’t need any more hooks.
A previous message explained why.
There is a very minor issue, as follows.
PDF/X generally requires CMYK color space, whereas PDF/A and PDF/E usually use RGB colors.
If one specifies \pagecolor{yellow} say, then it will use whatever color space was stated
when ‘yellow’ was defined as a color.
This would lead to a validation problem if it wasn’t the same space as the PDF type requires.
The “fix” for this is to use the xcolor package, and force conversions into the right color space.
Thank you for writing this, so many years ago!
Currently pdfx.sty force loads xcolor for PDF/X.
For some reason the command with PDF/A was commented-out, so that xcolor would be loaded
only if requested by the document author, as per usual.
(I must have been testing something and didn’t uncomment it before releasing the package;
or maybe I thought more tests were needed, and just forgot about it.)
I do, however, put in a check that prevents the author from using the wrong color space.
The next version of pdfx.sty will force loading of xcolor in all situations, since there’s
no easy way of knowing what or when the author might request colours.
What is the issue?
xcolor can be very noisy:
viz.
Package xcolor Warning: Incompatible color definition on input line 3993.
[48]][48
Package xcolor Warning: Incompatible color definition on input line 4027.
Package xcolor Warning: Incompatible color definition on input line 4101.
Package xcolor Warning: Incompatible color definition on input line 4115.
[49]][49
That's 3 warnings per page.
Fortunately the final result is fine, passing validation.
xcolor has an option hideerrors but this doesn’t suppress these warnings.
Cheers
Ross
Dr Ross Moore
Mathematics Dept | Level 2, S2.638 AHH
Macquarie University, NSW 2109, Australia
T: +61 2 9850 8955 | F: +61 2 9850 8114<tel:%2B61%202%209850%209695>
M:+61 407 288 255<tel:%2B61%20409%20125%20670> | E: ross.moore at mq.edu.au<mailto:rick.minter at mq.edu.au>
http://www.maths.mq.edu.au<http://mq.edu.au/>
[cid:image001.png at 01D030BE.D37A46F0]<http://mq.edu.au/>
CRICOS Provider Number 00002J. Think before you print.
Please consider the environment before printing this email.<http://mq.edu.au/>
This message is intended for the addressee named and may
contain confidential information. If you are not the intended
recipient, please delete it and notify the sender. Views expressed
in this message are those of the individual sender, and are not
necessarily the views of Macquarie University.<http://mq.edu.au/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20160715/61634954/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 4605 bytes
Desc: image001.png
URL: <http://tug.org/pipermail/xetex/attachments/20160715/61634954/attachment-0001.png>
More information about the XeTeX
mailing list