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.

3
votes
1answer
33 views

Geometry package: use of dynamic spacing variables in class definition

I am trying to replicate my company's corporate design Word template in LaTeX and got a manual with all relevant measures: Unfortunately, most of them refer to the baseline height of the first line, ...
1
vote
2answers
54 views

Geometry and layouts - problem with crop marks and Tikz current page

The issue is as follows: I am laying out an approximately square page on A3 stock using geometry. Because it is duplexed, it has to be centered and the cropping is critical If the layout does not go ...
0
votes
0answers
19 views

Modifying geometry in tufte-book class

Using the tufte-book class, if I set the page dimensions and margins like this \documentclass{tufte-book} \geometry{paperwidth = 8in, paperheight = 10.5in, right = 2.2in, marginparwidth = 1.25in} \...
0
votes
0answers
25 views

Either page number or text body should be 1 inch from the margin depending on whether page begins a chapter

Problem How can I write a document class to place page numbers one inch from the bottom on pages with a chapter heading and place the text body one inch from the bottom on pages without a chapter ...
1
vote
0answers
21 views

\newgeometry \restoregeometry makes setup for page only?

I have pictures that require the use of the full-page width, with having less margin on both the left and right sides. Therefore, I tried with \newgeometry to set the margins at 1cm on both sides, ...
4
votes
2answers
38 views

Table caption alignment in threeparttablex-longtable combination

I am new to StackExchange, so any suggestions to improve my question framing are welcome. I have some trouble getting the caption of my table aligned. Since I need a landscape, multipage table, I am ...
1
vote
1answer
25 views

Documentclass twoside and geometry margin

I was trying to format my report to have 2.5cm margins all around by doing: \documentclass[10pt,a4paper,twoside]{report} \usepackage{geometry} \geometry{verbose, tmargin=2.5cm,bmargin=2.5cm,...
0
votes
0answers
31 views

How to shift the footer downwards when using `\enlargethispage`?

\clubpenalty and \widowpenalty are parameters that can be set to help prevent single lines on the preceding or next pages. However, sometimes, we may get two or three lines on the next page with a new ...
0
votes
0answers
18 views

How to control white-space dimensions around author block with authblk and geometry?

I am trying to control the white-space dimensions around my author block using authblk and geometry. How can I control the distance between the top margin and the title, the title and the author list,...
0
votes
0answers
23 views

How to set first page top margin above author block

I'm using the geometry package to set the margins for my document. \usepackage[margin=0.5in]{geometry} And the authblk package to create my author block. When I typeset my document, it appears that ...
1
vote
1answer
27 views

Margins of header apa6 document class

I can modify the margins of the body of an apa6 class document by reloading the geometry package: \usepackage{geometry} \geometry{ a4paper, total={170mm,257mm}, left=15mm, right=15mm, top=20mm, ...
0
votes
1answer
50 views

A TikZ image set to the width of the entire paper, without changing the header and footer positions and widths

I'm attempting to fit a TikZ image on a page, and would like to make the image as large as possible, without distorting its dimensions. However, at the same time I would also like to be able to ...
2
votes
1answer
33 views

Which variable stores the value of the document's margins?

I am trying to create a header. I would like to position the information on the right or left margin. But I do not know which command stores the margin dimension correctly. The \leftmargin command is ...
0
votes
1answer
21 views

Using Article format and changing geometry from page to page

i am using the documentclass article and would like to keep it but i would like to change the page-geometry for every page on the right side (like in a book) to avoid having text in the link. Is there ...
0
votes
1answer
18 views

small text not going all the way to the margins

I have been trying to put smal text to the very top left of the page by using the geometry package and setting the margins to 0, but it doesn't go all the way - there is a slight vspace to the right ...
5
votes
2answers
110 views

How do I draw and define two right triangles next to each other?

My goal is to draw a figure exactly like this The best I could do coding this was: \documentclass{article} \usepackage{amsmath,amsfonts,amssymb} \usepackage{tikz} \usepackage{float} \begin{document}...
0
votes
0answers
39 views

Change layout or borders of my document without package {geometry}

I want to set the borders of my scrartcl document. Right now im doing this: \documentclass[12pt,listof=totoc,bibliography=totoc]{scrartcl} \usepackage[left=3cm,right=2cm,top=2.4cm,bottom=2cm]{...
0
votes
0answers
27 views

How to set top margin for fancyhead?

I need 1in top margin for every page. I have used \usepackage[left=1.5in,right=1in,bottom=1in,top=1in,includefoot, heightrounded]{geometry} But, there for fancyhead does not look good. It takes ...
2
votes
1answer
23 views

Reposition page number

I was wondering if there was an easy way to move the page number a bit up, without using margin= (which oddly rescales the whole document for me). Since I am restricted to formal regulations of my ...
1
vote
1answer
21 views

Ordinary text ignores margins in customized book class

I'm making use of a provided custom class to write a dissertation (called dissertation.cls), which is based on the book class. I have found that it leads to sentences ignoring page margins on rare ...
1
vote
0answers
16 views

`\newgeometry` and `\pagestyle` inside custom environment

The case is simple: when I put \newgeometry{margin=0} or \pagestyle{empty} inside a custom environment, it doesn’t work (but it work outside). So, with the following MWE: \documentclass[a4paper,11pt,...
1
vote
0answers
24 views

Geometry changing vertical with \newgeometry for horizontal margin

I have a document with a defined set of margins and somewhere in the middle I need to add 1 cm to each of the side margins without changing the vertical layout. However, when I use \newgeometry to ...
1
vote
1answer
54 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
1answer
38 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
30 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
39 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
1answer
31 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
73 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
93 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
43 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
31 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
31 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
40 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
37 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
45 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
28 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
68 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
45 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
71 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
51 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
45 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
60 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
121 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
26 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
73 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
40 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
251 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....