{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
34 views

Make two-columned list start at same line as its section

Following this: Make list start at same line as its section I now have two columns, instead of four, but things don't work out, see for yourself (you can get res at CV in Latex): \documentclass[...
0
votes
1answer
52 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 ...
2
votes
1answer
33 views

Control header position and font size

I need to: place the page header 1 inch from the top of the page. change font size for the page header to be the same font size (\normalsize) as in the table of contents. I've used geometry as ...
2
votes
1answer
166 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} \...
0
votes
0answers
40 views

How to set same header and margins for even and odd pages

I am using the document class yathesis. By default, the header and page margins are different for even and odd page (prepared for a reverse printing) but i want them to be similar since i will print ...
1
vote
1answer
37 views

Detecting overflow into margins of a compiled pdf

I have a fairly large pdf file compiled in Tex. I used XeTex to compile, though it doesn't matter for this question I think. I want to see if on any page of the PDF, any line, there is text ...
1
vote
2answers
35 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
0answers
36 views

Layout with frames [duplicate]

This is my first post! I have been around this Forum for some time, but I never needed to ask a question. Unfortunately I can't find a answer suitable for me Problem this time. I am trying to re-...
0
votes
0answers
29 views

LaTeX PDF output not aligned in PDF Viewer [on hold]

When I build my tex file and open the PDF (has only one page) in Evince, the page is aligned to the right. It is as if there is an invisible page before the first page. Is this an issue with LaTeX ...
1
vote
2answers
24 views

The tikz-cd package is over running the bottom margin is a particular class file

I am using a particular class file fundam.cls. However, when I add the tikz-cd package, the bottom margin overruns. I suspect it is because the tikz-cd package is changing the paper type, making it ...
2
votes
0answers
36 views

trouble with margins in amsbook modification

I'm using the document class iuthesis, which is based on amsbook. I've modified the distributed version (1.2.0.23: source dtx available here, stripped cls file here, my modified version included ...
0
votes
1answer
229 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 ...
0
votes
0answers
25 views

detect overflow after \begin{sloppypar} … \end{sloppypar}

Some of my paragraphs overflow into the margins (some words or lines are just unbreakable because they are things like "(123,2323,23123,123123)". I am using \begin{sloppypar} ... \end{sloppypar} to ...
1
vote
1answer
23 views

setting margins in chapter titles (University class file causing issue?)

This is just my second large LaTex document so I'm still learning. And sorry if this is a duplicate, but I've tried to apply different solutions from various questions and I still need help overcoming ...
1
vote
0answers
26 views

multicols* environment breaks page margin

I'm trying to typeset a menu for a restaurant. I used the multicol-package to split the page in 2 columns. I have some categories (Starters, Main Dishes, Cheese, etc.) and each one of these contains ...
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 '...
2
votes
1answer
31 views

Add extra margin on odd and even pages of two sided amsbook thesis

I'm writing a thesis using the amsbook class: \documentclass[a4paper,twoside]{amsbook} How do I set up an extra 1 cm left or right margin on odd or even pages respectively?
0
votes
0answers
18 views

Lateral tabs to find sections

I don't know if the layout I need has a specific name... Let me try to explain it. I would like to have lateral tabs on the outer margins of my document containing the title of a section (or any ...
1
vote
1answer
32 views

Automatically pick from one of N available table widths

Problem statement I am using a custom-written document class that makes excessive use of a relatively wide outer margin. To strenghten the eye's judgement for what constitutes the main text block vs. ...
1
vote
1answer
51 views

Blankpage after title, abstract, chapter etc

I have a document in B5 format. Originally it was "twoside" with different margins on odd and even pages. Now I want it with same margins, so I tried to delete the command "twoside" but blank pages ...
2
votes
0answers
11 views

Matlab2Tikz+PgfPlots Violating Margins

I use this command in matlab matlab2tikz('fig_blank.tex','width','\textwidth','height','5cm') in order to make a tikzpicture out of this matlab plot. My MWE in PdfLaTeX \documentclass{article} \...
2
votes
0answers
37 views

1 inch all around [closed]

I'm writing a paper in A4 paper. I want to set all margins to be precisely 1 inch. I'm using the geometry package with the following parameters. \usepackage[a4paper,left=1in,top=1in,right=1in,bottom=...
0
votes
0answers
32 views

Chapter Titles in the Left Margin

I was wondering would it be difficult to get section titles in LaTeX to show up in the left margin space in a way similar to this: http://practicaltypography.com/straight-and-curly-quotes.html I ...
2
votes
2answers
28 views

Adding leftmargin to algorithmic

How do I set the left margin of an algorithm typeset with algorithmic so that the whole thing moves to the right? I've tried changing \leftmargin inside an algorithmic block, but it did not work. ...
2
votes
1answer
2k views

Recommended margin and binding offset

I'm soon going to deliver my Thesis for printing. The printing office are not going to do anything to the margins before printing, nor binding offset. I showed them the default twopage LaTeX margins, ...
0
votes
0answers
24 views

Latex table of figures invades margins sometimes

I have some problems with my list of figures. some figures invade the margins and other not. I don't seem to understand why sometimes it works fine and others not. the command i used is: \...
1
vote
3answers
46 views

Margin of caption of table

I have a table which is wider than my usual margins. This results in the table violating the right margin. (putting table in landscape wont work because of the length) I want to have a caption of the ...
1
vote
1answer
14 views

How to create simple comments in a margin next to the Document?

I've been digging through tons of SE-sites, package documentations for reledmac and parallel and many other pages, but I couldn't find the simple answer to this question. So, in hopes that it might ...
39
votes
1answer
1k 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?
0
votes
0answers
19 views

Aligning fancyheader with text margins [duplicate]

I have an issue with my header text not being aligned with my text margin. I use the following code for adjustment of margins and headers. \geometry{inner=3.0 cm,outer=2.5 cm,top=1.10in,bottom=1.5in} ...
1
vote
1answer
52 views

Floating subfigures

As you can see, my graphs are too big. I wanted them to float as "twins" so if there's much text on a page, the other pairs are shown on the next page. Is there any solution to set them at the right ...
9
votes
3answers
2k views

Layout with captions in margin and margin notes

Questions summed up below! I want to convert a number of old (read: ugly self-coded html) tutorials into pdfs. They are still read by people, so I think it's worth the effort. The other reasons: ...
1
vote
0answers
35 views

margins of a footnote

I'm a very beginner in Latex. I'm writing my phd thesis with the memoir class. Today I realized that the footnote in a page (and only in this page) doesn't respect the page margins.. what happened? ...
-1
votes
0answers
38 views

How to set left, right, top and bottom margin manually in LaTeX?

The command discussed in this site , i tried but error occurs ? can u plz tell how to set margin manually in easy way to my latex document ?
1
vote
0answers
29 views

Do presentations need margins? [closed]

When showing a presentation, slides are typically shown by projecting the contents onto a white projection screen. Seeing that the aim of margins is to have white around a block of text, margins are ...
1
vote
0answers
21 views

Full Bleed TikZ with Crop and Registration Marks

I've created some card-sized pages that I now need to adapt for full-bleed printing and trimming. Here's an MWE: \documentclass[border=0in, multi=tikzpicture, varwidth=false]{standalone} \usepackage{...
1
vote
1answer
27 views

Enlarge outer margin over two pages on twosided document

I am quite happy with adjustwidth* to enlarge the outer margin in a twosided LaTeX document. My problem is, that it doesn't seem to work if the environment is spread over two pages. \documentclass[...
2
votes
1answer
67 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 ...
2
votes
0answers
24 views

Conditional margins for printing

This is a follow up question to Different margins for on-screen pdf and for printed pdf. I would like different margins for on-screen viewing and for paper. So, if someone views the pdf on a screen, ...
3
votes
1answer
50 views

Different margins for on-screen pdf and for printed pdf

Is it possible to have different margins for printing from those shown on screen? I'm writing my thesis and for the paper version I would like a larger inner margin to allow space for the binding, but ...
1
vote
1answer
44 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 ...
2
votes
1answer
22 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
32 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
60 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 ...
262
votes
4answers
113k 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
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 ...
5
votes
2answers
235 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 ...