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

Remove the word “chapter” in book class and put number in the white margins at the same time

I am working on my thesis in the book class, I work in Kile under Linux. So this is an overview of my latex code: \documentclass[a4paper,10pt]{book} \usepackage[utf8]{inputenc} % ### Chapter title ...
3
votes
0answers
35 views

Fix Appendix formatting [closed]

For my thesis I'm adding various appendices to the end. However, for some reason the formatting changes for the appendices. The margins completely disappear, making the text go right up to the edge ...
1
vote
2answers
47 views

Some lines are formatted differently (overflowing) for a reason I can't tell

In my first attempt to use LaTeX a bit seriously, I formatted my CV using the template in ShareLaTeX. Some parts were confusing and I got some great help from here and finally produced a CV that ...
1
vote
1answer
45 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} \...
0
votes
1answer
55 views

tufte-latex: math tag into margin

How can I push a \tag of a math environment into the margin when using tufte-latex? I tried to modify the answer in margin note left of an equation? but I didn't understand the command. Here is a MWE ...
0
votes
1answer
59 views

Amsart style margins [duplicate]

I have a question that somehow depends on people's taste I suppose. I like the amsart package for my documents, however I always found the margins too large, so I got used to making them smaller (3cm) ...
5
votes
2answers
136 views

How to add marginal notes on the right in `ltxdoc` document class

I am having an issue inserting marginal notes while using the ltxdoc document class. I see that the default layout is the following: From what I understand, the margin notes are set up this way ...
2
votes
1answer
28 views

Strange issue with the right side margin

I am not sure why the margin on the right side of my document is unusually larger than usual. I am presenting an MWE where I have (unsuccessfully) tried to resolve the issue: \documentclass[a4paper,...
1
vote
1answer
86 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): ---...
0
votes
0answers
45 views

Trouble to get my thesis from 'oneside' to a 'twoside'

I am having troubles to edit my thesis file from a oneside to a twoside. When I change: \documentclass[a4paper,12pt,oneside]{report} to \documentclass[a4paper,12pt,twoside]{report} then the ...
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 ...
1
vote
1answer
61 views

Letter with address in the Margin

I'd like to format a letter in line with this image: Instead of the usual three-part layout with Header, main body, and footer, I'd like to split it up into four parts: Header and footer across ...
1
vote
1answer
144 views

LaTeX Template for Newsletter/Brochure

I am looking for a LaTeX template that can be used for a brochure-like newsletter, A4 format, column-like design with optional spanning pictures, marginless pictures, marginless headlines. I browsed ...
1
vote
0answers
30 views

tabularx shifted farer than margin

I have a custom papersize and margins set with geometry package. Now I want a table to reach over the complete page (not the margins) \begin{tabularx}{\textwidth}{ |X|X|X|X| } \hline label 1 &...
0
votes
1answer
26 views

How can I change only the text margins to be inside the equation and section numbers?

How can I change only the text margins to be inside the equation and section numbers? Something Like this
1
vote
0answers
41 views

How to define margin for pdf doc?

I have the problem that my output pdf has the wrong margin between left and right. you can see it in the pic below: The problem is, I need the opposite way. left have to be wide and right narrow. ...
3
votes
2answers
94 views

Text not wrapping to margins if highlighted with \colorbox

In a test file such as; \documentclass{article} \begin{document} \begin{itemize} \item Short line of text \item Comparatively long line of text to illustrate that latex is wrapping my text ...
3
votes
1answer
58 views

apacite package causes misaligned footnotes in Springer document (svjour3)

I'm having trouble with footnotes and the apacite package. I'm using the Springer documentclass svjour3 and XeLaTeX (but I have the same problem with PDFLaTeX). Whenever I include the apacite package ...
0
votes
0answers
67 views

tufte-book and marginfix

I want to apply this fix Full width text shifts all marginfix-ed floats off the page to the right to the tufte-book document class, however I get an error whenever I use \chapter. \documentclass{...
0
votes
1answer
63 views

Latex real textwidth smaller than \textwidth in documentclass article but not in report [duplicate]

I am seeing a weird behavior in the textwidth in Latex. When I use \documentclass[a4paper]{article} the actual text width do not really all the \textwidth. I can see that if I use showframes in ...
1
vote
1answer
29 views

Print print/cut markings for a \pagewidth image

My thesis cover has an image that stretches over the entire pagewidth. This is nice in PDF, but I expect that the outer few milimeters cannot be printed. In indesign or similar programs, the printed ...
2
votes
0answers
39 views

Text going to a new page without 'complete' the previous page [closed]

First post here in TeX forum, I hope there's not too much trouble. Since one image worth more than words, you can see a print of the problem I'm having in this image It seems that this problems ...
0
votes
1answer
40 views

Table shifted to right + bottom - cannot begin table from top of page and left margin

I wanted to check if Latex is an option for outputting nicely readable large tables in genetic papers. Well, I'm still hesitating if I should go along and invest more time in experimenting with it. ...
1
vote
2answers
70 views

How cloud i add a page number to the right corner of the page?

I used to use the \pagestyle{fancy} to make my page number placed at the right bottom corner , but there is a problem that it only can be placed at the inside of the page margin, i want move it to a ...
0
votes
1answer
55 views

Need help to change vertical spacing and margin in my messy document

Over time I have added a number of commands at the beginning of my document and I am getting lost and I now fail to simply modify vertical spacing and margin. Current Document Here are my packages ...
1
vote
2answers
91 views

tufte-latex: biblatex citations in captions

How can biblatex citations used in captions of the tufte-book document class? The following MWE does not work since the \autocite command in the image caption does not properly handled by tufte-book. ...
3
votes
2answers
94 views

Pgfplots and ClassicThesis: two plots side-by-side

I always loved the small text width imposed in ClassicThesis, but it is a problem when we have a lot of images/graphs. I would like to have two plots side-by-side in order to gain space (they are not ...
1
vote
0answers
52 views

How to display index entries on the same line as the text being indexed

Is it possible to let showidx display index entries on the same line as the text being indexed? It seems not as makeindx.pdf says: This macro actually typesets the box containing all the index ...
4
votes
1answer
47 views

Aligning minipages with new margins

I've extended the page margins using geometry, but when I create a minipage for my headings the right aligned minipage aligns with the original margin. How can I make it so that it aligns with the ...
2
votes
2answers
104 views

Titlesec: chapter in top margin

How can I put a chapter or section title into the margin such that it is on the top of the page? This is what I want: But the following MWE produces \documentclass{book} \usepackage{lipsum,...
1
vote
1answer
22 views

The vertical margins below and above a theorem aren't the same if the theorem begins with an enumerate list

As you can see in the above picture, the "Solution" theorem's top and bottom margins are different. How can I make the same? I present the LaTeX code below. \documentclass[oneside,12pt]{article} \...
1
vote
2answers
69 views

tabularx with dynamic columns and much text ends up in under- and overfull boxes

I wrote two tabulars which faces kind of the same problem. They end up in a mess of under- and overfull boxes. I noticed many under- and overfull boxes threads here, but I wasn able to fix it yet. ...
4
votes
1answer
69 views

How to display full table contents

I'm trying to fill a table with equations, but some of the equations are so long that the table is cut off completely on the right side. I just started working with latex yesterday so my knowledge is ...
1
vote
1answer
50 views

Latex 'align' mode bottom margin overflow

I know that latex doesn't automatically insert new lines in math mode, so the way to prevent margin overflows is to use the align mode, and manually add newlines. But this sometimes leads to equations ...
1
vote
0answers
118 views

How to set font, line spacing and header/footer margins?

I need to write some text for my university and I figured I should use LaTeX to get familiar with the system. I've read some basic tutorials etc, but they didn't help me with the following: There are ...
2
votes
1answer
120 views

wrapfig - Make wrapped image respect margins and page ends

I need to insert images wrapped in text. wrapfig obviously comes to mind. The problem is the wrapped figure, by default, ignores margins and even page ends. I mean, if I put the image less than its ...
1
vote
0answers
25 views

How to fit a page within a larger page

So I'm writing a grant application, and I'd like to use the todonotes package. The Australian Research Council apparently does not like the referees: We have a strict 10 page limit, but we're allowed ...
1
vote
1answer
32 views

How to prevent the label of a long equation running into the right margin?

I have an equation of the form \begin{equation}\label{eq:master} f(x) = E \end{equation} where E is a long expression. The problem is that the label runs into the right margin. What is the proper ...
1
vote
1answer
80 views

add right margin in caption with the width of the caption label

Currently, my figure/table captions look like this: The should start with the label Fig. XX and then the text with the following caption lines hanging behind the label. If there is only one line, the ...
0
votes
1answer
72 views

acro list-style=extra-tabular writes over the right margin

I use the package acro to list my acronyms. The manual describes several list-styles where I chose tabular as the most interesting one. The problem with this is, that it wastes a bunch of space on the ...
0
votes
1answer
34 views

Abbreviated cite with Biblatex's philosophy-modern style

I am writing my master thesis with classicthesis and I decided to use Biblatex's philosophy-modern style \usepackage[style=philosophy-modern,hyperref,square,natbib,backend=bibtex]{biblatex} ...
1
vote
1answer
93 views

Add Danger sign in margin of text

How can I add a danger sign like the one below? I'm currently using the package fourier-orns but the danger sign isn't really good-looking. Thank you for your help.
5
votes
1answer
109 views

enumerate in tcolorbox: weird insets

I'm typesetting text within tcolorbox-boxes, which works quite fine. For doing so, I've defined a couple of commands and just call them for each paragraph. But when I include an enumerate- or itemize-...
0
votes
0answers
50 views

Ideal margins vs. actual margins

Consider the following MWE: \documentclass[letterpaper]{article} \usepackage{blindtext} \usepackage[inner=1cm,outer=1cm]{geometry} \begin{document} \blinddocument \end{document} ...
3
votes
1answer
65 views

tikz pgf-umlsd margin in the diagram

Is there any way to control the margin within a tikz pgf-umlsd diagram? I'm using the following code and could already remove the indent by using \noindent. But still there is some unused space to ...
0
votes
0answers
20 views

How to prevent Coverpage and Tableofcontents to set margin

I set the margin like this: \usepackage[top=2.5cm, outer=1.5cm, inner=3cm, bottom=2.5cm]{geometry} But on the first two pages (Coverpage + TableOfContents), I want to have the same margin on the ...
0
votes
1answer
140 views

References not respecting margins with biblatex

I am using biblatex with the biber backend for my bibliography. The problem I encountered is that margins are not always respected. It seems to be a fairly common issue, cf. these possibly related ...
3
votes
3answers
125 views

Temporarily Change Equation Margin

Let's say I have a document with a narrow text width and lots of margin to spare. If I had a particularly long equation that failed to fit into the given width, the general solution would be to break ...
1
vote
2answers
85 views

Lines with texttt reach into the page border, how to prevent?

MWE: \documentclass{scrartcl} \RequirePackage[utf8]{inputenc} \RequirePackage[T1]{fontenc} \RequirePackage[a4paper,includeheadfoot,inner=2.4cm,outer=2cm,top=1.78cm,bottom=1.5cm,twoside,headheight=1....
4
votes
0answers
53 views

Cannot center pdf image [duplicate]

I'm using sharelatex and pdflatex as a compiler. I am using the memoir class. (It's for a book.) At first I used .png images but the compiler always took too long so I converted all my image files to ...