Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [geometry]

{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.

1
vote
1answer
23 views

geometry package - setting margins on a specific page

I want to set the first page's margins differently from the rest of the document. What is the best way of doing this? I am using geometry package to adjust my margins. Any help is appreciated, thank ...
0
votes
0answers
24 views

automatically change geometry with KOMA-pagestyles

I'm trying to change the geometry (namely the top/head height) automatically depending on the selected pagestyle. The goal is to have a bigger backgroundpicture in the header for every new chapter. ...
0
votes
0answers
21 views

Set up twopage offset for different pages manually

Currently writing my thesis using the twoside report document class which pushes everything on an odd page to the left and everything on an even page to the right. I have set up my document in a way ...
1
vote
1answer
33 views

Dynamically enlarge the height of a page [duplicate]

There is a way to dynamically enlarge a page in a LaTeX document? the thing I want is to have a document which will always have a single page, so the page should increase in height to hold all the ...
1
vote
2answers
24 views

Using bmargin to remove whitespace

I interpret this as telling me that bmargin is what removes the whitespace between the bottom of the document and the bottom figures. But if you run the code you will see that the whitespace is still ...
1
vote
1answer
30 views

Twoside documentclass: Underfull \vbox (badness 10000) has occurred while \output is active

I'm using the documentclass article with the option twoside in order to customize the header and the footer for even and odd pages with the fancyhdr package. The compilation works, but the problem is ...
4
votes
2answers
56 views

scrlttr2 and geometry: firsthead shifted to the right

I am using class scrlttr2 of KOMA-Script with a custom page layout via the geometry package. Unfortunately, this results in a small horizontal right-shift of my header. Here is a MWE: \documentclass %...
0
votes
1answer
23 views

How to set the new margin on the next page?

I have a large footer that needs to be placed on the first page of a document. To make it fit, I've used the geometry package and increased the bottom margin. For the header/footer manipulation, I'm ...
1
vote
1answer
29 views

Unable to change page dimensions (Lualatex)

I would like my document to be 12 by 18 inches. I try the following (recommended here), compiling with Lualatex, and it seems to give a page which is still 8.5 by 11 inches. \documentclass{article} \...
1
vote
2answers
25 views

Show only right side of main body frame layout through showframe

The option [showframe] for the geometry package makes nice lines so that we can see the frame layout of each page. What I want, however, is to only see the line that gives the right margin for the ...
1
vote
0answers
27 views

Override margin settings of revtex4

I would like to modify the left and right margins around the table in the following "code": \documentclass[a4paper,preprint,aps,unsortedaddress]{revtex4} \usepackage[top=2.5cm,bottom=2.5cm,left=3.5cm,...
1
vote
1answer
23 views

\newgeometry with elsarticle.cls

I am preparing an article with elsarticle.cls for an Elsevier Journal. Within the document, I need to reset geometry. I receive the error Undefined control sequence. \newgeometry MWE is as follows: \...
0
votes
2answers
43 views

Pictures on horizontal page in a 2x2 grid with equal distances between them and the margins

I would like to add four pictures with slightly different aspect ratios on two rows on one horizontal page so that the distances between each picture and to the outer margin of the page are equal or ...
1
vote
1answer
20 views

Change paper size when using pdfx

I have the following MWE \documentclass[cmyk]{article} \usepackage[x-1a,pdf13]{pdfx} \usepackage{geometry} \usepackage{blindtext} \geometry{% paperwidth=96mm, paperheight=96mm, margin=3mm,...
1
vote
3answers
49 views

Declaring option a4paper in \documentclass produces different margins than declaring it in \geometry

I have seen a similar question at a4paper, where should I declare it? In document class or geometry? and the selected answer there implies that there is no difference in whether we use \documentclass[...
1
vote
1answer
39 views

Set length parameter based on KOMA \ifthispageodd

Background I'm using scrrept and titlesec (changing from titlesec to pure koma is on my todo list) any I've redefined \chapter to be a full page affair. The issue is when I'm using twosided. ...
1
vote
0answers
57 views

Different top and bottom margins for odd or even pages

I have a two-sided landscape document that I intend to bind on the long (top/bottom) edge. To leave space for the binding, I would like a larger top margin on odd-numbered pages and a larger bottom ...
1
vote
1answer
45 views

Dynamic paperheight (crop to content)

Is it possible to have the paperheight of the document be determined automatically to fit the content? A small working example: \documentclass[a4paper,10pt,oneside]{book} \usepackage{geometry} \...
1
vote
1answer
24 views

\newgeometry is not remembered when writing a new page

I'm using the package geometry to customize my document. I specify the geometry I want using \newgeometry after a title that I will make later. If I do that using the code below, the first page is ...
0
votes
1answer
31 views

How to Change Bottom Margins on Specific Page Style?

I'm using fancyhdr. My fancy page style has no footer (only footnotes). However, on chapter titles, I am using a plain pagestyle, which has the footnote on the bottom. In any case, I would like to ...
0
votes
1answer
22 views

How to set first few pages in thesis (report class) as one sided?

First 7 pages of my thesis needed to be printed on odd pages and one-sided. My report class is set as two sided. How do I change this? I had earlier seen in another post a way to change it to two ...
1
vote
1answer
57 views

Set different margins with twoside in LaTeX

I am trying to set different margins for the first page of my document. As I am not sure about the content of the first page, the \afterpage command has been used to achieve the required effect. ...
0
votes
0answers
61 views

Document margins with a4paper: documentclass vs. geometry

Using pdflatex, I would like to set an A4 article. I believed (from this answer) that it did not matter whether I use \documentclass[a4paper]{article} or \documentclass{article} \usepackage[...
0
votes
1answer
21 views

How to set page numbers within left/right margins using classicthesis and geometry [duplicate]

I'm using classicthesis and the geometry package for the margins. The page numbers are top outer, but should be within ALL of the margins. I've successfully got the page numbers within the top and ...
1
vote
1answer
42 views

Layout: new-geometry with global and local options

I have a document with pages of different 'headheight's. \newgeometry{...} seems to overwrite (almost) all options set in \usepackage [...] {geometry}. How do I achieve that e.g. margin = 3cm, ...
1
vote
0answers
33 views

Marginnote Large Fonts are Misaligned from Text

I am still in the process of making a similar style kind of book to https://fac.ksu.edu.sa/sites/default/files/numerical_analysis_9th.pdf. This mostly includes having section numbers as well as ...
1
vote
0answers
26 views

Package to fit pages around chapters

Is there a package that would adjust the geometry of each page of a LaTeX document to contain all material up to the next explicit pagebreak? (ideally this would make pages contain entire sections, or ...
1
vote
1answer
131 views

LaTeX Error: Option clash for package geometry

I am doing my thesis and a colleague passed me the format with which I should write my thesis, but the moment to execute I get an error with the package geometry on line where it is written \spacing{1....
2
votes
1answer
48 views

How to modify the headsepline (KOMA) regarding its position (centering/flushleft)

Consider this MWE \documentclass{scrbook} \usepackage{scrlayer-scrpage}% sets page style scrheadings \newlength\ratio \setlength{\ratio}{2cm} \usepackage[ % page layout modifications paper=...
0
votes
1answer
34 views

Set right column blank for every page without affecting current template

I want to leave the right side of each page blank for taking notes. A simple way is to use one-column layout instead and change the right margin, but using geometry package will affect current ...
1
vote
1answer
21 views

Unable to change page margins

I used the geometry package but it doesn't seem to do anything to my document. \documentclass{article} \title{Competition Aircraft Energy Breakdown} \author{Bill Chen} \date{2018-11-21} \usepackage{...
4
votes
1answer
104 views

3D Surface Plot

I am using TIKZ (tikz-3d) plot to create a cartesian grid and to create a surface(a section of a sphere) passing through the surface. First I create a 3d cartesian mesh using the following code:- \...
1
vote
0answers
62 views

Mimicking Latex Style

I recently stumbled across the mathematics textbook Numerical Analysis 9th edition by Burden and Faires and I thoroughly enjoyed the style of it. I was able to find a link too here: https://fac.ksu....
2
votes
0answers
46 views

fancyhdr messing up the document margins

I wish to add header/footer to a document in landscape format. The document is basically a long table with few notes. Consider the following example: \documentclass[11pt]{article} \usepackage[utf8]{...
0
votes
1answer
98 views

the latest version of geometry.sty

Good day to all, I want this extension of the latest updates. however, from CTAN the file is in .dtx and I am not well versed to convert to .sty. Anybody could advice? or I do appreciate if someone ...
1
vote
1answer
26 views

How to use 'includefoot' of 'geometry' only on 'plain.scrheadings' pages and not 'scrheadings' pages?

I have the following layout: \documentclass{scrbook} \usepackage{blindtext} \usepackage[left=1.9cm, right=1.9cm, bottom=2.23cm, top=2.23cm]{geometry}% specific requirements \usepackage[markcase=...
1
vote
2answers
106 views

How to set exact margins in KOMA-Script Report

I am creating a document using the KOMA-Script class scrreprt. It is to be handed in and the requirements specify the following page layout: A4 paper One-sided print Margins: left 3.5 cm (2.5cm ...
2
votes
1answer
37 views

Use a user-defined variable before loading package

I'm trying to make a template where I can specify a draft version, and some text will appear in the footer noting that it's a draft, with today's date. I also define a function that allows text to be ...
0
votes
1answer
44 views

Background image full with geometry magnification

I'm trying to create a titlepage with a background image (full bleed). It works when using either eso-pic or wallpaper packages as mentioned in How to create a background image on title page with ...
1
vote
2answers
87 views

Papersize option in geometry package is misbehaving. Potential conflict with other packages? [duplicate]

I'm trying to set a custom paper size for my document via the geometry package. However, whenever I add the [papersize={x,y}] option, I get the wrong output. The document compiles successfully (with ...
1
vote
1answer
53 views

How to generate a PDF with a single table with page borders tight around it?

This is the opposite of commonly asked questions: I don't want a LaTeX table to fit on the page, instead, I want the page to fit tightly around a single table in all 4 directions. In essence, I want ...
2
votes
1answer
41 views

How to vertically wrapped page around formula?

thank you for your time. I wonder if it is possible to render one phrase only in latex and make sure the document is wrapped around the phrase (no bigger that it need to be)? I know you can set the ...
1
vote
1answer
87 views

Standard way to enforce the following format requirement, especially the margin requirement of 2.5cm all around

I am working on a latex file and also need to meet the following format requirement: Font : Times New Roman Font Size : 12 point Margin : 2.5 cm all round Spacing : Single-line spacing PDF ...
0
votes
1answer
31 views

Adjust Frame Option of pdfpages-Package

I'm currently writing a report for university and want to include some pdf documents as appendices. I'm using pdfpages (of course) to include these pdfs but i ran into one small problem: I scaled the ...
0
votes
1answer
44 views

Why does TeXstudio generate cropped PDFs?

In a previous question, I asked about how to add extra margins for todo notes without affecting the original geometry of the page. The answer by Steven B. Segletes is satisfactory, but the output is ...
2
votes
1answer
49 views

How do I expand page width to handle wider marginparwidths while leaving everything else as it is?

I would like to be able to use todonotes package, but the amount of marginparwidth on right and left are relatively small. The space available for margins is too small that I want to increase the page ...
1
vote
1answer
115 views

\newgeometry landscape only works once

I have a document in 'portrait' format, and would like to include short sections in 'landscape' format. The geometry package works nicely, but only allows me to insert one such section. The second ...
1
vote
1answer
222 views

Changing geometry after loading the geometry package

I've looked at some related questions and can't solve this. I have a common LaTeX file where I load the geometry package among others. This file (called pre.tex here) is a common, site wide file ...
3
votes
1answer
42 views

Setting margins for custom paper size doesn't work

For a book, the printer required a paper size of 23*32 cm with margins 2cm (left/right) and 3cm (top/bottom). Before I tried to incorporate this in Latex everything was fine but with this new page ...
2
votes
2answers
62 views

How to change the style of the header/footer depending on the parity of the page?

My question I am trying to have a precise control on the size and on the content of the header and footer of the pages, with different configurations: if the page the first page on odd pages on even ...