{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
1k views

What is the default length of \hrule?

When used without parameters, what varfiable controls the length of \hrule? I.e., how can I change the default length of \hrule, other than adding parameters to each instance -- say, to affect ...
2
votes
1answer
124 views

Widening marginparwidth for verbose todo notes

I used the following in a corporate template in order to get wider margins for todo notes: \usepackage{showframe} \usepackage[marginparwidth=85pt]{geometry} This made the entire layout shift ...
0
votes
0answers
45 views

Change Margins in Lyx Title Page

I need to change the margins and the position of title and abstract on the first page of a Lyx article document. I tried to add \usepackage{etoolbox} \makeatletter \patchcmd{\@maketitle}% ...
2
votes
2answers
88 views

table width passes right margin

I have the following table. I have no idea how to edit in such a way that it does not overload till the end of the right margin. In other words I want the table within the margins (or page width). ...
4
votes
1answer
68 views

ConTeXt ignores value of leftmargin

I am trying to customize the page setup in ConTeXt. Following ConTeXt garden, I use the setting width=fit. Whereas adjusting the parameter rightmargin works just fine, changing leftmargin has no ...
0
votes
1answer
173 views

Reduce page margins using the res document class

In order to make my resume more dense and get more content on a page, I wanted to reduce page margins. I had been struggling with this issue for a long time and couldn't find any good complete ...
0
votes
0answers
28 views

Bottom margin is different after first page

I use LaTeX to typeset my math homework, but I don't like the look of what I'm getting. The bottom margin is a good size on the first page, but it's tiny on the following pages. It's so small that the ...
2
votes
2answers
62 views

How to make the margins relative to the actual content rather than the baseline?

I need to have small margins in my document. It seems that the margins are relative to the baselines rather than the content. See this example, where the content is cut out of the page: ...
2
votes
2answers
66 views

Too much whitespace on the bottom: how to make it as much as that on the top?

This is the code for the cover of my thesis: \documentclass[a4paper]{report} \usepackage[top=3cm, bottom=3.5cm, outer=4cm, inner=4cm, marginparsep=0.7cm, marginparwidth=1.5cm]{geometry} ...
1
vote
0answers
55 views

Latex template changing the margins

I am using res2.tex from here. I am trying to decrease the left and right margins evenly. This is from res.cls: ... %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Commands ...
1
vote
1answer
166 views

Horizontal spacing in caption in algorithm2e

In algorithm2e, how can I shift the caption to the left? There is a small space that I need to remove. Here is my code: \documentclass[letterpaper]{article} ...
3
votes
2answers
399 views

amsart margin control

I am using amsart to typeset some documents. However, the default margins are very large and I would like to change them without altering anything else about amsart. Is there a way to reset just the ...
1
vote
1answer
54 views

figure positioning according to space available on page

I am using Tufte style with symmetric option. I want to force figure automatically to next page if the current page doesn't have enough space to fit the figure at the desired position. Although it ...
1
vote
1answer
73 views

Reducing upper and lower margin in shaded environment

I am using \begin{shaded} from \usepackage{framed} to highlight some formulae and theorems in some notes I am writing. I would like to reduce the upper and lower margin: how can I do it?
2
votes
1answer
122 views

Have \newgeometry automatically reset after 1 page

I would like to adjust the margins for a single page in a document using \newgemoetry{} and then have it reset automatically once it goes to the next page without finding the specific word or sentence ...
0
votes
0answers
56 views

How to adjust margins in a template?

Is there a way how to change margins in one of the templates? I read in the latex guide, and also elsewhere in the forum that you can set up margins using geometry and then setting the desired ...
2
votes
1answer
43 views

longtable leaves wrong margins inside list environment

Special situation, using longtable inside my custom class. When I use \longtable, \end{longtable} instead of \begin{longtable}, \end{longtable}, I get bad margins when the longtable is inside a list ...
5
votes
1answer
104 views

Using side captions with multiple subfloats (floatrow and memoir)

In a large document (memoir class), I'd like to have side captions in the outer margin to save space for figures consisting of multiple subfigures belonging together. After trying sidecap with subfig ...
4
votes
1answer
168 views

Automatic margin curly braces & text on multiple pages

I'm building a command to mark long texts & class them in other part of my document (with help of Malipivo). I managed to do it with collect, multido & mdframed packages. The excellent ...
0
votes
1answer
65 views

How to make margins even in displayed equations? [closed]

Whenever I write a displayed equation like $$0\longrightarrow A\longrightarrow B$$ the top margin is much bigger than the bottom margin (around four times larger). I am trying to make the bottom ...
2
votes
3answers
131 views

How to get sane margin sizes suitable for paperback books using memoir?

I'm trying to make a document suitable for printing as a trade paperback. For that reason I'm using the memoir class using statementpaper which sets the page size to 5.5" x 8.5". Here's the basic ...
2
votes
1answer
99 views

No indent for verbatim environment

I would like to deactivate the indent for the verbatim environment, such that left margin is the same for everything. \documentclass{article} \usepackage{verbatimbox} \makeatletter ...
1
vote
0answers
78 views

How to put figures in the margin beside text? [duplicate]

For my thesis, I would like to be able to put some illustrative pictures in the (exterior) margin, beside text as it is the case in following example (original document, p. 16) However, I cannot ...
4
votes
1answer
86 views

Separation and width of caption with captionbeside

I'm trying to control the typesetting of a caption beside a figure when using the captionbeside environment of the KOMA Script packages. The \setcapwidth command doesn't work when using captionbeside. ...
1
vote
1answer
38 views

why isn't this properly formatted using \item \LHEAD?

I followed the answer given by AboAmmar here by I get the following shape for my resume. Not sure why the items written in LHEAD show like that? %\documentclass[9pt,A4paper]{report} ...
3
votes
1answer
162 views

change title page margins ONLY without packages

I am trying to prepare a package for students that offers a uniform standard title page for their work (homework, reports, theses, and probably more). I have the title page laid out as it should be. ...
1
vote
0answers
32 views

Issue with lstdefinestyle{XML} and margins [duplicate]

i am having troubles inserting XML code in Latex because the code lines appear out of the margins. First at all, i have defined the style, by the following way: \documentclass[a4paper,11pt]{book} ...
2
votes
0answers
112 views

Two-Sided Gutter in Tufte-LaTeX without symmetric?

The Tufte-LaTeX class has a great "symmetric" option for working on twosided documents (I'm working on a book project), I'd like to explore using this but for now due to the large number of figures I ...
1
vote
1answer
53 views

Increase tabular first and last padding

I use the tabu package to typeset my table, mainly with X type column. My overall goal is to have the same inner padding between the table border and the text and between the text cells. By default, ...
0
votes
2answers
71 views

Accuracy of distance measures in geometry

In the following MWE, I set the distance from the edge of the paper to the body text to be 25mm. \documentclass[a4paper]{article} \usepackage[showframe, paper = a4paper, tmargin = 25mm]{geometry} ...
3
votes
3answers
117 views

Specify distance from page margin to header with geometry

With geometry, the placement of the header is set by specifying the distance from the text body below to the header above with headsep: \documentclass{article} \usepackage[showframe, headsep = ...
3
votes
1answer
86 views

How much space is occupied by footline?

This is said in TeXbook about page dimensions: Plain TEX sets \vsize=8.9in (not 9in, since \vsize doesn't include the space for page numbers at the bottom of each page)... According to ...
1
vote
1answer
187 views

how to set 2 cm margin in each side of my document

Please I want to set 2 cm margin in each side of my pages(top,down,left,right) I have seen many many margin but I don't know how can I set the exact magins to have at the end 2 cm I did ...
1
vote
1answer
44 views

How to set topmargin = leftmargin when the latter is auto-completed in geometry?

I'd like to set the top margin being equal to the left margin, but the left margin is auto-completed from the text width. I'm using geometry package. I just want to do something like: ...
3
votes
1answer
233 views

How to fix the top and bottom margins in Lyx in order to conform to standard ERC proposal?

I need to write a document with specific margins (well, I admit, a grant proposal). They want : The minimum font size allowed is 11 points, line spacing single. The page size is A4, and all ...
6
votes
1answer
123 views

How to draw borders around page contents

During learning, while conducting different experiments, it's useful to see actual page borders. So I wrote the code which does this and would like to know whether it is the proper way to accomplish ...
2
votes
1answer
36 views

tikzpicture line origin too far right

I'm attempting to make it so I can draw an arrow on a page. I want it to start as far left as the page margin, but it seems like it's adding extra padding that's shoving it too far to the right. ...
1
vote
0answers
107 views

Minted. Code highlighting right margin

I use minted for Python code, but with the long lines, instead of adapting to the document text width, it expands to the right without any kind of margin, and the code that doesn't fit, just does not ...
3
votes
1answer
62 views

apacite with [natbibapa] fails to line-break authors' names in citation callouts when author name has umlaut

\citep causes problem at the margin when the last name has an umlaut (\"{}). This post is related to my last post here: apacite produces inline citations out of text area when using custom margins ...
1
vote
0answers
20 views

Long word exceeding column in lyx [duplicate]

I have a long text that exceeds the column margins It's not an English word. it's this hexadecimal number ...
2
votes
1answer
114 views

How can I set the papersize in in book documentclass?

I need to create a document in book document class with papersize 170 x240, left and right margins 2 cm, top margin 2.2 cm and bottom margin 1.8 cm. I used this: ...
1
vote
1answer
88 views

How can I force all text to continue to the next line when using style=nextline in description lists with enumitem?

This question is related to this answer: http://tex.stackexchange.com/a/69525/13552. The documentation for enumitem (on page 7 in Version 3.5.2 2011-09-28) says that nextline: if the label does ...
6
votes
1answer
90 views

subfiles not detecting draft mode

specs: win7x64, miktex, texstudio folder structure: root/ - main.tex - text.tex I get expected wider left margin in main.tex: \documentclass[draft]{article} \usepackage{blindtext} % ...
1
vote
1answer
41 views

Customly change margins for a figure

Is there a way to customly change the margins only for a figure? Not for the text. I'd like to widen the margins on both sides, left and right, of the page, and keep the figure in the center. The ...
2
votes
1answer
52 views

Increase vertical space for tikz boxes

Problem: This problem is two-fold: How would I do in order to increase the top and bottom margin for the orange box where it says "Code if true"? How would I do in order to always align the orange ...
1
vote
1answer
49 views

Add an image in the right margin

I can add text in the right margin: \marginpar{test} But how can I add an image.png in the right margin?
1
vote
1answer
57 views

Double-sided document with CV class

I am using the CV class defined like this: %% Copyright (c) 2003-2009 Fr????ic Meynadier %% Original : Eric-Olivier Le Bigot %% Modifs : Fr????ic Meynadier (Frederic.Meynadier@obspm.fr) %% Modifs : ...
1
vote
1answer
50 views

apacite produces inline citations out of text area when using custom margins and parindent

The citation is outside of the text area. Seems like this has to do with custom margin and parindent specification. Any way to keep custom settings but still have citations wrap as expected? Thanks. ...
1
vote
1answer
104 views

Table of Contents different margins on first and subsequent pages

I am writing my doctoral thesis using the mcgilletdclass template that I downloaded on-line. For the most part, I have been able to make modifications to get a more desirable template; however, I am ...
7
votes
1answer
164 views

Horizontal space before TikZ picture

The horizontal bar from the following MWE does not start at the left edge of the paper as expected, but rather a bit more to the right. The line is 17cm long and the page width is also 17cm, which ...