{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

4
votes
0answers
221 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
117 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
40 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
119 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
149 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
408 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
490 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
289 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
506 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
112 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
160 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
220 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
111 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
195 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
103 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
63 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
125 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
2k 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 ...
2
votes
1answer
341 views

Reduce float size to fit page

I've got a longish sidewaystable which currently is to large for its page. At least with \footnotesize it is. With \scriptsize it becomes too small, which looks strange and is hard to read. Is there ...
7
votes
1answer
733 views

Geometry: showframe + landscape

I'm using \usepackage[showframe]{geometry} and I'm seeing that when I use a landscape environment (added by pdflscape package) the frame doesn't seem to be OK. Is this an erratum? Is there any way ...
24
votes
1answer
436 views

Evaluate typographical beauty of a document (widow, orphans, hyphens, etc) in order to optimize the page geometry

When finalizing documents, one of the last things I do is usually to play with the page geometry to improve the overall layout: get rid of a few orphans or widows, reduce the number of hyphenations, ...
8
votes
2answers
1k views

Koma-script scrpage2 footer height

After lots of googling and hair-tearing, I'm turning grey and old, and no wiser... EDIT : see bottom for a half-cooked solution. I switched from LaTeX plain classes (article, report, etc.) to ...
7
votes
1answer
240 views

How to have headers, section headings, and figures expand into the margin?

I am interested in the following page layout. How to have headers in margins (up to margin) Is it possible to start section headings from margin How to set figures occupy the margins. I can ...
23
votes
1answer
791 views

Why doesn't a 17cm x 25cm picture fit on a 17cm x 25cm page?

Why doesn't this tikz picture fit on the first page of the document? \documentclass{report} \usepackage{tikz} \usepackage[showframe, centering, text={17cm, 25cm}]{geometry} \begin{document} ...
2
votes
1answer
359 views

Top margin, memoir class and geometry package

I'm trying to set a very basic front page for a document with the MWE below. I'd like to have a vertical stripe running along the left margin and have all the margins set to 0pt. The layout is based ...
5
votes
1answer
221 views

8 column table with lstinputlisting in LaTeX

I'd like to create a multicolumn table (up to 8 columns) to insert my code via \lstinputlisting{source.c}. But it seems to me that more then 6 columns aren't possibile even tough space is available. ...
5
votes
1answer
159 views

Setting up page dimensions in LaTeX

I generally try typeset a document in LaTeX and then take a print out. Since I am not familiar with setting up the page dimensions, when I take print out on an A4 paper, lot of gaps are left. So can ...
5
votes
0answers
110 views

Different margins for odd and even pages, but not mirrored with memoir [duplicate]

I need a help with this page layout: top/bottom margins: 2cm for all pages on even pages: 3.5cm - 2cm on odd pages: 2cm - 2cm I tried: \setlrmarginsandblock{3cm}{2cm}{*} ...
1
vote
1answer
195 views

Expand page to use full page height with fancyhdr

I use fancyhdr package and would like to print a large float that exceeds the textheight. Hence I would like to remove the headers and footers. And have the float verticaly centered. I tried ...
3
votes
1answer
2k views

geometry sets footskip too small

I'm using the geometry package to change the header and footer of my page to specific values. Until now, it wasn't possible for me to get the footer in the right dimensions. The header looks has its ...
6
votes
1answer
2k views

Inconsistent margins using fancyhdr and geometry

For my homework assignments I usually use the fancyhdr package to create a header that contains the group (A, B, C etc), homework title, my name + student number and the date. Besides that I ...
3
votes
2answers
536 views

Convert MS word margins into geometry package margins

I would like to convert the following margins that I have found in my MS word document to geometry package. Top: 2.38cm Bottom: 2.38cm Inside: 2.29cm Outside: 1.52cm Gutter: 0cm Here is ...
5
votes
1answer
254 views

Align TikZ grid with geometry crop marks

I am drawing a grid on top of the layout defined with geometry. \documentclass[letter]{article} \usepackage{geometry} \geometry{ showcrop, paper = a4paper, layout = a5paper, ...
4
votes
2answers
237 views

Text does not fit foot line space

For my next essay, I got some requriements from my teacher. The layout concerning headlines and footlines should be like this (as there is no adequate Times New Roman I chose Arial): ...
3
votes
1answer
1k views

Alternate Row colors in longtable

I am using the method proposed by Nikos Alexandris in "How to apply alternate row coloring in a longtable in LyX?" works to a limited extent but the shaded rows does not fill the whole width of page. ...
0
votes
1answer
403 views

Createspace template for a pocket book

I have been used createspace (GitHub) package but that is not giving me the desired results. I have attempted to use the geometry package with the following code: \usepackage[paperwidth=5.325in, ...
3
votes
1answer
533 views

Manipulating isosceles triangle

\documentclass{article} \usepackage{tikz} \usepackage{pgf} \usetikzlibrary{shapes.geometric} \usepgflibrary{decorations.shapes} \usetikzlibrary{decorations.shapes, shapes, fit, arrows, ...
0
votes
0answers
59 views

Change margins for title page [duplicate]

I am trying to change the margins for the title page - especially the top margin of the title page. How do I go about decreasing this? So, in my report, on the first page (title), the heading has a ...
1
vote
1answer
352 views

How to enlarge the header of a fancy page style? [closed]

I am using a fancy page style for my report. I am using the following code to set the width of the body: \usepackage[left=3cm, right=2.5cm, top=2.65cm, bottom=2.65cm]{geometry} However, the bar in ...
2
votes
1answer
156 views

How can I reduce the left margin in the documentclass hitec?

I am quite aware of the package geometry, but it does not seem to play nice with the hitec document class. I have looked at related questions How to reduce the margins and How can I change the margins ...
0
votes
0answers
48 views

Dimensions of the pages [duplicate]

I have used the simple dimensions top, bottom, left and right to scale all pages of my document with the geometry package. Suppose I want a few pages with different scaling and a few pages with ...
4
votes
1answer
509 views

First page bottom margin problems — fancyhdr / geometry

Can anyone please help me understand why the bottom margin on the first page spills over if I only use the geometry definitions inside the square brackets of \usepackage[]{geometry}; however, placing ...
0
votes
1answer
289 views

Bad margins while printing

I'm using geometry package like this: \usepackage[landscape]{geometry} \newgeometry{twocolumn, left=0.25cm, right=0.25cm, top=0.8cm, bottom=0.4cm} and fancyhdr package like this: ...
7
votes
3answers
1k views

My footer disappears when I increase headheight

I have created a custom simple layout with the fancyhdr package. Because the header I must use is somewhat big, LaTeX instructed me to increase the headheight to at least a minimum value. The problem ...
0
votes
1answer
183 views

Problems shrinking margins with fncychap and memoir class

Hullo all. I am typing/editing a doc using the memoir class and Bjornstrup fancy chapter headings. Whenever I try to adjust [shrink] the margins using the geometry package, 'odd' things happen: the ...
2
votes
2answers
956 views

What would the equivalent \setlength commands be for letter and A4 paper?

If one were type setting a business letter on A4 paper he might use: \setlength{\textheight}{215mm} \setlength{\textwidth}{160mm} \setlength{\oddsidemargin}{0pt} \setlength{\topmargin}{-20pt} ...
1
vote
2answers
302 views

Custom geometry for a first chapter page?

On normal pages I have header and no footer. On first chapter page -- I have footer (with page number) and no header. Hence I need: \newgeometry{top=2cm, bottom=1.2cm, left=1.5cm, right=1.7cm} for ...
4
votes
1answer
2k views

Odd-even margin

I am writing a book and I need to set the odd/even margin on the binding side. \usepackage[top=2cm, bottom=2cm, left=1cm, right=1cm, headsep=14pt]{geometry} I need left = 2.1cm for odd pages and ...
6
votes
1answer
464 views

A perpendicular line to a plane in 3D

I have two line segments identified by two end points each. Two line segments are in the same plane and intersecting at a point. I would like to draw a line (normal of the plane) passing through the ...