{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
2answers
44 views

Custom command exceeds my textwidth

I have a problem I do not know how to handle: I need to include some small words of code - these can sometimes be longer names of something. To display this is a name of a code piece, I've made a ...
3
votes
2answers
111 views

framebox and margins

I have 2 minipages, the second of which is \frameboxed. The \framebox command seems to push the minipage out into the right margin, as you can see. [This is not the same as a previous question: ...
2
votes
1answer
24 views

Lefto/recto textblock alignment issue using memoir class

I'm trying to produce a 5x8 book for Createspace using the memoir class. My problem is the two text blocks on adjacent pages are far too close to the spine. So much so then when you print a proof the ...
3
votes
1answer
75 views

reledmac: narrower margin for footnotes, lining up with body + sidenotes

In a document with sidenotes and footnotes using reledmac, is there a way to expand footnotes into the margin so that the then-narrower footnote margin is the same as the part of the margin on the ...
1
vote
1answer
28 views

Reducing arrow margin in chemfig

Im trying to get a figure with a chemfig drawing to fit in my column. I cannot scale the entire figure with scalebox, as the text set with \chemname{} will be scaled too. \setatomsep{1.2em} ...
0
votes
0answers
22 views

Text goes out of bounds [duplicate]

I am having a problem on the appendix part of my research paper because the text starts to look like this The following is the code snippet that generated the line: \bibitem{featureEngineering} ...
1
vote
1answer
40 views

Output of \layout as plaintext

Is it possible to get the dimensions generated from the \layout command as plain text, so it can be used to set appropriate sizes when generating graphics in programs like octave. pointsize= ...
2
votes
1answer
59 views

Align logo right in Beamer

I want to right align my background image (logo) in Beamer presentation. What's more I want to set logo to be partially visible - left half of the image should be visible on the right side of the ...
0
votes
0answers
14 views

Binding margin on Report double sided document [duplicate]

I'm writing a double sided report document. Exporting the PDF I will obtain a larger margin on the right for the odd pages, as usually encountered in books. But I would obtain a centred double sided ...
2
votes
1answer
24 views

Placing marginal label within multiline heading

I want to make section headings in an article-class document both multiline and having lables on thier margins. I'm using two boxes: one for a label and another one for text to force it to split. ...
4
votes
0answers
74 views

How to place cross references in center margin between two columns

How can I put all cross references in the center margin, with those for the left column vertically positioned above those for the right column? The text will wrap to additional pages, and the cross ...
13
votes
2answers
198 views

Generate automatic marginal notes when using a \ref for the first time

I would like to generate a marginal note showing, for example "Fig. 1" the first time I refer to a figure. I would like this to happen too the first time I refer to a Table or to an equation. I would ...
1
vote
2answers
69 views

page number in header next to chapter/section name

I'd like to place the page number next to the chapter/section name in the white space that's not underlined (like in the classicthesis package (I had a look at that package but it seems like the ...
0
votes
0answers
18 views

Text in Lyx out of the border

After having used the command landscape to rotate a Figure, I cannot have the text aligned within the margin of the page. I double checked that all the settings are correct and they, in fact, are. ...
0
votes
1answer
111 views

How to set the margin in LaTeX?

I want to set the margin like this: Paper size: A4 or US Letter US Letter first page Top 72 Left 54 Right 54 Bottom 54 pt US Letter other pages Top 54 Left 54 Right 54 Bottom 54 pt Font ...
1
vote
1answer
52 views

Setting custom margins using geometry package results in incorrect indent style of itemize

I'm currently writing a report and the professor asked me and also other students who do that to use a specific margin. My documents uses the article document class and also \usepackage[left=25.4mm, ...
1
vote
2answers
96 views

How to change margins in documentclass thesis

I am using a template for my thesis and I would like to change the margins. Actually, I'm satisfied with all the margins, except the top margin which is too tight. But when I try to use geometry ...
3
votes
1answer
71 views

Memoir spinemargin+textwidth+foremargin too wide for pagewidth

I've been trying to learn the details of the memoir package due to its flexibility. However now that I've tried to emulate a paperback format I'm hitting an error which I don't understand where it's ...
5
votes
1answer
207 views

Tufte layout in “Painless Memoir?”

I'm trying to bring together two styles, the airy Tufte's page layout ... and Michael OKane's "painless Memoir" document found on this site. I've tried to edit OKane's template directly; I've ...
1
vote
0answers
44 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
44 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
104 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
19 views

How can print pictures subcaption in margin?

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
53 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
88 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
65 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
91 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
60 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
31 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
153 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
121 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
76 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
48 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
49 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
67 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
47 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
208 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
46 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
360 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
96 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
32 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
72 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
58 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
112 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
25 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
58 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
56 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
50 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
94 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} ...