{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
1answer
16 views

Multicolumn cells in tabularx overfill into margin

I have this table in my MWE. In the 2nd table, the cell colors seem to bleed over into the margin. I have tried to set various parameters with the tabularx and in the multicol to reduce this but it ...
7
votes
5answers
2k views

Excel chart -> PDF -> LaTeX but need to remove white space

I converted an Excel chart to a PDF file by Save As.. PDF in Excel. It looks good, but there is a lot of whitespace/margin on top and bottom which I need to get rid of. The only way to do so seems to ...
0
votes
1answer
58 views

Interference between crop and (new)geometry

I encountered a strange behavior of the command \newgeometry when using the crop package. After the first call of \newgeometry the centering of the page layout is lost and also can not be restored by ...
3
votes
1answer
53 views

Scaling a multi-column TikZ/pgfplots groupplot to page width

I am trying to scale a pgfplots groupplot with multiple (and variable numbers of) subplots to match the \textwidth of a document. What I found is that there seems to be no direct relationship between ...
1
vote
0answers
22 views

How to set `footskip` on a landscape page?

I'm using geometry and pdflscape to have a particular page in landscape (detailed here). However, setting footskip via \newgeometry{..., footskip = 1cm} does nothing, because the system still assumes ...
1
vote
0answers
54 views

Borders a few millimeters too wide [closed]

I want my document to have exactly 3cm space at the left and 2cm to the right and the text to be from one border to the other. However the code below produces a document with 3.1cm border at the left ...
0
votes
1answer
29 views

Different \headheight in one document

I'm studying at a Cooperative State University and need to write a report about my activities at work. Our department provided us with templates for all kind of document we have to fill out and attach ...
6
votes
2answers
2k views

Changing the textwidth of the notes in Beamer (repost from SO)

I've asked this on SO and didn't get a good answer, so I'm reposting it here. I've been using the beamer class to create presentations in LaTeX and I love it. Recently I started using the \note ...
9
votes
1answer
180 views

Indentation of sections and paragraphs to show hierarchy [duplicate]

I am having troubles with the format of a work that I'm doing. The default output of LaTeX looks like: 1.1. Section A Latex latex latex latex. 1.1.1. Subsection A-1 Latex latex latex ...
0
votes
0answers
35 views

how can I correct the margin space in a journal manuscript?

I have a problem with preparing the manuscript in the latex macro pachakge. I put the svjour2.cls. (Springer latex class) and svglov2.clo in the TEX file’s location. However, after execution, the ...
0
votes
1answer
38 views

Changing document format regardless of the document class!

Is there any way to change the format of a document such as single/double column, margins, etc regardless of the documentclass used? I am using iopart.cls and it does not have a twocolumn option. ...
2
votes
0answers
43 views

Decrease top margin of some chapters

I'm finishing my thesis in LaTeX, using class "book". I use a 1.5 line stretch with \renewcommand{\baselinestretch}{1.5}. Everything is ok, but I'd like the Abstract chapter (\chapter*{Abstract}) to ...
1
vote
1answer
44 views

Customize the size of the shaded box

I am using \begin{shaded} from \usepackage{framed}. The problem is I am using it for examples which come inside \begin{itemize}, the shaded box's margin does not begin with the \item margin instead ...
4
votes
1answer
56 views

Can parcolumns be made to expand into the margins?

I recently started using parcolumns instead of block quotes. I do this since I have a non-English source text in the right column and the English translation in the left column. Is it possible to ...
5
votes
1answer
49 views

How to determine head height automatically

I'm creating three documents with three different headers, containing images or large banners. Is there a way to determine the head height automatically or even better a way to change the head height ...
3
votes
0answers
51 views

Tikz Nodes in margin gets overwritten by page-wide tikz environments

I'm trying to improve the typesetting of openly licensed books created by my company. We do the typesetting of all our books with LaTeX. The design of these books requires coloured environments that ...
3
votes
1answer
42 views

Trouble setting margins with Resumé header

I am trying to typeset my resumé in LaTeX and have created a header that I am really happy with. However, now that I am starting to fill in the rest of my information the margins I have set up to ...
1
vote
1answer
78 views

Oneside cover within a twosided LaTeX document

I'm writing my thesis and I'd like to have a onesided cover while the rest of the document is twoside, so to obtain the text and figures well-centered within the cover. Here is my main .tex file: ...
3
votes
1answer
49 views

How to define margins of a document with page numbering at a specified place

I have to follow specific rules for an A4 document: upper and lower margins at 4.5cm page numbers centered at 3.5 cm I've succeeded to defined the margins with the geometry package but I'm ...
3
votes
1answer
89 views

Mark in word and margin in paragraph

Anyone knows how to put a mark on a word? (1) Text:   (1) will be slightly raised as if an exponent. Also, how could shorten margins in a paragraph? Clip 10 mm left and 10 mm right?
5
votes
1answer
53 views

Figure with two side-by-side subfigures that is wider than textwidth

I have a 2x2 array of subfigures and the ideal size I'd like them at is a bit wider than the textwidth. I saw this solution for a single figure (Custom margin settings for figure in LaTeX) but am not ...
6
votes
3answers
81 views

\listings environment inside \marginnote?

Is it possible to use \listings or similar environment inside \marginnote or in margins in general? \marginnote{ \begin{lstlisting} test \end{lstlisting} } If not, what would be a ...
14
votes
3answers
1k views

Making a LaTeX document appear as though it were typeset in MS Word

I am typesetting a document in LaTeX for which I have been given exact specifications that are intended for an MS Word-processed document (single-sided, single-spaced, 0.75 inch margins, no more than ...
5
votes
1answer
125 views

Geometry: showframe + landscape

I'm using \usepackage[showframe]{geometry} and I'm seeing that when I use a landscape environment (added by pdflscape package) the frame doesn't seem to be OK. Is this an erratum? Is there any way ...
2
votes
1answer
44 views

Table going past margins

I'm trying to create a header for my resume. I'm almost happy with the result, but there's a small formatting issue. I'm using a table to control where my name and contact info are placed. My name ...
1
vote
1answer
35 views

Beamer frame environment introduces 5.69pt vertical margin

I'm working on a beamer poster template where I need precise control over all margins. I got rid of most, but the mandatory frame environment(1) introduces a 5.69pt(2) which I cannot find(3). Observe ...
1
vote
2answers
53 views

O does not fit standalone class [duplicate]

Why are the top and bottom of the O cut off when I use the standalone class without any larger symbols? \documentclass{standalone}% \begin{document}% O% \end{document}%
8
votes
3answers
1k views

How to change the page number from even to odd while keeping the page as verso?

I'm writing a two-sided document with a binding margin. For certain reasons, I need to change the page number at some point, so what used to be an even-numbered page is now odd-numbered. This makes ...
11
votes
1answer
9k views

Change \textwidth and \textheight in mid-document

I set my \textwidth and \textheight in the preamble and would like to change both for some pages. How can this be done? E.g., the following example for \textwidth appears to work for the page number, ...
3
votes
1answer
45 views

Multiple left margin bars using mdframed package

How can I get multiple left-margin bars using the mdframed package? I can get a single left bar using, e.g. \documentclass{article} \usepackage{mdframed} \begin{document} ...
38
votes
1answer
504 views

different type areas on even/odd pages

in some (very rare) cases, it might be desirable to have the type area, particularly the text width, be different on even and odd pages. Let's say we're typesetting a textbook that's supposed to have ...
0
votes
0answers
36 views

put a footnote just in down margin no near of body text

i want put footnote just margin down no near body text i find this where i can handle the space between body text and down margin but is hard calculate space for all my footnotes ...
4
votes
1answer
75 views

Implementing marginfigure

sorry for the absolutely beginner question here. I've been looking at the tufte-latex class, specifically the tufte sample book. It makes use of marginfigures, which I believe are provided by the ...
5
votes
2answers
553 views

Beamer margins in bibliographies

In beamer I am using this code: \begin{frame}[allowframebreaks] \frametitle{REFERENCES} \printbibliography \end{frame} to produce a bibliography that will span multiple slide pages ...
2
votes
2answers
57 views

Add vertical line margin-aligned from a given point through subsequent pages

Using the memoir package, I would like to have a vertical line on my margin like this: Some leading content ... vertical space ... ---------------------------------- XYZ | Content A | ...
3
votes
0answers
68 views

pgfplots trim to axis area even with extra ticklabels

I have a plot with extra x tick labels on top in pgfplots that i wish to display in a figure at the top of my page. I wish to have the top of the actual axis rectangle directly at the top, with the ...
1
vote
2answers
128 views

Custom geometry for a first chapter page?

On normal pages I have header and no footer. On first chapter page -- I have footer (with page number) and no header. Hence I need: \newgeometry{top=2cm, bottom=1.2cm, left=1.5cm, right=1.7cm} for ...
3
votes
0answers
87 views

How to have headers, section headings, and figures expand into the margin?

I am interested in the following page layout. How to have headers in margins (up to margin) Is it possible to start section headings from margin How to set figures occupy the margins. I can ...
7
votes
2answers
127 views

Why does LaTeX add 1 inch to margins?

LaTeX defines \topmargin, \evensidemargin and \oddsidemargin as follows: [reference] \topmargin: Length of margin at top of page above all printing. 1 inch is added to this value. ...
2
votes
1answer
94 views

Include a PDF and ignore page margins?

I am writing a document using pdfLaTeX for college, and I have been supplied with a title page I need to use. I have altered the \maketitle command: \usepackage{pdfpages} \renewcommand\maketitle{ ...
8
votes
2answers
2k views

Remove vertical space at start of latex document

I have this test file which is supposed to put Hello there. near the top of the page but it does not work in so far as there is still tons of vertical space at top. How can I fix this? ...
0
votes
0answers
37 views

Text width in 1st and 2nd glossary is different?

I am a latex beginner, so would appreciate your help. My problem: in my thesis I have two glossaries: Glossary and Acronyms. The Format of Glossary is ok, but in Acronyms - textwidth is too narrow. In ...
3
votes
1answer
54 views

What is the proper way of moving my content but not my header/footer?

My header and footer are all set. Size and position are good. However, I want to push the actual content to the right and down (creating big margins at the top and left of the document). See this ...
2
votes
3answers
95 views

Placement of page numbers is too low

I'm trying to set page numbering but somehow it ends up lower than it should and the numbers touch the edge of the page, which looks strange and is exactly what I don't want it to look like. How can I ...
3
votes
1answer
46 views

Testing and modifying white space around an environment

I'm trying to create something similar to marginpar but without the hassle of floats (particularly because I'm going to have a lot of these). First issue These notes always appear at the beginning of ...
3
votes
2answers
124 views

Alignment marginnotes

I am trying to write a report for Uni, where I need something like what marginnotes does. The problem is I would need two different margins on the left side of the page. One for the chapter or ...
1
vote
1answer
77 views

Book style does wrong page shift

I'm writing my thesis in LaTeX and i'm using \documentclass[12pt,a4paper,twoside,openright,titlepage]{book} but I have a problem. I want, as in books, that the odd pages are shift to the right and ...
21
votes
1answer
659 views

Why doesn't a 17cm x 25cm picture fit on a 17cm x 25cm page?

Why doesn't this tikz picture fit on the first page of the document? \documentclass{report} \usepackage{tikz} \usepackage[showframe, centering, text={17cm, 25cm}]{geometry} \begin{document} ...
2
votes
1answer
85 views

Top margin, memoir class and geometry package

I'm trying to set a very basic front page for a document with the MWE below. I'd like to have a vertical stripe running along the left margin and have all the margins set to 0pt. The layout is based ...
1
vote
2answers
682 views

revtex4 left and right margins are not the same

I seem to have a problem with margins. I'm using revtex4 (4-1 messes up my references, but that's not the point). The preambule is this: \documentclass[twocolumn,prc,floats,amsmath,amssymb]{revtex4} ...

1 2 3 4 5 12