{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
2answers
52 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
33 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
44 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. ...
0
votes
1answer
41 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
24 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
37 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
29 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
51 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
49 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
75 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
62 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
45 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
37 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
74 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} ...
1
vote
1answer
20 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
65 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
64 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
39 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
89 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
70 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
23 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
31 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
55 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
31 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
29 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
88 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
69 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 ...
0
votes
0answers
48 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
50 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
18 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
75 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
107 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
75 views

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

MWE: \documentclass{scrartcl} \RequirePackage[utf8]{inputenc} \RequirePackage[T1]{fontenc} ...
4
votes
0answers
52 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 ...
1
vote
1answer
64 views

Space Issue in Resume

I have the address, portfolio website fields to the side of my name in the resume. Although I used the flushleft command for the table with contact information etc, they do not seem to appear beyond ...
1
vote
0answers
50 views

\marginpar with pushback from right

I like to put references to book sections pertaining to class notes in the right margin. These are of the form XXXnn-nn for a 3-letter book title abbreviation followed by a range of section numbers. ...
2
votes
1answer
50 views

Methods to resolve long line overflowing into margin

My document sometimes has lines which slightly overflow into the margin, such as in the below example. I was wondering what different methods could resolve this issue, such as changing spacing between ...
0
votes
0answers
37 views

Centering of footer with custom margins

The problem I encouter is that whenever I change the margins of my tex document, the footer does not remain centered. My tex code is the following: \documentclass[11pt]{article} ...
0
votes
1answer
58 views

How to set the fonts of the latex file?

I am a newbie in LaTeX. I am editing a paper, which is two column. The first paragraph of the paper is the abstract. I want my abstract to satisfy the following requirement: The abstract should ...
4
votes
1answer
63 views

Make list start at same line as its section

I am trying to save space in my CV, so now please see this picture of it: Notice how Skills is aligned with its content, without leaving any blank line. However, Languages leaves too much empty ...
1
vote
0answers
35 views

TeX Padding of left margin [duplicate]

I am writing a document using \documentclass{book} but do not want a twosided document. All seems OK, however each alternate page has a different left padding. Using the showframe package (as ...
3
votes
0answers
77 views

Set a different layout for a single page in Memoir

I am setting a layout with facing pages and large outer margins, in order to accomodate a lot of margin notes. When it comes to the title page, I need to make a new layout in order to be able to ...
3
votes
1answer
275 views

Thesis template to B5 paper size. What about margins?

I successfully changed the paper size from A4 to B5 of the Thesis template downloaded from http://www.latextemplates.com/template/masters-doctoral-thesis I modified the main.tex file by setting ...
9
votes
1answer
244 views

can LaTeX help with book binding?

Recently, a colleague of mine has done his own book binding. He has used LibreOffice. I am wondering if LaTeX could be used and if it could provide more assistance than LibreOffice. The problem that ...
3
votes
1answer
52 views

“Temporarily” rendering PDF without page borders

When rendering documents in LaTeX, the document class determines the sizes of page borders etc. I do not want to change them. However, during the editing process, one usually looks at a file only on ...
0
votes
1answer
32 views

Specify via a flag during compilation with `pdflatex` that some commands are considered/ignored?

How can I create a flag, which allows to specify during compilation with pdflatex that some commands are considered/ignored? Background: I want to create marginal notes with \marginpar{...} but they ...
0
votes
1answer
39 views

How can I change the width of page in latex [duplicate]

I am wring the paper that is formatted by elsarticle. However, the margin between text and left. right page look big. Hence, the text length is very narrow. Could I change it in the file ...
0
votes
0answers
16 views

Pagenumbers vanished (from the printed version) after adjusting margins

I'm using Lyx. I'm trying to set 2cm top and bottom margins, in "Page layout" I also selected A4 paper, because that's the paper size I use (and without it the printed margins were not the right ...
0
votes
1answer
37 views

How can I hang the bibliography cite key into the left margin like section numbers in memoir?

The memoir documentclass has the option \hangsecnum which hangs (sub)section numbers into the margin, and right aligns them to the left text margin. I'd like to accomplish the same thing for my ...
1
vote
0answers
41 views

geometry's bindingoffset seems to be ignored

The geometry's documentation tells: page 9: "bindingoffset removes a specified space from the lefthand-side of the page for oneside or the inner-side for twoside.", page 10 (caption of Figure 6): ...