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
3
votes
1answer
84 views

How can I change the margins of a page depending on its number with luatex?

For some reasons, I have a 100+ pages LaTeX document that I'm required to format the following way: if \thepage = 1 (modulo 4) then margins must be set to 5cm; if \thepage = 2 (modulo 4) then margins ...
0
votes
1answer
74 views

Alter geometry for 2 pages after new chapter

Within a twoside, twocolumn document, I'm trying to create a new chapter command, which alters the page geometry for the left-side page the chapter is started on and the right-side page after. Both ...
2
votes
2answers
111 views

uptex utarticle class and geometry package and setup

I try to define a specific geometry for a project using the geometry package. I have no issue when using the ujarticle from uptex, but everything gone wrong when using the utarticle class. (utarticle ...
3
votes
1answer
79 views

Page size only 99.6264% of the true requested size

I recently found that if you use the \geometry package to change the page size, then the actual page size is only 99.6264% of the requested page size. Here's a minimal working example: \documentclass{...
3
votes
1answer
46 views

Create a centered image with \textwidth in a tikzpicture

I want to place a tikzpicture in landscape mode in the center of an A4 page. However, I can't use the \textwidth and \textheight commands because this will result in overfull \hbox... or overfull \...
1
vote
1answer
99 views

Set TrimBox to geometry's layout area

\documentclass{article} \usepackage{geometry} \geometry{ paperwidth=10cm , paperheight=10cm , layoutwidth=5cm , layoutheight=5cm , layouthoffset=25mm , layoutvoffset=25mm , ...
1
vote
1answer
42 views

Single page with huge figure [duplicate]

I'm writing a paper and I want to insert a figure that should occupy a whole page. Moreover, the figure has small details, so I want to reduce the margins in that page. On the other pages I'd like to ...
0
votes
0answers
24 views

Allow text (or image) to exceed bottom margin by a bit

I would like some text, image, or whatever, to be allowed to run into the bottom margin, for one page (or environment) only. I would like to keep this simple, and maintain consistent paragraph spacing ...
0
votes
0answers
37 views

Newgeometry in memoir, different results in different pages

I'm trying to create a document with the memoir class. The document needs to have a specific header and footer on the first page, and a different header and footer on the rest of the document. I have ...
0
votes
0answers
19 views

Trying to get margins right

I need my document look like as the one in the following screenshot: Right now, mine look like it’s right shifted. I’m using book class. MWE: \documentclass[a4paper,oneside]{book} \usepackage{...
0
votes
2answers
61 views

How to set up two-sided geometry for physical cropping of just two edges?

I'm trying to print a two-sided document on physical paper that is too large, which I will then cut to its final dimensions. I wish to cut each sheet of paper just twice, so I am trying to place all ...
1
vote
2answers
221 views

How to put image into the margin corner?

Given geometry margins like \geometry{left=20mm, right=20mm, top=20mm, bottom=20mm} what's the right way to put (as a top overlay) an image right into the margins' top right corner (but not onto ...
1
vote
1answer
129 views

adjustwidth, but automatically switching margins

Is there an existing package that does the same thing as adjustwidth from changepage, but automatically switches inner and outer margins? MWE: \documentclass[twoside]{book} \usepackage{multicol} \...
0
votes
0answers
18 views

article twoside margins different to oneside [duplicate]

I'm writing a paper for my Bachelor graduation. First i used oneside: \documentclass[a4paper, 11pt, headsepline, footsepline, onside]{article} \usepackage[verbose, showframe, left=2.5cm,right=2.5cm,...
1
vote
0answers
42 views

Header in Middle of Top Rule

I am trying to create a header so that it looks like the image below such that the header is not right on top of the first line However, I played with the dimensions on this MWE and can't seem to get ...
0
votes
1answer
30 views

Prevent Header from Mashing with Text

I am writing a document with standard margins set by the fullpage package. However, I am also trying to use fancyhdr to embed a header. Yet, when I print this, the header runs into the first line of ...
4
votes
2answers
113 views

exam/geometry: How to use \iflastpage to change the geometry of the last page?

How to make \iflastpage{\newgeometry{bottom=40mm}}{} work to have a specific bottom offset for only the last page? \documentclass{exam} \usepackage[14pt]{extsizes} \usepackage{lipsum} \usepackage[...
1
vote
2answers
71 views

Is it possible to define a different page layout for every chapter title page for example?

I attempted to produce a book document that has the following specifications: A narrow content at the first page of each chapter, but the width of the chapter title is as wide as \textwidth. A sided ...
0
votes
0answers
53 views

Margin inconsistencies

So in my document I defined the left margin as 3cm and right as 2.5. would there be any reason for the margin to come out as nearly 3.5 and 3 when measuring the printed document? %Document ...
1
vote
2answers
72 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
1answer
23 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 ...
1
vote
1answer
96 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{...
1
vote
1answer
45 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
54 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 ...
6
votes
2answers
155 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
99 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
46 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, ...
6
votes
1answer
230 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
67 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
43 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
1answer
38 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
75 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
66 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 ...
5
votes
1answer
481 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
210 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
63 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
128 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
2k 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
55 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
263 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
122 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
510 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
60 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
130 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
95 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
548 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 ...
1
vote
0answers
276 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[...
2
votes
2answers
190 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
16 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
382 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 2
3
4 5
18