{geometry} is a package that allows to change the margins of (whole) pages and, conversely, the width and height of the textblock and its positioning on the page.

learn more… | top users | synonyms

23
votes
2answers
20k views

Different margins for title page

My document class is article with a4paper. The margins that I want for the body are: top: 1 inch bottom: 1 inch right: 0.5 inch left: 1.5 inch The title page should have a 1 inch margin on all four ...
10
votes
1answer
1k views

geometry package - paperwidth and paperheight aren't accurate

recognize this simple example: \documentclass[]{article} \usepackage[paperwidth=612.0pt, paperheight=792.0pt]{geometry} \begin{document} Hello World \end{document} I compiled it with pdflatex. ...
6
votes
2answers
362 views

Selecting A8 Paper

As I frequently use \documentclass[a4paper,12pt]{article} I though a simple change could select the A8 paper: \documentclass[a8paper,12pt]{article} But I get a warning saying the a8paper option ...
8
votes
1answer
1k views

Is there a way to make pdfpages adhere to the page offset set by geometry

I'm trying to include some pdf documents at the end of my document using pdfpages. My document has a binding offset as defined using the geometry package but pdfpages doesn't recognise it. I've looked ...
8
votes
2answers
2k views

How to get marginnote to use the whole margin space?

I'm typing up a document where I'd like to add notes to myself on the side margin. I'm using marginnote and using the geometry package for specifying customized margins, I've allocated 5 cm for the ...
3
votes
1answer
10k views

Enumerated list indentation

I noticed that when I use enumerated list environment it produces an extra indentation to the document. So that if I'm using \usepackage[margin=3cm]{geometry} and then the enumerated list, the left ...
4
votes
2answers
7k views

Changing oneside and twoside layout

Is there any solution to use different layouts according to the oneside or twoside specification? The first part of my report (abstract, ToC, LoF, LoT) should be in oneside mode and the rest of the ...
2
votes
1answer
1k views

Different paper orientation in a document lyx

I have to change the orientation from portrait to landscape in the middle of a document. Only for 1 until 3 pages after that it have to portrait again. I use this code in texmaker and running well ...
3
votes
1answer
2k views

Place header outside set margins of the page

I have to implement some strict guidelines regarding a scholarship application and plan to use the geometry package to achieve this. There is, however, one point I don't understand. The relevant ...
1
vote
1answer
401 views

What do hscale and vscale in the geometry package mean?

What are hscale and vscale? How can I use them? If I use geometry package like the code below, what will happen to the total body? \usepackage{geometry} \geometry{hscale = 0.6, vscale = 0.5} I ...
3
votes
1answer
698 views

Why is the “layout” option for the geometry package undefined?

I am having problem while using layout options with geometry package, I cannot seem to compile the .tex file. With the following code : \documentclass{article} \usepackage{geometry} ...
12
votes
2answers
15k views

How can I fix the error “GUI framework cannot be initialized” with TeXnicCenter and MiKTeX?

I don't know what I've done, but all of a sudden I am unable to compile any document which uses the geometry package. Minimal (non)-working example: \documentclass[11pt]{article} ...
9
votes
1answer
481 views

Automate Fixed Width Page, length > some minimum length, but only as long as needed

I am trying to automate the solution proposed by egreg to How define a fixed width page, but length > some minimum length, but only as long as needed by hooking into \begin{document} and ...
2
votes
1answer
799 views

Text area shifted right slightly using geometry package

I've just discovered the geometry package, which seems like a nicer way of doing things than manually setting a bunch of lengths, and I'd like to set all my margins to 0.75in. I thought this would be ...
1
vote
1answer
299 views

adjusting the line width of the header with geometry fanchyhdr

the line is longer than the width of the text, how do I adjust, knowing that the package needs fanchyhdr geometry? \documentclass{book} \usepackage[utf8]{inputenc} \usepackage{preambulo} ...
10
votes
1answer
262 views

Reproducing a spacious layout of verse annotation

LaTeX footnote and pagination routines by default allow long or multiple footnotes for a given page to spill-over to following page(s) of the text. But the interaction of the pagination and notes ...
3
votes
1answer
9k views

How can I set up the left/right margin of the page to 1 inch, the top/bottom one to ½ inch?

I try to set up the left and right margins to 1 inch, top and bottom margins to 0.5 inch. The following is my code: % Setup the margin \usepackage[centering, margin={1in, 0.5in}, ...
1
vote
2answers
1k views

How to avoid getting cropped marginpar?

I'm using the fixme package to add notes to various parts of my thesis draft. However, if I set the margins using the geometry package, I notice that the fixme notes are not formatted correctly (with ...
16
votes
3answers
7k views

Fitting page size to a tikz figure

Sometimes I'm using tikz as a plotting tool, without embedding the figure in a document. In this case, I normally, want to include the resulting PDF in a different TeX file (yes I know I could include ...
17
votes
1answer
2k views

Geometry settings for default document layout?

How can I obtain the corresponding settings for the geometry package so that the document looks just like the standard article or report? Assume that I have a document in the default style, and I ...
2
votes
1answer
1k views

How to define a custom PDF page size without margins and header/footer? KOMAscript

I want to create a PDF file with pdflatex which has a custom page size: \pdfpagewidth=680.6pt \pdfpageheight=441.0pt and which will be used completely for typesetting (no margins, no header or ...
2
votes
2answers
1k views

multicols package set column width

Iam having trouble making my text evenly distribute over the entire width of the page \oddsidemargin -0.3in \evensidemargin -0.3in \textwidth 7.3in \textheight 9in \begin{multicols}{2} my text ...
2
votes
1answer
2k views

How to avoid geometry affecting the first page? [duplicate]

Possible Duplicate: Remove margins for title page I'm using the package geometry to set the margins of my report, according to my needs (with a particularly wide right margin). However, it ...
8
votes
1answer
310 views

How define a fixed width page, but length > some minimum length, but only as long as needed

This recent question on how to increase the width of the output, and this earlier question on how to increase the length of the output reminded me of something I have been wondering: I would like to ...
0
votes
1answer
734 views

Creating multiple columns of different width

I'm pretty new to LaTeX and am using it to write an exam. I'm using the geometry package to create two columns. I'd like one column to be 5" and the second column to be 1" with 0.5" separating the ...
3
votes
1answer
1k views

How to specify a very long page?

I want a long page length, and even though the PDF output shows the long page, I can only get text placed on a portion of it. I used code from this question about repeating a long block of text until ...
23
votes
5answers
9k views

Draw true page border

Is there a way to draw a rectangle around every page? The problem is that my document (a Ph.D. thesis) is in a funny format (16x24cm). So to print it centered on A4 paper (for reviewing) I played ...
5
votes
1answer
484 views

Margin overflow when setting the geometry \AtBeginDocument

Using the following minimal working example \documentclass[12pt,a4paper]{article} \usepackage[showframe]{geometry} \geometry{hmargin={3.5cm,2.5cm}} \AtBeginDocument{\geometry{vmargin={12cm,5cm}}} ...
4
votes
1answer
395 views

Marginnote with geometry package

In my document i'm using the packages geometry and marginnote. The problem ist the following: If I use a newgeometry, the marginnote will stay on odd pages at same horizontaly position as by the ...
6
votes
1answer
345 views

Print from TeX to labels that have odd-sized pages

Is it possible to generate PDF files in TeX that can be printed to odd-format printers, e.g. the DYMO LabelWriter 450? This label maker prints to a roll of labels with page/label sizes such as, e.g. ...
2
votes
1answer
491 views

concurrent use of geometry package with watermarks

I'd like to include a graphic as watermark in a document with the twoside option and asymmetric page margins adjusted with the geometry package. There's a plethora of packages that are suitable for ...
2
votes
3answers
1k views

Twosided book with same page setup for every page (I want to use fancyhdr)

Here is my problem: Im writing my thesis using the book class. I want my thesis to be onesided (left and right margins of same size), but I would also like to use the fancyhdr package to give me ...
6
votes
1answer
837 views

Getting layout parameters from the geometry package

The geometry package provides a simple way to set layout parameters. For example, \usepackage[margin=1in]{geometry} will give me a document with 1 inch margins on each side. In particular, it ...
3
votes
3answers
1k views

Small bug in geometry.sty

Complete Top Left Corner Top Right Corner Bottom Left Corner Bottom Right Corner \documentclass[dvipsnames,dvips,cmyk]{minimal} \usepackage{xcolor,calc} \usepackage[% ...
31
votes
3answers
8k views

Change paper size in mid-document

My document should be letterpaper and my attachments should be a4paper. I had high hopes for the \newgeometry command from the geometry package, but the documentation says \newgeometry is almost ...
4
votes
2answers
470 views

using \frontmatter kills my {geometry} definitions

I use a the jura package to write some home work in Law (to be honest, I'm just helping my girlfriend ...). Anyways, I the header of the document I have: \documentclass[a4paper]{jura} ...
23
votes
2answers
5k views

How can I get todonotes in the left margin

I want to use the package todonotes. Standard, the package prints the todo's in the right margin, while I want to have them in the left margin. Funny is, that in the manual itself they are placed in ...
8
votes
2answers
1k views

How can I adjust margins using the geometry package so that I can put section titles in margin and not mess up fancyhdr?

I'm currently updating my CV and I am trying to mimic the CV found at http://www.tedpavlic.com/post_resume_cv_latex_example.php This particular example modifies the margins so that the section ...
4
votes
1answer
1k views

I get an error when using `\ExecuteOptions` together with `\usepackage{geometry}`

I'm writing a custom document class. It's kinda simple, but it will use the geometry package to set page size, orientation and margins. However... Whenever I use that package, the \ExecuteOptions ...
11
votes
1answer
4k views

header spacing trouble

I'm using the fancy header package, yet I've also adjusted all of my margins, to allow more text on each page as there is no need for the excessively large margins. I've run in to some trouble with ...
6
votes
3answers
10k views

Edit margins in res.cls (How to pass through correct value for “margin”?)

I'm creating a resumé using the res.cls package and need to make the left and bottom margins smaller. I know I can use e.g. \topmargin=-0.5in to decrease the space at the top of the page, but neither ...
16
votes
2answers
1k views

Storing the original document class page layout with geometry

Is it possible, using the geometry package, to store (and restore) the original layout specified by the document class (in my case, the class is report)? Here is some context. I have been editing ...
11
votes
2answers
1k views

What's the absolute largest paper size permissible with pdflatex?

I've had occasion to typeset extraordinarily large matrices, which I didn't seriously expect anyone to expect in detail (without a computer) or print, but I needed it to be obvious that they were ...