Re: [XeTeX] centering layout with geometry package

2011-11-26 Thread Ulrike Fischer
Am Sat, 26 Nov 2011 06:52:02 +0800 schrieb Daniel Greenhoe:


 I like your solution. But it seems it does not compile on my system.
 In particular, when I tried to compile using xelatex, it did not like
 \makeatletter (begin{document} no found) and \Gm. Is my system somehow
 different from yours?

Could be, show the log-file of your compilation.

But check at first if something did go wrong in the copy  paste.
Faulty line breaks or non-standard (invisible) space chars are often
the cause of missing \begin{document}-errors. 

-- 
Ulrike Fischer 



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


Re: [XeTeX] centering layout with geometry package

2011-11-25 Thread Susan Dittmar
Dear Daniel,

Quoting Daniel Greenhoe (dgreen...@gmail.com):
 Using the geometry package, is there any way to automatically (without
 using layouthoffset and layoutvoffset) to center a layout area on a
 physical page? The default seems for the layout to be pushed into the
 upper left corner of the physical page. Here is an example:
 
 \documentclass{book}
 \setlength{\parskip}{0mm}%
 \setlength{\parindent}{0mm}%
 \usepackage{geometry}
 \geometry{
   xetex,truedimen,paper=a4paper,
   centering,twoside=false,
   ignoreall,
   layoutheight=200mm,layoutwidth=100mm,
   margin=10mm,
   nomarginpar,noheadfoot,
   showframe,showcrop
   }
 \begin{document}%
 abc
 \end{document}%

What is it that you want? centering or marin=10mm? I guess geometry just
uses the last directive concerning margins that you give, thus overwriting
the result of 'centering' the moment it read the margin directive. A margin
of 1cm might just be what you call 'pushed into the upper left corner'.

Hope that helps,

Susan


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


Re: [XeTeX] centering layout with geometry package

2011-11-25 Thread Daniel Greenhoe
Hi Susan,
Thank you for your reply to my question.

On Fri, Nov 25, 2011 at 5:02 PM, Susan Dittmar susan.ditt...@gmx.de wrote:
 What is it that you want? centering or marin=10mm?

Both the centering and margin parameters refer to layout *inside* the
layout area, not outside it. For example, centering can allow your
text area to be centered within the layout area.

By default, the layout area *is* the physical page. But you can set
the layout to be *different* then the page.

The example given in the geometry package manual is to use an a5 size
layout area on a4 paper. In this example, a parameter of margin=10mm
would refer to margins *inside* the a5 size layout area, not outside
the a5 area.

 What is it that you want?

In the example above, I would want to center the a5 size layout area
on the a4 size physical paper, I want the text area to be contained
somewhere inside the a5 area with margins around it, and I want crop
marks on the a4 size area but outside the a5 layout area.

Thank you again,
Dan

On Fri, Nov 25, 2011 at 5:02 PM, Susan Dittmar susan.ditt...@gmx.de wrote:
 Dear Daniel,

 Quoting Daniel Greenhoe (dgreen...@gmail.com):
 Using the geometry package, is there any way to automatically (without
 using layouthoffset and layoutvoffset) to center a layout area on a
 physical page? The default seems for the layout to be pushed into the
 upper left corner of the physical page. Here is an example:

 \documentclass{book}
 \setlength{\parskip}{0mm}%
 \setlength{\parindent}{0mm}%
 \usepackage{geometry}
 \geometry{
   xetex,truedimen,paper=a4paper,
   centering,twoside=false,
   ignoreall,
   layoutheight=200mm,layoutwidth=100mm,
   margin=10mm,
   nomarginpar,noheadfoot,
   showframe,showcrop
   }
 \begin{document}%
 abc
 \end{document}%

 What is it that you want? centering or marin=10mm? I guess geometry just
 uses the last directive concerning margins that you give, thus overwriting
 the result of 'centering' the moment it read the margin directive. A margin
 of 1cm might just be what you call 'pushed into the upper left corner'.

 Hope that helps,

        Susan


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




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


Re: [XeTeX] centering layout with geometry package

2011-11-25 Thread Susan Dittmar
Hello Daniel,

I had a glance at the current geometry documentation. Unfortunately, to me it
looks like what you want is not implemented.

  Quoting Daniel Greenhoe (dgreen...@gmail.com):
  Using the geometry package, is there any way to automatically (without
  using layouthoffset and layoutvoffset) to center a layout area on a
  physical page? The default seems for the layout to be pushed into the
  upper left corner of the physical page. Here is an example:
 
  \documentclass{book}
  \setlength{\parskip}{0mm}%
  \setlength{\parindent}{0mm}%
  \usepackage{geometry}
  \geometry{
    xetex,truedimen,paper=a4paper,
    centering,twoside=false,
    ignoreall,
    layoutheight=200mm,layoutwidth=100mm,
    margin=10mm,
    nomarginpar,noheadfoot,
    showframe,showcrop
    }
  \begin{document}%
  abc
  \end{document}%

There seems to be no way of asking for a centered layout area on the
physical page. Looks like you do have to set layouthoffset and
layoutvoffset manually.

Still my remark concerning having both centering and margin=10mm in the
options list holds true. They affect the same internal values, one
overwriting the other.

Hope that helps, at least a bit,

Susan


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


Re: [XeTeX] centering layout with geometry package

2011-11-25 Thread Zdenek Wagner
2011/11/25 Susan Dittmar susan.ditt...@gmx.de:
 Hello Daniel,

 I had a glance at the current geometry documentation. Unfortunately, to me it
 looks like what you want is not implemented.

  Quoting Daniel Greenhoe (dgreen...@gmail.com):
  Using the geometry package, is there any way to automatically (without
  using layouthoffset and layoutvoffset) to center a layout area on a
  physical page? The default seems for the layout to be pushed into the
  upper left corner of the physical page. Here is an example:
 
  \documentclass{book}
  \setlength{\parskip}{0mm}%
  \setlength{\parindent}{0mm}%
  \usepackage{geometry}
  \geometry{
    xetex,truedimen,paper=a4paper,
    centering,twoside=false,
    ignoreall,
    layoutheight=200mm,layoutwidth=100mm,
    margin=10mm,
    nomarginpar,noheadfoot,
    showframe,showcrop
    }
  \begin{document}%
  abc
  \end{document}%

 There seems to be no way of asking for a centered layout area on the
 physical page. Looks like you do have to set layouthoffset and
 layoutvoffset manually.

 Still my remark concerning having both centering and margin=10mm in the
 options list holds true. They affect the same internal values, one
 overwriting the other.

You can try zwpagelayout. I wrote it because geometry can do the
things that I do not need and cannot (or could not) do what I need
every day. Versions 1.3 has just been released on CTAN, it will soon
appear in TeX Live. The previous versions had problems with the
ifxetex package, thus it was necessary to load fontspec after
awpagelayout. The problem is fixed in 1.3.

 Hope that helps, at least a bit,

        Susan


 --
 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


Re: [XeTeX] centering layout with geometry package

2011-11-25 Thread Ulrike Fischer
Am Fri, 25 Nov 2011 10:06:27 +0800 schrieb Daniel Greenhoe:

 Using the geometry package, is there any way to automatically (without
 using layouthoffset and layoutvoffset) to center a layout area on a
 physical page?

I don't see an explicit option, but it is not difficult to calculate
the offset automatically:

\documentclass{book}
\setlength{\parskip}{0mm}%
\setlength{\parindent}{0mm}%
\usepackage{geometry}
\makeatletter
\geometry{
  xetex,truedimen,paper=a4paper,
  twoside=false,
  ignoreall,
  layoutheight=200mm,layoutwidth=100mm,
  margin=10mm,
  nomarginpar,noheadfoot,
  showframe,showcrop,
  layouthoffset=\dimexpr0.5\paperwidth-0.5\Gm@layoutwidth,
  layoutvoffset=\dimexpr0.5\paperheight-0.5\Gm@layoutheight
  }
  \makeatother
\begin{document}%
abc
\end{document}

-- 
Ulrike Fischer 



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


Re: [XeTeX] centering layout with geometry package

2011-11-25 Thread Daniel Greenhoe
Hello Susan,

On Fri, Nov 25, 2011 at 9:16 PM, Susan Dittmar susan.ditt...@gmx.de wrote:
 I had a glance at the current geometry documentation. Unfortunately, to me it
 looks like what you want is not implemented.
 ...
 Still my remark concerning having both centering and margin=10mm in the
 options list holds true. They affect the same internal values, one
 overwriting the other.

Yes, that was my mistake. Thank you very much for bringing it to my attention!

Dan

On Fri, Nov 25, 2011 at 9:16 PM, Susan Dittmar susan.ditt...@gmx.de wrote:
 Hello Daniel,

 I had a glance at the current geometry documentation. Unfortunately, to me it
 looks like what you want is not implemented.

  Quoting Daniel Greenhoe (dgreen...@gmail.com):
  Using the geometry package, is there any way to automatically (without
  using layouthoffset and layoutvoffset) to center a layout area on a
  physical page? The default seems for the layout to be pushed into the
  upper left corner of the physical page. Here is an example:
 
  \documentclass{book}
  \setlength{\parskip}{0mm}%
  \setlength{\parindent}{0mm}%
  \usepackage{geometry}
  \geometry{
    xetex,truedimen,paper=a4paper,
    centering,twoside=false,
    ignoreall,
    layoutheight=200mm,layoutwidth=100mm,
    margin=10mm,
    nomarginpar,noheadfoot,
    showframe,showcrop
    }
  \begin{document}%
  abc
  \end{document}%

 There seems to be no way of asking for a centered layout area on the
 physical page. Looks like you do have to set layouthoffset and
 layoutvoffset manually.

 Still my remark concerning having both centering and margin=10mm in the
 options list holds true. They affect the same internal values, one
 overwriting the other.

 Hope that helps, at least a bit,

        Susan


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




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


Re: [XeTeX] centering layout with geometry package

2011-11-25 Thread Barry MacKichan
Would it work for you to use the crop package? It will center the page if you 
give it the paper size.

--Barry

 Using the geometry package, is there any way to automatically (without
 using layouthoffset and layoutvoffset) to center a layout area on a
 physical page?




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


Re: [XeTeX] centering layout with geometry package

2011-11-25 Thread Daniel Greenhoe
Hello Zdenek,

2011/11/25 Zdenek Wagner zdenek.wag...@gmail.com:
 You can try zwpagelayout. ...
 Versions 1.3 has just been released on CTAN, ...

I am very interested in trying this. When I looked on ctan, it said
that what was currently there was version 1.2. However the readme says
version 1.3 with a date of 2011 November 22 and the pdf documentation
also has a date of 2011 November 22 (but no version number). So I
would guess that what is currently there is version 1.3, as you
indicated.

Thank you!
Dan

2011/11/25 Zdenek Wagner zdenek.wag...@gmail.com:
 2011/11/25 Susan Dittmar susan.ditt...@gmx.de:
 Hello Daniel,

 I had a glance at the current geometry documentation. Unfortunately, to me it
 looks like what you want is not implemented.

  Quoting Daniel Greenhoe (dgreen...@gmail.com):
  Using the geometry package, is there any way to automatically (without
  using layouthoffset and layoutvoffset) to center a layout area on a
  physical page? The default seems for the layout to be pushed into the
  upper left corner of the physical page. Here is an example:
 
  \documentclass{book}
  \setlength{\parskip}{0mm}%
  \setlength{\parindent}{0mm}%
  \usepackage{geometry}
  \geometry{
    xetex,truedimen,paper=a4paper,
    centering,twoside=false,
    ignoreall,
    layoutheight=200mm,layoutwidth=100mm,
    margin=10mm,
    nomarginpar,noheadfoot,
    showframe,showcrop
    }
  \begin{document}%
  abc
  \end{document}%

 There seems to be no way of asking for a centered layout area on the
 physical page. Looks like you do have to set layouthoffset and
 layoutvoffset manually.

 Still my remark concerning having both centering and margin=10mm in the
 options list holds true. They affect the same internal values, one
 overwriting the other.

 You can try zwpagelayout. I wrote it because geometry can do the
 things that I do not need and cannot (or could not) do what I need
 every day. Versions 1.3 has just been released on CTAN, it will soon
 appear in TeX Live. The previous versions had problems with the
 ifxetex package, thus it was necessary to load fontspec after
 awpagelayout. The problem is fixed in 1.3.

 Hope that helps, at least a bit,

        Susan


 --
 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




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


Re: [XeTeX] centering layout with geometry package

2011-11-25 Thread Daniel Greenhoe
Hello Ulrike,
On Sat, Nov 26, 2011 at 12:46 AM, Ulrike Fischer ne...@nililand.de wrote:

I like your solution. But it seems it does not compile on my system.
In particular, when I tried to compile using xelatex, it did not like
\makeatletter (begin{document} no found) and \Gm. Is my system somehow
different from yours?

Dan

On Sat, Nov 26, 2011 at 12:46 AM, Ulrike Fischer ne...@nililand.de wrote:
 Am Fri, 25 Nov 2011 10:06:27 +0800 schrieb Daniel Greenhoe:

 Using the geometry package, is there any way to automatically (without
 using layouthoffset and layoutvoffset) to center a layout area on a
 physical page?

 I don't see an explicit option, but it is not difficult to calculate
 the offset automatically:

 \documentclass{book}
 \setlength{\parskip}{0mm}%
 \setlength{\parindent}{0mm}%
 \usepackage{geometry}
 \makeatletter
 \geometry{
  xetex,truedimen,paper=a4paper,
  twoside=false,
  ignoreall,
  layoutheight=200mm,layoutwidth=100mm,
  margin=10mm,
  nomarginpar,noheadfoot,
  showframe,showcrop,
  layouthoffset=\dimexpr0.5\paperwidth-0.5\Gm@layoutwidth,
  layoutvoffset=\dimexpr0.5\paperheight-0.5\Gm@layoutheight
  }
  \makeatother
 \begin{document}%
 abc
 \end{document}

 --
 Ulrike Fischer



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




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


Re: [XeTeX] centering layout with geometry package

2011-11-25 Thread Daniel Greenhoe
On Sat, Nov 26, 2011 at 6:47 AM, Barry MacKichan
barry.mackic...@mackichan.com wrote:
 Would it work for you to use the crop package? It will center the page if you 
 give it the paper size.

Maybe it would. I will take a look. Thanks!
Dan

On Sat, Nov 26, 2011 at 6:47 AM, Barry MacKichan
barry.mackic...@mackichan.com wrote:
 Would it work for you to use the crop package? It will center the page if you 
 give it the paper size.

 --Barry

 Using the geometry package, is there any way to automatically (without
 using layouthoffset and layoutvoffset) to center a layout area on a
 physical page?




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




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


Re: [XeTeX] centering layout with geometry package

2011-11-25 Thread Daniel Greenhoe
I'm afraid I'm confused with regards to the zwpagelayout package. In
the geometry package, there are two basic areas:
   1. The physical page (e.g. a4 size paper)
   2. The layout area (e.g. a5 size paper) that fits somewhere on the
physical page

By default, the two areas are identical, but they can be set
differently. And all the basic parameters such as spacing for margins,
header, footers, text area height and text area width ... they all
refer to what is *inside* (not outside) the layout area.

Is this same concept available in the zwpagelayout package? Or do the
margin parameters refer to distance from the outside borders of the
layout area to the borders of the physical page?

Dan

2011/11/26 Zdenek Wagner zdenek.wag...@gmail.com:
 2011/11/25 Daniel Greenhoe dgreen...@gmail.com:
 Hello Zdenek,

 2011/11/25 Zdenek Wagner zdenek.wag...@gmail.com:
 You can try zwpagelayout. ...
 Versions 1.3 has just been released on CTAN, ...

 I am very interested in trying this. When I looked on ctan, it said
 that what was currently there was version 1.2. However the readme says
 version 1.3 with a date of 2011 November 22 and the pdf documentation
 also has a date of 2011 November 22 (but no version number). So I
 would guess that what is currently there is version 1.3, as you
 indicated.

 It has been released just recently, maybe the catalogue is not yet
 updated. The CTAN managers update the catalogue manually, thus it may
 take some time.

 Thank you!
 Dan

 2011/11/25 Zdenek Wagner zdenek.wag...@gmail.com:
 2011/11/25 Susan Dittmar susan.ditt...@gmx.de:
 Hello Daniel,

 I had a glance at the current geometry documentation. Unfortunately, to me 
 it
 looks like what you want is not implemented.

  Quoting Daniel Greenhoe (dgreen...@gmail.com):
  Using the geometry package, is there any way to automatically (without
  using layouthoffset and layoutvoffset) to center a layout area on a
  physical page? The default seems for the layout to be pushed into the
  upper left corner of the physical page. Here is an example:
 
  \documentclass{book}
  \setlength{\parskip}{0mm}%
  \setlength{\parindent}{0mm}%
  \usepackage{geometry}
  \geometry{
    xetex,truedimen,paper=a4paper,
    centering,twoside=false,
    ignoreall,
    layoutheight=200mm,layoutwidth=100mm,
    margin=10mm,
    nomarginpar,noheadfoot,
    showframe,showcrop
    }
  \begin{document}%
  abc
  \end{document}%

 There seems to be no way of asking for a centered layout area on the
 physical page. Looks like you do have to set layouthoffset and
 layoutvoffset manually.

 Still my remark concerning having both centering and margin=10mm in the
 options list holds true. They affect the same internal values, one
 overwriting the other.

 You can try zwpagelayout. I wrote it because geometry can do the
 things that I do not need and cannot (or could not) do what I need
 every day. Versions 1.3 has just been released on CTAN, it will soon
 appear in TeX Live. The previous versions had problems with the
 ifxetex package, thus it was necessary to load fontspec after
 awpagelayout. The problem is fixed in 1.3.

 Hope that helps, at least a bit,

        Susan


 --
 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




 --
 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




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


[XeTeX] centering layout with geometry package

2011-11-24 Thread Daniel Greenhoe
Using the geometry package, is there any way to automatically (without
using layouthoffset and layoutvoffset) to center a layout area on a
physical page? The default seems for the layout to be pushed into the
upper left corner of the physical page. Here is an example:

\documentclass{book}
\setlength{\parskip}{0mm}%
\setlength{\parindent}{0mm}%
\usepackage{geometry}
\geometry{
  xetex,truedimen,paper=a4paper,
  centering,twoside=false,
  ignoreall,
  layoutheight=200mm,layoutwidth=100mm,
  margin=10mm,
  nomarginpar,noheadfoot,
  showframe,showcrop
  }
\begin{document}%
abc
\end{document}%

Many thanks in advance,
Dan


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