{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

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
263 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
541 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
12k 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} ...
7
votes
1answer
339 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
575 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
262 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
241 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
5k 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
932 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 ...
12
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
266 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
608 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 ...
2
votes
1answer
720 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
6k 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
407 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
351 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
294 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
461 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 ...
5
votes
1answer
673 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[% ...
23
votes
3answers
5k 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
421 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} ...
15
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 ...
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
873 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 ...
9
votes
1answer
3k 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 ...
4
votes
3answers
7k 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 ...
14
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 ...