{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

20
votes
2answers
2k views

Default margins for geometry package

I want to explicitly specify sizes of my document. For this purposes I use geometry package. I do the following (I found the solution here): \documentclass{article} \usepackage[paperwidth=2394pt, ...
4
votes
3answers
3k views

Change \headheight for a \pagestyle

I have a document class that auto generates header from some user input. The problem is the first page should have a different page header than the others and the headline can be multi line. So ...
8
votes
2answers
1k views

Exact centering of full-page background image

Here's the situation: I have to use memoir (v3.6j), with geometry (v5.6) and LuaTeX, version beta-0.70.1-2011061410 (rev 4277) in an A5 project which, in the final output have to be 3mm larger from ...
12
votes
1answer
9k views

Defining page margins with \geometry for two-sided documents

How do you set page margins using \geometry for a two-sided document? So far I've used the twoside option in my documentclass, which automatically widens the left/right margin on opposite sides of odd ...
15
votes
2answers
821 views

Problem with the geometry package reset option

Page 11 of the geometry package manual says that the reset option sets back the layout dimensions and switches to the settings before geometry is loaded. On page 30 there is a slightly different ...
1
vote
1answer
2k views

Using \restoregeometry in environment, next page runs off the page bottom

The problem is as follows. In a memoir document, I defined the page geometry: \usepackage{geometry} \geometry{ paperwidth=5.25in, paperheight=8in, textwidth=95mm, textheight=150mm, outer=17mm } ...
10
votes
2answers
4k views

Problem with the header/ footer width

I have recently started using the geometry package to format the margins of my documents. Although, I've noticed that the width of the header/ footer remains the same. How can I correct this? ...
7
votes
1answer
3k views

Option clash for package geometry

I am writing a document in which I wish to switch to landscape part way through. I thought I could use the line \usepackage[a4paper,landscape]{geometry} to accomplish this but I get an error. I ...
2
votes
1answer
1k views

How can I customize 'headsep' attribute in the geometry package so that I can set it for individual pages?

I use the \geometry package for formatting my CV, and I know (from How to remove vertical space between header and body of text?) that I can use the headsep attribute to customize the spacing between ...
8
votes
3answers
2k views

How to change the page number from even to odd while keeping the page as verso?

I'm writing a two-sided document with a binding margin. For certain reasons, I need to change the page number at some point, so what used to be an even-numbered page is now odd-numbered. This makes ...
5
votes
1answer
2k views

Fancy headings with newgeometry

I'm working on a document consisting of several pages of text and a series of full-page figures. Since the figures are larger than the normal text width, I've used the geometry package's \newgeometry ...
8
votes
1answer
3k views

geometry, fancyhdr: \fancyfoot[C]{\thepage} is not really centered

After switching from the report class to the book class and starting to use the fancyhdr package to control headers/footers, the page numbers in my footers are no longer centered. This is my fancyhdr ...
4
votes
1answer
2k views

Geometry package arguments not doing anything

For some reason in the following code, changing the margin argument for the geometry package line does nothing to the document. Even if I comment out the geometry package it doesn't go back to the ...
20
votes
2answers
14k 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 ...
8
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
328 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 ...
5
votes
1answer
847 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 ...
2
votes
1answer
9k 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
6k 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 ...
0
votes
1answer
281 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
589 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} ...
11
votes
2answers
13k 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} ...
8
votes
1answer
368 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
633 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
272 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
247 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 ...
2
votes
1answer
6k 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
985 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 ...
14
votes
3answers
5k 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 ...
15
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
275 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
636 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
783 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 ...
18
votes
4answers
7k 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
429 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
356 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 ...
5
votes
1answer
303 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
464 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
2k 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
715 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
2k 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[% ...
28
votes
3answers
6k 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
432 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} ...
16
votes
2answers
4k 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 ...