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,139
questions
0
votes
1
answer
32
views
overleaf error code to be rectified [closed]
Can you please help in rectifying this error code in the overleaf?
See the keyval package documentation for explanation.
Type H <return> for immediate help.
... ...
2
votes
1
answer
135
views
Geometry 15mm margin for Marie curie proposal
I would like to have a 15mm white margin for my latex for a a Marie Curie proposal for which the requirement is as follows:
The page size is A4, and all margins (top, bottom, left, right) should
be ...
0
votes
0
answers
18
views
Fullwidth for multipage table of contents ToC [duplicate]
A table of content in a layout with a large margin should use the full width of the page. How can the full table of contents, which runs for more than one page, be typeset in full width? This and ...
1
vote
0
answers
23
views
Two columns switching sides on every page in flowfram
I am working on a template for a student newspaper, and have set up a flowframe that alternates on each page.
\documentclass{article}
\usepackage{flowfram}
\usepackage{geometry}
\usepackage{lipsum}
\...
1
vote
0
answers
30
views
Using command in newgeometry [duplicate]
Please, help me understand why following does not work:
\def\test{layoutwidth=100mm}
\newgeometry{\test}
And just throws "Package keyval Error: layoutwidth=100mm undefined." error,
while ...
1
vote
1
answer
119
views
Why is This White Line Between Two Horizontal PDFs?
The forthcoming question is motivated in part by the question asked here: Why is this white line between the two vertical boxes?
Consider the following code which produces a vertical strip (and call, ...
5
votes
2
answers
422
views
What is Causing This Phenomenon? Is it the Geometry Package?
Consider the code
\documentclass[border=0pt]{book}
\usepackage[paperwidth=5.625in,paperheight=0.125in]{geometry}
%\paperwidth=5.625in \paperheight=0.125in
\usepackage{xcolor}
\pagecolor{red}
\begin{...
2
votes
2
answers
143
views
On Adding a Colorized One-Sided Margin to a Tikzpicture
Consider the code:
\documentclass[12pt]{book}
\usepackage[hmargin=0in,vmargin=0in,right=0in,paperwidth=4in,paperheight=2.15in]{geometry}
\usepackage{pgfornament, tikzpagenodes}
\usetikzlibrary{fadings}...
3
votes
3
answers
184
views
Moving the content up and down in header and footer
I try to align things in my header&footer. Here's what I have:
\documentclass{extarticle}
\usepackage{fancyhdr}
\usepackage{lipsum}
\usepackage{geometry}
\usepackage{graphicx}
\geometry{a4paper}
\...
1
vote
2
answers
43
views
Issues with \newgeometry and \restoregeometry: Inability to Write Below Figure and Font Style Change
I'm using \newgeometry to adjust the margins temporarily so that my figure fits the page. After the figure, I use \restoregeometry to revert to the original margins.
\documentclass[14pt]{extreport}
\...
0
votes
0
answers
27
views
Restore geometry changes font style
I used \newgeometry to make sure my figure fits the page, and then \restoregeometry to bring back the default margins of my project. However, I've encountered two problems.
I cannot write right below ...
2
votes
1
answer
65
views
Fancyhdr automatic header height
I am trying to write a simple document with a header and a footer on each page. I may decide to change the header/footer later or even use different styles on different pages, so I am looking for a ...
1
vote
1
answer
93
views
Scale from A4 to A5 for documentclass book
Original question:
I found the answer from Simon Dispa with the following proposal:
% !TeX TS-program = pdflatex
\mag=1414 % added <<<<<
\PassOptionsToPackage{usegeometry, paper=a5, ...
2
votes
0
answers
43
views
Interference between color and geometry packages under memoir class [duplicate]
I have the following extra simple code (which I trimmed from larger code):
\documentclass{memoir}
\usepackage[paperheight=150mm,
paperwidth=100mm
]{geometry}
\usepackage{...
0
votes
0
answers
27
views
Points hiding figures in Tikz package
I try to draw geometry in Overleaf by drawing one in GeoGebra and exporting ít to TikZ code, and then what I do is copy all the code and paste it into my Overleaf project, with added modification. But ...
0
votes
1
answer
72
views
How to scale down a single landscape page from A4 to A5?
Motivation
I'm working on a document where the majority of the pages are A4 portrait. However, I need to include a single A5 landscape page. The catch is that when viewing the PDF on my computer, I ...
1
vote
1
answer
154
views
Setting output width in IguanaTeX
I am using IguanaTeX to create equations in a powerpoint. I would like to make each equation a seperate numbered object so that I can animate each one. However, they also need to be the same width so ...
2
votes
0
answers
45
views
Printing out the page size and margins
I am trying to print out the values of the parameters related to the paper dimensions and margins:
\documentclass[12pt, a4paper]{report}
\usepackage[
width=150mm,
top=25mm,
bottom=25mm,
...
1
vote
1
answer
57
views
How to make a tcolobox stick the bottom of the page ? (and why \vfill is not perfectly working?)
I have created a MWE where one can picture my issue.
\documentclass[12pt]{article}
\usepackage[
left =0cm,
right =0cm,
top =0cm,
bottom =0cm,
paperwidth = 521pt,
...
1
vote
2
answers
43
views
Is it possible to fully `\restoregeometry` inside a group?
For the geometry package, is it possible to \newgeometry{…} and fully \restoregeometry inside a group?
Minimal Example
In the following, the \restoregeometry inside the {…} restores frames, but still ...
0
votes
1
answer
41
views
Insert landscape A3 page in A4 document with KOMA and geometry but keep margins [duplicate]
I want to insert a A3 landscape page in a A4 document. But when I do so, it keeps changing the margins. I found this question, which helped me to correct them for the left and right margin, but ...
1
vote
1
answer
45
views
thispagestyle does not respect geometry like pagestyle, how to revert to the fancy style on automatic page breaks?
I have defined two page styles like this:
\fancypagestyle{assignmentstart}{
\fancyhf{}
\restoregeometry
\newgeometry{hmargin=1.5cm,vmargin=1cm,includeheadfoot,headheight=60pt,headsep=20pt}
...
0
votes
0
answers
22
views
Geometric measure theory: Notation for currents over oriented manifolds [[M]] [duplicate]
In the book "Introduction to geometric measure theory" by Simon, the author uses a kind of double square bracket notation for currents over oriented $C^1$ manifolds, something like this [[M]]...
0
votes
0
answers
101
views
Change layout (side margins) in the Springer Nature LaTeX Template
I use the Springer Nature LaTeX Template to write my article but the side margins are to big:
Can you help me to change the sizes, there are a class (cls) file with the settings but I do not know ...
1
vote
1
answer
50
views
Wrong alignement for environment marginfigure of package sidenotes
When redacting my PhD thesis, I found myself wanting to add a side-figure here and there to tell the reader that something is important. The idea is to put a figure inside the margin where needed. I ...
1
vote
0
answers
52
views
LaTeX infinite page height [duplicate]
I want a single PDF page where the page continues for as much content I have on the page, i.e. the page height increase with the content.
I have so far done so by manually increasing the geometry ...
2
votes
1
answer
43
views
Why scrlttr2 does not exhaust bottom of page?
I have the following file test.tex:
\documentclass[a4paper,10pt,version=last]{scrlttr2}%,fontsize=10pt
\usepackage{fontspec}% for lualatex
\usepackage{geometry}
\usepackage[latin]{babel} % for ...
1
vote
1
answer
53
views
error setting margins with geometry
I have what should be a simple question -- I am trying to set margins in my document to 1in all around. My full preamble is below. I'm rendering to pdf using the Texifier program, which I like because ...
0
votes
0
answers
27
views
enlarge multiple pages / vertical equivalent of addmargin
Is there a command to enlarge multiple pages, similar to \enlargethispage{}?
I use KOMA classes: a vertical equivalent to \begin{addmargin} could be useful if it exists.
Ex.
\enlargepage{2cm}
pages ...
0
votes
1
answer
51
views
How to place header in the corners of the page and align text with the left of the page
I'm trying to replicate the pagestyle of Griffiths's book:
What I curently have is this (the text is in spanish, ignore it)
I need help to place the headers at the corners of every page and to place ...
0
votes
1
answer
88
views
geometry errors
I can't seem to get rid of these errors, sorry for the long preamble but I can't figure out what is causing it, have tried deleting some and it goes awaybut I need them all for my overall document. ...
1
vote
1
answer
45
views
Crop package for books, with content aligned to inner margin
I am trying to use the crop package on a book document, but I would like to have a bleed area and crop marks only for the top, bottom, and outer part, not the inner one.
\documentclass{book}%
\...
0
votes
0
answers
28
views
How do i add chapter numbers in table of contents like chapter 1 introduction
How do I add chapter numbers to the table of contents, like chapter 1 introduction? I'm using the geometry package. It shows "1 introduction" i want to show it like "Chapter 1 ...
0
votes
1
answer
49
views
Set a fixed width for footer/header with fancyhdr
I'm using the geometry package for settings like textwidth and margins. fancyhdr uses the initial text geometry setting. Through my document I also change the geometry of the text layout (i.e. not the ...
0
votes
1
answer
61
views
Adjust right side text margin and header section alignment [duplicate]
I'm using Rmarkdown to produce a landscape pdf document with xelatex.
For my YAML header I'm using
output:
pdf_document:
latex_engine: xelatex
keep_tex: true
includes:
in_header: '...
0
votes
1
answer
34
views
Problem in changing paper size in tufte-book
I am using a tufte-book class. I printed some pages from my pdf document, and I noticed a wider space above and below the text, than the one I see when I display the pdf on a reader. I think this ...
0
votes
0
answers
64
views
Stacked 3D Pyramid - Modify
Sorry to come back to an old post.
I was reviewing this discussion:
Stacked 3D Pyramid
And trying to work on Guilherme's answer, where he adds shading. Following on this, I was trying to do something ...
0
votes
0
answers
49
views
Geometry package page dimensions do not scale properly
I am trying to create a latex document on overleaf web editor, there are fixed requirements for the dimensions of the document and when I use the geometry package and set those dimensions and then ...
1
vote
0
answers
47
views
Package geometry changes the layout also without options
This Load the geometry package without having it change the document margins has no answers.
I must ask the same.
I was trying to change the margins just a bit, but when I load \usepackage{geometry} ...
0
votes
0
answers
25
views
Shifting the "Contents" heading to ensure that the distance between the top of the paper and the "Contents" heading is 2.5cm
In this minimum working example, I am trying to shift the "Contents" heading to ensure that the distance between the top of the paper and the "Contents" heading is 2.5cm. I want to ...
0
votes
0
answers
45
views
Changing margins of a page without closing it in an enviroment
my thesis needs to change margins if i have to put an image on the side of the page; however, i can't use geometry package (since it has a \clearpage both at \newgeometry and \restoregeometry); ...
3
votes
2
answers
162
views
How to position tables in overlap?
I look forward to creating the following illustration:
My code:
%%% code replaced in the edit.
EDIT:
Based on the answer from @JohnKormylo, I modified my code as below:
\documentclass{article}
\...
0
votes
0
answers
71
views
Convert JPG images to PDF [duplicate]
I have multiple jpg files and I want to create a PDF with one image per page without any margin. Until now I used something like this and was enough because all images were the same size.
\...
1
vote
0
answers
49
views
What causes much emptiness at the right side of codeblocks?
I am trying to fill the codeblocks to almost all page as symmetrical as possible but something off with regular text and codeblocks placement to the page:
Snippets from my code:
\documentclass[12pt]{...
1
vote
1
answer
40
views
Change beamer size after loading a beamertemplate
I am writing the code for a beamer template. I have two different templates for the frametitle, one of them makes the frame a little asymmetric. Hence, I set the text margin left and the text margin ...
0
votes
1
answer
61
views
How do i make it so that my figure automatically conforms to geometry margins via some command or other method?
(Read before replying:) I will not replace the second picture with another example image, the point of this post is to show the problem that i faced when trying to use a real image.
i have the ...
1
vote
1
answer
445
views
This required file could not be found: geometry.sty
I am trying to set up LaTeX on my PC using TeXworks. I'm trying to run the ejc-sample.tex template from the Electronic Journal of Combinatorics:
https://www.combinatorics.org/ojs/index.php/eljc/about/...
2
votes
2
answers
256
views
Put a picture on a full page
I want to include a picture, so that it covers 100% of the page. From edge to edge, no white spaces, just the picture. I use A4 paper (European style) and the picture has also A4 format, so that ...
1
vote
1
answer
468
views
“ Infinite shrinkage found in 'page'.” in AGU template in LaTeX?
The AGU provide us the template for submitting papers, in which, there are a si_template_2019.tex for supporting information within the file. But, when run it, we can get an error
! LaTeX mark Error: ...
1
vote
0
answers
294
views
What is the best paper size for thesis, which should be printed out as a book?
recently I have been preparing to write my thesis in latex. Which is the best paper size according to your point of view for a thesis, that should be later printed as a book? If possible please ...