Skip to main content

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
0 answers
29 views

Half-page graphics

I'm trying to replicate a layout I've seen in some tabletop game books, where a piece of art takes up the entire top (or bottom, or left, or right) half of a page, going all the way to the gutter with ...
Draconis's user avatar
  • 942
1 vote
2 answers
61 views

Alternating pages

I want alternating pages ... with wide outer margin ... outer margins to contain light dotted lines spaced say 0.2in apart filling entire space. Text side to contain text (I'll do formatting later) ...
user2796901's user avatar
0 votes
2 answers
58 views

How to reproduce this bar chart in LaTeX using either pgfplots or luamplib?

I'm trying to recreate the attached bar chart using LaTeX, but I'm not sure which package would be more suitable, between pgfplots and luamplib. As you can see in the chart, there are multiple ...
Yusef Hamdellah's user avatar
0 votes
0 answers
7 views

Align figure against outside (or inside) edge [duplicate]

I am preparing a twoside document with wide margins, where I am placing both margin notes and figure captions (using the sidenotes package). I would like my figures to be aligned so they are directly ...
Heisenbugs's user avatar
0 votes
0 answers
12 views

Cannot change page-margins with KOMA-2 letter [duplicate]

Here is the "minimal working example". As is -- with the default margins -- it renders Ok: The first line ends with the "Third." sentence. The fancy header on the second page ...
Mikhail T.'s user avatar
0 votes
0 answers
41 views

Issue with Unequal Margins on Odd and Even Pages in Springer Nature's LaTeX Template

I downloaded the "Springer Nature’s LaTeX" template from here. Upon compiling the LaTeX document, I noticed that the margins on odd and even pages are different. Could you please advise on ...
ParkShinRn's user avatar
0 votes
0 answers
40 views

A Standard Way to Position a Barcode with Specified Margins in a Pspicture

Consider the code \documentclass[12pt]{book} \usepackage[hmargin=0in,vmargin=0in,paperwidth=5.5in,paperheight=8.50in]{geometry} \usepackage{psvectorian,scalefnt} \usepackage{pst-barcode} \begin{...
DDS's user avatar
  • 10.1k
2 votes
1 answer
44 views

How to create this table without words going out of the box?

I used the following code: \begin{table}[h] \centering \begin{tabularx}{\textwidth}{|C|C|Y|Y|Y|} \hline \textbf{Prototype} & \textbf{Dataset} & \multicolumn{3}{c|}{\textbf{Comparison}} \\ \...
Sabyasachi Banik's user avatar
4 votes
1 answer
72 views

Crop package: put info at the bottom?

The crop package has an option (info) which puts document information (file name, year, time, page number) on the top margin. See for example this book. What is the correct way to move the info to the ...
andres's user avatar
  • 45
1 vote
1 answer
39 views

Margin content on the left side with tufte-book class

Is there a simple way to place all marginnotes and captions in a tufte-book environment in the left margin in stead of the right? If the class option twoside can do the job on every other page, I ...
DavidH's user avatar
  • 91
2 votes
1 answer
33 views

How do I change the width of my text to be different than the width occupied by headers and footers?

I have tried to change the margins AND textwidth using the geometry package but it seems as though you cannot use the two together. I am using XeLaTeX on overleaf. Here is a MWE: \documentclass[10pt]{...
Zain Siddiqi's user avatar
1 vote
2 answers
43 views

Issues with \newgeometry and \restoregeometry: Inability to Write Below Figure and Font Style Change

I'm using \newgeometry to adjust the margins temporarily so that my figure fits the page. After the figure, I use \restoregeometry to revert to the original margins. \documentclass[14pt]{extreport} \...
Yusef Hamdellah's user avatar
0 votes
0 answers
27 views

Restore geometry changes font style

I used \newgeometry to make sure my figure fits the page, and then \restoregeometry to bring back the default margins of my project. However, I've encountered two problems. I cannot write right below ...
Yusef Hamdellah's user avatar
2 votes
1 answer
77 views

How do i get a new poetry line to be hanging indented .25 inches yet in a custom blockquote format ,5 inches away from margins?

Im trying to get this doc environment which has everything in a blockquote form without hanging indentation and that will be used in a double spaced doc to get the functionality of a picture: \...
Felix Maldonado's user avatar
0 votes
1 answer
225 views

How can one check if a page exceeds the page margin? [duplicate]

I have a multipage document (a research paper) that I generated with latex. How can one check if a page exceeds the page margin? An ideal solution would minimize the amount of manual work. Example of ...
Franck Dernoncourt's user avatar
1 vote
2 answers
53 views

How can I create different margins for figures and text in a two column document?

I have a two column document with images. If an image is put in the left column, I want it to extend all the way to the edge of the page. Images in the right column should extend all the way to the ...
Roald's user avatar
  • 1,265
1 vote
1 answer
43 views

Alignment issue in table of contents with more than 1000 pages [duplicate]

I help a student to write his PhD in LaTeX, and we face an issue regarding alignment. The Overfull \hbox (4.89952pt too wide) are highlighted below with black square in draft mode It seems that the ...
Martin Rosalie's user avatar
1 vote
0 answers
33 views

Different page margins for text and display math [duplicate]

I would like to setup the document so that the colum of text has a fairly narrow width on the page but equations still have room to expand on both sides. Basically I'd like to make it so that text ...
seldon's user avatar
  • 291
0 votes
1 answer
61 views

semiconductor value chain flowchart does not fit in the page

I created a flowchart which looks like the Image I left atacched.I tried these codes but the flowchart does not fit in the page, probably because I set specific margins in my document. \documentclass[...
Yusef Hamdellah's user avatar
1 vote
1 answer
23 views

Using pdflscape within a list / environment

I'm working on a document with description environments that are several pages long. Some of these pages contain tikzpictures that are rotated using \rotatebox. I'm looking for a way to tell pdf ...
Unheard0's user avatar
0 votes
1 answer
51 views

How to resize the bar size and adapt the title to the margins in Chapter Veelo style?

I've constructed Chapter with Veelo style in \documentclass{report} following the instruction contained in this and this answers. However, I set \documentclass{report} \usepackage[margin=1in]{...
Bml's user avatar
  • 151
0 votes
1 answer
56 views

Adjust left margin of whole paragraph

\documentclass[12pt]{article} \usepackage{fontspec} \usepackage[skins]{tcolorbox} \usepackage[letterspace=150]{microtype} \usepackage{geometry} \geometry{ a4paper, left=1.5cm, right=1.5cm, ...
lmkerbey's user avatar
1 vote
1 answer
31 views

How do I fit a paragraph on the right hand side of an item?

How do I get text in this arrangement? The lines are the margins of the page. "x = y + 1" is a line of math in a box, as wide as the text inside. The paragraph extends from the right side of ...
Glyn Webster's user avatar
-1 votes
1 answer
45 views

LaTeX - Complex running header/footer and margins with Tables

This is a duplicated question for the https://stackoverflow.com/q/78571873/6217684, as therein no replies are being received (I realize I posted it in not the right community). I need to reproduce a ...
Xavier's user avatar
  • 1
1 vote
1 answer
36 views

Changing margins mid-document with memoir

I'm writing a one-sided book-type document using memoir and would like to change the size of the side margins for a few pages midway through. I have tried using the \setlrmarginsandblock command but ...
Lino Ferreira's user avatar
2 votes
0 answers
45 views

Printing out the page size and margins

I am trying to print out the values of the parameters related to the paper dimensions and margins: \documentclass[12pt, a4paper]{report} \usepackage[ width=150mm, top=25mm, bottom=25mm, ...
raf's user avatar
  • 849
0 votes
1 answer
69 views

How to add page margins (border lines) to a latex document? Also how to increase the line width of the border

I have a document in latex in which I want to add borders. I have the following code to add borders to the page: \usepackage{calc} \usepackage{eso-pic} \newlength{\PageFrameTopMargin} \newlength{\...
Kiran's user avatar
  • 1
4 votes
2 answers
189 views

How to reduce margin size for one slide to fit a table in beamer?

I want to reduce the margin size for one slide so I can put a wider table into it. I have this MWE: \documentclass{beamer} \usepackage{geometry} \usepackage{tabularray} \setbeamertemplate{frametitle}[...
Simd's user avatar
  • 6,951
0 votes
0 answers
52 views

Classicthesis odd/even margins

I have a question about the page margins in the classicthesis template. The question itself is not directly related to LaTeX, but I don't know where else to ask. The classicthesis template uses a ...
AkariYukari's user avatar
2 votes
0 answers
41 views

Long nicematrix with color and margin text [closed]

I currently would like to have a matrix that is long and includes some color on each row. However, whenever I use the & multiple times, I get an error saying I have an extra alignment tab that has ...
Ivan's user avatar
  • 73
1 vote
0 answers
26 views

Adjusting the margins in TOC and local TOC

I'm preparing a complex document with many local TOCs. Unfortunately, there are strict restrictions on the document format. So, I can’t adjust the left indentation of the first character of the second ...
Andrew's user avatar
  • 11
-1 votes
1 answer
40 views

How autobreak long bibliography entry on many lines with spaces, not passing margin?

I compile by xelatex main.tex bibtex main.aux xelatex main.tex evince main.pdf Body \documentclass[draft,a4paper,12pt,finnish]{article} \usepackage{babel} \usepackage[autostyle]{csquotes} \...
Léo Léopold Hertz 준영's user avatar
0 votes
1 answer
29 views

Long Table Fit Within Margins in LaTeX [duplicate]

My table is currently exceeding the margins and I'm looking for suggestions to improve it. Below are my code and the resulting output. \documentclass{article} \usepackage[margin=2cm, a4paper]{geometry}...
HAITHEM's user avatar
  • 477
3 votes
2 answers
92 views

Center a large picture both vertically and horizontally on a full page

I have a figure with a large size of 1860 x 2983. I would like to center it as large as possible with a small margin. Currently, I am using the following code: \includegraphics[width=\textwidth]{image....
quinten's user avatar
  • 31
2 votes
1 answer
74 views

NiceMatrix Right Margin elements

I have been struggling to figure out what is wrong with my code. I currently have a matrix with some colors and on the margin, I would like arrows. At the moment I currently have this \documentclass{...
Ivan's user avatar
  • 73
4 votes
2 answers
118 views

Matrix overloads margins

I have the following matrix \documentclass{article} \usepackage{amsmath} \begin{document} \begin{bmatrix} \frac{1}{2}\alpha s_L & 0 ...
baristocrona's user avatar
0 votes
1 answer
33 views

Image float to next page keeping margin rule in tufte-book

I am using the tufte-book template and I am having a certain issue when images float from a page to another, as I am using the raggedouter option for marginals in the document class. I already tried ...
ruieduardolopes's user avatar
1 vote
2 answers
82 views

Table doesn't fit in the page and add figure into the table's cell

Question: I Prepared a table from online. The issue is it doesn't fit in the page. Second problem is I added codes for a figure , I want to add this figure in the first column (Second cell). Can ...
SandyM's user avatar
  • 2,965
0 votes
1 answer
53 views

How to stretch the margin of a line and prevent last element to break line?

Edit 1: The image should be "Three Lines Instead of Four". Edit 2: Compilable Code updated. I am new to Latex, and I have the following piece of template code that provides a title for my ...
John's user avatar
  • 5
1 vote
1 answer
53 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
34 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
  • 85
0 votes
1 answer
43 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
14 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
59 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
29 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
  • 897
1 vote
1 answer
40 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
  • 897
0 votes
1 answer
41 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
37 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
  • 897
2 votes
1 answer
34 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
33 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

1
2 3 4 5
54