{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

3
votes
2answers
269 views

How to remove margin notes space in book class?

By default, the "book" class produces a layout with a big space for margin notes. One consequence of this behavior is the binding side has a smaller margin than the other side (with the twoside option ...
0
votes
1answer
268 views

Space between text area and footer area

How to control the vertical space between the text area and the footer area? If I change the value of \textheight the footer comes together. If I change the value of bottom using geometry package, ...
4
votes
1answer
78 views

how can I extend the width of item?

Please see the picture first. I want to keep the first width of item rectangle, meanwhile extend the second item rectangle, make it longer. I mean that I'd like to let the leftmargin & ...
0
votes
1answer
1k views

Full width image in beamer?

I have a beamer presentation with a custom style which creates a red bar along the bottom of each slide. When I change the geometry and then revert it with restoregeometry, the red bar is now shifted ...
4
votes
0answers
90 views

Moving BibTeX References to the same Margin as the Rest of the Text [closed]

When I do BibTeX references using the alpha style, they are slightly shifted to the left from the rest of the text. How can I align them with the document body? ...
3
votes
2answers
77 views

Determining spacing by a number that is a multiple of a counter

I have \hspace and I have a stepcounter xyz \documentclass[12pt]{article} \usepackage[top = 1in, bottom = 1in, left = 1in, right = 1in]{geometry} \usepackage[T1]{fontenc} ...
6
votes
3answers
571 views

Negative indent?

Is a negative indent of a particular paragraph possible or does another command need to be used? I.e., the first line should begin inside the margin. Can a command similar to \noindent be constructed ...
1
vote
1answer
102 views

increasing margins for a single page in KOMA class

I am using the following KOMA document class \documentclass[12pt,captions=nooneline,DIV=14, parskip=half]{scrartcl} everything is fine except that at one point I include 4 pictures in one single ...
3
votes
2answers
337 views

Enumeration in margins and hang indentation

A solution was given to Enumeration across many sections. However, (A) it seems enumeration prevents hang indent from activating. (B) Can I get the numbers to go into the left margin and leave hang ...
6
votes
1answer
211 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
311 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
404 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
94 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
102 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
234 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
100 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
128 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
160 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
828 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
134 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
206 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
103 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
466 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
210 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
222 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" ...
8
votes
1answer
350 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
105 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
169 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
638 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
543 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
275 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 ...
4
votes
1answer
278 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
215 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
241 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
99 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
136 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
2k 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
200 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
216 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
241 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
96 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
409 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
720 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
186 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 ...
3
votes
1answer
115 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
85 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 ...