{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

129
votes
4answers
24k views

Why are default LaTeX margins so big?

I've read that—unless I know a lot about typesetting—I shouldn't change the margins of a LaTeX document. The default margin size of the article class is really big and it feels like a lot of space is ...
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 ...
24
votes
1answer
429 views

Evaluate typographical beauty of a document (widow, orphans, hyphens, etc) in order to optimize the page geometry

When finalizing documents, one of the last things I do is usually to play with the page geometry to improve the overall layout: get rid of a few orphans or widows, reduce the number of hyphenations, ...
23
votes
1answer
789 views

Why doesn't a 17cm x 25cm picture fit on a 17cm x 25cm page?

Why doesn't this tikz picture fit on the first page of the document? \documentclass{report} \usepackage{tikz} \usepackage[showframe, centering, text={17cm, 25cm}]{geometry} \begin{document} ...
20
votes
5answers
3k views

Wrong A4 measurements?

I noticed that the paper size invoked by a4paper is not working right in my examples: \documentclass[a4paper,11pt,oneside]{article} \begin{document} Test \end{document} I checked with Preview.app ...
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, ...
20
votes
2answers
15k 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 ...
19
votes
5answers
1k views

Different margin on first page

To meet the conditions of our corporate design I need other margins on the first page of each document. The normal page layout is given by \usepackage[left=3cm,right=2cm,bottom=3cm,top=2cm]{geometry} ...
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 ...
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 ...
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 ...
15
votes
2answers
827 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 ...
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 ...
14
votes
2answers
2k 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 ...
14
votes
2answers
3k views

Printing/typesetting two A4 pages from a single-page A3 document in TikZ

I'm currently working on a huge graph using a A3 format, with the landscape option. I don't usually work on A3 pages, but this is not a mistake. I purposefully chose this format because it's made of ...
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 ...
12
votes
3answers
3k views

a4paper, where should I declare it? In document class or geometry?

I currently have an article document class and I previously changed it to include printing on A4 paper: \documentclass[12pt, a4paper]{article} However, I had to change my margins to meet my ...
12
votes
1answer
93 views

Incorrect page dimensions

I'm trying to create a simple document, on letter paper with 1-inch margins all around. Here's the simple document I'm working with: \documentclass[letterpaper,12pt]{report} ...
11
votes
3answers
291 views

Arithmetic in arguments to the geometry package

I'd like to use the geometry package to auto-crop the output of my LaTeX (so that it looks bigger on-screen as I'm editing). I have found a way to remove the margins completely and brutally: ...
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 ...
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} ...
10
votes
4answers
249 views

\newgeometry doesn't work with Turkish babel package

\newgeometry is a nice feature of geometry package. I found out that it doesn't work (together with many other problems) when \usepackage[turkish]{babel} is also used with many errors stating: ...
10
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 ...
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? ...
10
votes
2answers
4k views

newgeometry makes content run to next page

Thank you all from the beginning for your help in this. I'm completely new to LaTeX as I'm writing my bachelor thesis, so I'm sure I've made lots of mistakes... I'm using the geometry package because ...
10
votes
1answer
500 views

Visualizing correct page lengths with 'layouts' and 'tikz' packages?

I am currently working on a project with xelatex/fontspec and tikz, and so, this example is basically the same as the one from layouts package reads all length as zero with tikz/fontspec/xelatex?. ...
10
votes
1answer
248 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 ...
9
votes
2answers
464 views

How do I typeset a file containing ASCII art using a fixed-width character font?

I have a string with the text precisely spaced the way I want it displayed. It's sort of an ASCII art project. I want to convert this text to a PDF so I can print a poster with the text at my local ...
9
votes
2answers
2k views

Text placed below bottom margin that is not footnote

I'm using package geometry to specify global document margins: \usepackage[scale=0.82, top=1.5cm, bottom=2.5cm]{geometry} But I have a piece of information that I would like to add on first page on ...
9
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 ...
9
votes
1answer
393 views

Page header with box sections & page border

So I'm currently working on converting some documents used in our university to use LaTeX, and I'm stuck on a bit of a hangup. I've been able to nail down all the basics, using plotting, etc; but I ...
9
votes
2answers
280 views

Decrease space between paragraph and header

How can I decrease the white space marked with blue? I tried \vspace with negative marks but to no avail (it normally does the trick but not this time). I am using the 'fancyhdr'-package. ...
9
votes
1answer
601 views

fancyhdr not centering after changed geometry

I have a document with different page margins, so I have to change geometry settings after fancyhdr loaded. However, the width of header after geometry is not correct. \documentclass[12pt]{article} ...
9
votes
3answers
218 views

Picture over half of the page

I would like to have a picture that covers half of the page. The text should be in the rest area of the page. See attached picture, worth thousand words... Can somebody help me? Update: I want only ...
8
votes
2answers
301 views

how to draw the simple geometric figure with arrow shows its width via tex?

Before I ask this question, I have clicked many pages. Unluckily, I have found none. Could someone tell me how to draw the simple geometric figure with arrow via tex? Be grateful so much!
8
votes
2answers
276 views

What is the equivalent of fullpage in geometry package?

There's an occasion when I am forced to use geometry package instead of fullpage. Howevere the document margins should match another document which uses fullpage. Where can I find the default top, ...
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 ...
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. ...
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 ...
8
votes
1answer
371 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 ...
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 ...
8
votes
2answers
928 views

Koma-script scrpage2 footer height

After lots of googling and hair-tearing, I'm turning grey and old, and no wiser... EDIT : see bottom for a half-cooked solution. I switched from LaTeX plain classes (article, report, etc.) to ...
8
votes
1answer
216 views

DIV and BCOR setting in KOMA (best practices)

I have been playing around and I now realize it is possible to set the type area using a KOMA class by a couple of ways, and I'll like to know which is the correct one. \documentclass[% a4paper, ...
8
votes
1answer
236 views

Distance between top edge of paper and header

EDIT : Please apologize me. I forget to add two lines to MWE I think very essential to handle the problems. Please re-check the MWE. There is parameter defining distance between bottom edge of top ...
8
votes
1answer
2k views

Change page layout after first page

currently I'm trying to prepare a letter head with XeLaTeX. The first page of the letter should have a sidebar on the right. For this sidebar, the text width should be shrinked to approx. 80% of its ...
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 ...
8
votes
1answer
399 views

How can I use the layout and twoside options of the geometry package?

When I use the geometry package (2010/09/12 v5.6) for a twoside document with one paper size (e.g. A4) and another layout size (e.g. A5), I had expected that I could print a page, turn the paper, ...
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 ...
7
votes
3answers
976 views

My footer disappears when I increase headheight

I have created a custom simple layout with the fancyhdr package. Because the header I must use is somewhat big, LaTeX instructed me to increase the headheight to at least a minimum value. The problem ...
7
votes
3answers
183 views

How to arbitrarily center these drawings?

I have adapted the following to draw lines from the center of a circle out to n equally spaced points on a circle (the n th roots of unity, or the points of an n-gon, or a star graph). I need to be ...