{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

1
vote
1answer
215 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} \usepackage[linesnumbered,ruled]{...
3
votes
2answers
542 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
57 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
92 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
149 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
63 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 lengths,...
2
votes
1answer
44 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
127 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
185 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
67 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
152 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
121 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 \setcounter{...
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
92 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
42 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
190 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
120 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
57 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
80 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
139 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 = 5mm]{...
3
votes
1answer
91 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
262 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 \setlength{\...
1
vote
1answer
46 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: \documentclass[...
3
votes
1answer
285 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
127 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
39 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. I'...
1
vote
0answers
133 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
71 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
130 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: \documentclass[10pt,b5paper,openright,...
1
vote
1answer
110 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
99 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
49 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
54 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
50 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
65 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
56 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
134 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
170 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 ...
3
votes
1answer
98 views

How to make a new figure environment that does additional stuff?

Currently I have a document in which most caption of figures and tables is placed in the margin, using mcaption. But for some figures and tables I need the full width (textwidth and margin). Both ...
0
votes
0answers
38 views

Margins mirrored in thesis template [duplicate]

I'm using the LaTeX thesis template and I'm trying to set the margins. The guidelines for writing my thesis states this about the margins: Printed double-sided on white A4 paper within the ...
1
vote
0answers
35 views

Flexible space above and below an environment [closed]

I have used the amsthm package to define a new environment as follows: \newtheoremstyle{examplestyle} % name of the style {10pt} % space above {10pt} % space below {\normalfont} % font of body ...
1
vote
1answer
45 views

Memoir not Obeying Lower Margins

I am using the memoir class to typeset my thesis, with the following commands to specify the margins \setulmarginsandblock{1.5in}{1in}{*} %% 1.5in upper margin, 1in lower margin \...
0
votes
0answers
82 views

change the default sidecaption margin at left for oneside memoir option

This question is related to this stack thread About \sidecapmargin Memoir class say that the \sidecapmargin command controls the margin where the sidecaption will be placed. The possible values ...
1
vote
1answer
175 views

Change memoir sidecaption margin for correct oneside display

I use a memoir class to write my thesis, and i don't know why i write all my text using the twoside option. Now i need oneside option to print - yes, this is a silly situation :( - for impression, ...
0
votes
2answers
73 views

Both side margin in latex

I am writing a report in latex and I want to write in both side. I am pretty successful to give both side (odd and even) margin. My problem is that I want first three page of the report in one side ...
4
votes
1answer
112 views

Prevent Hyphenation across lines + Enforce right margin

My first question here, so it may sound rambling. So far I've found the answers about preventing hyphenation across lines and for setting margins, but I'm having trouble putting it together. This is ...
2
votes
2answers
146 views

Left margins are different for longtable and tabular

I would like to use a tabular and a longtable in my document, but the left margins are not aligned. \documentclass[letterpaper,11pt]{article} \usepackage{longtable} \begin{document} \begin{tabular}...
6
votes
2answers
249 views

Placing the equation number in the left-hand margin

I use \renewcommand{\theequation}{{\hspace*{-3.05cm}\thesection.\arabic{equation}}} to move my equation numbers into the margins (corporate design), it looks like this: The problem is that ...