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.

Filter by
Sorted by
Tagged with
0
votes
0answers
13 views

How to customize the page number to match a completely monospace document

As per My font is monospace, will Latex treat it as monospace, or what do I do?, I'm wondering how I can get the pagination to be on the right bottom corner so that it always is aligned with the ...
0
votes
1answer
11 views

Make headsep larger if section starts on a new page

I'm using the KOMA-script scrartcl class with the geometry package and would like to have my sections (which always start on a new page) have some extra vertical spacing between the headsepline, but I ...
0
votes
0answers
40 views

Restoring Geometry in Latex

I want that the chapters start on even pages, so I used twoside with open right command but it made the \restoregeometry not work on even pages. Can anybody help me fixing this ? \documentclass[...
0
votes
0answers
37 views

\usepackage{geometry} not working with \maketitle

Have an odd (as in 'weird', not measurement) size printing requirement, and using the \geometry package to create the new page size. The problem is that \maketitle is creating a default US-Letter ...
4
votes
1answer
43 views

Changing \headheight pushes footer off page

Preface: NOT a duplicate of My footer disappears when I increase headheight - I tried the accepted answer here and still ran into issues. I am using Overleaf to create some documentation for ...
3
votes
3answers
50 views

Geometry and Footskip: Footer wrong placed

I am writing simple LaTeX documents with just sections and text in between (in general), but I have some problems placing the footer correctly. My header comes from a template I have downloaded ages ...
1
vote
1answer
35 views

\loadgeometry from \geometry-package leads to misplaced \marginpars (twoside)

I am currently working on a new LaTeX layout for a scientific open-access journal. It is a twoside layout wich makes use of marginpars. The special feature is that the frontmatter has a different page ...
3
votes
1answer
53 views

Getting a tikz picture in a fancyheader for only the first page

I'm trying to insert a tikzpicture in the header of the first page of the document. If I place the tikz picture in the declaration of my \fancypagestyle{my1stpagestyle}, then the figure is indeed ...
0
votes
2answers
32 views

Package keyval Error: letter undefined

I have no idea what's causing this, I have about 1800 lines of code, and no idea where the problem is. Could someone explain what the keyval package is, and what this error could possibly mean?
1
vote
1answer
39 views

Reledmac / geometry: text going over bottom margin

I am struggling to have a text typeset within a specific frame. However, this is not the case. As you can see from the example I have attached, the text goes beyond the bottom margin. I'm not sure if ...
0
votes
1answer
56 views

Distance between top (or bottom) margin and header (or footer)

I am preparing a camera-ready book. My publisher has given me a stylesheet that is based on a Microsoft Word template. I am having trouble setting the exact measurements of the sheet with the geometry ...
3
votes
2answers
58 views

Geometry per section level?

Is it possible to have different geometries on different section levels, assuming always that you can guarantee they are on different pages. It may sound weird, but let me illustrate with a case where ...
1
vote
1answer
62 views

letterpaper margin to a4paper margin

I have a document typeset in letter paper size. I obtained it with the fullpage package, which sets all 4 margins to be 1 inch. Now I would like to use the a4paper option, but keeping exactly the ...
1
vote
0answers
40 views

How to Alternate Geometry Layouts With \atbegshi [closed]

... A documentation question ... Question: Is \AtBeginShipoutNext from the atbegshi package intended to "exceptionally" apply to a single printed page? Or, would this not even work with the ...
1
vote
1answer
29 views

different page geometry for image

I am writting in latex I have very thin page style (I want to keep it that way) but I have very wide image How do I change geometry for image only not text \documentclass[11pt, a4paper]{article} \...
0
votes
1answer
46 views

Evenly spaced boxes filling the whole page

I'm trying to vertically fill the whole height of a page with 3 evenly spaced boxes. This is what I have now \documentclass{article} \usepackage[showframe]{geometry} \usepackage[many]{tcolorbox} \...
0
votes
1answer
65 views

Different inner/outer margins on odd/even pages using Geometry [duplicate]

I'm trying to typeset a book (actually, a dictionary) but keep having trouble setting equal inner and outer margins on both even and odd pages. I have done it numerous times before, but this time ...
0
votes
0answers
39 views

header and footer appear different on first page

I want to create a document that has the same header and footer on each page, but when compiling, the pdf shows a different header and footer on the first page as that which appears on the remaining ...
1
vote
0answers
45 views

How to avoid a page break with \newgeometry and \restoregeometry

I want what the following code does, but with no page break when \newgeometry or \restoregeometry are issued. Is that possible? \documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[...
0
votes
0answers
18 views

Text runs out of the page after vspace

Could someone please help me with avoiding the text running out of the page, crossing the footer area, after \vspace (see pages 1, 2 and 4): \documentclass[12pt]{article} \usepackage{lipsum} \...
2
votes
2answers
58 views

Tikz show the corner coordinates of a rectangle

I use the following Latex script \documentclass{article} \usepackage{tikz,xcolor} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture} \filldraw[fill=gray!40!white, draw=black] (0,0) ...
0
votes
0answers
13 views

Text is printed at weird positions in some (sub)sections [duplicate]

I'm writing a realively normal document. I just adjusted it to print it double sided. Now a few pages have weird placement of text and images. Notice that the text should be directly under the section ...
5
votes
2answers
355 views

Geometry affects line breaking

This one has me stumped. The idea is to pack boxes (in this case, \rule) together tightly while allowing them to break at the end of a line. It works without geometry, but not with. Another package ...
1
vote
1answer
27 views

Enlarge first page text area when using different footer for first/following pages in KOMA script

I want to configure a different footer for the first page of a letter than for the following pages. I am using the geometry-package to define the text area and the position of the footer for the ...
3
votes
1answer
41 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
68 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
27 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} \...
1
vote
1answer
61 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
30 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
50 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
49 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
39 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
27 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
37 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
85 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
56 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
22 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
20 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 ...
4
votes
2answers
122 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
54 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
32 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
26 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
22 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
22 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
34 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
80 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 ...
1
vote
1answer
58 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
37 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
48 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 ...