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

Number and reference paragraphs

For "law-documents" you often want to enumerate every paragraph and cite them somewhere else in your document. This enumeration shall increase through the whole document and have the possibility to ...
1
vote
1answer
511 views

List of Figures page Margins

I am writing my dissertation and I have to follow certain graduate school guidelines to submit my dissertation successfully. One rule that the graduate school has is that all margins on each page ...
3
votes
1answer
123 views

New textwidth for End Matter (but preserve fancyhdr)

Can anyone suggest a strategy for changing the textwidth for the end matter, but preserving the look of fancyhdr, whose offset is calculated using the old geometry. Can't seem to get \newgeometry to ...
2
votes
1answer
220 views

Use a box to fill text to right margin

I often use an eqnarray (I know it's better to use align, but let's not worry about that for this question unless it changes the answer) as a way to list a bunch of definitions or descriptions of ...
4
votes
0answers
339 views

How to place todonotes in left and right margin?

I want to place todonotes not only on the left or the right margin. I want to use both at the same time, and that the notes should decide by themself where to place. E.g. when the note points to a ...
0
votes
1answer
4k views

Margin on a4 paper is too big

I'm currently writing on a document for school. We have to use these margins: left: 3cm bottom and top: 2.5cm right: 2cm But when I'm using the geometry package the margins are way too big which ...
3
votes
2answers
208 views

Hyphenation and section titles with geometry

I am using classicthesis and the geometry package for my thesis. Some section titles are not hyphenated correctly, but instead reach into the margin. It seem not to be possible to use, e.g., \-, to ...
6
votes
1answer
410 views

Rows exceeding margin in tabulary environment

The main issue I am having is that the second column becomes squished and the table exceeds the 1 inch margin that exists. What's the best to fix the issue? I also need the table to have the table be ...
2
votes
2answers
147 views

Table way out of margin

I have a really long table and it is out of margin. I read other post about this issue but I still cannot figure it out: \begin{table}[htbp] \begin{center} ...
4
votes
1answer
954 views

Change \textwidth and \textheight in mid-environment

First, this is not a copy of Change \textwidth and \textheight in mid-document as I can't set a manual \pagebreak and \newgeometry or \restoregeometry thereafter. I want to change the footer size for ...
3
votes
2answers
432 views

pdflatex testpage produces wrong margins for a4paper

On my Mac running TeXlive 2012 when I do pdflatex testpage \papertype=a4paper \doublesided=n and open the resulting PDF file in preview, I can see that the margins are completely wrong in the ...
3
votes
2answers
343 views

KOMA script - widening text width

I have a longtable that is about 14cm wide and the text width of 12 cm. Therefore I would like to widen the text width on two pages for 2 cm, toward the outer edge of the page. I have "discovered" ...
9
votes
1answer
1k views

Page layout design in KOMA script

This is follow up of the previous question, Document class for designing a book. Majority of respondents suggested that I design the the page layout using the class I was using for writing the text, ...
5
votes
2answers
354 views

Text width in one sided documents?

Example: \documentclass[paper=a4, fontsize=10pt, parskip=half, DIV=9]{scrartcl} How do I calculate text width? In particular: I understand that DIV=9 specifies that the page is divided into nine ...
4
votes
1answer
1k views

Remove sidebar in Beamer

With the following code, I tried to remove the sidebar: \documentclass[18pt]{beamer} \mode<presentation> { \usetheme{Hannover} \usecolortheme{dolphin} \usepackage{lipsum} ...
3
votes
4answers
5k views

How to set bottom margin using the resume class with [margin,line]

I really like the way my resume looks using the following preamble: \documentclass[line,margin]{resume} \begin{document} \topmargin=-0.5in However, I have a huge margin at the bottom of the page. ...
4
votes
1answer
739 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 ...
5
votes
1answer
389 views

How to get Tufte-like margins with the KOMA book class?

I asked similar question here How to have headers, section headings, and figures expand into the margin? From Document class for designing a book I want to have new insight... ...
5
votes
3answers
576 views

Non-alternating margins in book class

For a book class, I specify margins like this: \usepackage[top=1.25in, bottom=1.25in, left=1.5in, right=1.25in]{geometry} But left and right appear to behave as inner and outer. I need to have the ...
5
votes
1answer
339 views

Creating a marginal tcolorbox from inside an other tcolorbox

I have created a new tcbtheoremlike this: \usepackage[breakable, theorems, skins]{tcolorbox} \tcbset{enhanced} \newtcbtheorem [number within = chapter] {myexample} {examples} { ...
2
votes
0answers
155 views

beamer column footnote produces format lose.

Using the following code \documentclass[demo]{beamer} \usepackage{filecontents} \begin{filecontents}{\jobname.bib} @misc{A01, author = {Author, A. and Buthor, B. and Cuthor, C.}, year = ...
2
votes
1answer
248 views

vertical margins inside a frame

How can I change the vertical margins inside a frame. For example, how do I remove the space shown in the figure below:
6
votes
1answer
5k views

TikZ: remove margin, padding, border around nodes containing images

I want to create a simple figure where images are connected with arrows. Here is what I did: \begin{tikzpicture} \node[](A) {\includegraphics[width=0.2\textwidth]{a}}; \node[right=1mm of A](B) ...
4
votes
1answer
322 views

Why is the default line length in the KOMA scrreprt documentclass longer than recommended?

When using the documentclass scrreprt (KOMA scripts) with the default parameters (a4paper, 11pt, DIV10), I observe line lengths between 81 and 85 characters (including spaces and punctuation, 78 to 85 ...
9
votes
2answers
180 views

How to put a QED symbol in the margin?

As I badly explained here question I wish to put my QED symbol on the same line as the last word of my paragraph, but in the margin like the package lineno does for the line number. I tried the trick ...
4
votes
1answer
414 views

Change page margin inside own environment

I would like to define an environment, that inserts a page with different margins than defined in the preamble. I tried using the following LaTeX code. \documentclass[a4paper,10pt]{article} ...
0
votes
1answer
570 views

Listing numbers go outside margin [duplicate]

I'm trying to add sample code to my document. It seems that the listing is left aligned with the margin, and the numbers go outside it. How should I align the number, instead of the code? Here is my ...
2
votes
1answer
210 views

Change margins on selected pages [duplicate]

I have an document using the article class using the fullpage package. The appendices take up the last 15 pages and contain pdf images using the graphicx package. I want to change the margins of ...
9
votes
2answers
745 views

Print a Notebook with LaTeX

I just came across something I missed a few years ago: I still use notebooks that do not have the correct margins for writing, i.e., the outer and bottom margins are the end of the page and the inner ...
2
votes
1answer
21k views

Making table width fit into text width [duplicate]

I'm using p{} format to adjust the width of a table. I expected using {p{0.1\textwidth}||p{0.2\textwidth}|p{0.2\textwidth}|p{0.2\textwidth}|p{0.2\textwidth}} makes the table width smaller than the ...
1
vote
1answer
2k views

Setting thesis margins

My university requires theses to be bound and printed with the following specification: There should be a margin of at least 1.5 inches, preferably 2 inches (5cm), on the left side of the page, ...
5
votes
2answers
420 views

Using \MarginFigure command

Someone wrote a command called \MarginFigure for putting figures in the page margins. Unfortunately, I haven't been able to get the \includegraphics to work. Specifically, I have figures that I've ...
3
votes
1answer
250 views

Disable binding compensation for titlepage

How do you disable the binding compensation in KOMAscript (e.g. \documentclass[BCOR10mm]{scrbook}) on the titlepage? I use the titlepage package and the fullsizetitle environment, but this is not ...
4
votes
2answers
146 views

How to begin text a certain distance from the right margin

As the date changes in length each day, I find myself manually modifying the hspace distance to the beginning of the signature line every time I generate a document. Can anyone think of a better way ...
6
votes
1answer
97 views

Forcing page numbers to ignore large margins

My teacher wants a large space to post comments on my work, so I have placed a bottom margin of 10 cm to pdfLatex. But the problem is that Latex also moves the page numbers up along with the margins ...
5
votes
1answer
226 views

How to move the footer margin closer to the bottom, manually

I have a page built in latex that has a footnote. I am not satisfied with the distance from the bottom to the footnote: it is too large. I want to have a bigger place to write, so I want the footnote ...
4
votes
1answer
698 views

Header and Footer offset in Exam Document Class

I am using the exam document class and I want to implement a layout where the headers and footers span over both the text body and the margins. I tried using the \fancyhfoffset command from the ...
0
votes
0answers
113 views

How to put a symbol always in the right margin, even in twoside mode, like line numbers of lineno?

I discovered the package lineno which in twoside mode of the class article can force to put the line numbers on the right. I really like that because I want me QED symbol to do the same. Currently, ...
3
votes
1answer
413 views

How to use one-sided pages formatting in classicthesis without shifting title page?

I'm using the classicthesis package with the template provided on latextemplates.com (http://www.latextemplates.com/template/classicthesis-typographic-thesis) to write my MSc thesis. I am required to ...
5
votes
1answer
265 views

Specification of the Layout for Q-A Reference Cards (Flashcards, Visual Cards)

I'm relatively new to LaTeX and I've used Microsoft Word so far for virtually all work with documents. For college, to use own question-and-answer reference cards, I decided once to split a portrait ...
1
vote
1answer
445 views

“Package xkeyval Error: value `no' is not allowed.” while working baposter

I faced the same problem as the author of an older question - I got following message in my log: ! Package xkeyval Error: value `no' is not allowed. See the xkeyval package documentation for ...
6
votes
3answers
1k views

Problem with margins using amsart and geometry packages

I do not want different margins on even and odd sides, I just want the usual page setup from the amsart package. However, consider: \documentclass{amsart} \usepackage{geometry} \usepackage{lipsum} ...
2
votes
1answer
367 views

Knitr plotting outside margin

I like the look of plots that extend beyond the margins \documentclass{article} \usepackage{lipsum} \usepackage[demo]{graphicx} \begin{document} \begin{figure} \centering ...
1
vote
1answer
145 views

Bottom margins for two title pages are not equal

For thesis it is needed two title pages but in my code page layouts are not equal. Problem is in the bottom of the page. the part of the code is: It is the cls file. Update: the problem is with the ...
8
votes
5answers
557 views

Fixed Sized Grids

I'm trying to create a latex document that is split up into grids that will match up with the dimensions of perforated paper. The dimension of each block is height: 38mm and width: 70mm. This should ...
0
votes
1answer
714 views

ClassicThesis to B5paper [duplicate]

I'm using ClassicThesis v.4.1. for my Thesis. The thesis should be published in B5 size. How do I adapt classicthesis (A4) to B5? I have tried ...
0
votes
1answer
272 views

Problems with the title and the margin in LyX

I have prepared my document and when I created the PDF I realized the problem I got with one title and the right margin. This is out of the margin. How can I fix this? (I am new with LyX)
4
votes
1answer
65 views

Location of the numeration in the text

I been looking to see how to put the location of the numeration of the different sections to one side of the margin, something like this. As you can see the numeration is "before" of the beginning ...
0
votes
1answer
149 views

problem with longtable in landscape orientation in a twocolumn mode document

I have some trouble formatting a long table in landscape orientation using a predefined document class (provided by a journal editor): - the standard page size is shrunk: the height of the page (width ...
2
votes
1answer
319 views

Header and margins

I would like to set a thicker header line I want to have a larger margin from the top and the bottom of the page. I have a problem with the header, which takes the name of my section which is two ...