{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
108 views

restoregeometry doesn't restore the geometry

I want to alter the geometry of only one page in my Latex document. So I define my geometry as a4paper and then use \newgeometry. However when I enter the \restoregeometry it doesn't restore it. What ...
4
votes
1answer
298 views

A5 booklet printing — Title page and TOC are missing

I have a file bookletdemo.tex with the following code \documentclass[12pt]{article} \usepackage[a5paper]{geometry} \usepackage{lipsum} % this package is for creating filler text \author{N.~N} ...
6
votes
1answer
106 views

Compiling with “latex” instead of “pdflatex” command leads to upward movement of text body

I am writing a thesis with specific margin requirements. I am using a template recently created (read: untested?) by someone else. The problem is that when I use my computer's latex command the text ...
0
votes
1answer
91 views

wrong A4 pdf size [duplicate]

I want to configure the A4 paper size in latex to the standard size, i.e. 8.27 x 11.69 in. Right now my generated pdf has size of 8.50 x 11.00 in How do I get the right size so that I can print it ...
6
votes
2answers
184 views

Making this figure in LaTeX

I am trying to generate the following figure in TeX: With coloured squares. What I have did so far is: \documentclass{article} \usepackage{xcolor} \begin{document} \centering \fboxsep=10mm ...
7
votes
1answer
244 views

How to project a spherical panorama onto the sides of a tikz folding poyhedron?

Amazing how simple one can put text (or anything else) onto the faces of a polyhedron like this calendar. But how can I project a 360° spherical photo onto the sides? I assume one should start with ...
6
votes
1answer
108 views

Front page in document class book not centered

I'm using the document class book and I am designing my front page atm. I try it like this: \documentclass{book} \begin{document} \thispagestyle{empty} \begin{center} FRONT PAGE \\ \end{center} ...
12
votes
1answer
90 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
83 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
37 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
118 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
70 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
0answers
106 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
25 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
211 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
114 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
154 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
109 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
64 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
297 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
1k 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
93 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
97 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
750 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
130 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
441 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
84 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
166 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
177 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
205 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
268 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
85 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
104 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
174 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
606 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
85 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
1k 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
64 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 ...
4
votes
0answers
209 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
108 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
39 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
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} ...
3
votes
2answers
118 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
144 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
386 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
0answers
444 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
260 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
440 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
107 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
147 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 ...