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

Right minipage goes outside of margin [duplicate]

I have two minipages side-by-side. However, the right one goes outside of the right margin even though I specify the correct widths. As a consequence, the text is no longer aligned on the right. Here ...
3
votes
1answer
81 views

anchor tikz at the left margin

I would like to place a tikz picture at the left margin location of the current line. Here is a MWE: \documentclass{amsart} \usepackage{tikz} \begin{document} ...
2
votes
3answers
38 views

How can I get the same margin to a verbatim environment as the fleqn option gives to equation

When I use a verbatim environment, I'd like to have some margin, of the same length as those provided by the fleqn option when using an equation environment. \documentclass[11pt,fleqn]{article} ...
2
votes
2answers
112 views

Margin & style difference front page

Okay, a lot of questions have been asked about this already but I still couldn't really find the answers I was looking for. There's this standard front page I need to use for my thesis that has these ...
0
votes
0answers
33 views

How to even out margins around a border?

Any ideas as to why the document seems to shift up and to the right on the page? I've tried using {anysize} and {geometry} to adjust the borders but I've had some issues. With {geometry} the margin ...
0
votes
0answers
45 views

Problem to redefine margin in a \begingroup section

I am triing to redefine locally the margin for a part of my document, so I do this : \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tabularx} \usepackage{tabulary} \begin{document} ...
0
votes
0answers
47 views

MacTex different chapter margins in different cases

I'm totally newbie in TeX and looking for help. I need to configure chapter styles according to requirements given by my university. It requires chapter to have top margin of 18pt and of 36pt if it ...
3
votes
1answer
98 views

How to include page margin into header and footer in memoir?

I wonder how I can achieve the following two things: I want to have defined page margins for the use of \marginpar notes and comments. The problem is that, although I use memoir with twoside option ...
0
votes
0answers
26 views

automatic way to make sure that the formulas and text does not go beyond the margin

Is there any automatic way to make sure that the formulas and text does not go beyond the margin in latex. Not \linebreak in appropriate places. My text/math formulas are going beyond the margin in ...
0
votes
1answer
173 views

Beamer: print slides and notes on A4 paper correctly

Following up on this question, I have the MWE example below, that works well except for when I want to print the resulting pdf, which becomes completely shrunk ... so small that I cannot read the ...
6
votes
1answer
95 views

vbox of 0 height still adding margin

There is this box that I want to place next to a description list. It should not affect the list itself. I'm using an mbox and within the mbox a vbox with a height of 0. However, it still pushes the ...
0
votes
1answer
78 views

Short caption in margin

Is it possible to insert the short caption of a figure in the margin next to it? I tried to get it working with etoolbox but without success. Additionally it has to work with the package subcaption ...
4
votes
1answer
50 views

Making a class to change the margins of TeX file, it fails

I'm currently trying to develop my own resume however I'm having trouble making a .cls file that does anything that makes since. As of now I'm simply trying to change the margins. Tex file ...
1
vote
1answer
66 views

glossaries \gls prints too wide

I am using the glossaries package to define acronyms in my thesis report. When I use \gls{} command to print an acronym in the body of the text, the printed line exceeds the margin (too wide). ...
1
vote
1answer
90 views

How to change margins in a thesis template?

I'm using an online available LaTeX template for my PhD thesis. In the template, the margins are the following: \setmarginsrb {1.5in} % left margin {0.6in} % ...
4
votes
2answers
106 views

remove blank space before text under figure when using sidecaption and memoir class

As you can see, when using sidecaption in memoir class, the text in the margin control the text position under the tabulate. Is it possible to remove all this blankspace under the tabular ...
0
votes
0answers
47 views

custom template change of leftmargin and rightmargin on new page

I have using own custom LaTeX Class file and how to change the oddside and evenside margin in the new page to End of the document. I'm not possible to use \newgeometry options because more development ...
4
votes
4answers
129 views

Colored box with image and text, no margins

I would be extremely grateful to get some help with this following problem: I would like to have following outcome: Where the grey box is all the way out in the margin, but the image and the rest ...
3
votes
1answer
113 views

Aligning a minipage in the absolute top left

I'm formatting a cover design in LaTeX. The cover has pages of 145×210mm which includes 3mm margin. The side should be 13.93mm wide and the bleed is 3mm. This gives me the following code, which ...
4
votes
1answer
190 views

KOMAoptions{headsepline = true, footsepline = true} change geometry settings

I am using tex(-based techniques) for the first time. Currently I am writing my doctoral thesis via pdflatex and encounter an annoying problem: My university predetermines very strict page geometry ...
2
votes
0answers
35 views

How to eliminate extra margins around text? [duplicate]

I have a problem that the regular text of the article adds extra margins to the specified margins. To make it more clear, whatever I do, the text is "narrower" than what I specify with the geometry ...
2
votes
0answers
30 views

Small adjustments in formatting to make my work fit on an integer number of pages

Suppose I am doing some work which does not have very tight formatting restrictions. My work goes a little bit over 2 pages, but, if I change the margins from 1 inch to .97 inches, the work fits on 2 ...
4
votes
1answer
131 views

How to put question numbers in margin?

I'm trying to put numbering to the solutions of my assignment in the margin of my document like so: Ideally I'd like to enter the numbers "1.", "2.", ... etc. manually, i.e. not have them numbered ...
1
vote
0answers
15 views

Lstlisting running off screen [duplicate]

The text in my lstlisting is running out of screen on the right. I googled, but only found problems with the code box's position on the left side, and white lines. My problem is that it does not know ...
3
votes
0answers
122 views

Changing top margin for second page only? \vspace inserts extra whitespace

I am trying to format a LaTex template for pandoc output from .md to pdf. The document is for lengthy university papers requiring very specific layout. The majority of the paper has 1 in margins all ...
0
votes
0answers
203 views

How can I change the bottom margin in res.cls LaTeX file?

I'm using \documentclass[margin]{res}, I can change the top margin by using \topmargin=-.5in. But I don't know what to do for bottom margin. Help?
0
votes
0answers
26 views

Controling left margin when dealing with tikz picture, or better yet - centering tikz picture properly [duplicate]

I have the following tikzpicture: \documentclass{article} \usepackage{parskip} \usepackage{amssymb} \usepackage[fleqn]{amsmath} \usepackage{tikz} \usepackage{relsize} \begin{document} ...
0
votes
0answers
23 views

Are the default margins good enough for a book? [duplicate]

I'm writing my Master's Thesis in LaTeX, using the bookclass (maybe I should have used the memoir one, but now it's too late) with the twoside option. I thought the larger margin was that in the ...
8
votes
1answer
159 views

Why are default LaTeX TOP and BOTTOM margins so big?

In the question Why are default LaTeX margins so big?, it is explained very well why the side margins have the large size they have (compared to most Word processors): The smaller line width provides ...
0
votes
0answers
53 views

I'd like to fill my page margins with art. How can I go about doing that?

I am guessing TikZ is going to be involved somewhere in the answer, but I may also want to put in images I created in other software into the page margins. How might I go about doing something like ...
0
votes
0answers
80 views

Formatting like this sample

I'm writing my dissertation and have difficulties in producing the same formatting as in the sample. Can anyone help? There are several requirements here: CHAPTER NUMBER: TITLE (in captions and in ...
1
vote
0answers
74 views

how do I make latex allow breaking a line whenever reaching line boundary [closed]

I started writing my HW in latex, I use an online latex editor+compiler. Sometimes, when I write long math expressions, the expressions exceed the right boundaries of the page. I've seen that it has ...
4
votes
1answer
52 views

How to change margins when using termcal

I'm using term cal on a syllabus. I want to type a lot of text within the columns of my syllabus calendar, so I want to use as much of the width of the page as possible for those columns (on an 8.5 ...
3
votes
1answer
67 views

Can I align something to the right using tabbing?

I have two questions regarding the "tabbing" environment. Basically I am trying to set up formatting for parallel translation. I would like the original Chinese aligned flush left with the English ...
3
votes
1answer
96 views

How to change margin of the document title?

I want to move the title of my document up in order to save space. I can't figure out how to do this. This is what I have in LyX And this is how it shows up in PDF. I'd like to move it up.
2
votes
1answer
45 views

removing an extra column from a resume template

So I downloaded a resume template here: the template .tex file. Basically after the first \section{Contact Information} section, I'd like everything left aligned. The reason is that I am making a ...
3
votes
1answer
73 views

Right margin with two lines: is this something to be concerned about?

MWE [note, this must be compiled via XeLaTeX]: \documentclass[11pt, twoside]{article} \usepackage[showframe, top=0.5 in, bottom=0.5in, left=1in, right=1in, includehead, includefoot, headheight = ...
0
votes
1answer
104 views

Changing margins in .sty

I'm trying to change the margins in an input .sty. I'm trying to set different margins for the first and second page. I've managed to alter the margins but the first paragraph in the second page has ...
2
votes
1answer
155 views

Marginalia inside tcolorbox

I created some fancy tcolorbox for writing solutions of the problems: \documentclass{scrartcl} \usepackage[breakable, many]{tcolorbox} \usepackage{changepage} \usepackage{lipsum} \NewTColorBox[auto ...
3
votes
1answer
64 views

Equation left margin

I have equations inside an environment which has a larger left-margin than the main text (analogous to an enumerate/itemize environment, implemented with the changepage package's adjustwidth ...
3
votes
2answers
92 views

Footnotes and broken margins

Suppose that for random reasons I want the footnote mark before the text it is related to instead of after it. Then the code \documentclass{memoir} \begin{document} Hello my name is Gaussler and I ...
2
votes
2answers
89 views

Stretch line to \textwidth without starting a new line

I have a figure, containing three subfigures with captions and a caption for the whole figure, that all together takes more than a whole page. I can change the geometry for the particular page where ...
0
votes
0answers
22 views

twoside making wrong margins [duplicate]

I'm using twoside on my article. The first pages in the report (Abstract and preface) has the correct margins (larger margins to the right for left-pages, and larger margins to the left for ...
1
vote
1answer
39 views

Setting margins with esami package

Is there a way to customize the margins of the document while using the esami package? I've tried geometry, fullpage, etc., with no success. The documentation says nothing about doing such thing.
1
vote
1answer
75 views

Chapters number moves out of margin

i'm new to LaTeX and got a problem. The picture says it all... When my number of chapters exceeds 9, the second digit moves out of the margin.... I have copied the following layout, for the ...
2
votes
1answer
57 views

hrule exceeding margin in second column

I'm using tabular to make two columns of different width. Ideally I would like to have the title of each column under which there would be a horizontal line until the end of the column, for the first, ...
1
vote
0answers
16 views

Inserting abstract{} changes margins of the page [duplicate]

There is the template I have to use for a papaer and it looks like this: \documentclass[a4paper,11pt]{article} \usepackage{graphicx} %%% for including graphics \usepackage{url} %%% for ...
2
votes
0answers
47 views

Trying to print to 11x17 as a book, but scale pages with booklet, margin problems

I'm trying to print a book to be bound in signatures for a finished size of 6x9 inches. My printer duplexes but only prints 11x17. I used the booklet package and set source to 6x9, but when the ...
2
votes
1answer
107 views

Remove top margin in multicolumn \enumerate

I am trying to combine the multicols and enumerate environments (alternatively, the multicols and enumitem packages). Basically, I want to get rid of the top margin when having enumerate inside of ...
3
votes
1answer
116 views

Width of image = headwidth when head is textwithmarginpar

Using scrbook and scrpage2 with a headwith of textwithmarginpar, I am trying to set individual images in the textbody to this wider headwidth. \hoffset is 0pt. Adding up \textwidth, \marginparwidth ...