{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
8k views

How can I change the margins in LaTeX? [duplicate]

How do I change the margin of all pages? I want the latex page be .25 in margin around all the pages.
3
votes
1answer
452 views

Change behavior of geometry for all pages

I'm using the llncs document class and wanted to change the margin of all pages, using the geometry package. I use the following command: ...
4
votes
2answers
706 views

How do I get letter sized paper when I am using the res.cls margin option

Here is the first part of my code sorry I'm new to TeX but this is really annoying me also using the geometry package doesn't work and neither does \documentclass[margin, letterpaper]{res} ... ... % ...
5
votes
2answers
173 views

Pgfplots gives spurious lines in external mode with geometry

This is not a major problem but all the same I would like to confirm that I am not doing anything wrong. Geometry package with showframe=true option is used to see if all the figures are within the ...
9
votes
1answer
618 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} ...
5
votes
1answer
372 views

All the document in only one long and continuous page

Well, may be this is not really useful, but I've thought if it was possible to put all the document in one long page. I mean, if your document is going to be read in a computer, mix all the pages in ...
0
votes
0answers
30 views

Large pages with minimum page-breaking [duplicate]

Possible Duplicate: What’s the absolute largest paper size permissible with pdflatex? I want a long document to fit in a single page. That would make proofreading easier for me. The most I ...
2
votes
1answer
211 views

geometry package doesn't change textheight?

When I compile this MWE, I get a box that takes up about 80% of a vertical page. Since I have specified max height=0.4\textheight in adjustbox, I'd expect a box half the size... is geometry not ...
1
vote
1answer
236 views

geometry options problem

I am using geometry package with \LoadClass[twocolumn]{article}. But when I use geometry, the options for left,right,top,bottom are effecting only in even pages not in odd pages. How can i change ...
3
votes
1answer
723 views

How to avoid text overflowing below bottom margin?

My document contains a title page followed by some text. In order to create my title page, I have to change the page margins on the title page using \newgeometry, and after the title page I return to ...
3
votes
2answers
695 views

How to change page margins but keep the placement of the pagemark?

I use the package geometry to adjust the page margins for my needs. However, the first page should be different. To accomplish this, I used \newgeometry, \restoregeometry which works fine, except that ...
2
votes
1answer
320 views

Adjust margins for BibTeX using LyX

I'm working on my thesis. Most of the new chapters etc start with a 2" margin on the first page. However, the Bibliography is supposed to start with an 1" margin. I left the document's default margins ...
1
vote
1answer
287 views

Change marginpar for each page

I want to be able to change the marginpar and right values for each page, depending if the page has notes or not. MWE: \documentclass{article} \usepackage[top=3cm, bottom=3cm, left=3cm, right=8cm, ...
7
votes
1answer
469 views

Standard way of handling oversize pages?

In a book project, using \geometry{letterpaper}, there are occasional places where an oversize diagram has to be included — one much wider than a normal page — without being reduced or spread across ...
2
votes
1answer
309 views

Slight discrepancy in left/right margins

This is what I'm using: \usepackage[paper=a4paper,twoside=true,lmargin=4cm,rmargin=4cm,bindingoffset=0cm]{geometry} For some reasons, when I print out my document, there seems to be a slight 1-2mm ...
3
votes
2answers
191 views

Page margins problem with the title page and rest of the pages in the chapter

I am writing a thesis, and the university has some rules. The word Chapter should be 2in from the top of the page, and the for the rest of the pages, the text should start 1.25in from the top edge. I ...
2
votes
2answers
295 views

Overriding printer scaling defaults from within LaTeX

Edited version of question I have to produce a series of documents that need to be printed without scaling. The target users are likely to have low-level computer skills and will overlook ...
4
votes
2answers
328 views

Changing text area for Table of Contents in Koma Script

My friend is just about to submit her Diplomarbeit (German M.Sc.) and she bumped into a tiny corner of Koma-Script. The Table of Contents was just a tiny bit too long. Thus, one chapter was forced ...
0
votes
1answer
547 views

Increasing left margins when using scrbook with geometry

I am producing a very large book and need to shift the pages just a little to the right because of excess content generated in the left margin. I cannot have it set both margins bigger as the problem ...
2
votes
1answer
2k views

How to set page geometry for a single page only? [closed]

I want to change the geometry for a single page only. I set the geometry for the whole document using: \usepackage[left=1cm,right=2cm,top=2.5cm,bottom=2.5cm,footnotesep=0.5cm]{geometry} The ...
1
vote
0answers
177 views

Different bottom border value for footnotes [closed]

I'm using the geometry package to define the borders of my document: \usepackage[left=2.5cm,right=2.9cm,top=3.5cm,bottom=3cm,footnotesep=0.5cm]{geometry} That means the bottom of the text and the ...
3
votes
2answers
296 views

Longtable doesn't work well with geometry [closed]

I would like to produce document with multiple longtables inside. I need to customize my headers with fancyhdr placing graphics inside it and modyfying page geometry. But then longtables have problems ...
2
votes
2answers
331 views

How do you increase the margin width of a latex document? [duplicate]

I am not able to fit my equation onto one line so I want to increase the margin of the page (it looks like it is quite big by default anyway. Does anyone know how to do this? Here is my template ...
1
vote
1answer
170 views

Stacking tables with the geometry package included

I am new to LaTeX. I am trying to stack tables one on top of another but I seem to be having a problem doing that while including the geometry package. I am doing this in order to simulate very ...
2
votes
1answer
415 views

How to change the margins of ‎the only‎ first page ‎of‎ ‎‎each‎ ‎‎‎chapter‎?‎

I'm‎ using ‎the ‎geometry package in the ‎book‎ class‎ ‎and now I ‎want‎ the margins of the first page of each chapter ‎to‎ be, for example, top=50mm, ‎bottom=50mm‎, ‎left=50mm‎, ‎‎right=50mm‎ and the ...
131
votes
4answers
25k 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 ...
1
vote
1answer
716 views

KOMA-Script footer margins

I am doing one-page documents with title and I need more space so all text can be put on that page. I achieve this by \typearea{12}. What happens is that the footer margin gets absurdly large (say, ...
1
vote
1answer
95 views

customs margins of my paper [duplicate]

Possible Duplicate: Latex margins, need specific advice for publishing specifications I'm trying to set the margins of my paper using geometry. I would set the margin of binding 3.5cm ...
3
votes
0answers
178 views

Change geometry for 'empty' page style only [duplicate]

Possible Duplicate: Change \textwidth and \textheight in mid-document Change page layout after first page I need to make the margins on the first page of my article larger than those on ...
9
votes
2answers
469 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 ...
0
votes
2answers
113 views

Why is the picture not inserted?

When I pdflatex the text below it doesn't insert the picture, but writes the name of the file instead (pic). And the geometry line gives the error ! LaTeX Error: Missing \begin{document}. The ...
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 ...
3
votes
1answer
587 views

Using the booklet package and the geometry package together

When I use the booklet package alone, it works just fine and produces the output I expect. However, when I combine it with the geometry package, it produces really bad output. Here's my MWE. First, I ...
2
votes
1answer
736 views

Setting coordinate system for TiKZ picture

I'd like to use TiKZ to generate stand-alone PDF diagrams programatically. I have an application that generates simple geometry of lines and arcs etc and I'd like to create (using e.g. Ruby) TikZ ...
9
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 ...
5
votes
2answers
1k views

How to use the geometry package with newlfm documents?

I am using the newlfm letter documentclass, and try loading the geometry package. This returns the following error: ! LaTeX Error: Command \geometry already defined. What I want to do is put more ...
11
votes
3answers
300 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: ...
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 ...
5
votes
1answer
195 views

trying to set text where section header has different margin and textwidth from section text

i am trying to set some text where the section header has a different margin and textwidth from the section text. the screenshot shows a mockup of how i would like the final layout to look ...
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 ...
6
votes
2answers
657 views

“Double use” of a4paper (geometry/KOMA)?

In my preamble, should I give the a4paper option just once or twice, i. e. once for the KOMA-script document class (scrartcl) and once for geometry? Is this redundant or does scrartcl need the option ...
3
votes
2answers
765 views

Geometry Package - Layoutoffset: Distinction Between Odd and Even Pages Possible?

Currently I'm preparing a book for publishing. My printer wants a non-circumferential bleed around the pages, 0.125" at the top, bottom and outer side, but no bleed at the inner side. As far as I have ...
5
votes
2answers
1k views

Can I add border margin into beamer frame body

In default, beamer class loads the geometry package. And I dont know how to map the \paperwidth and \textwidth to its mechanism. My requirement is very simple. I want to add some margin to {top, left, ...
2
votes
1answer
497 views

How can I set a a4 landscape page with crop marks?

I need to set a a4 page in landscape mode with crop marks in every corner of the page. I used the geometry package with the following values, paperheight=22.76cm, paperwidth=31.46cm, a4paper, ...
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 ...
2
votes
1answer
527 views

Page number in top-right corner 15 mm from top

I am using next snippet to set page number in top-right corner. It works fine for me, except I want to place page number exactly 15mm from top edge. Is it possible? Thanks. \usepackage{fancyhdr} ...
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
512 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
631 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?