Re: [XeTeX] problem xelatex+tikz

2014-09-12 Thread François Patte
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Le 11/09/2014 19:58, Ulrike Fischer a écrit :
 Am Thu, 11 Sep 2014 19:43:45 +0200 schrieb François Patte:
 
 
 Is it a bug in xelatex (I tried both tl-2013 and tl-2014)?
 
 I would say it is a tikz-bug. \hoffset disturbs it. I found
 another one some time ago: http://sourceforge.net/p/pgf/bugs/295/.
 
 

Thanks for pointing the trouble due to \hoffset, but I am wondering if
it is only a tikz bug: xelatex is the only tex-engine with this
problem: as I said lualatex gives correct result but also latex and
pdflatex (if you remove specific xelatex preamble of course).

Anyway, I have a way to solve my problem now: I will study the doc for
geometry and pdfpage packages as suggested by Herbert and Ross.

What about a solution like this:

 \setlength{\topmargin}{19.6mm} %19,6mm=45mm-1inch
 \setlength{\oddsidemargin}{24.6mm}
 \setlength{\evensidemargin}{24.6mm}
?

Thank you for helping.
- -- 
François Patte
UFR de mathématiques et informatique
Laboratoire CNRS MAP5, UMR 8145
Université Paris Descartes
45, rue des Saints Pères
F-75270 Paris Cedex 06
Tél. +33 (0)1 8394 5849
http://www.math-info.univ-paris5.fr/~patte
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iEYEARECAAYFAlQSp7gACgkQdE6C2dhV2JUy2ACglrMokZ/olYsZjtLWeAVv7mcM
aE4AnRhWIHyrk8j4nHMp0vYk7gxHo/68
=cZBj
-END PGP SIGNATURE-


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] problem xelatex+tikz

2014-09-12 Thread Zdenek Wagner
2014-09-12 1:49 GMT+02:00 Ross Moore ross.mo...@mq.edu.au:
 Hi Francois,

 On 12/09/2014, at 7:39 AM, François Patte wrote:

 I wanted to get rid of these one inch to provide the publisher a
 camera ready file and the way I did was an easy way to give a
 centered text with the text width and height given by the publisher...

You can easily achieve it by geometry or by zwpagelayout. I should try
it with zwpagelayout with cropmarks enabled because in this case I
change \hoffset and \voffset...

 Then the way to do this in TeX is *not* with a single TeX run.
 Typeset your book using LaTeX, using the publisher supplied dimensions
 for the page content.

 The run a 2nd (La)TeX job that simply includes the pages of your
 typeset book, as if images.
 The  pdfpages.sty  package is very good for this.
 You lose annotations this way; but it is for printing, isn't it?

Or you can do your own \loop and use just graphicx.sty

...



 When I have done this, it was the first edition of the latex companion
 and in the second edition, the offset commands are still there!

These are basic TeX registers, they were always here, will remain for
ever. They are documented in The TeXbook but not in books on LaTeX.
LaTeX honours them but packages may assume zero values when
calculating distance from the (1in, 1in) reference point using
\topmargin, \oddsidemargin, \evensidemargin.

Of course, well designed packages should take \hoffset and \voffset
into account but users should use LaTeX in the LaTeX way, they should
not combine LaTeX and plain TeX methods without knowing what they do
and what may happen.


 - --
 François Patte


 Hope this helps,

 Ross

 
 Ross Moore   ross.mo...@mq.edu.au
 Mathematics Department   office: E7A-206
 Macquarie University tel: +61 (0)2 9850 8955
 Sydney, Australia  2109  fax: +61 (0)2 9850 8114
 






 --
 Subscriptions, Archive, and List information, etc.:
   http://tug.org/mailman/listinfo/xetex




-- 
Zdeněk Wagner
http://hroch486.icpf.cas.cz/wagner/
http://icebearsoft.euweb.cz



--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex