{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

3
votes
2answers
51 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 ...
1
vote
0answers
27 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
51 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
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
164 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]{...
0
votes
0answers
37 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): \...
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.
1
vote
0answers
28 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{...
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 ...
3
votes
0answers
52 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?
0
votes
0answers
42 views

Change margin in moderncv [closed]

I want to decrease the blank space at the top of the page in moderncv so that my picture and name can move little upwards and I can fit in some extra lines
2
votes
0answers
31 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} \...
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
1answer
51 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 ...
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 ...
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 ...
4
votes
2answers
206 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 ...
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
30 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 ...
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
59 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
37 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=...
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 ...
1
vote
1answer
30 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 ...
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?
4
votes
1answer
38 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,...
1
vote
0answers
42 views

Expand top margin of single page - ToC

I have a ToC with only a few lines too many to be in one page. I wish to get everything into one page and still looking good. With \addtocontents{toc}{\protect\enlargethispage{\baselineskip}} that ...
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. ...
1
vote
2answers
27 views

Altering font size and/or margins in Table Of Contents without altering the other pages

I have almost finished dissertation in LaTeX (yay!) however my table of contents goes slightly onto three pages (so only 3 sections of a chapter on the third page) is there any way of changing the ...
1
vote
1answer
20 views

Margin issues with text after quotation and in overall

I'm a newbie with LaTex and could find answers on my problems relatex to LaTex through this SE group. However, I currently have an issue with the margins. Maybe my questions were too specific to find ...
4
votes
2answers
34 views

Size of a matrix is too big to fit inside text block

I know there's other topics with this kind of question, but I tried a few solutions and just got errors... My code is: \documentclass[12pt,a4paper]{article} \pagestyle{myheadings} \usepackage[utf8]{...
4
votes
1answer
45 views

Longtable does not fit the page margins

I am trying to fit a long table within the page margins. I tryied to follow the suggestions provided to other users on the same topic, but nothing seems to work. Any help would be more than ...
1
vote
1answer
26 views

Turn off book style margins for amsart document class

Is there some way to turn off the alternation of larger left/right margins ("book style margins") when using a document class that turns this on by default? I'm looking to do this in particular with ...
1
vote
1answer
28 views

\includepdf puts title section below top margin

I'm inserting an pdf file for a section with the command \includepdf[scale=0.9,pagecommand=\section*{\begin{center} ANEXO \end{center}}]{Oficio5S.pdf}, so the pdf is inserted in the page ...
0
votes
0answers
27 views

Draw with PStricks on a large paper size

This question already received attention, but I still cannot find a satisfying answer. I need to draw a big diagram in PStricks. For readability, I want to use a single larger page in the middle of my ...
0
votes
2answers
49 views

Pagenumber change; causing margin (and marginnotes) to switch sides

I am using \documentclass{article} to formulate an a4paper in twoside mode; Every thing is fine ... Well nearly, there is a small glitch somewhere in the standard LaTeX defaults between the page ...
1
vote
2answers
88 views

Koma Script: Indent Paragraph but not Headings

I want to increase the left margin of paragraphs, but keep headings as they are. It should look similar to the layout of the hitec class. I am using the scrartcl class. So far I tried \setlength{\...
1
vote
2answers
31 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
1answer
88 views

Converting exact margin requirements to areaset command

How do I find out what \areaset command to use for a specific margin requirement, e.g., left=2.5cm, right=2.5cm, top=2.5cm and bottom=3cm?
2
votes
1answer
37 views

adjustwidth inside minipage produces overfull hboxes

I'm trying to typeset paragraphs with different margin widths inside a minipage. To do this I'm using an adjustwidth environment from the changepage package. This typesets fine, but (since my ...
1
vote
1answer
41 views

Can't set border size in scrbook document

I'm trying to set page margins in my document, but nothing I tried actually worked. For example I tried \usepackage[total={17cm,25cm}, top=3cm, left=2cm, includefoot]{geometry} but didnt worked at ...
3
votes
2answers
43 views

Center Image to Page Inside Enumerate

I am trying to post an image inside an enumerated list but the left margin it starts with is the indented margin from enumerate. Is there any way to ignore that without having to break the enumerate? ...
0
votes
0answers
29 views

reduce gap in Latex friggeri CV

thank you guys, I figures it out. Meanwhile though there is a strange gap in one of my entries and I cannot for the life of me figure out why. The coce below gives no indication whatsoever as to why ...