{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

2
votes
1answer
64 views

overlay latex output on top of VerbatimInput TEXT file

just like How can I superimpose LaTeX / TeX output over a PDF file? except I want to write over a multi-page text file, brought into my main .tex file with: \newgeometry{left=3mm,right=5mm} ...
15
votes
1answer
120 views

Conflict between fontspec and geometry

Using the option lines=x of geometry does not give the expected result when the fontspec package is used in the same document. For example, declaring lines=40 does not result in 40 lines per page but ...
2
votes
2answers
103 views

How to convert a Book pdf for printing on Landscape Letter size pages

I've got a template for a book that uses the scrbook koma script class. My output pdf is several hundred pages. Before submitting to the print on demand company (CreateSpace, they use true to size ...
1
vote
1answer
54 views

How do I get this two-page, bordered page layout?

I seem to not be able to get the following style for my pages (printed two-sided A4, the "Front" represents the face that faces the reader by default) with the \documentclass[twocolumn]{article}: ...
1
vote
1answer
42 views

how to use flashcards package and print one per page?

I'm using the flashcards package to create a deck of cards. For home printing, I usually use the avery paper which works great (printed 10 to a page). I also want to print them professionally and ...
0
votes
1answer
73 views

Position included Pdf in twosided document using A4 papersize and C5 layout

I want to position included Pdf in twosided document, actual size C5 but printed on A4 paper, showing cropping marks. Included Pdf has already set hmarginratio to 2:3, so I need to center him ...
1
vote
1answer
77 views

No page number after afterpage

Why is no page number shown on the page after the one generated by afterpage? \documentclass{article} \usepackage{afterpage, geometry, lipsum} \begin{document} \lipsum \afterpage{% \clearpage ...
3
votes
2answers
161 views

How to make marginratio from geometry package work also with LaTeX3?

With LaTeX2e, the marginratio key provided by geometry package can be used safely: \documentclass{book} \usepackage{geometry} \usepackage{calc} \newlength{\mylayoutwidth} \newlength{\mylayoutheight} ...
2
votes
1answer
62 views

Setting custom margins using geometry package results in incorrect indent style of itemize

I'm currently writing a report and the professor asked me and also other students who do that to use a specific margin. My documents uses the article document class and also \usepackage[left=25.4mm, ...
1
vote
2answers
146 views

How to change margins in documentclass thesis

I am using a template for my thesis and I would like to change the margins. Actually, I'm satisfied with all the margins, except the top margin which is too tight. But when I try to use geometry ...
5
votes
2answers
315 views

Tufte layout in “Painless Memoir?”

I'm trying to bring together two styles, the airy Tufte's page layout ... and Michael OKane's "painless Memoir" document found on this site. I've tried to edit OKane's template directly; I've ...
3
votes
1answer
50 views

Geometry and Equation centering: strange behavior

I have found a strange "bug", where my equations do not seem to be aligned correctly when using the geometry package. I try to explain this behavior in more detail using this MWE: \documentclass[ ...
2
votes
0answers
27 views

Page margins in .Rtex

I'm using ShareLatex to write my thesis (which relies heavily on R) but the page size changes when I set my document to "main.Rtex" instead of "main.tex". I provide a minimal example so you can check ...
0
votes
1answer
40 views

Remove left padding with geometry package

i'm trying to make a checklist for glider flying, and i'm unable to tell latex to remove all margins whatsoever from the page. This is what my code looks like: \documentclass{minimal} ...
3
votes
2answers
38 views

again, with a caveat, really wide table on one landscaped page

I've seen a lot of questions about, separately and together, landscap-ing one page and really wide tables. These I see usually involve packages changepage and/or geometry, and lscape or pdflscape. ...
1
vote
1answer
40 views

How to move the squared rectangular in the document (see the picture)

I can't solve another two problems because of a error when I click on compile. could you help me? 1) A part of the document it's not printed 2)The boundary of the rectangular black is interrupted. ...
1
vote
1answer
78 views

\newgeometry introducing a blank page into document

I've seen similar questions on here but solutions don't seem to work. Basically I am trying to input a figure into my document in the middle of the page without worrying about margins. What I have ...
1
vote
0answers
32 views

Using geometry without modifying default margins [duplicate]

I would like to use the package geometry since it's a convenient tool to change margin locally in my book document. The problem is that the simple fact to call it in the preamble modifies the default ...
0
votes
0answers
56 views

How to have the same top/bottom margins (from the footer/header, if any) and the same left/right margins in the book class

I have the following document. Thanks to the answer http://tex.stackexchange.com/a/272591/ the absolute text-height is 20 cm (text-height+footer+header=20cm). I would that the left and the right ...
4
votes
1answer
63 views

How to adjust the `absolute text-height` including the header/footer/footnote (if any)

I would like to have a document of a given absolute text-height (say 20cm) (from the header to last line, including footer/footnote, if any). Currently the settings are as in the following document. ...
3
votes
2answers
57 views

Geometry package: Center footer relating to the pagewidth

I'm working on the final layout of my text. I've set some margins with the geometry package: \documentclass[ngerman,12pt]{article} \usepackage{geometry} \usepackage{pagecolor} \usepackage{lipsum} ...
3
votes
1answer
100 views

resume doesn't format well

So here is the link to tex file of my resume and here is how it is shown: As you see, things like Research and Honors and Awards are clipped. Anyway you can help me to fix it?
1
vote
1answer
32 views

Is it possible to use mylatex or mylatexformat for documents with preambles almost the same?

I have documents of this form: \documentclass{article} \newlength{\variableLength} \setlength{\variableLength}{xxxx cm} \usepackage{package1} \usepackage{package2} \usepackage{package3} ...
2
votes
2answers
83 views

Is it possible to store the height and width of an imported document in variables and adjust the page to fit it (reverse-engineering layouts)?

For example, let's say that I use the pdfpages package and import a PDF. Is there any way (without using an external scripting language like Python) to access the dimensions of the PDF? Can I pass ...
2
votes
2answers
61 views

How to make the margins relative to the actual content rather than the baseline?

I need to have small margins in my document. It seems that the margins are relative to the baselines rather than the content. See this example, where the content is cut out of the page: ...
1
vote
2answers
107 views

fancyhdr resets geometry to adjust header heights?

I use two pagestyles fancy for the default header and plain for headers on chapter pages. These headers should have completely different heights, however, it looks like latex adjusts both header ...
2
votes
2answers
66 views

Too much whitespace on the bottom: how to make it as much as that on the top?

This is the code for the cover of my thesis: \documentclass[a4paper]{report} \usepackage[top=3cm, bottom=3.5cm, outer=4cm, inner=4cm, marginparsep=0.7cm, marginparwidth=1.5cm]{geometry} ...
1
vote
1answer
45 views

How to change the default height of pages and frames in Beamer?

In the Beamer class, is it possible to change the height of a page and frame? I'm producing a document for web display and would like it to be on a continuously scrolling format so I would like to ...
3
votes
1answer
180 views

How to set margins and page size in pdfLaTeX without geometry?

What is the TeX equivalent of \usepackage[paperwidth=10cm, paperheight=15cm, margin=0mm, bottom=1mm]{geometry} ? I know nothing in TeX and so far, I am playing ...
2
votes
1answer
116 views

Have \newgeometry automatically reset after 1 page

I would like to adjust the margins for a single page in a document using \newgemoetry{} and then have it reset automatically once it goes to the next page without finding the specific word or sentence ...
0
votes
1answer
38 views

How to obtain PDF size in LaTeX--70x60mm

I have to obtain PDF size 70 x 60 mm. How to obtain these sizes?
3
votes
4answers
183 views

Newgeometry and afterpage don't adjust the geometry

In the following sample, the geometry doesn't change even though I believe it should. What am I doing wrong and how can I fix it? \documentclass{article} \usepackage{lipsum} \usepackage{afterpage} ...
1
vote
1answer
262 views

!Latex error: Option clash for package geometry

Hi I am getting option clash package error where as I am declaring geometry package only once as below: \documentclass{vldb} \usepackage{graphicx} \usepackage{algorithm} \usepackage{algpseudocode} ...
3
votes
2answers
183 views

Get FancyHDR and geometry to work nicely

In the MWE, geometry is set to leave a top margin of 1cm on the top and on the back of the page. Yet, with FancyHDR on the top of that, occupy some parts of this margin and I have to manually tweak ...
1
vote
2answers
107 views

Underfull vbox, geometry package

I used the geometry package with the option heightrounded and set parskip=0pt; I then got an underfull vbox message (badness 10000). But this disappeared after I set parskip=0pt plus .0001ex (.00001 ...
1
vote
1answer
38 views

why isn't this properly formatted using \item \LHEAD?

I followed the answer given by AboAmmar here by I get the following shape for my resume. Not sure why the items written in LHEAD show like that? %\documentclass[9pt,A4paper]{report} ...
3
votes
1answer
66 views

Graphic in foot, how to position

I need to put a Logo in the footnote of every page. It works so far, but the Logo is positioned very high, and sometimes it's very close to the text. I need to either position the logo lower or make ...
0
votes
2answers
71 views

Accuracy of distance measures in geometry

In the following MWE, I set the distance from the edge of the paper to the body text to be 25mm. \documentclass[a4paper]{article} \usepackage[showframe, paper = a4paper, tmargin = 25mm]{geometry} ...
3
votes
3answers
115 views

Specify distance from page margin to header with geometry

With geometry, the placement of the header is set by specifying the distance from the text body below to the header above with headsep: \documentclass{article} \usepackage[showframe, headsep = ...
1
vote
1answer
44 views

How to set topmargin = leftmargin when the latter is auto-completed in geometry?

I'd like to set the top margin being equal to the left margin, but the left margin is auto-completed from the text width. I'm using geometry package. I just want to do something like: ...
3
votes
1answer
232 views

How to fix the top and bottom margins in Lyx in order to conform to standard ERC proposal?

I need to write a document with specific margins (well, I admit, a grant proposal). They want : The minimum font size allowed is 11 points, line spacing single. The page size is A4, and all ...
2
votes
1answer
214 views

Latex geometry package giving an inconsistent binding offset [closed]

I'm trying to prepare a thesis which requires 4cm margins on the side where it will be bound (i.e, left hand side on odd numbered pages) with 2cm margins on the opposite side. I have been trying to ...
6
votes
5answers
604 views

How can I draw several polygons on the same base line using TikZ?

I want to construct a figure that will be symmetrical polygons on the same base. So, there is an equilateral triangle, a square, a pentagon, a hexagon, etc. one side of all these is the same ...
5
votes
3answers
163 views

Equation wider than textwidth

I have an equation that is slightly wider than the width of my document. I want to center the equation, but do not want to change the geometry of my document. I have tried the method mentioned in ...
3
votes
1answer
44 views

\sidebar doesn't respect geometry's bottom margin

MWE: \documentclass{memoir} \usepackage{geometry, lipsum} \begin{document} \newgeometry{top=2cm, bottom=2cm, inner=1cm, outer=0.618\textwidth} \sidebar{\lipsum} \lipsum \end{document} ...
0
votes
1answer
45 views

Marginnote - apparent bug with geometry

First can I note this previous similar question -- Marginnote with geometry package -- the answer to that mis-diagnoses the cause of the problem, but gives a correct solution for memoir users. If I ...
4
votes
1answer
94 views

Prevent Hyphenation across lines + Enforce right margin

My first question here, so it may sound rambling. So far I've found the answers about preventing hyphenation across lines and for setting margins, but I'm having trouble putting it together. This is ...
1
vote
0answers
45 views

Issue with using the geometry and multicol package in conjunction [closed]

Getting the following error when I try to set the margin size. Any suggestions? ! LaTeX Error: Option clash for package geometry. See the LaTeX manual or LaTeX Companion for explanation. Type H ...
3
votes
1answer
52 views

Text after footnote text but within the text area

I'd like to typeset text that appears within the typesetting area, but after the footnotes. (How) is this possible? I've tried to make the page shorter (with the geometry package and the \newgeometry ...
1
vote
1answer
35 views

A single page should be shorter

I need a single page (page 3 in my example) to be shorter than the rest of the pages. I don't know where the page break is (3 to 4), so I can't manually insert \restoregeometry. Therefore I've tried ...