{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

12
votes
1answer
107 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} ...
5
votes
1answer
91 views

Page dimensions using geometry package

Long time listener; first time caller here at TEX, so go easy on me. Can someone please tell me if there are any advantages of using \usepackage{geometry} \geometry{a4paper} instead of defining the ...
6
votes
1answer
43 views

Prevent floats on a single page OR change page margins for a single page

I've got a particular problem with a custom chapter style. Essentially my chapter title is on the left page, then there is a picture on top of the right page (waves, see below) and below the picture, ...
6
votes
1answer
134 views

Dealing with Large Tables/Figures in The “Narrow” Documentclass Book

I am writing a document that involves several lengthy mathematical expressions, tables that have to be adjacent, and large algorithms. The documentclass in use is 'book'. Despite the many attempts ...
5
votes
1answer
86 views

pass to \geometry{} options using a macro - keyval error

MWE: \documentclass{article} \usepackage{geometry} \newcommand{\GeomOpts}{a4paper,vmargin={3cm,3cm}} \geometry{\GeomOpts} \begin{document} \end{document} Because of the braces in \GeomOpts its ...
2
votes
1answer
157 views

Decrease the top and bottom margins and increase length of line

I want to decrease the left, size, top and right margin in the following code. I also want to increase the horizontal line lengths after every section. How can I do that? ...
0
votes
0answers
33 views

remove logo border / padding from Berkeley theme

I would like to remove the border or padding around the logo when using the Berkeley theme for beamer. What is the best way to do that?
9
votes
3answers
245 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 ...
-1
votes
1answer
120 views

geometry package is not working in all pages

The geometry package in combination with amsmath's align environment is not working in all pages. When many lines are within the align environment they get automatically shifted onto the next page and ...
2
votes
1answer
299 views

Change margins for all, but the first page [duplicate]

I've read Setting different margin sizes in different pages and Change \textwidth and \textheight in mid-document, but it doesn't work to well for my use case. I'm using the geometry and fancyhdr ...
1
vote
0answers
138 views

Changing the paper size in a tex document [closed]

I'm trying to get a letter paper size in my tex documents but no matter what line of code I use I end with the same a4 size. I'm using texmaker and LaTeX -> dvips -> ps2pdf sequence. I've tried the ...
0
votes
0answers
68 views

Geometry on last page of document

I would like the geometry of my file to be different on the last page of the document. I have tried something like: \AtEndDocument{\newgeometry{left=0.6in,right=0.6in,top=0.6in,bottom=1.8in}} But ...
8
votes
2answers
326 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!
0
votes
1answer
2k views

Full width image in beamer?

I have a beamer presentation with a custom style which creates a red bar along the bottom of each slide. When I change the geometry and then revert it with restoregeometry, the red bar is now shifted ...
1
vote
0answers
100 views

Spacing within a box, relative to the page

I am attempting to place a textbox precisely 75mm from the top edge of a page (to correspond with a cut-out on the cover). On printing this out, I noticed I was getting positioning problems, so got ...
3
votes
1answer
111 views

New textwidth for End Matter (but preserve fancyhdr)

Can anyone suggest a strategy for changing the textwidth for the end matter, but preserving the look of fancyhdr, whose offset is calculated using the old geometry. Can't seem to get \newgeometry to ...
0
votes
1answer
2k views

Margin on a4 paper is too big

I'm currently writing on a document for school. We have to use these margins: left: 3cm bottom and top: 2.5cm right: 2cm But when I'm using the geometry package the margins are way too big which ...
3
votes
2answers
166 views

Hyphenation and section titles with geometry

I am using classicthesis and the geometry package for my thesis. Some section titles are not hyphenated correctly, but instead reach into the margin. It seem not to be possible to use, e.g., \-, to ...
4
votes
1answer
639 views

Change \textwidth and \textheight in mid-environment

First, this is not a copy of Change \textwidth and \textheight in mid-document as I can't set a manual \pagebreak and \newgeometry or \restoregeometry thereafter. I want to change the footer size for ...
1
vote
0answers
94 views

why changing page margins using geometry package causes bad math inline break?

I had no idea that changing page margin size can cause problems with line break with in-line math. I have this MWE that shows one problem. I like to make the page margins smaller, so I can fit more ...
5
votes
1answer
216 views

afterpage clashes with restoregeometry from the geometry package

I'm writing my thesis and have used the geometry package to control the size of the text body so that it follows 'good' typesetting practices as described in the KOMA-script documentation. Many of ...
5
votes
1answer
243 views

Changing the height, width of moderncv type resume

I am trying to change the pagewidth and pagelength of a moderncv type CV that can be found here (http://www.ctan.org/tex-archive/macros/latex/contrib/moderncv) by changing the values inside inside ...
5
votes
3answers
325 views

Non-alternating margins in book class

For a book class, I specify margins like this: \usepackage[top=1.25in, bottom=1.25in, left=1.5in, right=1.25in]{geometry} But left and right appear to behave as inner and outer. I need to have the ...
9
votes
2answers
399 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. ...
6
votes
1answer
92 views

Forcing page numbers to ignore large margins

My teacher wants a large space to post comments on my work, so I have placed a bottom margin of 10 cm to pdfLatex. But the problem is that Latex also moves the page numbers up along with the margins ...
7
votes
0answers
149 views

Change papersize of selected slides in beamer

Is it possible to change the papersize of some frames in beamer? I know you can change the global papersize using\geometry{papewidth=,paperheight=} in the preamble, but assuming you want to change the ...
1
vote
1answer
269 views

“Package xkeyval Error: value `no' is not allowed.” while working baposter

I faced the same problem as the author of an older question - I got following message in my log: ! Package xkeyval Error: value `no' is not allowed. See the xkeyval package documentation for ...
4
votes
3answers
901 views

Problem with margins using amsart and geometry packages

I do not want different margins on even and odd sides, I just want the usual page setup from the amsart package. However, consider: \documentclass{amsart} \usepackage{geometry} \usepackage{lipsum} ...
6
votes
2answers
92 views

geometry doesn't create huge document

I am using geometry with memoir (PDFLaTeX) to make a 48"x36" poster. However, using geometry at that setting results in a 8.5" x 11" document. What's wrong, and how to I create the size?
1
vote
2answers
2k views

package keyval error: compat2 undefined

I am using MiKTeX 2.9, geometry v5.6. I am getting the following error package keyval error: compat2 undefined. The LaTeX code is attached here: \documentclass[phD,synopsis,a4paper]{iitmdiss} ...
5
votes
2answers
72 views

Conflict between Geometry Ratio-Setting Keys and expl3 Syntax

I have found that when I try to use proportions-setting keys of the geometry package, like hmarginratio = 1:1, in the midst of a expl3 class or package (i.e., such as declared with ...
5
votes
1answer
259 views

Longtabu total width, fixed left margin

I'm trying to make a longtabu that is wider than the textwidth at a certain moment. I've tried different things always ending up with a different problem: First possibility: If I use the adjustwidth ...
2
votes
1answer
129 views

Problem with geometry and headers

I am trying to setup the margins such that from the top of the header text and the bottom of the footertext there is exactly 1.5cm space. I was not able to achieve this so far and I would highly ...
0
votes
0answers
42 views

Variable header height [duplicate]

I want to create invoices with LaTeX, and they need a header (containing some company information and maybe a logo) which must be repeated on every page. My problem is that I do not know the header ...
19
votes
5answers
2k 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} ...
3
votes
2answers
124 views

How to start text and image on the same baseline

I need text and images to start at the same level on each page. With standard LaTeX settings the image seems to start a few points higher then a text. I believe this is due to \topskip. \topskip=0pt ...
2
votes
1answer
158 views

How to prevent offsetting a margin?

I have basic class file and I would like to use fancyhdr. Here is the markup of some-class.cls: \NeedsTeXFormat{LaTeX2e} \ProvidesClass{some-class}[2013/07/29] ...
9
votes
1answer
441 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 ...
3
votes
1answer
628 views

Correct \newgeometry retaining preamble settings

I am writing a 350-400 page document using the report document class. The entire document uses the oneside flag as per regulations however I need the document to switch to twoside at a certain point. ...
4
votes
2answers
371 views

Why isn't LaTeX centering with the geometry package in use

I am messing around with LaTeX and I am trying to center a title at the top of a legal sized sheet of paper with margins at .25 inch. I can't get the title to center with a center environment ...
2
votes
1answer
620 views

Geometry package causes LaTeX to raise strange error

I'm trying to submit my PhD thesis and everything is OK but the page layout. When I try to use geometry package by issuing \usepackage[top=3cm, bottom=3cm, left=3.5cm, right=2.5cm]{geometry} but it ...
2
votes
1answer
122 views

Side Margin of a Paper

In many journals it is said to maintain "81/2-by-11 double-spaced typed pages". This means how many inch margin? That is what is the value of x in \usepackage[margin=xin]{geometry}?
7
votes
1answer
201 views

In the geometry package, what's the practical use of setting heightrounded=true?

In the geometry package, what's the practical use of setting heightrounded=true? The documentation says sth about avoiding cases of "underful vbox", but I don't see why I need to worry about it. When ...
3
votes
1answer
252 views

How to make unlimited sheet of paper in LaTeX? [duplicate]

How can I make LaTeX to do the unlimited (just as big, as the content) sheet of paper? So everything goes right on the one page.
3
votes
1answer
113 views

Optimum parameters for 1280x727 screen?

I'm going to experiment with using my Android tablet to lecture from this coming semester: moving between LaTeX PDFs and a handwriting note app. My usable screen size is 1280 x 727 pixels (there's a ...
0
votes
1answer
225 views

Interference between crop and (new)geometry

I encountered a strange behavior of the command \newgeometry when using the crop package. After the first call of \newgeometry the centering of the page layout is lost and also can not be restored by ...
2
votes
0answers
132 views

How to set `footskip` on a landscape page? [closed]

I'm using geometry and pdflscape to have a particular page in landscape (detailed here). However, setting footskip via \newgeometry{..., footskip = 1cm} does nothing, because the system still assumes ...
1
vote
0answers
64 views

Borders a few millimeters too wide [closed]

I want my document to have exactly 3cm space at the left and 2cm to the right and the text to be from one border to the other. However the code below produces a document with 3.1cm border at the left ...
1
vote
1answer
139 views

Different \headheight in one document

I'm studying at a Cooperative State University and need to write a report about my activities at work. Our department provided us with templates for all kind of document we have to fill out and attach ...
6
votes
1answer
3k views

How to determine head height automatically

I'm creating three documents with three different headers, containing images or large banners. Is there a way to determine the head height automatically or even better a way to change the head height ...