🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

7 total messages Started by Glen Barnett Mon, 16 Feb 1998 00:00
Urgent: Document margins in LaTeX?
#11511
Author: Glen Barnett
Date: Mon, 16 Feb 1998 00:00
32 lines
1754 bytes
Sorry about crossposting, but I need to find an answer to this ASAP...

How do I change margins in LaTeX? 

I need to make a document with a 40mm left margin and a 30 mm right
margin. My document is currently a report in 11 pt. I thought mucking
about with a copy of the stuff that talks about margins in rep11.sty
would fix it (I copied part of it to a new file, changed some numbers
- specifically \oddsidemargin and \evensidemargin - and input that just 
after the \documentstyle line).

It didn't seem to make any difference.

Am I totally barking up the wrong tree, or did I just miss something
minor?

The LaTeX manual was particularly unhelpful on this point - yet 
people must have to have different margins fairly often. Any pointers
would be greatly appreciated. Presumably this is covered in a FAQ
or something, so please point me toward anything that covers it.

Can you possibly Cc any newsgroup replies to barnett@agsm.unsw.edu.au? 
Sometimes my newsfeed is very unreliable, and I can't afford to wait
3 or 4 days for replies to maybe show up this time.

regards,
Glen

PS in partial repayment, I have figured out how to get matlab .ps output
to work in latex, so if anyone's been having trouble, I can sort you out.
�
Re: Urgent: Document margins in LaTeX?
#11512
Author: JHB NIJHOF
Date: Mon, 16 Feb 1998 00:00
24 lines
1449 bytes
In comp.text.tex Glen Barnett <barnett@agsm.unsw.edu.au> wrote:
: Sorry about crossposting, but I need to find an answer to this ASAP...

: How do I change margins in LaTeX? 

: I need to make a document with a 40mm left margin and a 30 mm right
: margin. My document is currently a report in 11 pt. I thought mucking
: about with a copy of the stuff that talks about margins in rep11.sty
: would fix it (I copied part of it to a new file, changed some numbers
: - specifically \oddsidemargin and \evensidemargin - and input that just 
: after the \documentstyle line).

The easiest is (IMHO) to use the geometry package:

\usepackage{geometry}
\geometry{letterpaper,left=40mm,right=30mm}

If the geometry package is not installed on your computer,
it can be found on CTAN in  macros/latex/contrib/supported/geometry,
where your nearest CTAN mirror definitely is
ftp://ctan.unsw.edu.au/tex-archive .

Jeroen Nijhof
Re: Urgent: Document margins in LaTeX?
#11513
Author: Laurent Martin
Date: Mon, 16 Feb 1998 00:00
20 lines
1165 bytes
Glen Barnett wrote:
> 
> Sorry about crossposting, but I need to find an answer to this ASAP...
> 
> How do I change margins in LaTeX?

You can use the vmargin package :

\usepackage{vmargin}
\setpapersize{A4}
\setmarginsrb{40mm}{20mm}{30mm}{20mm}{20pt}{15mm}{15pt}{15mm}

It works fine. However, it seems you're using the latex 2.09. I don't 
know if it will work with it.

It can be found on CTAN in macros/latex/contrib/other/misc/

Regards,
Laurent
Re: Urgent: Document margins in LaTeX?
#11514
Author: Donald Arseneau
Date: Mon, 16 Feb 1998 00:00
31 lines
2121 bytes
In article <6c9aql$1j5$1@mirv.unsw.edu.au>, barnett@agsm.unsw.edu.au (Glen Barnett) writes...
>I need to make a document with a 40mm left margin and a 30 mm right
>margin. My document is currently a report in 11 pt. I thought mucking
>about with a copy of the stuff that talks about margins in rep11.sty
>would fix it (I copied part of it to a new file, changed some numbers
>- specifically \oddsidemargin and \evensidemargin - and input that just 
>after the \documentstyle line).

A) as a beginner to LaTeX, you have no reason to use "compatibility mode"
for old documents.  You should start with \documentclass.

B) You don't say what size paper you are printing on, so there is 
no way for someone else to specify the right margin.

C) \oddsidemargin and \evensidemargin are the LEFT side margins on 
odd-numbered and even-numbered pages respectively.  This is what the
manual says, but very many people have preconceptions and unconsciously
interpret them as left and right margin.

D) The confusing bit... They are actually the Left margins MINUS 1 INCH.
The left side margin is \oddsidemargin + 1in on odd numbered pages and 
\evensidemargin + 1in on even.  To get margins smaller than 1 inch, the 
parameters should be negative.  (You don't want to know, but the page
"origin" (0,0) is 1 inch from the top and 1 in from the left edge of
the paper.

right_margin = width_of_paper - \textwidth - \oddsidemargin - 1in
(or \evensidemargin)

Donald Arseneau                         asnd@triumf.ca
Re: Urgent: Document margins in LaTeX?
#11515
Author: Rebecca and Rowland
Date: Tue, 17 Feb 1998 00:00
61 lines
3431 bytes
Glen Barnett <barnett@agsm.unsw.edu.au> wrote:

> Sorry about crossposting, but I need to find an answer to this ASAP...
> 
> How do I change margins in LaTeX? 
> 
> I need to make a document with a 40mm left margin and a 30 mm right
> margin. My document is currently a report in 11 pt. I thought mucking
> about with a copy of the stuff that talks about margins in rep11.sty
> would fix it (I copied part of it to a new file, changed some numbers
> - specifically \oddsidemargin and \evensidemargin - and input that just
> after the \documentstyle line).

First thing: use \documentclass not \documentstyle.  If you're writing
new documents, you shouldn't be using 2.09 compatibility mode (for
speed's sake even if you don't care about anything else).

> It didn't seem to make any difference.
> 
> Am I totally barking up the wrong tree, or did I just miss something
> minor?

Hmm...  I'm not sure why you didn't see any change, but don't worry
about that now.  If you want to change margins, you should change
\oddsidemargin and \evensidemargin *and* \textwidth - \oddsidemargin and
\evensidemargin set the *left* margin (they are actually the size of the
left margin - 1 inch) - you need to change \textwidth to set the
right-hand margin to the value you want.  Ideally, this will be based on
the \paperwidth so you get the right result even if you change paper
size (although 40mm and 30mm margins are pretty silly on A5 paper).

> The LaTeX manual was particularly unhelpful on this point - yet 
> people must have to have different margins fairly often. Any pointers
> would be greatly appreciated. Presumably this is covered in a FAQ
> or something, so please point me toward anything that covers it.

Changing page layout parameters in LaTeX is quite involved - Lamport's
book tells you what the various paramters *are*; getting a decent
balance between them all calls for either: very baroque code (my rmpage
package); elegant code (geometry package) and a typographical designer;
or a typographical designer, a calculator, several hours, and a
headache.

For what you want to do, I suspect the geometry package is what you need
- it's available from your nearest CTAN mirror (mine's at
ftp://ftp.tex.ac.uk/tex-archive; more than a short walk from where you
are).

(geometry's very nice if you have particular measured dimensions you
need to use - much better for this than any other package I've seen to
set page layout parameters, including my own effort which is something I
wrote for what *I* want to do.)

Rowland.

-- 
Remove the animal for my email address:   rebecca@astrid.dog.u-net.com
Sorry - the spam got to me.          
PGP pub key A680B89D; fingerprint: F5605EAE F56F2C0B 818F3319 5227767F
                                   What?  Don't ask me - I don't know.
Re: Urgent: Document margins in LaTeX? - sorted
#11516
Author: Glen Barnett
Date: Tue, 17 Feb 1998 00:00
38 lines
2219 bytes
In article <6c9aql$1j5$1@mirv.unsw.edu.au>,
Glen Barnett <barnett@agsm.unsw.edu.au> wrote:
>Sorry about crossposting, but I need to find an answer to this ASAP...
>
>How do I change margins in LaTeX? 
>
>I need to make a document with a 40mm left margin and a 30 mm right
>margin. My document is currently a report in 11 pt. I thought mucking
>about with a copy of the stuff that talks about margins in rep11.sty
>would fix it (I copied part of it to a new file, changed some numbers
>- specifically \oddsidemargin and \evensidemargin - and input that just 
>after the \documentstyle line).
>
>It didn't seem to make any difference.
>
>Am I totally barking up the wrong tree, or did I just miss something
>minor?

Okay, I'm all sorted out now. Once I knew I was fiddling with the
right things (yeah, I was changing \textwidth as well, didn't mention
that - and yeah, I knew the margin parameters above dealt with the left 
margin only), it was easy to figure out why what I was doing was having 
no effect. I had a file with some definitions in it I'd been given by my
supervisor. I didn't notice (and he obviously didn't know) that it
also changed the margins&textwidth parameters. So it was undoing all
my nice new margins before processing the text of my thesis.

(Oh, by the way, the version of latex on this machine isn't a recent
version, sorry to bother so many people by mentioning an ancient 
incantation like \documentstyle.)

Anyway, I got a number of useful suggestions very rapidly, but the
most immediately useful ones basically told me I was changing the 
right kinds of things. Thanks for all the help everyone.

thanks,
Glen
Re: Urgent: Document margins in LaTeX?
#11517
Author: Roger de Reus
Date: Wed, 18 Feb 1998 00:00
15 lines
1393 bytes

\usepackage{layout} defines the \layout command which generates output
showing current values of all margins and offsets.
Layout is part of the standard latex tools.

-- 
________________________________________________________________/\_____
Roger de Reus (REUS@MIC.DTU.DK)                                 \/
T: (+45) 45 25 63 07 (direct)    Mikroelektronik Centret  /\ /\ /\  '==
T: (+45) 45 25 57 12 (secretary)     DTU, bldg. 345-east  == == == ====
F: (+45) 45 88 77 62                     DK--2800 Lyngby  == == == ====
W: http://pc2.mic.dtu.dk                         Denmark  == == ==  `==
_______________________________________________________________________
I'm gonna say this again:     I did not inhale and she did not swallow!
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads