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

Using extsizes package changes the page margin

My thesis documentation rules state that the page margins should be: left=4cm, and the remaining are 2.5cm I have done that using geometry package, but when adding the extsizes package to change ...
2
votes
0answers
52 views

marginpar have changed,is it a bug?

In my latex installation, this MWE always gives the warning: marginpars have changed, after multiple runs. But clearly, there is nothing changing. Is it a bug? \documentclass{scrbook} ...
3
votes
1answer
133 views

Vertical (rotated) titles in margins

I want to write the chapter title or section subject in the margin of each page. I eventually managed to get some working code : \setuplayout[edge=3cm,margin=3cm,backspace=7cm,height=27cm] ...
1
vote
0answers
26 views

How can print pictures subcaption in margin? [closed]

In biditufte-handout class, the caption of figure will apear in margin. I like it. It is nice. Now I want to force LaTex to print subcaption in margin. Hoe can I do this? ...
1
vote
1answer
79 views

Memoir: reduce the space in the top of the page

I'm using the memoir package to create my master thesis. When I write a page with text and it goes to the next page, it gives me a vertical space after my header and down to my text. What could ...
1
vote
1answer
114 views

How do I allow paragraph text to continue on a figure?

I have a figure (in a rectangular frame), with blank space on the top two thirds of the left half of the image. I want to let paragraph text continue through this blank area (as if the figure didn't ...
2
votes
1answer
123 views

Why do these page numbers get partially cut off at bottom of page?

I have recently come upon this paper, and for some reason the page numbers on the bottom of the page get partially cut off after page one. Does anyone have an explanation for this? Here is the code: ...
4
votes
1answer
237 views

Move frametitle horizontally

I want the title of my frames to be a little more to the right than it is the case by default. I thought I had the ideal solution with \addtobeamertemplate{frametitle}{\hspace*{1em}}{} (1em just ...
0
votes
1answer
75 views

change page borders for sidewaystable

I'm using KOMA script and have a long table that I put sideways. I want to increase the margins for the single page that contains the table. I can do this with \KOMAoptions or \areaset both have the ...
1
vote
0answers
32 views

Using geometry without modifying default margins [duplicate]

I would like to use the package geometry since it's a convenient tool to change margin locally in my book document. The problem is that the simple fact to call it in the preamble modifies the default ...
6
votes
2answers
187 views

How can I embed lists within tcolorbox correctly?

tcolorbox I am using this package over mdframed because it offers a plethora of features to create robust boxes (handles single and multipage situations). How can I embed lists e.g. description ...
2
votes
0answers
19 views

Paper Size and Margins in PS/PDF [duplicate]

Actually, I am trying to submit some paper to NSERC (Canada's research fund) and they are asking: paper size = 8.5 x 11 margins (all sides) = 0.75in I tried to use the following code in LaTeX ...
0
votes
1answer
185 views

Margin widths and positioning in “oneside” memoir document

In a "onesided" memoir-based document, two custom \newcommands use both the marginpar and the sidepar commands respectively. The marginpars go to the right side and the sidepars on the left side. Some ...
2
votes
1answer
109 views

Simple frame around page

I need add a frame around all page in latex. If I search on google, I find many options, but anything work well for me. Also I need that page would be A4 and have margin 1.27cm. And on the top of ...
2
votes
1answer
52 views

Longtable cell width problem

I've got a slight problem with my longtable using the IEEEtran article class. I'm using something close to this MWE, the original one is 4-pages longer than this, and the MWE captures the problem. ...
1
vote
1answer
97 views

Show frame/margin in two column layout

How can I show the frames for inter-column margin under the twocolumn document class option? The showframe package only draws the page margins + headers and footers. But I want to see a line for the ...
2
votes
1answer
81 views

How to put a bar in the margin beside a portion of text in a paragraph

I want to indicate only part of the text in a paragraph using a bar in the left margin. I would like to have something like the below example but without line breaks, and the text wrapping as though ...
1
vote
1answer
80 views

Extending side margins for Title section in IEEEtrans document class

How can one extend the side margins only for the title section of IEEEtrans (conference) document class? I need to have more words fitting in each line for the "title only". ...
4
votes
4answers
297 views

How to properly change page offsets?

Suppose that we need to change margins. This cannot be done only by changing \hsize and \vsize, because of the default offset of 1in. There is a possibility to change \hoffset and \voffset directly, ...
3
votes
2answers
63 views

Geometry package: Center footer relating to the pagewidth

I'm working on the final layout of my text. I've set some margins with the geometry package: \documentclass[ngerman,12pt]{article} \usepackage{geometry} \usepackage{pagecolor} \usepackage{lipsum} ...
3
votes
2answers
1k views

What is the default length of \hrule?

When used without parameters, what varfiable controls the length of \hrule? I.e., how can I change the default length of \hrule, other than adding parameters to each instance -- say, to affect ...
2
votes
1answer
133 views

Widening marginparwidth for verbose todo notes

I used the following in a corporate template in order to get wider margins for todo notes: \usepackage{showframe} \usepackage[marginparwidth=85pt]{geometry} This made the entire layout shift ...
0
votes
0answers
48 views

Change Margins in Lyx Title Page

I need to change the margins and the position of title and abstract on the first page of a Lyx article document. I tried to add \usepackage{etoolbox} \makeatletter \patchcmd{\@maketitle}% ...
2
votes
2answers
93 views

table width passes right margin

I have the following table. I have no idea how to edit in such a way that it does not overload till the end of the right margin. In other words I want the table within the margins (or page width). ...
4
votes
1answer
70 views

ConTeXt ignores value of leftmargin

I am trying to customize the page setup in ConTeXt. Following ConTeXt garden, I use the setting width=fit. Whereas adjusting the parameter rightmargin works just fine, changing leftmargin has no ...
0
votes
1answer
199 views

Reduce page margins using the res document class

In order to make my resume more dense and get more content on a page, I wanted to reduce page margins. I had been struggling with this issue for a long time and couldn't find any good complete ...
0
votes
0answers
28 views

Bottom margin is different after first page

I use LaTeX to typeset my math homework, but I don't like the look of what I'm getting. The bottom margin is a good size on the first page, but it's tiny on the following pages. It's so small that the ...
2
votes
2answers
64 views

How to make the margins relative to the actual content rather than the baseline?

I need to have small margins in my document. It seems that the margins are relative to the baselines rather than the content. See this example, where the content is cut out of the page: ...
2
votes
2answers
68 views

Too much whitespace on the bottom: how to make it as much as that on the top?

This is the code for the cover of my thesis: \documentclass[a4paper]{report} \usepackage[top=3cm, bottom=3.5cm, outer=4cm, inner=4cm, marginparsep=0.7cm, marginparwidth=1.5cm]{geometry} ...
1
vote
0answers
55 views

Latex template changing the margins

I am using res2.tex from here. I am trying to decrease the left and right margins evenly. This is from res.cls: ... %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Commands ...
1
vote
1answer
193 views

Horizontal spacing in caption in algorithm2e

In algorithm2e, how can I shift the caption to the left? There is a small space that I need to remove. Here is my code: \documentclass[letterpaper]{article} ...
3
votes
2answers
462 views

amsart margin control

I am using amsart to typeset some documents. However, the default margins are very large and I would like to change them without altering anything else about amsart. Is there a way to reset just the ...
1
vote
1answer
55 views

figure positioning according to space available on page

I am using Tufte style with symmetric option. I want to force figure automatically to next page if the current page doesn't have enough space to fit the figure at the desired position. Although it ...
1
vote
1answer
78 views

Reducing upper and lower margin in shaded environment

I am using \begin{shaded} from \usepackage{framed} to highlight some formulae and theorems in some notes I am writing. I would like to reduce the upper and lower margin: how can I do it?
2
votes
1answer
136 views

Have \newgeometry automatically reset after 1 page

I would like to adjust the margins for a single page in a document using \newgemoetry{} and then have it reset automatically once it goes to the next page without finding the specific word or sentence ...
0
votes
0answers
61 views

How to adjust margins in a template?

Is there a way how to change margins in one of the templates? I read in the latex guide, and also elsewhere in the forum that you can set up margins using geometry and then setting the desired ...
2
votes
1answer
44 views

longtable leaves wrong margins inside list environment

Special situation, using longtable inside my custom class. When I use \longtable, \end{longtable} instead of \begin{longtable}, \end{longtable}, I get bad margins when the longtable is inside a list ...
5
votes
1answer
116 views

Using side captions with multiple subfloats (floatrow and memoir)

In a large document (memoir class), I'd like to have side captions in the outer margin to save space for figures consisting of multiple subfigures belonging together. After trying sidecap with subfig ...
4
votes
1answer
175 views

Automatic margin curly braces & text on multiple pages

I'm building a command to mark long texts & class them in other part of my document (with help of Malipivo). I managed to do it with collect, multido & mdframed packages. The excellent ...
0
votes
1answer
66 views

How to make margins even in displayed equations? [closed]

Whenever I write a displayed equation like $$0\longrightarrow A\longrightarrow B$$ the top margin is much bigger than the bottom margin (around four times larger). I am trying to make the bottom ...
2
votes
3answers
142 views

How to get sane margin sizes suitable for paperback books using memoir?

I'm trying to make a document suitable for printing as a trade paperback. For that reason I'm using the memoir class using statementpaper which sets the page size to 5.5" x 8.5". Here's the basic ...
2
votes
1answer
105 views

No indent for verbatim environment

I would like to deactivate the indent for the verbatim environment, such that left margin is the same for everything. \documentclass{article} \usepackage{verbatimbox} \makeatletter ...
1
vote
0answers
78 views

How to put figures in the margin beside text? [duplicate]

For my thesis, I would like to be able to put some illustrative pictures in the (exterior) margin, beside text as it is the case in following example (original document, p. 16) However, I cannot ...
4
votes
1answer
88 views

Separation and width of caption with captionbeside

I'm trying to control the typesetting of a caption beside a figure when using the captionbeside environment of the KOMA Script packages. The \setcapwidth command doesn't work when using captionbeside. ...
1
vote
1answer
40 views

why isn't this properly formatted using \item \LHEAD?

I followed the answer given by AboAmmar here by I get the following shape for my resume. Not sure why the items written in LHEAD show like that? %\documentclass[9pt,A4paper]{report} ...
3
votes
1answer
174 views

change title page margins ONLY without packages

I am trying to prepare a package for students that offers a uniform standard title page for their work (homework, reports, theses, and probably more). I have the title page laid out as it should be. ...
1
vote
0answers
32 views

Issue with lstdefinestyle{XML} and margins [duplicate]

i am having troubles inserting XML code in Latex because the code lines appear out of the margins. First at all, i have defined the style, by the following way: \documentclass[a4paper,11pt]{book} ...
2
votes
0answers
117 views

Two-Sided Gutter in Tufte-LaTeX without symmetric?

The Tufte-LaTeX class has a great "symmetric" option for working on twosided documents (I'm working on a book project), I'd like to explore using this but for now due to the large number of figures I ...
1
vote
1answer
56 views

Increase tabular first and last padding

I use the tabu package to typeset my table, mainly with X type column. My overall goal is to have the same inner padding between the table border and the text and between the text cells. By default, ...
0
votes
2answers
74 views

Accuracy of distance measures in geometry

In the following MWE, I set the distance from the edge of the paper to the body text to be 25mm. \documentclass[a4paper]{article} \usepackage[showframe, paper = a4paper, tmargin = 25mm]{geometry} ...