{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

0
votes
0answers
20 views

Are margins correct for two-sided memoir?

The default twoside memoir document style makes the right margin really large on recto (odd) pages and the left margin really large on verso (even) pages. This seems counter-intuitive to me. It ...
1
vote
0answers
20 views

Inconsistent slide margins in frame with allowframebreaks option in Beamer

When I create a long beamer frame which is automatically splitted into slides by using allowframebreaks option, it has a little bigger vertical margin for the first slide. I would like to make it more ...
0
votes
0answers
30 views

Custom code is overwriting some of the main code. Formatting problem

I am creating a document that requires some editing in the the normal ShareLaTeX format. I've googled my problem and the code seems to do the job: ...
0
votes
0answers
11 views

Longtable headings don't appear with fullwidth package

I'm writing a document with long and wide tables spilling over the margin area in a two side document class. I'm using the Marco Daniel's fullwidth package. Using longtable (and even longtabu) the ...
1
vote
1answer
39 views

page margin for pages with chapter are wrong

I am having trouble with the marging of my thesis. I am using a template which worked perfectly for a previous paper some 2 years ago but now when I create a pdf the margin on pages containing a ...
4
votes
1answer
21 views

Changepage Package [\adjustmargin] Does Not Work Correctly With \captionof When the Caption Package Is Loaded

The justification of the text is skewed when all of the following conditions are met: The \adjustmargin environment from the changepage package is used. The \captionof command is used. The caption ...
0
votes
1answer
67 views

Not getting the exact page margin during printout of PDF generated by LaTeX

I am using the geometry package: \usepackage[a4paper,margin = 15mm]{geometry} or \usepackage[a4paper,top = 15mm, bottom = 15mm, left = 15mm, right = 15mm]{geometry} But after taking print out of ...
4
votes
1answer
86 views

How can I allow footer to have their own margin?

I'm required to have a strange margin of left=3.14in. What would be a good way for the footers to ignore this and instead adhere to left and right margins of .75in? MWE: \documentclass[10pt]{article} ...
1
vote
2answers
29 views

Justification (both right and left) and page-break for margin enumeration

I am including an enumeration in the margin. I am able to get this to work, but noticed two problems. First, I am trying to justify the text. Currently, it is justified on the left, but not on the ...
3
votes
2answers
11 views

Width of structured abstract in revtex4-1

revtex4-1 offers structured abstracts through a description environment inside an abstract environment. However, this messes up the right margin in reprint mode: \documentclass[reprint]{revtex4-1} ...
6
votes
1answer
62 views

Is there a way to get rid of my \vspace{} hack?

I am creating my CV in TeX from scratch and I have come across multiple invisible lines that make my formatting inconsistent. I have this command to make a bulleted list from delimited elements: ...
1
vote
1answer
56 views

Setting margins so that text is centered on a page

How do I center the text on the page? The text is flush against the right margin. (I have more text. On the second page, the text is also flush against the right margin.) \documentclass{amsart} ...
2
votes
2answers
67 views

New line after reaching margins

I wonder if there is a way to tell to WinEdt (or TexStudio) to start a new line when a word reaches the margins of a document. The reason is that I don't like to have long expressions and I don't ...
4
votes
1answer
31 views

Does \@tocrmarg work for chapters?

I am working on a dissertation based on USFDissertation. I need to set at least 0.5" distance between the title text and the page number. However, when I modify the \@tocrmarg command, it does not ...
2
votes
1answer
60 views

Tikz left margin indentation

Is there a better way to remove the indentation of a tikz figure? What I have so far is this \documentclass{article} \usepackage[top=0cm, bottom=0cm, left=0cm, right=0cm]{geometry} \begin{document} ...
1
vote
1answer
51 views

Setting Margins Exactly - Geometry Package

My University's thesis requirements for margins are as follows: Top:1.5 inch; Left: 1.25 inch; Right: 1.25 inch; and Bottom: 1.0 inch The following code seemed to be correct, but according to the ...
0
votes
0answers
39 views

Geometry package: Lengths saved by default. Options for save/load/restore

The geometry package: Package lengths are not saved as lengths. Examples: layoutheight, tmargin The following only affect the complete layout: \savegeometry \loadgeometry \restoregeometry ...
0
votes
0answers
22 views

longtable overwrites bottom margin

I'm a newer Latex programmer. I'm working on an existing project (I must fix some problems) and I have a problem with a longtable. It overwrites the bottom margin and i lose one rows (in this case ...
2
votes
1answer
53 views

Placing symbol in margin

I am using \def\margin_symbol{\rlap{\protect\makebox[-3cm]{X}}} which I use in sections as \section{\margin_symbol My Header} to place an X 3cm to the left in the margin; however, my problem is ...
5
votes
2answers
141 views

Put hyphen on the margin, not in the text

Normally Latex puts hyphens inside the text: ------------------------------------ Lorem ipsum dolor sit amet, consec- tetuer adipiscing elit. Aenean com- modo ligula eget dolor. Aenean mas- sa. ...
2
votes
1answer
38 views

How to add text in the margin, level with first line of paragragh?

I am having trouble adding text (one or a few words) to the left margin of a page. The result should be like the text in the margin in the answers here (without the brace). But with the difference ...
8
votes
2answers
100 views

Plain TeX section number in margin

I want to typeset the number for the section in the margin. Here's an MWE of what I'm starting from. % --- Fonts ------------------------------------------------ \font\0="Roboto Condensed Light" at ...
1
vote
2answers
33 views

Aligned Equation Resizing? (Above or Below \textwidth)

My input: \begin{equation} \begin{aligned}[t] & \min\limits_{\bm{\Delta(P,Q),u}} & & \sum\limits_i u_i, \\ & \text{s.t.} & & (P_{min_k},Q_{min_k}) \leq (P_k,Q_k) \leq ...
0
votes
1answer
72 views

Page numbers incl. text (different side)

I have two questions according to my Thesis. First, how do I switch margins automatically for every second pages, such as: Second how do I switch the page numbers and including different text ...
2
votes
1answer
22 views

Reducing stretching of a caption gives an error

I get an error when I add the stretch=0.80 command to the caption-package as here: \usepackage[font={color=red,footnotesize,% stretch=0.80},labelsep=quad]{caption} The caption is a simple ...
1
vote
1answer
95 views

Recommended margin and binding offset

I'm soon going to deliver my Thesis for printing. The printing office are not going to do anything to the margins before printing, nor binding offset. I showed them the default twopage LaTeX margins, ...
1
vote
0answers
22 views

openright reseting

I have a rather larger document, where I use "openright": \documentclass[12pt,twoside,a4paper,openright]{report} I then have a few of my pages in the middle of the document where I use: ...
1
vote
0answers
35 views

Extra right margin depending on textwidth

It seems that the right (outer) margin is changed from what I request, depending on textwidth. MWE: % !TEX TS-program = pdflatex % !TEX encoding = UTF-8 Unicode ...
1
vote
0answers
27 views

Margins for the whole slide in Beamer?

I want to make a Beamer presentation with white margins at the edges, so the whole slide would be affected by these margins (including the color bars for my Berlin beaver theme, for example). So there ...
0
votes
2answers
57 views

Top margin fancyhdr

I've been starting to use the \fancyhdr package now, using next commands: \newgeometry{left=1.5in,right=1.5cm,top=3cm,bottom=2.5cm,headheight=1cm} (after \begin{document} and after the input of the ...
0
votes
0answers
40 views

How to change margins based on paper size?

My document uses US letter: \ProcessOptions\LoadClass[letterpaper,twoside]{report}, with the following margins setup: \geometry{tmargin=25mm, bmargin=25mm}. Now, if I change the paper size option ...
1
vote
0answers
37 views

How can I adjust the external header/footer margin in memoir class?

I am working in a memoir class document, with a template I found on the internet and customised a bit. I would like to change the number's and header's place, putting it further from the edges of the ...
0
votes
1answer
36 views

change the vertical distance between lines inside an enumerate

I want to know how to use a command like \enumerate but more compact. Here's an example: I'm writing this problem using \enumerate. In this way: Let $\sP$ be a property of morphisms of schemes ...
4
votes
1answer
38 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
40 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
126 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
0answers
35 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
44 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
58 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
58 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
70 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
1answer
73 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
45 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
37 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
24 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
34 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
46 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
84 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
32 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
35 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} ...