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.
2,738 questions
0
votes
0
answers
37
views
LaTeX: How to set different geometry margins for different pages based on PDF background images?
I'm creating example papers in LaTeX with different PDF backgrounds for different pages, and demo PDFs are given as follows:
First page: example-image-a.pdf
Odd pages (except first): example-image-b....
2
votes
1
answer
98
views
How to precisely recreate a textbook page layout (Pattern Recognition and Machine Learning)
\documentclass{book}
\usepackage{xcolor}
\usepackage{amsmath}
\usepackage{graphicx}
\setlength{\oddsidemargin}{\evensidemargin}
\reversemarginpar
\setcounter{chapter}{3}
\setcounter{section}{1}
\...
3
votes
2
answers
77
views
Footer margins, visibility, and centering with a long footer
I'm unable to get my large footer to look sane on the first page.
Specifically the "Limited Distribution" block is not centered, and even worse the footer runs off the bottom of the page.
I'...
0
votes
1
answer
33
views
Reproducing amsart page layout with article class
I'd like to reproduce the exact page layout of the amsart document class using the article class. Does anybody have a simple solution for achieving this? I could not find any previous answer directly ...
6
votes
3
answers
258
views
Allow figure to overlap/extend into the bottom margin
I have 2 figures with captions that happen to be near the very bottom of my page. I prepared the following which can be compiled on Overleaf, even with the missing pdfs.
\documentclass{article}
\...
1
vote
2
answers
111
views
Set left-right margin ratios in KOMA twoside scrbook
By default, the scrbook class sets the margin ratios inner:outer = 1:2. Is there a way to modify this so that the ratio is instead 2:3, potentially without manual modifications such as by using the ...
0
votes
1
answer
110
views
I want a marginpar/marginnote/sidenote wider than the margin of the layout?
I would like to have margin notes/margin pars/side notes, wider than my margin. My margin size is good. But I want some of my side notes be wider like say 4" wide, maybe some notes me just 3"...
2
votes
1
answer
73
views
How can I remove top margin in "enumerate"? [duplicate]
I made a table of test cases with LaTex below:
\documentclass[
paper=landscape,
fontsize=11pt
]{scrartcl}
\usepackage[a4paper, landscape, margin=2cm]{geometry}
\usepackage{tabularray}
\...
0
votes
1
answer
93
views
How to achieve a constant A4 page width, a variable page height, constant margins, and KOMA-Script-like headers/footers in a scrbook/standalone class?
For context, I usually write long-form documents in LaTeX with a package bundle of my own macros for (but not entirely exclusively requiring) the scrbook document class. I intend to start writing ...
0
votes
0
answers
39
views
Adjusting the bottom margin for the first page in the IEEEtran template for IEEE conferences
I am currently formatting a paper for an IEEE conference. I am using the IEEE paper template with IEEEtran.
Unfortunately, the conference has specific formatting requirements, which are as follows:
...
1
vote
1
answer
95
views
When using fancyhdr my text moves down the page, what am I doing wrong?
I'm trying to make flash cards and want a header on each one and then a maths question in the middle of the card. I would expect at this stage for the text body to be starting at the top left, ...
3
votes
2
answers
216
views
Latex tikzpicture is moved to the right
The tikz picture is moved to the right relative to the page layout. I want to stop that unintended movement.
In the document class article, I've set the paper width and height to be 36in and 24in, ...
3
votes
2
answers
205
views
How to allow line breaks before units in siunitx to avoid margin overflow in LaTeX?
I'm writing a LaTeX document using siunitx to typeset quantities:
\documentclass{article}
\usepackage[showframe=true]{geometry}
\usepackage{siunitx}
\begin{document}
AAA AAA AAA AAA AAA AAA AAA AAA ...
5
votes
2
answers
432
views
Use of golden ratio aspect, A4 paper and memoir?
What am I doing wrong?
The document class is memoir and the paper size is A4. I want to compile the source file shown below to illustrate three different (red) figures according to the golden ratio ...
0
votes
0
answers
44
views
Fixing margin note/annotation with vertical text direction
I am trying to add margin notes/annotations next to (some lines of) certain paragraphs. These notes should summarize the gist of the paragraph, explain why I wrote it, and clarify why I placed it at ...
0
votes
1
answer
73
views
Adjusting margins to match an older document with amsart
I'm using the amsart class and I want to adjust the page layout to properly reduce the margins without using the geometry package. Specifically, I want to reduce the top, bottom, left, and right ...
0
votes
1
answer
72
views
Extending fancyhdr's headrule to include the margin
I am trying to demonstrate an article layout with a wide margin for notes, using fancyhdr's \marginparwidth. I need the header rule to extend across the text body and the margin but I don't see a ...
1
vote
1
answer
94
views
Pushing minipages and tabulars Into the margins
Apologies: I want to violate the most basic prescriptions of sane typography. Have a bag ready. It's the lesser of evils.
Say, I have a book, with margins of 0.5 inches on the spine and 1 inch on ...
1
vote
2
answers
129
views
Marginfit package shifts marks
I'm using the kaobook class together with the marginfit package such that all citations in the sidemargin get shifted to fit within the margin.
I noticed, however, that the page header (using \...
0
votes
0
answers
96
views
How to add decorate mark aside a paragraph?
The final effect is like:
And the sample code is below:
(How could we define a command \para which could control the number of the decoration as the above picture? The number is not fixed, we can set ...
2
votes
1
answer
89
views
Two margine notes beside another
I'm dealing with the following problem. To indicate things to be done in a text, we use
\usepackage{marginnote}
\newcommand{\mpar}[1]{\marginnote{\small\itshape #1}}%
\newcommand{\att}{\marginnote[\...
1
vote
1
answer
124
views
Latex bibliography -- some formatted entries don't have correct line breaks
I am currently very frustrated by what is happening to my bibliography in my latex document. So the bibliography quotes go beyond the margins of the page, or sometimes they just break line with no one ...
5
votes
2
answers
104
views
You can't use `\prevdepth' in display math mode
When I want to use the marginpar,
something wrong happened, how to fix it and show the marginnote?
\documentclass{amsart}
\usepackage{lipsum,tikz}
\usepackage[top=1cm,bottom=1cm,left=0.5cm,right=0.5cm]...
2
votes
1
answer
83
views
How can I change the margins of all Beamer slides without messing the title page?
I am working on a Beamer file, using the gotham theme, with the following code and the following output:
% !TEX program = xelatex
\documentclass[aspectratio=169, xcolor=dvipsnames]{beamer}
\usetheme[...
0
votes
2
answers
121
views
Disappearing content in marginnote
Could anybody revover the disappear context in the third paragraph?
\documentclass{amsart}
\usepackage{lipsum,tikz}
\usepackage[top=1cm,bottom=1cm,left=0.5cm,right=0.5cm]{geometry}
\def\ppp{...
6
votes
2
answers
153
views
Using Marginpar and Geometry package together
When I use the Marginpar and Geometry package together,
\documentclass{amsart}
\usepackage{lipsum}
\usepackage[top=1cm,bottom=1cm,left=0.5cm,right=0.5cm]{geometry}
\begin{document}
\lipsum[1]\...
0
votes
1
answer
66
views
Marginpar attached to the edge
Notice here the marginpar has align on the left,
\documentclass{amsart}
\usepackage{lipsum}
\begin{document}
\lipsum[1]\marginpar{One Two Three}
\section{One}\marginpar{\raggedleft\text{One Two Three ...
3
votes
1
answer
61
views
Marginpar with the right side attached to the edge
I notice that the marginpar starts with the left side aligned.
\documentclass{amsart}
\usepackage{lipsum}
\begin{document}
\lipsum[1]\marginpar{One Two Three}
\lipsum[1]\marginpar{One Two Three Four}
\...
1
vote
1
answer
90
views
scrbook: reverse the left-right margins for even-odd pages
I have a tex file
\documentclass[
chapterprefix=true,
headings=optiontohead,
twoside=true
]{scrbook}
\usepackage{kantlipsum}
\usepackage[autooneside=false,automark]{scrlayer-scrpage}
% Clear ...
1
vote
0
answers
35
views
scrbook: make right and left margins equal [duplicate]
I have a tex file (from this answer)
\documentclass[
chapterprefix=true,
headings=optiontohead,
twoside=true
]{scrbook}
\usepackage{kantlipsum}
\usepackage[autooneside=false,automark]{scrlayer-...
2
votes
1
answer
140
views
A question about the marginpar command
If I want to use the marginpar command, how to control its position?
Namely, the marginnote appear either on the left or on the right.
And I want to control the width of the box and the innersep ...
1
vote
1
answer
85
views
Big margin differences in KOMA Script between one column and two column layout? [closed]
I'm learning KOMA Script. One thing I tried is one column vs two column book. Surprisingly, there is a big difference. One column text has large margins, but two column text has almost no margins in ...
0
votes
2
answers
167
views
Compilation warning issue with fancyhdr (\headheight is too small)
I'm getting lots of compilation warnings with a large document and I would like to fix this, while the document is compiling fine and gives (apparently) a nice PDF document. The warning messages are ...
1
vote
3
answers
118
views
How to make my beamercolorbox wider than the theorem block inside of it?
I am making a custom beamer template and want my slides to have color boxes that frame slide contents. However, I am not able to figure out how to change the width of the theorem blocks. Manipulating ...
0
votes
2
answers
92
views
How to keep the header and footer fixed at the corners regardless of the margins?
I’m still trying to format my document to match a certain book as closely as possible for my group assignment. With the help of everyone here, I’ve learned that the book uses margin notes placed ...
3
votes
1
answer
102
views
Narrower doesn't act on itemize
I don't manage to make narrower act on itemize: it seems that the itemize environment doesn't see the narrower command.
Here is a MWE:
\documentclass{article}
\usepackage{lipsum}
\begin{document}
\...
0
votes
1
answer
136
views
Trying to make my document look like the book
I'm working on a small project that requires translating part of a book into my native language and then including it in a report using LaTeX. The requirement is that the LaTeX page should resemble ...
1
vote
1
answer
95
views
Change margins for one page memoir
I have set margins for the entire document. For a few pages at different places, I need to modify the margins. This solution redefines the fullwidth environment but I need to change all the margins. I ...
1
vote
0
answers
120
views
How is it possible to force LaTeX applying "Hanging Punctuation" or "Optical Margin Alignment"?
To be straight, I want to put hyphenation, emdash, endash, and punctuations (quotation mark, comma, point...) outside body area in LaTeX. Please see pictorial description of what I want in the below ...
1
vote
1
answer
64
views
Reduce size of triangle node
I have this:
\documentclass[10pt,compress]{beamer}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,
automata,
shapes.geometric,
chains,
positioning,
shapes.arrows}
\begin{document}...
0
votes
1
answer
81
views
Change vertical and horizontal page margins to display full page table
I need to display two tabular ennvironments inside a single table environment. The resulting table is both taller and wider than the available space with the default page margins (I am using the ...
4
votes
1
answer
148
views
How can I make pgfplots figure the same size as the margin?
I am trying to make my plot the same size as the margins. I have tried so many things, but cannot figure out a solution. Changing width=\marginparwidth to width={} is a slight improvement, but I am ...
3
votes
2
answers
190
views
Increase bottom margin on first twocol page, automatically restore on next page
I would like to change the bottom margin on the first page of a two-column article (that can sit somewhere in the document, so is not necessarily the first page of the document) without inserting a ...
0
votes
2
answers
104
views
adjust footskip using fancyhdr and pagestyle
I'm using the fancyhdr package and used pagestyle to remove the header from the first page. I have a statement and I fill the rest of the page using \gridfill. I'm going to put my complete code, don't ...
3
votes
2
answers
136
views
Adjusting margin using fancyhdr package
I'm using the fancyhdr package, but I don't want it to be used on the first page. I used \thispagestyle{firstpage} to solve this and it worked. My question is that I want to reduce the top margin of ...
2
votes
1
answer
140
views
Marginal Notes in Bottom Margin
Is there a way to put marginal notes at the bottom of the page?
I'm using the medieval page setting in a memoir class document so I can have extensive marginal notes on a page. This works nicely for ...
0
votes
0
answers
58
views
Using the geometry package to modify appendix layout without altering llncs class geometry settings
I have a document that use the llncs class, and I want to change its geometry (top and side margins) only for appendices, at the end of document.
I saw saw the usually recommended solution is to use ...
1
vote
1
answer
209
views
Two Column Layout with Paracol - How Can I Set the Column Widths?
I am typesetting some Gujarati poem lyrics using the polyglossia, verse and paracol packages. Here is an example of how I wish the lyrics to be typset:
Each stanza of the poem is written on a new ...
0
votes
1
answer
53
views
blank space is showing on bottom of some pages in report
Thanks in advance for resolving this issue.
i am writing thesis one side format in 12pt and times font. I want to fix the margins of top, left=1.5, right and bottom=1in. Although i used the geometry ...
5
votes
1
answer
137
views
Aligning sidenotes with text
One can vertically adjust the position of the sidenotes with its optional arguments. \sidenote[][2cm]{content}. Now this is fine with the sidenote is in the middle of the textblock. But when the note ...