{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
3answers
21 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 = ...
20
votes
2answers
827 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 ...
3
votes
1answer
59 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 ...
17
votes
3answers
12k views

What is the easiest way to get borders around a page in LaTeX?

I want my document to have borders in all pages. I imagine I can do that using TikZ, but is there an easier way to do it? I also asked this question here, but as the main question was something ...
1
vote
1answer
52 views

Adding figures on first page of documentclass article

I'm using the default article documentclass for a document that is just supposed to hold the accompanying figures for a paper. This is what I'm doing: \documentclass{article} \usepackage{graphicx} ...
1
vote
1answer
41 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 ...
7
votes
3answers
6k views

Setting document width in Lyx

When I view my document in a PDF with pdflatex, my stuff is squished into like only 60% of the page, leaving the rest an ugly, unused whitespace. How do I fixed this (preferably in Lyx)?
3
votes
1answer
29 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 ...
1
vote
1answer
19 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: ...
2
votes
1answer
20 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. ...
6
votes
1answer
66 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
votes
0answers
32 views

Text in the Left Margin [closed]

How do I put text in the left margin? \begin{gather*} \text{1.n}\\ \text{1.n+1} \\ \end{gather*}
1
vote
0answers
20 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 ...
10
votes
3answers
8k views

Problem with the header/ footer width

I have recently started using the geometry package to format the margins of my documents. Although, I've noticed that the width of the header/ footer remains the same. How can I correct this? ...
3
votes
1answer
19 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
65 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
32 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 ...
1
vote
1answer
27 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
33 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
41 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?
0
votes
1answer
22 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
26 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
22 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
115 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 ...
1
vote
0answers
35 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
36 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
18 views

Flexible space above and below an environment

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
26 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 ...
1
vote
1answer
87 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
0answers
28 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 ...
20
votes
2answers
11k views

Scale tikz figure to a percentage of \textwidth

A user asked a question about scaling a figure to a factor of \textwidth and got an answer like this: \documentclass{article} \usepackage{graphicx} \begin{document} ...
1
vote
1answer
86 views

Margins in booklet using \includepdf

I have PDF that I am printing as a booklet using the following code: \documentclass{scrartcl} \usepackage{pdfpages} \begin{document} \includepdf[pages=-,booklet,turn=false,landscape]{doc.pdf} ...
0
votes
2answers
32 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
40 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
29 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} ...
6
votes
2answers
100 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 ...
12
votes
1answer
463 views

Setting different recto/verso margins size (geometry) on this example

CONTEXT. Because of specific University requirements (1), I had to use this nice code found on tex.stackexchange http://tex.stackexchange.com/a/96366/50507 written by David Carlisle, that was ...
3
votes
1answer
60 views

Prevent overlap in margins by blocking some vertical space

Let's consider the example I used in Tikz: node in margin right to other node interacts with tcbtheorem that is a command that uses TikZ to draw a colored box around a marginal note. As this note ...
2
votes
4answers
132 views

Move table in `book` class documents

I need to add some tables in book class document. At times the table is wider than the text. This is no problem when it happens on odd pages since they have bigger right margins and I will bind from ...
0
votes
2answers
63 views

How can I change the left large margin to appear on odd pages, rather the even pages

The print shop has asked that I produce my document to have large margins on the left for odd pages. This makes sense, since when opening the book the first printed page will appear on the right. How ...
1
vote
0answers
44 views

Adjust Margins in {res} while maintaining layout

I am composing a resume based on the style file and example CV from "Latex template for creating a CV/Resume", which I found at ...
3
votes
1answer
46 views

Converting preamble into a new class changes margins

I'm trying to convert a preamble into a new class file. This is a simplfied version of the original file: testdoc.tex \documentclass[% 11pt, a4paper, twoside, openright, titlepage, fleqn,% ...
167
votes
4answers
39k views

Why are default LaTeX margins so big?

I've read that—unless I know a lot about typesetting—I shouldn't change the margins of a LaTeX document. The default margin size of the article class is really big and it feels like a lot of space is ...
11
votes
4answers
5k views

Two-sided document: reverse page margins for hardcopy

Background Wrote a manual in LyX. The PDF is two-sided. Using KOMA Script v2. The pages are 8.5" x 11". Problem The spacing on the margins is not printer-friendly, it is reversed: Since this ...
3
votes
1answer
82 views

Custom Beamer theme does not arrange stuff as I expect

I am creating my own Beamer theme (let me call it mytheme in this thread) and currently working on title page. First I put the code shown below in beamerinnerthememytheme.sty, which is loaded by ...
2
votes
2answers
62 views

cutwin, pstricks without defining the amount of lines OR how to have a small picture in the top left corner of a paragraph

I want a little image at the beginning of certain paragraphs that needs more than one line. In my case I like to have a quadratic picture needing 2 lines. So I tried to indent the 1st and 2nd line. I ...
2
votes
1answer
21 views

string of non-breaking spaces spilling into margin

I have a string of expressions that should not be split across lines, so I have placed non-breaking spaces between them. However, they spill over into the margin. How do I fix this? Here is my MWE: ...
1
vote
1answer
51 views

beamer: content top and bottom margins

It is trivial to modify the left and right margins in beamer. But what about the top and bottom? If possible, I would like to reduce a little bit that top margin, marked with the hand-drawn red ...
2
votes
0answers
20 views

How to keep left & right margins equal on separate pages [duplicate]

This must be a really common problem but I haven't find notes that address it in a satisfying way. Why does tex create an automatic indention when texts are going cross into the next page? Screen ...