{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 = ...
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 ...
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 ...
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: ...
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 ...
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. ...
-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 ...
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 ...
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
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 ...
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 ...
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
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 ...
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 ...
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 ...
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 ...
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,% ...
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: ...
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 ...
2
votes
1answer
28 views

Wrong margins on even pages using Memoir

I'm trying to customize the textblock size in a Memoir document, however, both \settextblocksize and a simple \setlength{\textwidth}, \setlength{\textheight} cause wrong margins on even pages. A ...
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 ...
1
vote
1answer
58 views

enumerate ignores right margin in items with long words

I'm having trouble with an enumerate list and some "\item"s that contain longer words. Here LaTeX fails to do a line break and "ignores" my right margin (see \items No. 2 & 5 in my example). I ...
4
votes
0answers
35 views

Geometry package unexpected interaction with global twoside option and baselinestretch

The gif animation is obtained with the following tex code (by commenting out and restoring the corresponding parts of the preamble) and demonstrates that if twoside option is supplied as a global ...
3
votes
1answer
62 views

Insert pdf, add margin

I'd like to add to a pdf a margin of 1cm. Around this page I will add a frame later and like to draw something else to the frame. However, how can I add a margin to a pdf without scaling the pdf (-> ...
1
vote
0answers
44 views

Caption settings before and after loading caption package

Why do captions look so different after the mere loading of the caption package? What are the default settings for a caption BEFORE loading the caption package? I would prefer to be able to load most ...
1
vote
1answer
58 views

Align block with margin

I am using beamer with the inner theme rectangles. The text inside blocks is then aligned with the text outside of the blocks, and the edge of the blocks stick out into the margins. I would like the ...
2
votes
1answer
32 views

screenplay-pkg affects margins

I am having a problem with the screenplay-pkg. Just declaring it affects the size of the margins of left- and right edge & spine margins (about the size of 1 letter). If I comment it out, then ...
1
vote
1answer
17 views

Changing margins on defined pages

We all know that by adding: \usepackage[left=...,right=...]{geometry} changes the margins of the entire document. However, is there a way to modify the margins on the pages I'd want?
0
votes
0answers
28 views

Margin settings ignored by subsection titles and list items

My apologies for asking such a simple question. As a first time user, I am not using LaTeX to its fullest extent, although I do need its basic formatting option to work. While 99% of my document ...
0
votes
0answers
41 views

Are margins correct for two-sided memoir?

The default twoside memoir document style makes the right margin really large on recto (odd) pages and the left margin really large on verso (even) pages. This seems counter-intuitive to me. It ...