{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

2
votes
1answer
339 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
100 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 ...
7
votes
1answer
2k 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 ...
3
votes
1answer
170 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?
7
votes
3answers
198 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 ...
2
votes
1answer
129 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 ...
2
votes
1answer
333 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
94 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
1answer
978 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 ...
3
votes
1answer
102 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} ...
0
votes
0answers
55 views

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

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 ...
5
votes
1answer
432 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 ...
3
votes
0answers
246 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 ...
2
votes
2answers
170 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 | ...
8
votes
1answer
431 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
394 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
1answer
274 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 ...
2
votes
3answers
1k 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
105 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
322 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
415 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 ...
23
votes
1answer
800 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
410 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 ...
3
votes
1answer
105 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 ...
5
votes
1answer
165 views

Setting up page dimensions in LaTeX

I generally try typeset a document in LaTeX and then take a print out. Since I am not familiar with setting up the page dimensions, when I take print out on an A4 paper, lot of gaps are left. So can ...
4
votes
1answer
334 views

Why do LaTeX and pdflatex produce different margins?

I am working with TeXStudio on Windows. When I use latex + dvips + ps2pdf and pdflatex the margins in the resulting PDF file are different. Has anyone else encountered this? Is there a way to avoid ...
5
votes
0answers
110 views

Different margins for odd and even pages, but not mirrored with memoir [duplicate]

I need a help with this page layout: top/bottom margins: 2cm for all pages on even pages: 3.5cm - 2cm on odd pages: 2cm - 2cm I tried: \setlrmarginsandblock{3cm}{2cm}{*} ...
5
votes
1answer
258 views

Creating borders within the specified margins

I've been trying to get borders for specific pages for my thesis, using tikz. Unfortunately, the borders exceed the margins specified, and since I have to submit a bound copy of the thesis, this is ...
1
vote
0answers
91 views

Why are manual offsets needed in the ticket package? [closed]

When I use the ticket package, the boxes it prints are significantly shifted towards (and past) the right and bottom margins. It seems that the package author itself had the same problem. He ...
6
votes
1answer
3k views

Inconsistent margins using fancyhdr and geometry

For my homework assignments I usually use the fancyhdr package to create a header that contains the group (A, B, C etc), homework title, my name + student number and the date. Besides that I ...
4
votes
3answers
1k views

text not justified

I am new to LaTeX and in my first article I am facing the following problem. Although I set the margins to 1 in all around the A4 page, the text does not justify till the end of the right margin. It ...
4
votes
1answer
2k views

Using knitr, how can I rotate page to landscape and fit the figure to full extent?

LaTeX newbie here, so please be gentle. I'm working with knitr to generate pdf report. The document consists of quite few large maps, with a lot of details or small multiples. Ideally, whenever such ...
5
votes
2answers
502 views

Changing textblock and margin size mid-document with memoir

In a memoir document, I'd like to set different textblock size and margins for the back matter, to give wider space for a glossary. Similar questions have been asked about changing page layout ...
1
vote
1answer
3k views

How to reduce the margins and spacings in this document

I'm using the res.cls to create a one-page CV (I know, res.cls is old, but I prefer its layout). Since the CV is one-page only, I need to squeeze some more space for its content. This is what I have ...
5
votes
1answer
4k views

How to set vertical margins for beamer frame?

My talk slides use a mostly-white background image (supplied by organizers) that has some visual patterns at the bottom. I would like to tell beamer to not cover these patterns (as it makes text less ...
6
votes
2answers
3k views

How can I set the inner margins of a Beamer block?

I've worked myself into a rut. A very, very hacky, plain-TeX-y rut. I'm creating a poster with beamerposter. Content is split logically into block environments, and customization is done through ...
3
votes
1answer
131 views

Initial page numbers wrong

I am going crazy over the page numbers in my thesis. I have included the relevant part of my document below. I have two problems: The dedication is numbered ii. which is good, but the abstract is ...
3
votes
2answers
574 views

Convert MS word margins into geometry package margins

I would like to convert the following margins that I have found in my MS word document to geometry package. Top: 2.38cm Bottom: 2.38cm Inside: 2.29cm Outside: 1.52cm Gutter: 0cm Here is ...
1
vote
0answers
183 views

Word Margins to Latex margins [closed]

I have a word template that specificies Top = 2.5cm Bottom = 2.5cm Inside = 4cm Outside = 2cm Gutter =0cm Multiple pages = Mirror Margins I am working with a book document class and trying to ...
6
votes
1answer
140 views

Shrink margins by reducing paper size

Often we are forced to write our manuscripts with a specific style file or document class, which sometimes has ridiculously large margins. Is there an easy way to work out how to shrink the paper size ...
3
votes
1answer
107 views

Rubber margins in chapters

I couldn't find a Google hit with what I need (try: LaTeX rubber margins). So, is it possible to stretch left/right margins, within defined acceptable limits, so that pages are filled optimally? I'm ...
2
votes
3answers
2k views

Changing Margins on thesis

Quick question to anyone who has used this LaTeX template: http://www.latextemplates.com/template/masters-doctoral-thesis Any ideas on how to change the left margin to get more words onto one page?
3
votes
1answer
1k views

Introducing a left margin inside a block environment in beamer

I am doing a poster using beamerposter . The text inside a block always seems to have no left margin. Can anyone tell me a way of introducing a left margin in a block ? Here is a sample of how a ...
3
votes
1answer
493 views

How to preserve relative spacing when changing paper size in beamerposter. (margins too big)

I recently made a poster in LaTeX using the beamerposter package, it was 48x36 inches, and came out great. I now need to re-print the poster in a smaller size. (36x24 inches) I realize that this ...
3
votes
1answer
157 views

Keeping consistent twoside margins across different pagenumbering styles

I'm writing a report which needs to be bound, and as such I'd like to use the twoside option. However, the first few pages of the report are causing some issues with the ordering. In the MWE below, ...
3
votes
2answers
760 views

Warning message: “The marginal notes overrun the paper”

\documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[a4paper]{geometry} ...
4
votes
1answer
217 views

Two columns with page span

this is my first post! I have tried to find a solution before posting. I have some input put into my .tex. The left column is text input by a user. To the right I would like 0..4 pictures, also ...
6
votes
3answers
1k views

How to set size of pdf page in pixels and put a background image

I need to create certificates in pdf. I have an image, where the text must be put to the appropriate place. I managed to set the correct pdf page size and all margins, except the top: ...
4
votes
1answer
156 views

float and caption margin mayhem

I cannot get my caption left justified correctly for wide floats. I have facing pages, and after many experiments, the closest I've come to success is a proper layout only for odd pages. I would like ...
4
votes
1answer
359 views

memoir class and \titleGM title page style with custom dimensions

I'm attempting to format a textbook that I'm writing using the memoir document class and am running into some problems with the memoir class and the \titleGM custom title page style. Here is my ...