{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

4
votes
1answer
36 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} ...
3
votes
3answers
46 views

Creating a new list Environment, how to change the length of \items

The code for the environment is bellow, For the longer lines in \list item how do I change the length of the \items so that it lines up with the date? Basically I want a kind of "margin" that is on ...
1
vote
1answer
64 views

How remove margin in a paragraph that continues in two pages with different margin?

I've created a document whose margins have different odd and even pages. I want to write a paragraph with no margin in two pages runs. If I use the command \newgeometry new paragraph starts at the ...
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
43 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} ...
4
votes
1answer
90 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
1answer
71 views

Figure or longtabu/longtable causes bottom margin overflow

I have been searching for a while now without any luck, so I hope you can help me. The problem is that when I insert a figure/longtabu on my page, the text below is running out of the page, like this ...
4
votes
1answer
825 views

Decrease top margin of some chapters

I'm finishing my thesis in LaTeX, using class "book". I use a 1.5 line stretch with \renewcommand{\baselinestretch}{1.5}. Everything is ok, but I'd like the Abstract chapter (\chapter*{Abstract}) to ...
2
votes
3answers
28 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} ...
4
votes
1answer
74 views

How to print “string” of first or last \label{string}, in running headers and margins, dictionary-like, with KOMA class?

I need to typeset a book where sections are identified by a string, like "PLA 1", as dictated by the book's editor (the publisher calls these strings "cite-keys".) Sometimes there are a few sections ...
2
votes
2answers
68 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
21 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
24 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
34 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
0answers
40 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
25 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
95 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 ...
4
votes
2answers
79 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
1answer
34 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 ...
6
votes
1answer
53 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 ...
1
vote
1answer
45 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). ...
4
votes
1answer
36 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
51 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} % ...
0
votes
0answers
32 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
61 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
28 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
112 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
34 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 ...
1
vote
1answer
70 views

Margins- table how do i put the table inside the margins

This is my code, i don't know how to write a tabel on my own yet, so i used an online maker to do this, how do i make sure that the table won't go over my textwidth? \begin{table}[h] ...
0
votes
0answers
31 views

Marginalia not appearing

If you look Here you will see a wonderful answer to a question I asked about how to insert Automated Marginal Documentation of Page Changes. I've been looking over the document where I used this and ...
7
votes
6answers
7k views

Excel chart -> PDF -> LaTeX but need to remove white space

I converted an Excel chart to a PDF file by Save As.. PDF in Excel. It looks good, but there is a lot of whitespace/margin on top and bottom which I need to get rid of. The only way to do so seems to ...
34
votes
3answers
2k views

Nicely force 66 characters per line

I would like to have "something" (a package, a trick, a macro, ...?) that makes it possible for me to nicely play with the margins (or the layout) in order to set the average or typical number of ...
6
votes
2answers
4k views

How to determine head height automatically

I'm creating three documents with three different headers, containing images or large banners. Is there a way to determine the head height automatically or even better a way to change the head height ...
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 ...
13
votes
2answers
15k views

Remove vertical space at start of latex document

I have this test file which is supposed to put Hello there. near the top of the page but it does not work in so far as there is still tons of vertical space at top. How can I fix this? ...
13
votes
4answers
3k views

Remove margins for title page

The scrbook class calculates margins automatically. For the title page of a book, I would like no margins at all, so that the text would be centered properly. How can I disable all margins for the ...
5
votes
2answers
349 views

Different margins in title and chapters

I am struggling here with adapting school template for my document. The problem is that I need different margins on the title and on the chapter pages. Here is the code. On the title page is all easy. ...
3
votes
0answers
91 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
47 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?
1
vote
1answer
64 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 ...
0
votes
0answers
25 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
22 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
111 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
30 views

how to do a very Front page with Special Tables? using cropmarks? help!

how to do a very Front page with Special Tables? using cropmarks? help! Is there a better way insted use word? and how to insert a footnote with a special format? Could you guide me? Thanks in ...
3
votes
1answer
47 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 ...
0
votes
0answers
47 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
75 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
62 views

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

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 ...
3
votes
1answer
33 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 ...