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.

92 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
480 views

Does memoir and geometry mix well?

I have somewhere along the way gotten the impression that the geometry package and the memoir class handles the page-setup a bit differently, but I have also gotten the impression that they do not mix ...
5
votes
0answers
835 views

Newgeometry changes all document

I am trying to set different margins for some pages of my Thesis. Essentially, I want some pages to have larger margins, since they contain big tables. I use the \input command to include big Tables ...
4
votes
0answers
161 views

Shrink student's book page to add comment to teacher in textbook

we are writing a school textbook and the corresponding teacher's book. The student's book template is good already, so let me explain what I would like to have for the teacher's book. Each page of ...
3
votes
0answers
548 views

How to prevent page break in using \newgeometry

Is available to use newgeometry command with nopagebreak? \documentclass{article} \usepackage[left=5cm,right=5cm,top=2.5cm,bottom=2cm]{geometry} \usepackage{xcolor} \usepackage{lipsum} \begin{...
3
votes
0answers
353 views

Is there any alternative to geometry package to set margins?

I'm trying to change the size of the top margin for one specific page in a large document and I do not want to use the geometry package. Moreover, placing \vspace{-x} on top does not work for me ...
3
votes
0answers
197 views

Full Bleed TikZ with Crop and Registration Marks

I've created some card-sized pages that I now need to adapt for full-bleed printing and trimming. Here's an MWE: \documentclass[border=0in, multi=tikzpicture, varwidth=false]{standalone} \usepackage{...
3
votes
0answers
193 views

Geometry package unexpected interaction with global twoside option and baselinestretch

The gif animation is obtained with the following tex code (by commenting out and restoring the corresponding parts of the preamble) and demonstrates that if twoside option is supplied as a global one (...
2
votes
0answers
120 views

Different top and bottom margins for odd or even pages

I have a two-sided landscape document that I intend to bind on the long (top/bottom) edge. To leave space for the binding, I would like a larger top margin on odd-numbered pages and a larger bottom ...
2
votes
0answers
33 views

Accurately remove whitespace introduced by footer on only the first page

I have a document that has text that very nearly reaches the limits of the page geometry (the document has one centimeter margins). I have a footer (using fancyhdr) on all pages except the first by ...
2
votes
0answers
36 views

xetex – Text goes beyond the margin

I am using geometry to set my margins, polyglossia for hyphenation patterns and xetex for compiling. Here is my code \documentclass[12pt]{extarticle} \usepackage[xetex]{geometry} \geometry{ ...
2
votes
0answers
62 views

Header image with automatically adjusted margin

I am producing a two-column document that will have full page-width header images on various pages. \documentclass[12pt,a4paper,twocolumn]{article} \usepackage{graphicx,tikz,lipsum,fancyhdr} \...
2
votes
0answers
77 views

Alter single margin using Geometry package

I want to adjust only the top margin (using Article class). All other margins should remain the same. How do I use the geometry package to do this? As soon as I load the geometry package it changes ...
2
votes
0answers
472 views

Changing page margin of floating sidewaystable

I have a large table that I want to put sideways. Also to fit it on one page I want to reduce the page margins. One solution to change the margins is to redefine them with \newgeometry (followed by \...
2
votes
0answers
109 views

Include marginless pdf into article with altering margins

Situation: I've an article with altering page margins using the twopage option. The margins were set by the geometry package. Goal: I want to inject a pdf, which has no margins at all, into my ...
2
votes
0answers
244 views

no line breaking in mdframed with geometry package

I am trying to include a python code (within a colored mdframed box) into my tex file. However, I noticed that when I use the geometry package simultaniously with mdframed and fancyhdr, two things ...
2
votes
0answers
2k views

How to set proper paper margins?

I am trying to send a paper to a conference with specific margin requirements. I use the geometry package to define the margins. \usepackage[papersize={8.5in,11in}, left=1in, right=1in, top=1in, ...
2
votes
1answer
1k views

How to change margin for first page of Bibliography Only

I need the top margin to be 2 inches on the first page of my Bibliography and all subsequent pages in the Bibliography to have 1 inch top margins. I am using BibTeX to manage my references and using ...
2
votes
0answers
2k views

How to fix the geometry error: \paperwidth too short when using the savetrees package with sig-alternate

I am trying to use the savetrees package with the sig-alternate class but I am receiving the following error: /usr/local/texlive/2014/texmf-dist/tex/latex/geometry/geometry.sty ! Package geometry ...
2
votes
0answers
889 views

How to set a binding offset with tufte-book class?

I'm typesetting a book using the tufte-book class. For printing I need to set a binding offset (say, 0.5in). However, I can't seem to get this to work using the geometry package settings as one would ...
2
votes
0answers
183 views

Using a switch to pass an option

I created a switch which is defined iff a new geometry should be twosided. Currently, my code looks like this: \ifdefined\@TwosideSwitch% \typeout{SwitchGiven!}% \newgeometry{twoside=true, ...}% \...
2
votes
0answers
130 views

Why does increasing hscale produce overfull hbox?

I would like help understanding why increasing the proportion of the page available for text produces an overfull \hbox error. In the output, this results in my preliminary markers being skewed right. ...
1
vote
0answers
23 views

inner/outer equivalent for top/bottom in landscape, two-sided document

I want to create a document in landscape and bind it on the long side, therefore I want to use different margins for top and bottom margins on odd/even pages, but I only found the inner and outer ...
1
vote
0answers
53 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. ...
1
vote
0answers
38 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 ...
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, ...
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 ...
1
vote
0answers
148 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[...
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, ...
1
vote
0answers
30 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
98 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
0answers
161 views

Override margin settings of revtex4

I would like to modify the left and right margins around the table in the following "code": \documentclass[a4paper,preprint,aps,unsortedaddress]{revtex4} \usepackage[top=2.5cm,bottom=2.5cm,left=3.5cm,...
1
vote
0answers
128 views

Marginnote Large Fonts are Misaligned from Text

I am still in the process of making a similar style kind of book to https://fac.ksu.edu.sa/sites/default/files/numerical_analysis_9th.pdf. This mostly includes having section numbers as well as ...
1
vote
0answers
70 views

Mimicking Latex Style

I recently stumbled across the mathematics textbook Numerical Analysis 9th edition by Burden and Faires and I thoroughly enjoyed the style of it. I was able to find a link too here: https://fac.ksu....
1
vote
0answers
49 views

showframe package exceeds few points in right side

My tags are follows: \documentclass{book} \usepackage{lipsum} \usepackage{showframe} \makeatletter \renewcommand\normalsize{% \@setfontsize\normalsize{10.9}{14}% \abovedisplayskip 7\p@ plus2\...
1
vote
0answers
129 views

eso-pic code for page ornament changing geometry custom page settings to US-Letter

I am trying to use this page decorating code given in this answer. But using this is ignoring my geometry page setting and changing page dimensions to US-Letter. How to debug this? How to correct this?...
1
vote
0answers
58 views

A3 landscape paper inside A4 report

I'm trying to find a way to incorporate an A3 landscape page in my report. I found a way using \newgeometry, but the problem here is, I can't get it to return to my preamble settings after using it. I ...
1
vote
0answers
129 views

Issue with pdfx and geometry package

I seem to have a problem when I want to use both geometry and pdfx package together. In detail, I want to change the margins of one page, because the table is much too large. I do not want to argue, ...
1
vote
0answers
64 views

Allocate margin for sidenotes only if there is one

Is is it possible to have a setup such that the margin allocated for page layout will be used only if there is a margin note on a given page, otherwise the page flow will be normal, as if there is no ...
1
vote
0answers
216 views

How do I restore geometry from the second page of a section or chapter?

My thesis template requires 2in top, 1in left, 1in right, and 1in bottom only on the page where a section begins. From the next page, I need to restore my default settings: 1in top, 1in bottom, 1in ...
1
vote
0answers
264 views

Setting specfic margins for thesis in Latex

I am required to have a full binding margin of 40 mm on the left side of odd pages and the right side of even pages - other margins must be 25mm minimum. I have typed: \usepackage{geometry} \...
1
vote
0answers
176 views

How to measure in pixels and compile with Xetex?

For some reason, I have to use pixels as a unit of measurement, and compile with Xetex, which entails the following error I am trying to overcome: Illegal unit of measure (pt inserted). \Gm@process ...
1
vote
0answers
89 views

Why does \pdfpageattr not center its boxes?

Some printer services dictate to add a 3mm bleeding margin around the document in order to achieve marginless printing. I tried to use the pdfpageattr command to achieve that for my A4 document: \...
1
vote
0answers
1k views

geometry - adjust textwidth to new margins

\documentclass[11pt]{article} \usepackage[a4paper, portrait, margin=1in]{geometry} \usepackage{adjustbox} \usepackage{tabularx} \usepackage{booktabs,csvsimple} \usepackage{pdflscape} [...] \begin{...
1
vote
0answers
184 views

Geometry: Making the Bleed visible together with paper/margin box

How can I draw a frame around the bleed, page and margin. I need this to fix some (margin/page) issues. Consider the MWE below. This is already drawing a box around the page and margin. How can I ...
1
vote
0answers
246 views

Can't change papersize even with geometry

I'm writing my thesis. To be printed, the paper must have a height of 24cm and a width of 16cm. The margins must be of 2cm. \geometry{paperheight=24cm,paperwidth=16cm,centering,textheight=20cm,...
1
vote
0answers
462 views

geometry's bindingoffset seems to be ignored

The geometry's documentation tells: page 9: "bindingoffset removes a specified space from the lefthand-side of the page for oneside or the inner-side for twoside.", page 10 (caption of Figure 6): "...
1
vote
0answers
99 views

Page margins in .Rtex

I'm using ShareLatex to write my thesis (which relies heavily on R) but the page size changes when I set my document to "main.Rtex" instead of "main.tex". I provide a minimal example so you can check ...
1
vote
0answers
56 views

How to lock some part of marginpar area?

Consider the following layout. I'd like to lock some part of marginpar area. For example, after 6cm from the top, skip 4cm and the margin area continues below.
1
vote
0answers
189 views

Spacing within a box, relative to the page

I am attempting to place a textbox precisely 75mm from the top edge of a page (to correspond with a cut-out on the cover). On printing this out, I noticed I was getting positioning problems, so got ...
0
votes
0answers
19 views

How to modify the total width in a tufte-book using includemp?

I'am working on a tufte-book document class and I want to change the size of the page. As the page are smaller, I want to fix the total width of the text (including the marginal notes). In the ...