{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
0answers
11 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
2answers
30 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 ...
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 ...
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 | | ______________ | | | || | | || | ______________ | | ...
2
votes
2answers
28 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
40 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 ...
1
vote
1answer
55 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}}} ...
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 ...
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 ...
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 ...
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 ...
1
vote
1answer
37 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} ...
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, ...
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} ...
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 ...
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
48 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 ...
0
votes
2answers
48 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): ...
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 ...
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: ...
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 ...
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 ...
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: ...
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 ...
1
vote
1answer
39 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} ...
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
21 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} ...
0
votes
0answers
15 views

Problem with bottom margin in “margin” style of res.cls

I'm creating a resume using the res.cls package and I'm using the margin style option, which specifies that section titles are to the left of the body text. This essentially makes it look like there ...
1
vote
2answers
48 views

Page content going beyond margins

While writing my curriculum I have faced a problem where the content goes beyond defined margins. The margins are represented by the lines in this image: (the black border to the right is my PDF ...
4
votes
2answers
74 views

Enumeration isn't properly indented from left

I have such a code: %Start a document \begin{document} %Make nice title \maketitle \section{Zadání úlohy} \subsection{Úkoly} %Enumeration with custom labels \begin{enumerate}[label=\bfseries Úkol ...
2
votes
2answers
46 views

margin environment in preample

I've been using a code obtained with much help from others on here. \documentclass{book} \usepackage[many]{tcolorbox} \usepackage{changepage} \usepackage{amsthm} \usepackage{amssymb} ...
0
votes
1answer
64 views

Latex text goes out of bottom margine and get clipped

Following is the code that gives the wired result. \documentclass[a4paper,12pt, oneside]{book} %enable linespacing commands% \usepackage{setspace} %set onehalf line spacing \onehalfspacing ...
1
vote
1answer
56 views

Changing the top margin of one single page with typearea package

I have a bit of an exotic problem. I have a large document and want to extend the vertical margins of one specific page (publication list) in order to fit everything into one page. Extending the ...
5
votes
1answer
64 views

\hrule with vertical margin

Is it possible to specify a vertical margin for \rule or \hrule? When I say abc \hrule def the line "touches" the text above and below, so I would like it to have a margin of about 1mm.
0
votes
2answers
32 views

Make the page number Lower in TOC

I am writing my master thesis on latex and I had a problem because the University wants specific margin (top=2.5cm,right=2.5cm,left=3cm,bottom=2.5cm) and also when any chapter starts the top margin ...
1
vote
0answers
39 views

How to center horizontally the text area in the “tufte-book” class?

In the following code, I want to center horizontally the text area (main body+margin area), but the centering option of the geometry package doesn't have any affects. Is there a way to do this? ...
1
vote
1answer
125 views

Draw page frame with words in margin

I am currently making exam papers using latex exam class. I would like to have the page frame with the word `Answer written in the margins will not be marked' on both margins, and the header or footer ...
0
votes
0answers
18 views

Wider margings but only in a zone (authors)

I am using the ACM stylesheet to produce a paper with five authors. This means that the area under the title where all author names are is quite crammed and all the affiliations are split over ...
7
votes
3answers
104 views

Overfull hbox in matrix

I am typing up a technical report that contains many large matrices. I am looking for a way to print these matrices with an equation number next to them without getting an overfull \hbox error. I ...