{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
0answers
27 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
36 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
70 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
52 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
19 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
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
36 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
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
26 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
47 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
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 ...
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
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: ...
0
votes
0answers
24 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 ...
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
80 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 ...
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} ...
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 ...
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} ...
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: ...
2
votes
1answer
62 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} ...
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 ...
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 ...
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} ...
4
votes
2answers
91 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 ...
0
votes
0answers
43 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 ...
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
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
145 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. ...
2
votes
1answer
43 views

How to add text in the margin, level with first line of paragragh?

I am having trouble adding text (one or a few words) to the left margin of a page. The result should be like the text in the margin in the answers here (without the brace). But with the difference ...
8
votes
2answers
108 views

Plain TeX section number in margin

I want to typeset the number for the section in the margin. Here's an MWE of what I'm starting from. % --- Fonts ------------------------------------------------ \font\0="Roboto Condensed Light" at ...
1
vote
2answers
43 views

Aligned Equation Resizing? (Above or Below \textwidth)

My input: \begin{equation} \begin{aligned}[t] & \min\limits_{\bm{\Delta(P,Q),u}} & & \sum\limits_i u_i, \\ & \text{s.t.} & & (P_{min_k},Q_{min_k}) \leq (P_k,Q_k) \leq ...
0
votes
1answer
77 views

Page numbers incl. text (different side)

I have two questions according to my Thesis. First, how do I switch margins automatically for every second pages, such as: Second how do I switch the page numbers and including different text ...
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 ...
1
vote
1answer
138 views

Recommended margin and binding offset

I'm soon going to deliver my Thesis for printing. The printing office are not going to do anything to the margins before printing, nor binding offset. I showed them the default twopage LaTeX margins, ...
1
vote
0answers
25 views

openright reseting

I have a rather larger document, where I use "openright": \documentclass[12pt,twoside,a4paper,openright]{report} I then have a few of my pages in the middle of the document where I use: ...
1
vote
0answers
36 views

Extra right margin depending on textwidth

It seems that the right (outer) margin is changed from what I request, depending on textwidth. MWE: % !TEX TS-program = pdflatex % !TEX encoding = UTF-8 Unicode ...
1
vote
0answers
32 views

Margins for the whole slide in Beamer?

I want to make a Beamer presentation with white margins at the edges, so the whole slide would be affected by these margins (including the color bars for my Berlin beaver theme, for example). So there ...
0
votes
2answers
82 views

Top margin fancyhdr

I've been starting to use the \fancyhdr package now, using next commands: \newgeometry{left=1.5in,right=1.5cm,top=3cm,bottom=2.5cm,headheight=1cm} (after \begin{document} and after the input of the ...
0
votes
0answers
41 views

How to change margins based on paper size?

My document uses US letter: \ProcessOptions\LoadClass[letterpaper,twoside]{report}, with the following margins setup: \geometry{tmargin=25mm, bmargin=25mm}. Now, if I change the paper size option ...
1
vote
0answers
43 views

How can I adjust the external header/footer margin in memoir class?

I am working in a memoir class document, with a template I found on the internet and customised a bit. I would like to change the number's and header's place, putting it further from the edges of the ...
0
votes
1answer
38 views

change the vertical distance between lines inside an enumerate

I want to know how to use a command like \enumerate but more compact. Here's an example: I'm writing this problem using \enumerate. In this way: Let $\sP$ be a property of morphisms of schemes ...
4
votes
1answer
39 views

Nested `mdframed` environments and footnotes

Suppose that you have two mdframed environments, one nested inside the other, and a footnote in the first mdframed environment but not in the second. See the MWE example below. ...