Questions tagged [margins]

{margins} is about dealing with (above all, changing) the margins of (whole) pages and, conversely, the width and height of the textblock and its positioning on the page. Popular packages are {geometry} and {typearea}. For changing the "margins" in the middle of a page, use {indentation} instead.

Filter by
Sorted by
Tagged with
1 vote
1 answer
35 views

error setting margins with geometry

I have what should be a simple question -- I am trying to set margins in my document to 1in all around. My full preamble is below. I'm rendering to pdf using the Texifier program, which I like because ...
user318234's user avatar
1 vote
1 answer
25 views

Strict top margin with align and \allowdisplaybreaks

In the following LaTeX document, which uses the align environment with \allowdisplaybreaks, the second equation extends into the top margin: \documentclass[a4paper]{article} \usepackage{amsmath} \...
usertcl's user avatar
  • 43
0 votes
1 answer
38 views

XeLatex equations and content placement between lines

How I make sure in the following template to place the equations and the statments to be exactly between the lines. They never come over any lines always in between the lines and on the right of the ...
Raja Ali Riaz's user avatar
0 votes
0 answers
13 views

Table goes out of the border [duplicate]

I have the following table: \begin{table}[htb!] \begin{center} \caption{Material model parameters for the FeFEHM components} \label{table:T1} \begin{tabular}{c c c cccccc} \...
Carlos Gabriel Cardoso's user avatar
0 votes
1 answer
50 views

Figure spans into wrong margin (tufte style)

Fully compilable code here. I am placing a figure with \newcommand{\plainwidefig}[5][!htb]{% \FloatBarrier% \begin{figure*}[#1]% {\includegraphics[width=#2\linewidth, left]{#3}}% ...
Ax11's user avatar
  • 15
0 votes
1 answer
21 views

Page numbering at the bottom right of the page, when the page margin is extremely small

This is a follow-up from Page numbering at the bottom right of the page, when the page margin is very small. Based on the solution provided by @David Carlisle (related to the page numbering at the ...
Ommo's user avatar
  • 835
1 vote
1 answer
33 views

Page numbering at the bottom right of the page, when the page margin is very small

How to add the page numbering at the bottom right of the page, when the page margin is very small? \documentclass{article} \usepackage[a4paper,margin=2mm]{geometry} \usepackage{lipsum} \begin{...
Ommo's user avatar
  • 835
0 votes
1 answer
36 views

\forceversofloat not working in symmetric tufte-book

I am getting desperate. I am writing a tufte-book class document with the symmetric option and all figures and tables on even pages are centered as if they were on an odd page. The caption is always ...
Djbat's user avatar
  • 3
1 vote
1 answer
15 views

Add a long text in a longtblr spanning the entire width of the table

Given the following table: \documentclass{article} \usepackage[a4paper,margin=1mm]{geometry} \usepackage{lipsum} \usepackage{tabularray} \begin{document} \begin{longtblr} [presep=-4pt,postsep=...
Ommo's user avatar
  • 835
2 votes
1 answer
29 views

LyX: pdflatex does not put both header and footer text with page number

Using TeXLive/2023 (updated today) on Slackware linux and LyX-2.3.6.1. The document class is KOMA-Script Report. I used to have the pdflatex output display text in the page headers and footers with ...
Rich Shepard's user avatar
0 votes
1 answer
30 views

Problem in changing paper size in tufte-book

I am using a tufte-book class. I printed some pages from my pdf document, and I noticed a wider space above and below the text, than the one I see when I display the pdf on a reader. I think this ...
captfr's user avatar
  • 3
0 votes
1 answer
68 views

right margin does not work

with this code \documentclass[11pt]{article} \usepackage{array} %\usepackage{multirow} \usepackage{blindtext} \usepackage{lipsum} \usepackage{geometry} \geometry{ a3paper, total={297mm,420mm}, ...
RenatoP's user avatar
  • 791
1 vote
1 answer
40 views

Roman numerals, titletoc and hyperlinks

My sections use roman numbers. But when they display in the TOC, the sections labels overtake on the left margin. I tried fixing it with the dottedcontents command but then the hyperlink disappears ...
Enevevet's user avatar
  • 772
1 vote
0 answers
18 views

Positioning or margin problem in a0poster.cls [closed]

I‘d like to build a template for posters with a0poster.cls (https://www.ctan.org/tex-archive/macros/latex/contrib/a0poster) and started setting up the background. Why are the positioning commands not ...
Alex's user avatar
  • 373
2 votes
1 answer
34 views

Align a figure to the left in a column in beamer

The frame is divided into two columns, and both columns contain figures. However, the space on the left side of the first column is too large (as indicated in the image), and I would like to push the ...
Tarek Acila's user avatar
1 vote
1 answer
93 views

Stock size, trim size, bleed area, safety margin -- Memoir

Problem: I'm self-publishing through BookVault (switched from Amazon KDP) and have the following BookVault template for the text: Using the Memoir package I use \setstocksize{285mm}{222mm} to set the ...
E2R0NS's user avatar
  • 289
1 vote
1 answer
44 views

How to set the distance between the top of the page and the table of contents, list of figures and tables to 2.5cm

I tried using the following codes to set the distance between the top of the page and the table of contents, list of figures and tables to 2.5cm, but it fails to work. I need help with an adjustment ...
Abdulhafeez Ayinde Abdulsalam's user avatar
0 votes
1 answer
69 views

leave an inch by inch margin -- top right

I'm doing a very plain TeX file. I'm using it to put a lot of notes onto a page; however, it's required that I have about an inch by inch box of margin on the top right of the very first place (my ...
user129393192's user avatar
0 votes
0 answers
40 views

Changing margins of a page without closing it in an enviroment

my thesis needs to change margins if i have to put an image on the side of the page; however, i can't use geometry package (since it has a \clearpage both at \newgeometry and \restoregeometry); ...
Khalni's user avatar
  • 1
0 votes
2 answers
53 views

How to set different margin (not mirroring) for even and odd pages?

I'm a beginner in Latex and I want to create a file with different margins on even and odd pages, like in the picture. How can I do it?
kimura's user avatar
  • 1
1 vote
1 answer
39 views

Change beamer size after loading a beamertemplate

I am writing the code for a beamer template. I have two different templates for the frametitle, one of them makes the frame a little asymmetric. Hence, I set the text margin left and the text margin ...
totallyimmersed9's user avatar
1 vote
1 answer
26 views

Footnotes and figures exceed margin [duplicate]

I must have messed something up with the packages that I load. Figures and footnotes exceed the margin of the text. Anybody knows why? See the MWE below which includes my full preamble. Some of that ...
Papayapap's user avatar
  • 421
1 vote
0 answers
21 views

Algorithm2e does not respect text width when used with exam class [duplicate]

As you can see on the picture, the algorithm environment (from package algorithm2e) does not respect the text width when it is used inside exam questions. Actually, it exceeds the right margin: \...
Lava's user avatar
  • 11
0 votes
0 answers
54 views

Adjust margins between math section and text

How can one adjust the margin between a math environment (like align*) and the text that comes after? E.g. I want the following look but the default settings give me \documentclass{article} \...
Richard's user avatar
  • 210
0 votes
1 answer
35 views

Adjusting Wide Multicolumn Table to Fit Within Page Margins

I've created a table in LaTeX using the booktabs package, but it exceeds the page margins when compiled. The table uses multicolumns. I need to maintain the readability of the content while ensuring ...
HAITHEM's user avatar
  • 399
2 votes
1 answer
394 views

How can I convert my document similar to this one

\ Few days ago, I found these note, and I got impressed with the style in which these notes are written. I also wanted to make my (math) notes like this. But I am a beginner, in latex (overleaf), so I ...
Afzal's user avatar
  • 123
0 votes
2 answers
93 views

From two-columns portrait to one-column landscape: Force the text and the page number (in the landscape mode) to the left margin

Please help me force the text Hola and the page number 2 to the top-left margin of the rotated page in the next code. Note: I am working with a two-column portrait document and need a temporary change ...
alexyshr's user avatar
-1 votes
1 answer
56 views

tikz \draw going beyond page margins [closed]

I am trying to have a specific figure fit within the required margins. I drew 2 lines with the text "Reconstruction" and "Forecasting" as shown below but they somehow ignore the ...
Kong's user avatar
  • 2,313
0 votes
0 answers
32 views

Add margin top to all figures [duplicate]

How can I add a margin (white space) on top of ALL figures? Say, 1 cm or so. Note that I don't want to separate the figure from the page margin, I want to add a top margin to the figures. As example, ...
user171780's user avatar
1 vote
1 answer
42 views

increase inner gutter margin, but reduce outer margin for KomaScript-Book with Lyx

I know this question has been asked many times over the years but I can't find any that answer the second requirement. I have spent months preparing a book with Lyx using KomaScript-Book at 5"x9&...
Penelope's user avatar
  • 185
0 votes
1 answer
23 views

Applying Different Header and Margins to the First Page (not title page) of a Multi-page LaTeX Document

How can I set up a LaTeX document where the first page has a specific header and unique margins, different from those on the second page, without manually specifying where the second page begins? I'm ...
MKali's user avatar
  • 43
0 votes
0 answers
108 views

Second Column on First Page Going Off the Page

I am trying to use the PNAS template for an assignment. Using some other posts on here I've painfully managed to get the formatting to work everywhere apart from the first page. I want a two column ...
Alexandre Bloch's user avatar
2 votes
1 answer
60 views

How to create space between block and paragraph

I am preparing a Latex Beamer presentation using the metropolis theme. The output looks good except one problem; in the definition block, there is no space between the text and the border of the block,...
Saïd Maanan's user avatar
0 votes
1 answer
46 views

Cannot affect page-margin sizes in KOMA2 Letter [closed]

No matter, what values I set in the Document->Settings->Page Margins, the PDF is rendered with the (very large) margins anyway. I'm not trying to save paper, but the lack of the remaining width ...
Mikhail T.'s user avatar
1 vote
0 answers
83 views

Shaping the text area rather than the paragraph

I would like to be able to define a text area shape for a given page. In effect, the text in the text area (or lists, equations, etc) would be shifted around as if the margins of the page were changed ...
humble_hacker's user avatar
0 votes
1 answer
109 views

Adjust the margins of a book document class

I used to use this \documentclass[a4paper, 12pt, oneside, openany]{book} \usepackage{setspace} \onehalfspacing \usepackage{geometry} \geometry{ paperwidth=210mm, paperheight=297mm, left=35mm, ...
b.als's user avatar
  • 25
1 vote
2 answers
106 views

How to customize margin in only one page?

In the latex template below, I need to reduce the right and left margins ONLY on the title page: Latex template: University of Oxford Mathematical Institute PhD Thesis Template NOTE: the approach ...
Questioner's user avatar
0 votes
1 answer
26 views

Page layout is traversing using geometry package

I wanted to add 1.25 inch gap on left margin. \documentclass[12pt]{book} \usepackage[utf8]{inputenc} \usepackage{blindtext} \usepackage[a4paper]{geometry} \geometry{ a4paper, left=1.25 in, top=1 ...
Duck_duck_go's user avatar
0 votes
1 answer
60 views

Number paragraphs independently in margin in LyX

I would like to change the style of Paragraphs in LyX as follows: They should be numbered, with sequential numbers in the entire document (regardless of sections, subsections etc.) starting from 1, 2,...
noxewa's user avatar
  • 65
2 votes
1 answer
46 views

How can I create the following table with the mentioned specifications?

I am having trouble creating a table on Overleaf which was already created in Word. The table has 10 rows, but knowing how to producte the first 2-3 rows will be sufficient to reproduce myslef the ...
Ela's user avatar
  • 23
1 vote
1 answer
79 views

Problem using margin notes with book style

This is follow up to earlier question I asked about using margin notes here I found that when I use book style the margin note jumps from the left to the right, depending on if the page is odd or even,...
Nasser's user avatar
  • 20.2k
1 vote
0 answers
29 views

A section title immediately preceding a longtblr goes into the lower margin and overlaps the page number (and might even go lower)

Feeding latex or pdflatex with \documentclass{article} \usepackage{tabularray} %\usepackage{tabularx} \begin{document} Text %%% For tabularray: \vspace*{122.63ex}%%% The lengthy section title ...
user avatar
1 vote
1 answer
22 views

Change margin of every quote block

I am with a question, I am trying to set the margin for every \begin{quote} block. I am already changing the text size by: \usepackage{etoolbox} \AtBeginEnvironment{quote}{\par\scriptsize} %or maybe \...
Cacilda's user avatar
  • 23
2 votes
2 answers
41 views

Length and align left margin of longtable

I am using longtable to present the list of Notations, and the codes are as follows. \documentclass[10pt]{book} \usepackage{newpxtext,newpxmath} \linespread{1.05} \usepackage{tabularx} \usepackage{...
wxwuse's user avatar
  • 139
1 vote
1 answer
24 views

Adjust page margins for note page with beamer

I have to rebuild a PowerPoint template with beamer and one convenient part of my solutions is to set a value for the top margin. Unfortunately this effects the note page as well. Is there a solution ...
Alex's user avatar
  • 373
1 vote
0 answers
41 views

Is it possible to add a margin worth of more page space to an existing a4paper?

I am aware that for something like \documentclass[a4paper,12pt]{article}, the page shape is now A4. Using the geometry package only allows you to play with the margin size. However, is it possible to ...
Miloop's user avatar
  • 813
1 vote
1 answer
58 views

Beamer footnote reduce right margin

How can I reduce the right margin of the beamer footnotes, without changing the text margin too? Ideally, the footnotes should end approximately where the page number ends, so that for the example ...
user20478285's user avatar
1 vote
1 answer
52 views

Table formating of margings, borders, and alignment

I am formatting a table and I don't know how to deal with several separate issues: I don't know how to break the line within a cell but keep the margins and the height of the text within the cell. I ...
Rubén Pérez Sanz's user avatar
3 votes
2 answers
170 views

Starting a tikz loop at the margin. How do I properly specify the starting position?

I am attempting to encourage the reader to take notes in my book by making extra-wide margins and drawing lines down the outer edge. But I can't seem to get the lines to start in the right place. ...
flazzo's user avatar
  • 133
0 votes
0 answers
45 views

margins right and left are not equal

Please look at my MWE. I would expect odd and even side margins being the same but they are not. What I am doing that is wrong? I have tried all solutions that were suggested, but they haven't worked. ...
Adam's user avatar
  • 111

1
2 3 4 5
53