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
1answer
34 views

geometry: Calculate the fillable vertical space for a tcolorbox of vertical leaders

For the last page, a new sentence is typed above the footer that resulted in overlapping with the tcolorbox. Therefore, I would like to make tcolorbox calculate the fillable vertical space of the ...
1
vote
0answers
46 views

Different A4 paper size in XeLaTeX compared to LuaLaTeX and pdfLaTeX

If I compile my document (see below for MWE) with XeLaTeX I get a pagesize of 595.28 x 841.89 pts. If I compile the same document using LuaLaTeX or pdfLaTex I get a page size of 595.276 x 841.89 pts. ...
0
votes
0answers
15 views

Custom firstpage using geometry does not reset height

I'm in the last stage of making an Agenda template for a Study Association. The last thing I want to fix is the spacing of the pages. As the first page of the agenda has a header, the spacing (and ...
1
vote
1answer
50 views

How to compile geometry layout twice on one page?

I'm designing an invitation card with the geometry package. My content fits twice on an A4 sheet, so I'd like to save half the paper. How can have each page content twice per page? Here's my code: \...
0
votes
1answer
22 views

flowfram staticframe not reaching full page height

I'm setting up a layout for a A3-sized poster with a few static frames. For some reason I can't seem to have the top line up with the page, and I don't know where the problem might be. I'm also ...
2
votes
2answers
49 views

Metapost rotating labels around their center rather than the origin

Currently I am trying to to rotate some labels so that they match the orientation of lines in a diagram. For example like this: The problem with that example is that the label was rotated around ...
3
votes
3answers
129 views

How to draw a cone with two regions separated?

I can generate a cone with a circular base but I have no idea as to how to mark another cone within it. The end result I am aiming for looks like the following image.
2
votes
1answer
51 views

Metapost, rotation function not working

I am trying to rotate a vector by an angle as follows: u:=2cm; vardef rotate(expr p, t)= x := xpart(p); y := ypart(p); (cosd(t)*x - sind(t)*y, sind(t)*x + cosd(t)*y) enddef; vardef ...
0
votes
1answer
36 views

How to minimize the pagesize?

is there a way to generate a (single-page) PDF with pagesize that is just large enough for the text that I want to display? Perhaps something along these lines: \documentclass{article} \...
1
vote
1answer
45 views

Putting something at the very page border

I want to push a minipage right at the left border of the page. I understood, that \leftmargin should be the distance between the page border and the text body. So using a negative hspace of that ...
0
votes
0answers
23 views

How to properly subdivide Page into two areas with different geometry?

The document i'm trying to create has two pages. The first one should be divided into two areas, the first area should reach from the middle of the page to it's borders - no margins whatsoever. The ...
0
votes
2answers
90 views

Layout book with /geometry package

I need help creating a layout for a book. This is very difficult for me because I have never experienced this, so I ask if someone can help me. I read that /geometry is used to get the page margins ...
0
votes
0answers
31 views

Change page geometry for a four-sided (not two-sided) document

I want to have different page geometry for pages 4n+1 and 4n+2, and 4n+3 and 4n+4. I want this is because I print two pages per page, with front and back side, i.e. 4 pages per sheet. When filing the ...
4
votes
1answer
106 views

Dynamic filling the writable textheight by horizontal rules page-by-page

For the following, how to calculate the number of horizontal rules (i.e. 19 and 11) based on the remaining writable textheight for each page? \documentclass{exam} \usepackage[ a4paper, left = 10 mm, ...
2
votes
1answer
40 views

Divide a page into smaller parts with tcolorbox features

I want to have an A4 size paper, split it to 8 equal parts and each part have features of tcolorbox package. Using the codes for the other question on TeX.SE, I have prepared this, but the height of ...
0
votes
1answer
23 views

Includehead loaded and zero headheight by default

I don't know why i'm getting the current layout This is my whole preamble \documentclass[spanish,mexico,11pt]{article} \usepackage[utf8]{inputenc} \usepackage{hyperref} \usepackage{babel} \...
2
votes
1answer
168 views

Exam paper in A3 booklet format

I use the exam class for my tests. I usually give them in a booklet format which is the folded version of A3 paper. Here is a sample 4-page test: \documentclass[addpoints, 10pt, a4paper]{exam} %\...
3
votes
1answer
68 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
48 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
68 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
72 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{...
2
votes
1answer
31 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
54 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
35 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
22 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
21 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

The margin of an Abstract [duplicate]

Please, how do I set the margin of my abstract to fit an a4paper. I used package geometry \newgeometry(vmargin=15mm)) for the main document
0
votes
0answers
17 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
55 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
90 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
34 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
15 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
36 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
19 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
81 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
43 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
38 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
39 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
20 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
57 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
21 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
71 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
72 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....
0
votes
1answer
32 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
86 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
50 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
36 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 ...

1 2 3 4 5 16