{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

10
votes
1answer
239 views

Handwritten comments and annotations in margin

Is it possible to typeset handritten comments and annotations in the margins around a parapgaph like in this example? What would be the closest approximation of this done in LaTeX?
2
votes
1answer
16 views

How to change page margins only for pages including graphics with the [p] option

I would like to reduce the page margins in my document only for those pages which include a figure embedded using the [p] option, in order to have some more space for my figures, as in: \begin{figure}...
14
votes
2answers
2k views

Center over-long equations between both margins

I understand the reasoning behind the fairly narrow textwidth in a default LaTeX article. 60-80 characters per line and all that. However, I am preparing a document that features many lengthy ...
1
vote
0answers
29 views

Uploaded .ps file generated with teXstudio completly ignoring the top margin

I am trying to upload a paper to be submited. I can export a .ps file using texstudio but when I check the proof of my submission, the original text in the .ps file is forced to be at the top of the ...
6
votes
3answers
2k views

Why does the \marginpar not appear on the left page?

I am working on a book right now and the margin notes are not appearing on the left-side pages. I tried using mparhack but it made no difference. Is my geometry, fancy style or another package ...
3
votes
2answers
53 views

tcolorbox: theorem numbering in the margin is too close to text

I'm using tcolorbox to draw boxes around my theorems. This package also has the option of puting the theorem numbers in the margin as you can see in my MWE below; see page 342 of the manual for more ...
2
votes
1answer
152 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} \...
260
votes
4answers
111k views

Difference between \textwidth, \linewidth and \hsize

The three lengths \textwidth, \linewidth and \hsize seem to all hold the width of the current line. At least I never saw some real difference between \textwidth and \linewidth in my code. Both seem to ...
11
votes
2answers
9k views

Margin notes on both left and right?

I've been trying to put margin notes in both the left and the right margins at the same time. My attempts have gone something like: Lorem{\reversemarginpar\marginpar{Left}} ipsum {\normalmarginpar\...
1
vote
0answers
28 views

Todo comments:Not include and left align?

Is there a way to to do a \todo*{Hello} and not have the note show up in the ToDo and Notes area? Does anyone know how to do that? Or vise versa? Also, what about in the left side margin instead. I ...
1
vote
2answers
32 views

How to extend PStricks margins when working on a single larger page

I need to draw a big diagram in PStricks, using XeLaTeX. To be readable, I want to draw it on a large page, which dimensions I manually set. Here's a MWE : \documentclass[11pt]{article} \usepackage{...
1
vote
2answers
52 views

How to use a margin note and locally indent paragraph

I want to put a note in the margin of my text, but I do not want to change the margins of the entire document. I only want the margins of one or two paragraphs to change so the margin note can be ...
0
votes
1answer
214 views

Reduce page margins using the res document class

In order to make my resume more dense and get more content on a page, I wanted to reduce page margins. I had been struggling with this issue for a long time and couldn't find any good complete ...
4
votes
2answers
213 views

How can I place a 1 cm margin to a set pdf book (a6) to print

So I've already got my book ready set for a6 paper: contents, latex compilation, and I'm already satisfied with the end result of pdf I've got. However I've noticed that it'd be good to add a small ...
0
votes
0answers
38 views

How can I correct my margin?

I have used document class report \documentclass[12pt,a4paper,oneside]{report} For margin I have used \textwidth=144mm \textheight=8.5in In this case my left margin is 3.2cm and right margin ...
7
votes
3answers
165 views

Geometry for single page, redux

I'm bummed that this question is closed. I want to know how to do what the OP there wanted. So I'm asking again. Here is a MWE: \documentclass{article} \usepackage{lipsum} \usepackage[margin=1.5in]{...
1
vote
1answer
4k views

Changing margin size with \addtolength command

I am trying to make the margin narrower and use the command \addtolength{\hoffset}{-0.5cm} and \addtolength{\voffset}{-0.5cm} I have used the package calc, but there is still an error message saying '...
0
votes
1answer
13 views

Setting Binding Offset (Gutter) in apa6 Class

How can I set binding offset (gutter) manually in the apa6 class in my thesis? I tried geometry package but it gave clash error.
0
votes
0answers
40 views

Footnote margins

I want to increase the right margin for my footnotes for 1cm. The right margin for the text is 4cm, so the footnotes should have a margin of 5cm. Does anyone know how to do that? My MWE (kind of): \...
1
vote
0answers
29 views

How can I fill a page with a minted included json file?

I'm trying to add some huge json files to my document and have no idea how can I solve this two problems. Code: \linespread{1.0} \subsection{File xpto.json for X = 1} \label{ap:json_xpto1} \beCengin{...
1
vote
1answer
101 views

There seems to be a problem with the Footer and text [Screenshots attached]

It's been quite sometime, and i have noticed that on some pages, in my report that actually overlap with the footer. The footer is generated perfectly but the text seems not disciplined in some pages. ...
4
votes
2answers
46 views

Custom Paper Size, Geometry Package Class

I'm trying to compile a document to a custom page size and then have crop marks printed. I can't even get to the crop package because there's a geometry package clash and I don't know why. Here's a ...
6
votes
1answer
2k views

Why does standalone not detect the TikZ crop correctly?

This small example \documentclass{standalone} \usepackage{xltxtra,textcomp,graphicx,color,tikz} \usepackage[absolute,overlay]{textpos} \begin{document} \begin{tikzpicture} \clip (0,0) rectangle (...
3
votes
0answers
54 views

change margins of book class

I'm typesetting a book using the tufte-book class. All pages have left-side margin but in some pages I have to set the margin on the right side! Any ideas on how to get this?
3
votes
2answers
269 views

Left bar in the margin of an environment with figures/tables

I am writing a document with theorems and proofs. Since, some reader may not be interested by the proofs I want to highlight them so they can be skipped easily. The best idea I came up with is to ...
2
votes
2answers
55 views

Adjusting white space

I got a template I'm using for my report. Now I have printed it in A4 and think the is to much white space on all 4 sides of the paper. Reading the settings, I can't see where this is set. Anyone that ...
2
votes
0answers
32 views

Make enumerate indent stretch

Some of my enumerate lists cause overfull hboxes. For example. \documentclass[12pt,a4paper]{article} \usepackage{microtype} \usepackage[scaled]{helvet} \renewcommand{\familydefault}{\sfdefault} \...
1
vote
1answer
78 views

Left Content Bar/Area

I am working on a template for papers and documentation. Sometimes, the authors have "key facts" or other items they wish to callout in a left content bar (xxxx is left bar, ccc is main content): ---...
2
votes
1answer
52 views

How can I set text margins in a baposter document?

I have tried adding: \usepackage[left=2.5cm,top=3cm,right=2.5cm,bottom=2.5cm]{geometry} But that gives the error: ! LaTeX Error: Option clash for package geometry. So I'm guessing I can't use ...
1
vote
1answer
22 views

Conditional text height based on paper size

How to I make the text height in a document change dynamically based on the selected paper size (letter or A4). \documentclass[a4paper]{article} \setlength{\textheight}{9.2in} % change this ...
0
votes
0answers
31 views

mdframed top of page

Ok, so I've been trying to find a solution for this to no avail: I want to place a colored text box at the top of my document with mdframed, and I want there to be no margin between the top of the ...
2
votes
1answer
29 views

Problems adjusting typewriter fonts [duplicate]

I was doing my report, and I face to some problem with typewriter font; it was not adjusted to the text width. I don't find any related answer or topic. Here's my MWE: \documentclass[12pt,a4paper]{...
1
vote
0answers
12 views

LyX is changing horizontal spacing between words depends on the line's length - it even changes the page margins

I'm writing a paper in Hebrew and the margins of the equations from both sides is just too small, IF the line is long. What I mean that it feels like LaTeX is trying to push too much into 1 line, it ...
3
votes
1answer
50 views

How to make a layout with colored boxes around sections

I am trying to reproduce the following layout with latex: Is there any package or document class made for such a layout? The example is made in word using tables. But I think using tables in latex ...
0
votes
1answer
29 views

how to move a rotated of 90 deg text on the left bottom corner of the page?

I would like the text on the bottom left corner of the page. Instead, the text is on the top side of the page. I am trying to move it down, I deleted \centering and I tried also other options I set \...
3
votes
1answer
20 views

\centerline ignores page margin

I have the following page which I am trying to get the first line to be centered without affecting the other text. However, using \centerline{} seems to ignore the page margin and does not wrap text ...
3
votes
1answer
32 views

Forcing longtables width exacly within text width

I've been looking for solutions of this problem but I only found solutions that uses small or footnotesize for table font letters, or \setlength\tabcolsep for columns width adjustment. But these ...
11
votes
2answers
5k views

How to reduce the margins in KOMA-Script

I am making a report using LaTeX. It is looking fine but there is a really large space taken up by the margins. Here is the main tex file: \documentclass[fontsize=13pt]{scrreprt} \usepackage[pdftex]{...
3
votes
1answer
46 views

Two columns with different background color and height of whole page

I want to create page with two columns with different background color and height of whole page. What I was able to do is two columns with different background color but I can't set proper height and ...
1
vote
0answers
25 views

changing margin for part of the document

I want to change the margin in the middle of the page in a twoside document. The contents in this section (with new wider margin) happen to continue on to the next page. And I am having a hard time ...
0
votes
1answer
50 views

How to Remove All Whitespace around text? [closed]

I would like to remove all spacing around text. Vertical and horizontal. I have solved this problem before but I cannot find the source. I want to read the document on my phone's screen which is ...
3
votes
1answer
61 views

How to position page number at 2cm from top 2.5cm from right

I need the page number to be 2cm from top and 2.5cm from the right (in the top right corner) I'm using the below margins \usepackage[left=4cm,right=2.5cm,top=2.5cm,bottom=2.5cm]{geometry} Can you ...
2
votes
2answers
39 views

Enumerate with item name breaking margin

I'm using LNCS style in my document. When I do enumerate with item names, the names seems to get out of the margins: Currently I use Geometry for the margins: \usepackage[top=1in,left=1in,right=...
1
vote
1answer
31 views

Article class letterhead with logo on first page and different margins on second page

I've been struggling with this for a couple of days. I can't find a good solution for making this letterhead. I want to have the text justified as on the guidelines, but only on the first page: So it ...
4
votes
1answer
28 views

How to place black stripe down non-spine side of page in book

I am using the book class, and I have four (possibly five) pages in the middle of the book that I would like to make it easier for readers to find when flicking through. To this end, I would like to ...
3
votes
1answer
1k views

Can not find how to change the size of text blocks

I am looking at a CV template, and I can not figure out how to make the description text blocks wider on the right. The blocks I am talking about are the ones similar to the block starting with "...
0
votes
1answer
23 views

beamercolorbox width whole page but text in normal textwidth

I would like a beamercolorbox to extend wd=paperwidth, but text content only to cover the original textwidth and position. Is there some recommendation for doing it? Thanks, Luis
0
votes
1answer
26 views

reduce margins for documentclass book?

I am using documentclass book but want to shrink margins to 0.5 on each side and not have margin notes so the text can be wider. Is there any way to request that or is that not legal for a book?
1
vote
1answer
43 views

Change margins for one item in a beamer slide

You can see that the equation is cut off at the right side of the slide. Can I reduce left margin only for this item? \begin{frame}{Conditional Hazard Ratio under Competing Risks} \begin{itemize} \...
4
votes
1answer
40 views

How to get exact value of \leftmargin

I need to extract the exact length of my left margin at a specific page in the document but \leftmargin doesn't seem to provide the correct value. \documentclass{article} \usepackage[letterpaper,...