{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

4
votes
1answer
23 views

Nested `mdframed` environments and footnotes

Suppose that you have two mdframed environments, one nested inside the other, and a footnote in the first mdframed environment but not in the second. See the MWE example below. ...
0
votes
1answer
37 views

Center a title when left and right margins are not the same

I am using different margins for the left and right side : \usepackage[ a4paper, top=2cm, bottom=2.5cm, left=4cm, right=3cm, headsep=25pt, headheight=14.5pt ]{geometry} % Page margins ...
0
votes
0answers
34 views

Change geometry of single table [duplicate]

I have a wide table, which by default makes the page look like: | xxxxxx | | xxxxxx | | ______________ | | | || | | || | ______________ | | ...
7
votes
3answers
97 views

How to avoid the geometry package to change to top/bottom margins?

For my master thesis, i need to print recto verso with margins 4cm and 1 cm (left and right). So I use the following package: \usepackage[inner=4cm,outer=1cm]{geometry} However, this increases my ...
1
vote
1answer
41 views

Pgfplots: set plot margins

Is there a possibility in pgfplots to set the margins reserved for the x- and y-label, similarly to gnuplots tmargin, bmargin, lmargin, rmargin. I would like to have following values for the ...
2
votes
2answers
29 views

Add marker lines in page margin

I'd like to add short lines in the left page margin to mark the center of the page for a hole puncher and two additional lines to mark the folding positions to put the page into an envelope. How can I ...
1
vote
1answer
41 views

How to make these lines visible in Latex?

I'm new to LateX, I don't know how to set borders like these in LaTeX. Please help me, my paper is due tomorrow. :(
0
votes
0answers
41 views

Even and odd side margin

I would like odd and even side margins in my document and I would like ask how could I set my document to automatically switching the margins. (And it would be important to keep the settings of the ...
1
vote
1answer
56 views

Latex table goes out of page border

I have the following table: \begin{table}[htbp] \centering \begin{tabular}{|l|l|} \hline \multicolumn{1}{|c|}{\textit{\textbf{Economic school}}} & \multicolumn{1}{c|}{\textit{\textbf{Drivers}}} ...
4
votes
2answers
556 views

How to remove margin notes space in book class?

By default, the "book" class produces a layout with a big space for margin notes. One consequence of this behavior is the binding side has a smaller margin than the other side (with the twoside option ...
0
votes
0answers
37 views

Conventional margins and font size for a (big) thesis in computer science

I am writing a big thesis in computer science. I use geometry package for the page layout. For the font size, I hesitate between 11pt and 12pt. Let's assume I use 12pt here. Because I want the page ...
1
vote
1answer
43 views

Putting figures+caption in the margin

Is there a "clean" way to make figures and their caption appear in the margin? I'm using memoir with the companion pagestyle, so the margin is quite assymmetric and I think it might look nice enough ...
2
votes
1answer
29 views

Margins on two-sided documents using LyX

I have an issue trying to set my margins on LyX. I am using a two-sided document, the box for this option is checked. I've set the value of inner margins (4cm) and outer margins (2cm), but on my Pdf ...
2
votes
1answer
2k views

Change page margins in LyX

I use LyX 2.1, and I want to change the margins of a document as follows: Top and bottom: 2.5 Right: 2 Left: 3 How can I do this? Thanks.
1
vote
1answer
14 views

Adjusting margins of a single page using memoir

My Table of Contents is too long, leading to the Appendix entry being pushed to the next page. I would like to keep the entire content on one page. I have already made sure that the table of contents ...
6
votes
2answers
791 views

BCOR not part of paper dimensions

First of all: This is my first attempt using to the KOMA-classes. It seems to me that the binding correction is not taken into account in what I am trying right now. If I understand typearea right, ...
1
vote
1answer
40 views

Margins in booklet using \includepdf

I have PDF that I am printing as a booklet using the following code: \documentclass{scrartcl} \usepackage{pdfpages} \begin{document} \includepdf[pages=-,booklet,turn=false,landscape]{doc.pdf} ...
1
vote
1answer
38 views

Python code block outside of margin

I want to include some Python code to my Latex document. I have read this Tex Stackexchange question and added the following code to get syntax highlights: \usepackage{color} ...
1
vote
0answers
27 views

Change template parameters

I have this overleaf template: Template If i have a long chapter name it seems cut This is the result How can insert a new line? i tried with \\ and \newline command and i get this: Or how i can ...
2
votes
0answers
66 views

How to set proper paper margins?

I am trying to send a paper to a conference with specific margin requirements. I use the geometry package to define the margins. \usepackage[papersize={8.5in,11in}, left=1in, right=1in, top=1in, ...
16
votes
3answers
8k views

modifying margins for one slide

I need help for modifying the margins for only one slide in the beamer class In other words, I need a local version of \setbeamersize{text margin left=<size>,text margin right=<size>} ...
3
votes
0answers
30 views

linebreaking of name-year citation style in arxiv version

I was trying to submit a manuscript to the arXiv using the imsart package: see here. I am using the name-year citation style, and it works well in my own tex compiler. However the version that the ...
1
vote
1answer
28 views

Header line doesn't span width of page

I am using the following code to create a header using fancyhdr: \documentclass{report} \usepackage[margin=3.0cm]{geometry} \usepackage{fancyhdr} \pagestyle{fancy} ...
1
vote
1answer
19 views

Global setting of adjustwidth is ignored by figures

I have a long document which format I don't want to break. My aim is to shift the entire content to the right; so basically if I increase the right margin by 1cm I want the left margin to decrease by ...
0
votes
1answer
24 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} ...
4
votes
3answers
1k views

Letting graphics overflow over page edge

I have an image in PDF format, which I want to show in a much larger format than what fits on the page. For the overflowing parts of the image, I just want it to disappear over the edge. I tried ...
42
votes
4answers
13k views

pgfplots: how can I scale to text width?

This question led to a new package: tikzscale When I try to scale a plot with: width=\textwidth there is some horizontal space between the start/end of the plot and the start/end of the ...
56
votes
5answers
5k views

How to scale a tikzpicture to \textwidth

I would like to scale my tikzpicture to exactly (or a proportion of) the \textwidth Of course I could play with the [scale=0.5] option until I found the right value, but I assume there must be an ...
2
votes
2answers
43 views

How can a marginnote be inside textwidth?

Possibly, I ask the wrong question. What I would like to achieve is to have my notes as a part of textwidthn, I think. Can I tell LaTeX to decrease my textwidth by the amount of space the marginnote ...
1
vote
1answer
70 views

How remove margin in a paragraph that continues in two pages with different margin?

I've created a document whose margins have different odd and even pages. I want to write a paragraph with no margin in two pages runs. If I use the command \newgeometry new paragraph starts at the ...
4
votes
1answer
26 views

Is it possible to shrink a page using something like \enlargethispage?

This seems like a silly question to have to ask, but I can't find information on it anywhere. I know that \enlargethispage{\baselineskip} can be used to add an extra line to a page in order to help ...
5
votes
1answer
49 views

How can I override geometry's scale in the preamble? (E.g. if a class or package has set a default using geometry.)

With some geometry options, it is possible to override a previous setting in the preamble. For example: \documentclass{article} \usepackage{geometry} \geometry{hmarginratio=1:1} ...
1
vote
0answers
22 views

How to change margin for first page of Bibliography Only

I need the top margin to be 2 inches on the first page of my Bibliography and all subsequent pages in the Bibliography to have 1 inch top margins. I am using Bibtex to manage my references and using ...
4
votes
1answer
878 views

Decrease top margin of some chapters

I'm finishing my thesis in LaTeX, using class "book". I use a 1.5 line stretch with \renewcommand{\baselinestretch}{1.5}. Everything is ok, but I'd like the Abstract chapter (\chapter*{Abstract}) to ...
0
votes
2answers
49 views

Adjust margin: Chapter title extends in left margin

I am using a custom document class and template for my thesis. Both can be found here (they are really long, otherwise I'd copy and paste): ...
30
votes
2answers
10k views

How to find the \textwidth in two-column mode?

Sometimes I find that floats don't fit nicely on a page, so I use \resizebox{\textwidth}{!}{ <blah blah blah> } so that the borders match the margins. However, I'm now working on a paper in ...
8
votes
2answers
3k views

Pgfplots: put plot legend on the outside margin?

I use classsicthesis style for my PhD. Since this style is somehow geared towards using the outside margin for additional notes and stuff, I thought I could also place the legends of my plots there. I ...
4
votes
2answers
55 views

Confusion with showframe when using bindingoffset and scrreprt

I tried to define a bindingoffset in my onesided scrreprt document and wanted to check the layout with the showframe package, but it isn't working as expected. Here is a MWE: ...
0
votes
0answers
37 views

Messed up margins in memoir-class

I am using \documentclass[a4paper,oneside,11pt,leqno,openbib]{memoir} to write my thesis which has 5 chapters and each chapter has different sections. My problem is, every time I start a section, the ...
3
votes
2answers
70 views

Is it possible to have tufte-like citations in a general documentclass?

The tufte packages/class is very nice. But (opinion based) it is too invasive for simple documents. I want to selectively use some features in a normal article class. Is is possible to have ...
4
votes
1answer
22 views

Typesetting verse with line numbers directly adjacent (not in margin)

When I quote verse (in a document typeset by XeLaTeX), I would like to be able to place line numbers directly adjacent to the lines, not in the margin to the left. For example: ...
1
vote
0answers
42 views

how do I force a latex project to the height/width of Springer's LNCS style?

I have a little paper and for the submision it must have the LNCS style. The problem is that I added some figures and charts and somehow the width/height messed up, so any idea of how to force a ...
0
votes
0answers
36 views

thesis margin problems

I am writing my PhD thesis. I don't actually use latex but use scientific workplace. The university requires the following: Margins must be 1.5" left, 1" top, right and bottom, for ALL pages ...
3
votes
2answers
55 views

Notes above bottom margin

I am writing a paper in latex and there is one part that I could not find how to resolve, I need to add some notes on the bottom of the page, before the bottom margin. They are not footnotes in ...
1
vote
1answer
51 views

Right margin numeration / referencing LATEX

I need to make same format article in latex as in attached img, but I don't have any previous knowledge. I sorted out most of stuff. But cannot understand what are the right margin numbers and ...
0
votes
0answers
26 views

72 pt. spacing before Section heading [duplicate]

I'm trying to add a 72 pt. space before the section heading. I do not only want the 72 pt. between paragraphs but basically every section should start at a new page with a 72 pt. spacing before it. ...
6
votes
2answers
76 views

My references to PhD thesis go out of the margins in the bibliography

I am writing my PhD thesis. When I refer to a PhD thesis, the title of the thesis is underlined. When the title is too long, there is no break and the title is written out of the margin of the page. I ...
2
votes
1answer
65 views

IEEEtran Tabular Won't Fit Into 0.7in Margin

Using IEEEtran, I am trying to combine two tabulars in a single double-width table* environment. (This is the only way I could figure out to correctly order the tables in the paper, otherwise LaTeX ...
2
votes
1answer
27 views

How to output a multiline equation with no margins

I'm trying to output a .pdf that just contains an equation, without any borders at all, or borders the same width all the way round. So far, I've tried two things. Using the standalone document ...
1
vote
1answer
22 views

distance between section and tabular

\documentclass[12pt,a4paper]{scrartcl} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{textpos} \usepackage{eurosym} \usepackage{relsize} \usepackage{sectsty} ...