{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
1answer
15 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,% ...
164
votes
4answers
38k 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 ...
1
vote
1answer
45 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} ...
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
68 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
51 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
18 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
35 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
19 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
24 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
55 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
24 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 ...
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 ...
3
votes
2answers
318 views

Full width table with caption in refman doc

The refman document class has a big left margin for text. Only the headings are on the normal left margin. Perfect for what I'm doing. But I have a wide table (float) that must be centered on the ...
2
votes
1answer
73 views

Putting figures+caption in the margin

Is there a "clean" way to make figures and their caption appear in the margin? I'm using memoir with the companion pagestyle, so the margin is quite assymmetric and I think it might look nice enough ...
0
votes
0answers
23 views

Longtable headings doesn't appear with fullwidth package

I'm writing a document with long and wide tables spilling over the margin area in a two side document class. I'm using the Marco Daniel's fullwidth package. Using longtable (and even longtabu) the ...
0
votes
1answer
128 views

How to put a symbol always in the right margin, even in twoside mode, like line numbers of lineno?

I discovered the package lineno which in two side mode of the class article can force to put the line numbers on the right. I really like that because I want me QED symbol to do the same. Currently, ...
4
votes
2answers
90 views

Setting Margins Exactly - Geometry Package

My University's thesis requirements for margins (letter paper 8.5in x 11in) are as follows: Top: 1 inch; Left: 1.25 inch; Right: 1.25 inch; and Bottom: 1.0 inch I was/am having difficulty ...
3
votes
1answer
46 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 (-> ...
2
votes
2answers
52 views

Margins on two-sided documents using LyX

I have an issue trying to set my margins on LyX. I am using a two-sided document, the box for this option is checked. I've set the value of inner margins (4cm) and outer margins (2cm), but on my Pdf ...
1
vote
0answers
40 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
49 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 ...
3
votes
1answer
122 views

How to include page margin into header and footer in memoir?

I wonder how I can achieve the following two things: I want to have defined page margins for the use of \marginpar notes and comments. The problem is that, although I use memoir with twoside option ...
1
vote
1answer
67 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} ...
1
vote
2answers
839 views

scrbook page numbers margin problem

I was looking for the setting to adjust the vertical margin of the page numbers in the scrbook class but haven't found anything. I want to have them "nearer" to the page margin. ...
12
votes
1answer
446 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 ...
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
26 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
30 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 ...
1
vote
0answers
21 views

Inconsistent slide margins in frame with allowframebreaks option in Beamer

When I create a long beamer frame which is automatically splitted into slides by using allowframebreaks option, it has a little bigger vertical margin for the first slide. I would like to make it more ...
0
votes
0answers
30 views

Custom code is overwriting some of the main code. Formatting problem

I am creating a document that requires some editing in the the normal ShareLaTeX format. I've googled my problem and the code seems to do the job: ...
2
votes
1answer
56 views

page margin for pages with chapter are wrong

I am having trouble with the marging of my thesis. I am using a template which worked perfectly for a previous paper some 2 years ago but now when I create a pdf the margin on pages containing a ...
4
votes
1answer
24 views

Changepage Package [\adjustmargin] Does Not Work Correctly With \captionof When the Caption Package Is Loaded

The justification of the text is skewed when all of the following conditions are met: The \adjustmargin environment from the changepage package is used. The \captionof command is used. The caption ...
0
votes
1answer
79 views

Not getting the exact page margin during printout of PDF generated by LaTeX

I am using the geometry package: \usepackage[a4paper,margin = 15mm]{geometry} or \usepackage[a4paper,top = 15mm, bottom = 15mm, left = 15mm, right = 15mm]{geometry} But after taking print out of ...
1
vote
2answers
36 views

Justification (both right and left) and page-break for margin enumeration

I am including an enumeration in the margin. I am able to get this to work, but noticed two problems. First, I am trying to justify the text. Currently, it is justified on the left, but not on the ...
4
votes
1answer
93 views

How can I allow footer to have their own margin?

I'm required to have a strange margin of left=3.14in. What would be a good way for the footers to ignore this and instead adhere to left and right margins of .75in? MWE: \documentclass[10pt]{article} ...
3
votes
2answers
17 views

Width of structured abstract in revtex4-1

revtex4-1 offers structured abstracts through a description environment inside an abstract environment. However, this messes up the right margin in reprint mode: \documentclass[reprint]{revtex4-1} ...
2
votes
2answers
76 views

New line after reaching margins

I wonder if there is a way to tell to WinEdt (or TexStudio) to start a new line when a word reaches the margins of a document. The reason is that I don't like to have long expressions and I don't ...
2
votes
1answer
68 views

Tikz left margin indentation

Is there a better way to remove the indentation of a tikz figure? What I have so far is this \documentclass{article} \usepackage[top=0cm, bottom=0cm, left=0cm, right=0cm]{geometry} \begin{document} ...
2
votes
1answer
61 views

Setting margins so that text is centered on a page

How do I center the text on the page? The text is flush against the right margin. (I have more text. On the second page, the text is also flush against the right margin.) \documentclass{amsart} ...
6
votes
1answer
64 views

Is there a way to get rid of my \vspace{} hack?

I am creating my CV in TeX from scratch and I have come across multiple invisible lines that make my formatting inconsistent. I have this command to make a bulleted list from delimited elements: ...
3
votes
4answers
5k 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. ...
0
votes
0answers
42 views

Geometry package: Lengths saved by default. Options for save/load/restore

The geometry package: Package lengths are not saved as lengths. Examples: layoutheight, tmargin The following only affect the complete layout: \savegeometry \loadgeometry \restoregeometry ...
4
votes
1answer
34 views

Does \@tocrmarg work for chapters?

I am working on a dissertation based on USFDissertation. I need to set at least 0.5" distance between the title text and the page number. However, when I modify the \@tocrmarg command, it does not ...
1
vote
1answer
64 views

How to make these lines visible in Latex?

I'm new to LateX, I don't know how to set borders like these in LaTeX. Please help me, my paper is due tomorrow. :(
0
votes
0answers
28 views

longtable overwrites bottom margin

I'm a newer Latex programmer. I'm working on an existing project (I must fix some problems) and I have a problem with a longtable. It overwrites the bottom margin and i lose one rows (in this case ...
2
votes
1answer
25 views

Reducing stretching of a caption gives an error

I get an error when I add the stretch=0.80 command to the caption-package as here: \usepackage[font={color=red,footnotesize,% stretch=0.80},labelsep=quad]{caption} The caption is a simple ...
2
votes
1answer
54 views

Placing symbol in margin

I am using \def\margin_symbol{\rlap{\protect\makebox[-3cm]{X}}} which I use in sections as \section{\margin_symbol My Header} to place an X 3cm to the left in the margin; however, my problem is ...
5
votes
2answers
144 views

Put hyphen on the margin, not in the text

Normally Latex puts hyphens inside the text: ------------------------------------ Lorem ipsum dolor sit amet, consec- tetuer adipiscing elit. Aenean com- modo ligula eget dolor. Aenean mas- sa. ...
4
votes
3answers
3k views

Change \headheight for a \pagestyle

I have a document class that auto generates header from some user input. The problem is the first page should have a different page header than the others and the headline can be multi line. So ...