{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

4
votes
2answers
88 views

Setting vertical margins on top and below align* environment

I'm using the amsmath align* environment to format multi line formulas. Unfortunately, the environment adds a lot of margin before and below the formula. I found only one solution to get rid of this ...
0
votes
1answer
86 views

Different margin sizes on odd and even pages

I am polishing my thesis document. It is based on a custom style derived from report and it is supposed to deliver different sizes of margins on odd and even pages, however it doesn't work. In the ...
2
votes
1answer
61 views

Change page margins in LyX

I use LyX 2.1, and I want to change the margins of a document as follows: Top and bottom: 2.5 Right: 2 Left: 3 How can I do this? Thanks.
1
vote
1answer
31 views

is possible to use a part of the margins with figure?, as with tabular

is posible to use a part of the margins with FIGURE?, as in this example with tabular \documentclass{article} \usepackage{subcaption,mwe} \usepackage{graphicx} ...
4
votes
1answer
49 views

Inserting a colored box to page background leaves gap

I'd like to have a colored box in the upper part of every page. Even though it's a simple task, I cannot make it work. Having looked for answers here and in the eso-pic package discription does not ...
6
votes
1answer
89 views

How to place a figure in page margin beside a mdframe?

In my text I would like to use some icons in the page margin to label element types, e.g., an example or a theorem. The following picture illustrates this: My text is double-sided, so I would like ...
2
votes
3answers
118 views

Left margin wider than right one

Why is the left margin wider than the right one? Each of them should be 1 inch wide: If you run TEX without modifying the plain TEX format, you get pages that are numbered at the bottom; and each ...
1
vote
0answers
18 views

Delete new line margin BibTeX [duplicate]

I need bibliogrpahy look like in first picture. Actually, default look like in second picture. diplom.tex \documentclass[a4paper,14pt,russian,oneside,final]{extreport} ...
2
votes
2answers
48 views

Annotate items at the margins beside each item

Is there a way to add annotations to the margins beside items of an enumeration? Consider for example the following pseudo-code: \documentclass{article} \usepackage{enumerate} \begin{document} ...
2
votes
2answers
177 views

Why graphics do not respect the end of line?

I see this all the time, inline graphics (in this case tikz picture) do not obey line breaks and flow like a word. In this example document, there are no forces new lines and the picture sticks out ...
6
votes
2answers
112 views

KOMA-Script typearea and DIV

I was going through the KOMA-script Documentation and I found on page 32 a nice table with the type area according to the number of DIV you set up your document. Now, I MUST be doing something ...
10
votes
1answer
318 views

DIV and BCOR setting in KOMA (best practices)

I have been playing around and I now realize it is possible to set the type area using a KOMA class by a couple of ways, and I'll like to know which is the correct one. \documentclass[% a4paper, ...
14
votes
1answer
224 views

FR: Staplers corner

I like twocolumn documents, but sometimes people complain that stapeling pages together made it hard to read the top left text of the left column on all pages after the first page. OK, I could have ...
2
votes
1answer
79 views

Smaller textwidth in memoir

I have to use memoir with A4-paper and 11pt font size. This way the lines are very long, so I would like to make it smaller to have less characters per line. However when just setting parameters that ...
1
vote
1answer
70 views

How to show margin distances in mm

I would like to know the distance (in mm) of the margins I just set, and I would like them to be displayed in the document (for debugging purposes, of course). I use the showframe option of the ...
1
vote
1answer
66 views

Using \extrawidth in exam class results in unwanted margin changes (per page)

I'm trying out the Exam class after seeing good things about it on this site following the guide: Using the exam document class by Philip Hirschhorn . However, I've run into some problems with the ...
5
votes
1answer
78 views

Vertically center rule on a page

More precisely, I want to get a 18 × 26 cm² landscape box with a rule at the middle. Combining the crop package and this code I got: \documentclass{article} ...
1
vote
1answer
51 views

page margins not respected after A3 page insertion in A4 document

I am inserting an A3 page in an A4 document but the margins are not respected (and neither does a page number appear), after the A3 page. Test code below: ...
8
votes
2answers
341 views

What is the equivalent of fullpage in geometry package?

There's an occasion when I am forced to use geometry package instead of fullpage. Howevere the document margins should match another document which uses fullpage. Where can I find the default top, ...
4
votes
1answer
170 views

Is there any automatic way to detect hanging text on the right in LaTeX?

I wonder if there is any automatic approach to detect hanging text all throughout the 200-page thesis, mostly due to hyphenation issues. Consider the output below, there is like a subtle hanging text ...
1
vote
1answer
60 views

How to use margins to center a table

I want to realize something like in this two pictures. I want to use a part of the margins for notes (draw even tables!). I want that the margin change from odd page to even page (I think it's simple ...
4
votes
2answers
90 views

Horizontal space before block of text

Hi, I wanted to create column of text after bolded "Lorem Ipsum 1.", which has no specified linebreaks. This space before text (marked on image with red line and question marks) should have exact ...
2
votes
2answers
62 views

margins or line breaks in koma-script table of content

Entries in my KOMA-script TOC spread too close from the page numbers: One solution is to use a short title and insert in it a line-break, but this is not an acceptable solution. I am trying to ...
2
votes
0answers
24 views

Curly brackets with long content cross the margin [duplicate]

I wonder if there is a way to break a line when it is too long with a curly bracket crossing the margin. Thanks. \documentclass[12pt]{article} \begin{document} blablabla blablabla blablabla blablabla ...
2
votes
2answers
59 views

Reducing margin as small as possible in subfigure

I use subfigure to implement subfigure and I use \hspace or \vspace. I want very small margin to maximize the size of subfigures but when I set \hspace{0cm} and \vspace{0cm}, there is still large ...
1
vote
1answer
66 views

Control margins of the note of a beamer slide

I have a beamer slide associated with a note. \documentclass{beamer} \mode<presentation> { \usetheme{Madrid} %\setbeamertemplate{footline} % To remove the footer line in all slides uncomment ...
1
vote
0answers
18 views

Accommodating page numbers with narrow margins [duplicate]

Problem: I'm having trouble getting page numbers to display in a LaTeX document. Background: I have a document with 0.3in margins that I suspect covers up the page numbers. A very similar document ...
2
votes
0answers
60 views

extending captions for A3 pages

Im writing my Thesis in A4 format and sometimes I need to use A3 pages for bigger images. I managed to create a single A3 page within the A4 document and I extended the header up to the right margin. ...
1
vote
1answer
49 views

Using newgeometry — how to prevent moving the top outer page numbers?

I used \newgeometry to enlarge the printing space to include more graphs on a couple pages of my document (article class), but it moved the page number on those pages too. If I want to keep the page ...
3
votes
1answer
46 views

Setting margins for an individual page [duplicate]

With the geometry package, we can set margins for the whole document (with options like left, right, etc.). Now, how do we set margins for an individual page so that it doesn't affect the whole ...
2
votes
2answers
99 views

How to set binding offset in report class

I want to add bigger margin to the left side of document for binding purposes. The default margin with report class is ~1.5 inches, but when I use the geometry to set the bindingoffset, whole layout ...
1
vote
0answers
57 views

control margins with geometry or fullpage

Is there a better way to set \topmargin -1.5cm \textwidth 15.5cm \textheight 23.5cm \oddsidemargin 0.7cm \evensidemargin 1.2cm perhaps using \usepackage{geometry} or \usepackage{fullpage}? What are ...
2
votes
3answers
65 views

Vertical line next to a block with no margins

I've seen on this website several possibilities to include a line next to a paragraph. Like this: (the line is continuous) text text text | text text text | text text text | However, I would like ...
1
vote
0answers
40 views

Copy verse out of pdf mantaining margin structure [closed]

I use LaTeX to nicely typeset poems with the package verse. Here a MWE \documentclass{article} \usepackage{verse} \verselinenumbersleft \poemlines{2} \setlength{\vrightskip}{-3em} ...
3
votes
0answers
42 views

Condensing everything to force fit a page?

I have a math exam I can use three pages of notes for and I was thinking, is there a way to type a document in LaTeX that will auto adjust to fit three pages or should I just play with the font sizes ...
1
vote
0answers
44 views

Horizontal placement of graphic in left and right margins

I want to place small graphics in the outer margins of my 2-sided document. I've been using, e.g., \marginpar[{\hfill \includegraphics[scale=.3]{figures/ivy-univ.png}\hspace{8 pt} }]{ ...
1
vote
2answers
50 views

How do I force a picture to be placed on a page, disregarding margins?

I have a picture that I would like to place on the frontpage of a student paper that I am working on, and it is being pushed on to the next page by LaTeX. I want it to be placed in a specific place, ...
2
votes
1answer
62 views

How to get Itemize not to skip the first line

I have something like this in my cv template, I have tried to explain what the problem is below. \NewEntry{2000}{blah} \Description{\MarginText{blah} \begin{itemize} \item With itemize \item It ...
5
votes
2answers
70 views

Package geometry parameters and changing left margin

I want to make an indented paragraph, that is to indent the whole paragraph and not just the first line as happens with \par. I use geometry, so I thought that package might have a parameter that ...
0
votes
1answer
69 views

minipage goes beyond right margin

\begin{minipage}[c][3cm]{0.075\textwidth} \includegraphics[scale=1.5]{Capture} \end{minipage}% \begin{minipage}[c][3cm]{0.85\textwidth} \centering{\bfseries{\scriptsize blah blah blah blah} ...
1
vote
0answers
42 views

How to change the default top margin for an invoice?

Here is what I've got: \documentclass{letter} \newcommand*{\BottomLeftX}{1.0in+\hoffset+\oddsidemargin}% ...
2
votes
1answer
41 views

How set a table in margin?

\documentclass[12pt]{book}‎‎ \usepackage[top=3.cm,bottom=3cm,left=2.2cm,right=6.2‎cm,marginparwidth=4.5‎cm‎,headsep=10pt,a4paper]{geometry} ‎\usepackage{amsmath,amsfonts,amssymb,amsthm}‎‎ ...
2
votes
0answers
17 views

Changing the top margin in LaTeX for chapter name [duplicate]

When a new chapter starts I want to decrease the margin between the top of the page and where it says Chapter X. So I have something like Chapter X Chapter Title and I want to decrease the space ...
3
votes
1answer
56 views

Change the margin twice on one page

I am attempting to change the margin on a section of the first page of my report. \documentclass[10pt]{article} \usepackage[left=25.4mm, right=25.4mm, top=12.7mm, bottom=25.4mm]{geometry} ...
22
votes
2answers
427 views

Gradient fill around section headings

Trying to make a document that has gradient fill around section titles, that are not effected by margins, as such: I managed to get the gradient effect but I can't figure out how to get it to start ...
5
votes
1answer
79 views

Stretching an \fbox horizontally to fit the page

I have a frame box next to some text (Komentar:), and I would like to stretch it so it fills up the page. I've done this using the calc package by subtracting \widthof{Komentar: } from \hsize (or ...
1
vote
1answer
45 views

Issue with the lengths of the margins in article class in twoside mode

Simply, put the solution to my problem is that for everything before the first section, the odd margin must be swapped with the even margin and vice versa. At the first section, everything must be ...
1
vote
0answers
54 views

Unequal margins for two column document

I am trying to create a conference paper using template provided here: http://iel.ucdavis.edu/code/ASME/conf-1.7b.html But, when I compile the document, the right margin(for the document) is much ...
2
votes
1answer
68 views

Positioning the address in a Letter

I need to place the right-side address differently in my .tex file but I can not figure out how to do. What I would like is to have the last line from the right-placed address at the same line as the ...
6
votes
1answer
130 views

Newsletter Formatting

First post here but I'm trying to create a newsletter. However, I'm having some difficulties. I want it to look similar to this example: http://www.calvin.edu/admin/hr/newsletter/MAY%202012%20(e).pdf ...