{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
167 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
472 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
650 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
400 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
708 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
127 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
232 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
275 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
115 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
237 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
150 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
150 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
2answers
4k 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
445 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 ...
8
votes
1answer
1k 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 ...
25
votes
1answer
476 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
2k 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 ...
8
votes
1answer
286 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
803 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
425 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
243 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
166 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
266 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
3k 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 ...
7
votes
1answer
3k 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
587 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
299 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
279 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): ...
5
votes
1answer
2k 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
496 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
671 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
62 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
482 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
200 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
49 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
640 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
403 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
214 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
2k 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
343 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 ...
8
votes
1answer
574 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 ...
4
votes
1answer
1k views

Is there any way to make two pages per sheet (landscape) and the page numbering appears as if each column was a page?

I want to make a landscape sheet with two pages (like two columns) and I want that the page numbering to be a number per page (a number per column) instead of a number per sheet. I use ...
4
votes
0answers
1k views

Attempts to manually change \linewidth ignored by LaTeX [closed]

I was going to try to answer the question: How can I change the geometry of a page on the chapter header page only, and return to normal on the next page? It didn't seem like it should be too ...
4
votes
1answer
280 views

How can I change the geometry of a page on the chapter header page only, and return to normal on the next page?

Edit: It would appear that I wasn't clear in my reasoning as to why I wanted to do this.. I would like to design a way that I can have a chapter intro page that is full width, so I can fill it up ...
5
votes
1answer
13k views

How can I change the margins in LaTeX? [duplicate]

How do I change the margin of all pages? I want the latex page be .25 in margin around all the pages.
3
votes
1answer
589 views

Change behavior of geometry for all pages

I'm using the llncs document class and wanted to change the margin of all pages, using the geometry package. I use the following command: ...