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
1
vote
2answers
45 views

Trigger a newgeometry starting at a certain page

I'm trying to make letters without relying on predefined classes to that effect (why not?). In the example below, I'd like the top margin to be changed to 0.75in after page 1. \documentclass[12pt]{...
0
votes
0answers
24 views

Geometry package margin inconsistent with manual margin

Can anyone please tell me why the following two snippets do not produce the same page layout?? \documentclass[12pt]{article} \textheight = 23.5cm \textwidth = 16.5cm \topmargin = 0cm \...
0
votes
1answer
22 views

How to translate and rotate the heading of landscaped pages? (revisited)

@Leo Liu's geometry patch seemed too good to be true, and as it turns out it works only once (in this case, for chapter Bar, not Qux). It there a modidification that would make it always work? Side ...
0
votes
0answers
26 views

Custom “Draft” or “Reading” mode

Currently, I was playing around with the geometry-package in order to optimize my documents format for the different "development stages". More precisely, I was hoping to arrange for the following ...
1
vote
1answer
58 views

Some page content goes beyond the page borders

I'we created such file: \documentclass[a5paper]{report} %\usepackage[showframe, margin=1cm]{geometry} \usepackage[pdftex,colorlinks=true,allcolors=blue]{hyperref} \begin{document} \paragraph{...
0
votes
0answers
23 views

How to create a blank frame with absolute positions of paragraphs and images (beamer)?

I would like to create a frame that is absolutely filled with contents of either images or paragraphs. Images should stretch for the entire space of their boxes. For paragraphs, I think it would be ...
0
votes
1answer
50 views

big \tableofcontents - bottom margin not working

When creating the table of contents via: \tableofcontents The bottom margin is not working (see screenshot). The other margins seem to work. Do you have any ideas what could went wrong? Example to ...
5
votes
1answer
79 views

How can I define a new aspectratio for beamer?

I am trying to create a template for making smartphone-compatible (VERTICAL) beamer slides in Latex. Although this can be achieved (to read in landscape mode) by \documentclass[aspectratio=169]{...
1
vote
2answers
75 views

Crop page completely

I display some nearly full page tikz(square BB's) and would like to crop the page to the image in the pdf because there is a lot of wasted space that reduces ability to show the image in higher detail....
1
vote
1answer
35 views

Query left margin of page

Obviously, TeX does know the horizontal position of the paragraphs on the paper. It is what geometry calls left. How can I access it? I suspect there is (or one can define) a simple length register, ...
5
votes
1answer
99 views

What is the showframe option to geometry showing me?

I have compiled a document with \usepackage[showframe]{geometry} to produce the document below with some dimensions of interest annotated in red. What is the difference between dimensions a and b, ...
2
votes
1answer
55 views

is there an equivalent for the geometry package's 'showframe' to see where vertical spaces come from?

I'm in the process of making a somewhat complex automated report that combines a variety of different floats, etc. For instance, I have a case where I have: \documentclass{article} \usepackage{...
1
vote
1answer
37 views

Description with Vbox Seems to Ignore Margins

I have searched a few times, and have not found anything on here which fixes my issue. Essentially, I am using the geometry package with a margin of 0.75in; however, when I use the vbox with a ...
0
votes
0answers
18 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
29 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
63 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
58 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
197 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
104 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
48 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
83 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
502 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
49 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
132 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
89 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
241 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
45 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
59 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
70 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
270 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
49 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
149 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
19 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
130 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
15 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 ...
6
votes
2answers
366 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
52 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
50 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
121 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
47 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
78 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
55 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
137 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
162 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
49 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 ...
2
votes
1answer
125 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,...
1
vote
1answer
272 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
88 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
36 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
32 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 ...

1
2
3 4 5
17