[OS X TeX] geometry
George Gratzer
gratzer at me.com
Wed Mar 18 18:02:49 EDT 2009
Frank,
This is very helpful.
You recommend
\usepackage
[paperwidth
=
155mm
,paperheight
=235mm,textwidth=119mm,textheight=195mm,lmargin=18mm,tmargin=12mm]
{geometry}
But this produces, if I am right different left and right margins.
Your second recommendation,
\usepackage
[paperwidth
=155mm,paperheight=235mm,textwidth=119mm,textheight=195mm,tmargin=12mm]
{geometry}
seems to be what I need.
Thanks.
GG
On 18-Mar-09, at 9:46 AM, Frank Stengel wrote:
>>
>> As a mathematician, I always liked geometry, but this baffles me.
>>
>> Following the document class command, I give the command
>>
>> \usepackage
>> [paperwidth
>> =
>> 155mm
>> ,paperheight
>> =235mm,textwidth=119mm,textheight=195mm,margin=18mm,tmargin=12mm]
>> {geometry}
>
> You are overspecifying. The setting margin=18mm interferes with the
> settings textheight=195mm and textwidth=155m. See table 1 (p7) in
> geometry's manual. Furthermore the settings you give geometry are
> contradictory: you ask for a page height of 235mm, yet you tell
> geometry that height is 195+18+12=225mm... You may want this :
>
> \usepackage
> [paperwidth
> =
> 155mm
> ,paperheight
> =235mm,textwidth=119mm,textheight=195mm,lmargin=18mm,tmargin=12mm]
> {geometry}
>
> Note: lmargin (leftmargin) instead of margin... Or you could use this
>
> \usepackage
> [paperwidth
> =
> 155mm
> ,paperheight
> =235mm,textwidth=119mm,textheight=195mm,tmargin=12mm]{geometry}
>
> Here the left, right and bottom margins are automagically computed...
>
>
> By the way margin sets *all four* margins (top, bottom, left and
> right !) (again this is explained section 6.3, p11 of the manual)
>>
>>
>> I typeset the article, and I get 205 mm text height.
>>
>> If I do
>>
>> \usepackage
>> [paperwidth
>> =
>> 155mm
>> ,paperheight
>> =235mm,textwidth=119mm,textheight=195mm,margin=18mm,tmargin=12mm]
>> {geometry}
>> \textwidth=119mm
>> \textheight=195mm
>
> Ouch! I smell danger, cirumventing Geometry can create weird things...
>
> My experience with geometry is that one should underspecify things:
> only margins to get textwidth, or only textwith and one margin to
> get the other etc. If you give it exverythig, geometry might not do
> what you want it to do, especially if some of your specifications
> are contradictory...
>
> In the hope this helps...
More information about the MacOSX-TeX
mailing list