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

How to exceed left margin with longtable

I'm trying to make a longtable 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 ...
1
vote
1answer
147 views

Paper size incorrect when using latex instead of pdflatex

Somewhat opposite to other problems I found, my document size is correct when compiling with pdflatex but is not right when compiling with latex. I'm using a custom documentclass for a conference but ...
5
votes
2answers
314 views

Too many white space in bottom of the pages

I used this code for my thesis \documentclass [12pt,oneside,final]{book} \usepackage[left=35mm,top=26mm,right=26mm,bottom=15mm]{geometry} \raggedbottom It shows acceptable white space in bottom of ...
10
votes
4answers
260 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: ...
4
votes
2answers
172 views

Adding crop marks to a4 document to crop it to book without changing the layout?

I have a complete 150 pages LaTeX document that is in a4 format. I basically want to print it exactly as it is, except that I want to add crop part of the margins. I want to remove 10mm on the inner, ...
3
votes
2answers
149 views

Coloring only the text area

I use the geometry package to define paper size and text area of a (one page) document: \usepackage[ paperwidth=420mm, paperheight=297mm, text={365mm,270mm}, centering ]{geometry} I wish to ...
2
votes
1answer
569 views

How to change geometry for one page without using \newgeometry or \restoregeometry

I am trying to establish one geometry for my first page (not a title page), and use another for the rest of the document. However, because I am trying to make a template, and thus do not want to rely ...
2
votes
1answer
66 views

Cropping output of pdflatex to pagesize

I am trying to create square images with a fixed size in pixels in LaTeX to be used as buttons. So far, I got the best results using the slides document class in combination with the geometry package, ...
3
votes
2answers
125 views

Displaying layout marks in a document set with different layouts

Is there any package that allows for the display of layout marks within a document where the layout changes several times throughout? I'm using the geometry facilities to issuing \newgeometry commands ...
6
votes
2answers
177 views

Is there a way to tell LaTeX to use smaller margins without setting an absolute margin length?

So, I generally like letting LaTeX make most of my typesetting decisions for me--- it generally knows what is typographically "good" better than I do. One area I just haven't been able to turn ...
2
votes
1answer
38 views

Landscape mode for the flacard class

I'm using the flacards document class to create flashcards. When I try and make the document landscape using geometry (\usepackage[landscape]{geometry}) I get the following error: ! LaTeX Error: ...
1
vote
1answer
63 views

Changing the margins of a single page while keeping the headline the same

I need to print a huge figure in my latex document on one single page. I'm currently using \newgeometry{left=10mm, right=10mm, top=25mm, bottom=30mm} \begin{figure}[thb] .... \end{figure} ...
3
votes
1answer
142 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
420 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
109 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
107 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
186 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
253 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
132 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
96 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
85 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
41 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
123 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
72 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
115 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
27 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
224 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
115 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
173 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
118 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
67 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
307 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
94 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
105 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
965 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
142 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
499 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
88 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
179 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
188 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
234 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
299 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
88 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
114 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
204 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
669 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
90 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
68 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 ...