{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
1answer
47 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
86 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
36 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} ...
1
vote
1answer
24 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 ...
1
vote
1answer
39 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
55 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
32 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
59 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
31 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
57 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
41 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
25 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
78 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
45 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
66 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
53 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
27 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
89 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
112 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
62 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
54 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
55 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
41 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
25 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
20 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
59 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
76 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
49 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
74 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
75 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
70 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
40 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
45 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
148 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
118 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 ...
1
vote
1answer
59 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 ...
1
vote
1answer
59 views

How to adjust textwidth and textheight to paper size in mid document? (and header and footer “length” as well)

I want to adjust textwidth and textheight to papersize in mid document, that simple. I am planning to change some pages paper size, but I need both the header, footer and text to adjust (better if ...
0
votes
0answers
51 views

Margin content in Tufte's book class

Sorry, no MWE on this one, it's a general question about the Tufte book class. I noticed that margin content is top-aligned with the point in the main text that declares it: I know I can adjust the ...
1
vote
0answers
64 views

scrbook pagemargins with titlepage [closed]

I've finished writing my Bachelor's thesis and want it printed like a book. So I need to make the inner margins a bit broader than the outer ones ("BCOR"). Additionally, I want my chapters always to ...
3
votes
1answer
216 views

How to add double line border to a page?

I'm looking for options to add double line border to a page ; left hand top corner of border is mentioned below (border will be continous for entire page width and height).
3
votes
2answers
115 views

How to improve this custom MLA formatting?

I am required to follow a certain formatting that resembles MLA style. There has to be a 1/2" header top margin (the header being the "Essay #1:..." part). There has to be a 1" body top margin (the ...
2
votes
0answers
44 views

Why is my text going over the margin?

I have written a paragraph of text and one line is protruding out into the right margin. I am completely baffled, can anyone help? My text is thus "... cohomology of the base manifold. These ...
0
votes
0answers
43 views

how to stop table from going out of the page under LyX?

Here is the table source code: \begin{table}[H] \begin{tabular}{|c||c||c||c||c||c|} \hline & \textbf{Inspiration for new clothes} & \textbf{Purchase clothes/year} & \textbf{Period of ...
8
votes
2answers
183 views

Is it possible to typeset with angled margins?

I'm typesetting a book using memoir in XeLaTeX, but on some pages, as an accent, I would like to make an angled margin, something like this: Even if I have to define the page limit separately ...
3
votes
2answers
98 views

Automatically switching the margin

I created some new commands to type the question and answer in the margin under "You Try It": \newcommand{\margins}[1]{ \marginnote{ \flushleft{\color{framerule}{Simplify: \; #1}}}[-1cm] } ...
6
votes
2answers
122 views

Creating a document with no borders or margins

I want to create a small flyer. It should be folded once and have four pages in total. Also, I need a special geometry. So far, I am trying to achieve that using minipages. Here is my MWE: ...
2
votes
1answer
56 views

\textheight reduced by one inch?

I have the following in my preamble (actually it is in a file \include d): % One inch margins, NO HEADERS \setlength{\textwidth}{468pt} \setlength{\textheight}{630pt} \setlength{\topmargin}{0in} ...
4
votes
1answer
59 views

Too large top margin at the new page

Here is my code: \documentclass[a4paper,13pt,russian]{extreport} \usepackage{extsizes} \usepackage[utf8]{inputenc} \usepackage[T2A]{fontenc} \usepackage[russian]{babel} \usepackage{vmargin} ...