{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
2answers
1k views

Problem with setting correct custom page size with 'geometry' in xelatex

I'm trying to set the page size using the geometry package as shown in the following MWE, compiled with xelatex test.tex: \documentclass[12pt]{article} \usepackage[b5paper,pass]{geometry} ...
10
votes
1answer
516 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?. ...
5
votes
1answer
640 views

Combine geometry and KOMA-Script’s DIV calculation (or: Make \newgeometry only set the explictitly given values)

I wonder if it is possible to combine geometry and the type area calculation of KOMA-Script. I’d like to use the calculated area but set (e.g.) the top margin to 1cm, without touching the other ...
2
votes
1answer
72 views

Specifying dimensions of text

For a submission requirement I need that my document exactly fills a box of m x n inches. Does anybody know how I can specify this in LaTeX?
4
votes
1answer
207 views

Relative change of page dimensions with geometry

When using the geometry package, how do I change parameters in relative amounts? For example, I would like to do something like: \newgeometry{top=top+2cm, bottom=bottom+2cm} which increases the ...
3
votes
1answer
1k views

Memoir and geometry

I am using geometry with memoir. I use it to change the margins of my document temporarily, e.g.: .... \savegeometry{the_original_geometry} \newgeometry{top=2.5cm, bottom=2.5cm,headsep=0cm} .... ...
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 ...
1
vote
1answer
1k views

How to change the page layout back and forth?

I'm trying to do some absolute placement on a page but because I use pdflscape, I can't use the textpos package for this. I tried around a bit with moving with \hspace* and \vspace* but this is very ...
2
votes
1answer
2k views

Setting different margin sizes in different pages [duplicate]

Possible Duplicate: Change \textwidth and \textheight in mid-document I am currently using geometry package to set margin sizes. I want to set different \topmargin sizes for different ...
1
vote
2answers
843 views

verso and recto page margin swapped

During thesis writing, I noticed the recto and verso page margins are swapped. In other words, e.g. page 23 is on the right side (as should be) however it has verso margin setup. The text is thus ...
4
votes
1answer
1k views

Removal of binding offset when submitting digital version of document

I'm writing my dissertation in LaTeX, and we're required to submit a paper copy and a PDF copy. For the paper copy, I'm using: \documentclass[twoside]{scrartcl} \usepackage{fullpage} ...
6
votes
2answers
2k views

pdfpages package and layoutsize (geometry package)

I tried to include a PDF page using the pdfpages package — this works well for a standard case, f.e. (t.pdf is the first page of the PGF manual): \documentclass{scrartcl} \usepackage{geometry} ...
8
votes
1answer
410 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, ...
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
851 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
5k 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
2k 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 ...
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 ...
4
votes
1answer
3k 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
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 ...
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
331 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
891 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
298 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
605 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
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
382 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
661 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
279 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
252 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
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 ...
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
2k 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
3k 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
279 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 ...