{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.

learn more… | top users | synonyms

6
votes
1answer
206 views

Why can't I get the height of my memoir typeblock right?

I'm trying to define my own type area on A5 paper using the memoir commands, according to the following construction after Tschichold, where the text width is given by Høgholm's curve fitting of ...
4
votes
2answers
293 views

Different textwidths on first and following pages with scrlttr2

Is it possible to have diverging values for \textwidth on the first page and all other pages. On the first page I would like to set the width of the text to 12cm, on the following pages to 16cm. ...
14
votes
1answer
397 views

How to typeset a complex layout like a page of the Talmud?

I need help for typesetting a complex typographic layout comparable to the Talmud, yet not necessarily in Hebrew. I found the parcolumns package, but it does not support footnotes and it also does ...
1
vote
0answers
93 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 ...
3
votes
1answer
100 views

Number and reference paragraphs

For "law-documents" you often want to enumerate every paragraph and cite them somewhere else in your document. This enumeration shall increase through the whole document and have the possibility to ...
0
votes
1answer
215 views

List of Figures page Margins

I am writing my dissertation and I have to follow certain graduate school guidelines to submit my dissertation successfully. One rule that the graduate school has is that all margins on each page ...
3
votes
1answer
97 views

New textwidth for End Matter (but preserve fancyhdr)

Can anyone suggest a strategy for changing the textwidth for the end matter, but preserving the look of fancyhdr, whose offset is calculated using the old geometry. Can't seem to get \newgeometry to ...
2
votes
1answer
125 views

Use a box to fill text to right margin

I often use an eqnarray (I know it's better to use align, but let's not worry about that for this question unless it changes the answer) as a way to list a bunch of definitions or descriptions of ...
2
votes
0answers
156 views

How to place todonotes in left and right margin?

I want to place todonotes not only on the left or the right margin. I want to use both at the same time, and that the notes should decide by themself where to place. E.g. when the note points to a ...
0
votes
1answer
754 views

Margin on a4 paper is too big

I'm currently writing on a document for school. We have to use these margins: left: 3cm bottom and top: 2.5cm right: 2cm But when I'm using the geometry package the margins are way too big which ...
3
votes
2answers
130 views

Hyphenation and section titles with geometry

I am using classicthesis and the geometry package for my thesis. Some section titles are not hyphenated correctly, but instead reach into the margin. It seem not to be possible to use, e.g., \-, to ...
6
votes
1answer
195 views

Rows exceeding margin in tabulary environment

The main issue I am having is that the second column becomes squished and the table exceeds the 1 inch margin that exists. What's the best to fix the issue? I also need the table to have the table be ...
2
votes
2answers
101 views

Table way out of margin

I have a really long table and it is out of margin. I read other post about this issue but I still cannot figure it out: \begin{table}[htbp] \begin{center} ...
4
votes
1answer
444 views

Change \textwidth and \textheight in mid-environment

First, this is not a copy of Change \textwidth and \textheight in mid-document as I can't set a manual \pagebreak and \newgeometry or \restoregeometry thereafter. I want to change the footer size for ...
3
votes
2answers
201 views

pdflatex testpage produces wrong margins for a4paper

On my Mac running TeXlive 2012 when I do pdflatex testpage \papertype=a4paper \doublesided=n and open the resulting PDF file in preview, I can see that the margins are completely wrong in the ...
0
votes
0answers
22 views

New environment with shaded box leaks into margin [duplicate]

I have written a nice little environment for defining mathematical problems using a trivlist and shaded box. The problem is: The text in the box is aligned with the regular text, such that the box ...
3
votes
2answers
217 views

KOMA script - widening text width

I have a longtable that is about 14cm wide and the text width of 12 cm. Therefore I would like to widen the text width on two pages for 2 cm, toward the outer edge of the page. I have "discovered" ...
7
votes
1answer
327 views

Page layout design in KOMA script

This is follow up of the previous question, Document class for designing a book. Majority of respondents suggested that I design the the page layout using the class I was using for writing the text, ...
0
votes
0answers
102 views

Reduce whitespace or margin before listofalgorithms command

I'm at my wits end on this one. I have a list of algorithms page that I want formatted the same way as my ToC and ToF. What I have currently is pretty close except that the List of Algorithms title ...
5
votes
2answers
165 views

Text width in one sided documents?

Example: \documentclass[paper=a4, fontsize=10pt, parskip=half, DIV=9]{scrartcl} How do I calculate text width? In particular: I understand that DIV=9 specifies that the page is divided into nine ...
4
votes
1answer
612 views

Remove sidebar in Beamer

With the following code, I tried to remove the sidebar: \documentclass[18pt]{beamer} \mode<presentation> { \usetheme{Hannover} \usecolortheme{dolphin} \usepackage{lipsum} ...
0
votes
2answers
491 views

How to set bottom margin using the resume class with [margin,line]

I really like the way my resume looks using the following preamble: \documentclass[line,margin]{resume} \begin{document} \topmargin=-0.5in However, I have a huge margin at the bottom of the page. ...
3
votes
1answer
241 views

Why does standalone not detect the TikZ crop correctly?

This small example \documentclass{standalone} \usepackage{xltxtra,textcomp,graphicx,color,tikz} \usepackage[absolute,overlay]{textpos} \begin{document} \begin{tikzpicture} \clip (0,0) rectangle ...
3
votes
1answer
270 views

How to get Tufte-like margins with the KOMA book class?

I asked similar question here How to have headers, section headings, and figures expand into the margin? From Document class for designing a book I want to have new insight... ...
5
votes
3answers
205 views

Non-alternating margins in book class

For a book class, I specify margins like this: \usepackage[top=1.25in, bottom=1.25in, left=1.5in, right=1.25in]{geometry} But left and right appear to behave as inner and outer. I need to have the ...
4
votes
1answer
235 views

Creating a marginal tcolorbox from inside an other tcolorbox

I have created a new tcbtheoremlike this: \usepackage[breakable, theorems, skins]{tcolorbox} \tcbset{enhanced} \newtcbtheorem [number within = chapter] {myexample} {examples} { ...
2
votes
0answers
95 views

beamer column footnote produces format lose.

Using the following code \documentclass[demo]{beamer} \usepackage{filecontents} \begin{filecontents}{\jobname.bib} @misc{A01, author = {Author, A. and Buthor, B. and Cuthor, C.}, year = ...
2
votes
1answer
128 views

vertical margins inside a frame

How can I change the vertical margins inside a frame. For example, how do I remove the space shown in the figure below:
4
votes
1answer
1k views

TikZ: remove margin, padding, border around nodes containing images

I want to create a simple figure where images are connected with arrows. Here is what I did: \begin{tikzpicture} \node[](A) {\includegraphics[width=0.2\textwidth]{a}}; \node[right=1mm of A](B) ...
4
votes
1answer
195 views

Why is the default line length in the KOMA scrreprt documentclass longer than recommended?

When using the documentclass scrreprt (KOMA scripts) with the default parameters (a4paper, 11pt, DIV10), I observe line lengths between 81 and 85 characters (including spaces and punctuation, 78 to 85 ...
9
votes
2answers
152 views

How to put a QED symbol in the margin?

As I badly explained here question I wish to put my QED symbol on the same line as the last word of my paragraph, but in the margin like the package lineno does for the line number. I tried the trick ...
4
votes
1answer
209 views

Change page margin inside own environment

I would like to define an environment, that inserts a page with different margins than defined in the preamble. I tried using the following LaTeX code. \documentclass[a4paper,10pt]{article} ...
0
votes
1answer
230 views

Listing numbers go outside margin [duplicate]

I'm trying to add sample code to my document. It seems that the listing is left aligned with the margin, and the numbers go outside it. How should I align the number, instead of the code? Here is my ...
1
vote
1answer
95 views

Change margins on selected pages [duplicate]

I have an document using the article class using the fullpage package. The appendices take up the last 15 pages and contain pdf images using the graphicx package. I want to change the margins of ...
8
votes
2answers
393 views

Print a Notebook with LaTeX

I just came across something I missed a few years ago: I still use notebooks that do not have the correct margins for writing, i.e., the outer and bottom margins are the end of the page and the inner ...
2
votes
1answer
6k views

Making table width fit into text width [duplicate]

I'm using p{} format to adjust the width of a table. I expected using {p{0.1\textwidth}||p{0.2\textwidth}|p{0.2\textwidth}|p{0.2\textwidth}|p{0.2\textwidth}} makes the table width smaller than the ...
1
vote
1answer
680 views

Setting thesis margins

My university requires theses to be bound and printed with the following specification: There should be a margin of at least 1.5 inches, preferably 2 inches (5cm), on the left side of the page, ...
5
votes
2answers
174 views

Using \MarginFigure command

Someone wrote a command called \MarginFigure for putting figures in the page margins. Unfortunately, I haven't been able to get the \includegraphics to work. Specifically, I have figures that I've ...
2
votes
1answer
108 views

Disable binding compensation for titlepage

How do you disable the binding compensation in KOMAscript (e.g. \documentclass[BCOR10mm]{scrbook}) on the titlepage? I use the titlepage package and the fullsizetitle environment, but this is not ...
4
votes
2answers
82 views

How to begin text a certain distance from the right margin

As the date changes in length each day, I find myself manually modifying the hspace distance to the beginning of the signature line every time I generate a document. Can anyone think of a better way ...
6
votes
1answer
87 views

Forcing page numbers to ignore large margins

My teacher wants a large space to post comments on my work, so I have placed a bottom margin of 10 cm to pdfLatex. But the problem is that Latex also moves the page numbers up along with the margins ...
5
votes
1answer
123 views

How to move the footer margin closer to the bottom, manually

I have a page built in latex that has a footnote. I am not satisfied with the distance from the bottom to the footnote: it is too large. I want to have a bigger place to write, so I want the footnote ...
3
votes
1answer
332 views

Header and Footer offset in Exam Document Class

I am using the exam document class and I want to implement a layout where the headers and footers span over both the text body and the margins. I tried using the \fancyhfoffset command from the ...
0
votes
0answers
81 views

How to put a symbol always in the right margin, even in twoside mode, like line numbers of lineno?

I discovered the package lineno which in twoside mode of the class article can force to put the line numbers on the right. I really like that because I want me QED symbol to do the same. Currently, ...
3
votes
1answer
196 views

How to use one-sided pages formatting in classicthesis without shifting title page?

I'm using the classicthesis package with the template provided on latextemplates.com (http://www.latextemplates.com/template/classicthesis-typographic-thesis) to write my MSc thesis. I am required to ...
5
votes
2answers
192 views

Specification of the Layout for Q-A Reference Cards (Flashcards, Visual Cards)

I'm relatively new to LaTeX and I've used Microsoft Word so far for virtually all work with documents. For college, to use own question-and-answer reference cards, I decided once to split a portrait ...
1
vote
1answer
175 views

“Package xkeyval Error: value `no' is not allowed.” while working baposter

I faced the same problem as the author of an older question - I got following message in my log: ! Package xkeyval Error: value `no' is not allowed. See the xkeyval package documentation for ...
4
votes
3answers
608 views

Problem with margins using amsart and geometry packages

I do not want different margins on even and odd sides, I just want the usual page setup from the amsart package. However, consider: \documentclass{amsart} \usepackage{geometry} \usepackage{lipsum} ...
2
votes
1answer
162 views

Knitr plotting outside margin

I like the look of plots that extend beyond the margins \documentclass{article} \usepackage{lipsum} \usepackage[demo]{graphicx} \begin{document} \begin{figure} \centering ...
1
vote
1answer
108 views

Bottom margins for two title pages are not equal

For thesis it is needed two title pages but in my code page layouts are not equal. Problem is in the bottom of the page. the part of the code is: It is the cls file. Update: the problem is with the ...