On 15 July 2016 at 00:19, Ross Moore <ross.mo...@mq.edu.au> wrote: > Hi David, > > On Jul 15, 2016, at 8:49 AM, David Carlisle <d.p.carli...@gmail.com> > wrote: > > > well that'll be the page size special change as mentioned earlier I assume. > > > Hmm. In which version of color.sty was this introduced? >
pdftex.def (and luatex.def) have _always_ set \pdfpage(height|width) with no option not to do that, conversely dvips.def did not by default set \ pagesize \special, which mean that if you used color or graphics then the pdf-specified page size either was or was not affected by latex options such as \documentclass[a4paper]{article} depending if you used pdftex or tex+dvips (or luatex or xetex) as of this year, after some discussion on the texlive list color and graphics acquired setpagesize and nosetpagesize options and then dvips/pdftex/luatex/xetex/dvipdfmx.def either set the page size or not. > Presumably later than: > > Package: color 2016/05/09 v1.1c Standard LaTeX Color (DPC) > > There is a potential conflict with pdfx.sty setting the /MediaBox . > > > what does \usepackage [nosetpagesize]{color} do? > > > 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) > > Alternatively, can I detect whether the pagesize special has been done > already? > Then not repeat specifying /MediaBox when setting the other boxes: > Bleed/Crop/Trim > which are required for PDF/X validation. > > If not loaded yet, I can do \PassOptionsToPackage{nosetpagesize}{color} . > But I’ll want to catch the case also if it is loaded. > > > Cheers > > Ross > > David > > > * 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 <%2B61%202%209850%209695> > *M:*+61 407 288 255 <%2B61%20409%20125%20670>* | *E: > ross.mo...@mq.edu.au <rick.min...@mq.edu.au> > > http://www.maths.mq.edu.au <http://mq.edu.au/> > > > <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/> > > > > > -------------------------------------------------- > Subscriptions, Archive, and List information, etc.: > http://tug.org/mailman/listinfo/xetex > >
-------------------------------------------------- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex