{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

2
votes
1answer
25 views

Problems adjusting typewriter fonts

I was doing my report, and I face to some problem with typewriter font; it was not adjusted to the text width. I don't find any related answer or topic. Here's my MWE: ...
1
vote
0answers
9 views

LyX is changing horizontal spacing between words depends on the line's length - it even changes the page margins

I'm writing a paper in Hebrew and the margins of the equations from both sides is just too small, IF the line is long. What I mean that it feels like LaTeX is trying to push too much into 1 line, it ...
0
votes
0answers
16 views

mdframed top of page

Ok, so I've been trying to find a solution for this to no avail: I want to place a colored text box at the top of my document with mdframed, and I want there to be no margin between the top of the ...
2
votes
2answers
103 views

How can I place a 1 cm margin to a set pdf book (a6) to print

So I've already got my book ready set for a6 paper: contents, latex compilation, and I'm already satisfied with the end result of pdf I've got. However I've noticed that it'd be good to add a small ...
3
votes
1answer
40 views

How to make a layout with colored boxes around sections

I am trying to reproduce the following layout with latex: Is there any package or document class made for such a layout? The example is made in word using tables. But I think using tables in latex ...
0
votes
1answer
29 views

how to move a rotated of 90 deg text on the left bottom corner of the page?

I would like the text on the bottom left corner of the page. Instead, the text is on the top side of the page. I am trying to move it down, I deleted \centering and I tried also other options I set ...
3
votes
1answer
16 views

\centerline ignores page margin

I have the following page which I am trying to get the first line to be centered without affecting the other text. However, using \centerline{} seems to ignore the page margin and does not wrap text ...
3
votes
1answer
29 views

Forcing longtables width exacly within text width

I've been looking for solutions of this problem but I only found solutions that uses small or footnotesize for table font letters, or \setlength\tabcolsep for columns width adjustment. But these ...
3
votes
1answer
38 views

Two columns with different background color and height of whole page

I want to create page with two columns with different background color and height of whole page. What I was able to do is two columns with different background color but I can't set proper height and ...
1
vote
0answers
24 views

changing margin for part of the document

I want to change the margin in the middle of the page in a twoside document. The contents in this section (with new wider margin) happen to continue on to the next page. And I am having a hard time ...
0
votes
1answer
49 views

How to Remove All Whitespace around text? [on hold]

I would like to remove all spacing around text. Vertical and horizontal. I have solved this problem before but I cannot find the source. I want to read the document on my phone's screen which is ...
3
votes
1answer
48 views

How to position page number at 2cm from top 2.5cm from right

I need the page number to be 2cm from top and 2.5cm from the right (in the top right corner) I'm using the below margins \usepackage[left=4cm,right=2.5cm,top=2.5cm,bottom=2.5cm]{geometry} Can you ...
2
votes
2answers
29 views

Enumerate with item name breaking margin

I'm using LNCS style in my document. When I do enumerate with item names, the names seems to get out of the margins: Currently I use Geometry for the margins: ...
4
votes
1answer
28 views

How to place black stripe down non-spine side of page in book

I am using the book class, and I have four (possibly five) pages in the middle of the book that I would like to make it easier for readers to find when flicking through. To this end, I would like to ...
1
vote
1answer
26 views

Article class letterhead with logo on first page and different margins on second page

I've been struggling with this for a couple of days. I can't find a good solution for making this letterhead. I want to have the text justified as on the guidelines, but only on the first page: So it ...
0
votes
1answer
22 views

beamercolorbox width whole page but text in normal textwidth

I would like a beamercolorbox to extend wd=paperwidth, but text content only to cover the original textwidth and position. Is there some recommendation for doing it? Thanks, Luis
0
votes
1answer
23 views

reduce margins for documentclass book?

I am using documentclass book but want to shrink margins to 0.5 on each side and not have margin notes so the text can be wider. Is there any way to request that or is that not legal for a book?
4
votes
1answer
37 views

How to get exact value of \leftmargin

I need to extract the exact length of my left margin at a specific page in the document but \leftmargin doesn't seem to provide the correct value. \documentclass{article} ...
1
vote
0answers
42 views

Expand top margin of single page - ToC

I have a ToC with only a few lines too many to be in one page. I wish to get everything into one page and still looking good. With \addtocontents{toc}{\protect\enlargethispage{\baselineskip}} that ...
1
vote
1answer
96 views

There seems to be a problem with the Footer and text [Screenshots attached]

It's been quite sometime, and i have noticed that on some pages, in my report that actually overlap with the footer. The footer is generated perfectly but the text seems not disciplined in some ...
1
vote
2answers
26 views

Altering font size and/or margins in Table Of Contents without altering the other pages

I have almost finished dissertation in LaTeX (yay!) however my table of contents goes slightly onto three pages (so only 3 sections of a chapter on the third page) is there any way of changing the ...
1
vote
1answer
17 views

Margin issues with text after quotation and in overall

I'm a newbie with LaTex and could find answers on my problems relatex to LaTex through this SE group. However, I currently have an issue with the margins. Maybe my questions were too specific to find ...
4
votes
2answers
32 views

Size of a matrix is too big to fit inside text block

I know there's other topics with this kind of question, but I tried a few solutions and just got errors... My code is: \documentclass[12pt,a4paper]{article} \pagestyle{myheadings} ...
4
votes
1answer
44 views

Longtable does not fit the page margins

I am trying to fit a long table within the page margins. I tryied to follow the suggestions provided to other users on the same topic, but nothing seems to work. Any help would be more than ...
1
vote
1answer
19 views

Turn off book style margins for amsart document class

Is there some way to turn off the alternation of larger left/right margins ("book style margins") when using a document class that turns this on by default? I'm looking to do this in particular with ...
1
vote
1answer
25 views

\includepdf puts title section below top margin

I'm inserting an pdf file for a section with the command \includepdf[scale=0.9,pagecommand=\section*{\begin{center} ANEXO \end{center}}]{Oficio5S.pdf}, so the pdf is inserted in the page ...
0
votes
0answers
27 views

Draw with PStricks on a large paper size

This question already received attention, but I still cannot find a satisfying answer. I need to draw a big diagram in PStricks. For readability, I want to use a single larger page in the middle of my ...
0
votes
2answers
46 views

Pagenumber change; causing margin (and marginnotes) to switch sides

I am using \documentclass{article} to formulate an a4paper in twoside mode; Every thing is fine ... Well nearly, there is a small glitch somewhere in the standard LaTeX defaults between the page ...
1
vote
2answers
81 views

Koma Script: Indent Paragraph but not Headings

I want to increase the left margin of paragraphs, but keep headings as they are. It should look similar to the layout of the hitec class. I am using the scrartcl class. So far I tried ...
1
vote
2answers
22 views

How to extend PStricks margins when working on a single larger page

I need to draw a big diagram in PStricks, using XeLaTeX. To be readable, I want to draw it on a large page, which dimensions I manually set. Here's a MWE : \documentclass[11pt]{article} ...
1
vote
1answer
64 views

Converting exact margin requirements to areaset command

How do I find out what \areaset command to use for a specific margin requirement, e.g., left=2.5cm, right=2.5cm, top=2.5cm and bottom=3cm?
2
votes
1answer
28 views

adjustwidth inside minipage produces overfull hboxes

I'm trying to typeset paragraphs with different margin widths inside a minipage. To do this I'm using an adjustwidth environment from the changepage package. This typesets fine, but (since my ...
1
vote
1answer
36 views

Can't set border size in scrbook document

I'm trying to set page margins in my document, but nothing I tried actually worked. For example I tried \usepackage[total={17cm,25cm}, top=3cm, left=2cm, includefoot]{geometry} but didnt worked at ...
3
votes
2answers
39 views

Center Image to Page Inside Enumerate

I am trying to post an image inside an enumerated list but the left margin it starts with is the indented margin from enumerate. Is there any way to ignore that without having to break the enumerate? ...
0
votes
0answers
29 views

reduce gap in Latex friggeri CV

thank you guys, I figures it out. Meanwhile though there is a strange gap in one of my entries and I cannot for the life of me figure out why. The coce below gives no indication whatsoever as to why ...
2
votes
1answer
37 views

Marginal notes overrun the paper even if only papersize is specified

The following seemingly innocent MWE: \documentclass{article} \usepackage{geometry} \geometry{% papersize={170mm,240mm},% verbose% } \begin{document} Foo. \end{document} leads to the following ...
1
vote
0answers
44 views

two caption styles [closed]

I'm using a KOMA-Script class with the twoside option. I have two types of figures: horizontal and vertical. I want to get a caption next to a vertical figure AND a caption below a horizontal ...
1
vote
0answers
25 views

Export pdf or image with A4 format and margins

I have this portfolio I made a while back to compile with LaTex. The thing is I don't know if I'm crazy or if the last time I downloaded Tex, the GUI was much more complex and it let me export my ...
2
votes
1answer
38 views

How do I centre the text in this custom paper size example?

I try to use the Swedish G5 paper size (169x239)mm with text width 111mm, text height 165mm, side margins 29mm and top margin 37mm. Why doesn't the text get centred? ...
0
votes
1answer
26 views

Numbered exercises as sections

I want to split my document like this Part 1 1) 2) 3) 4) Part 2 5) 6) 7) 8) How is the best way to do this? I could use \section{Part 1} \subsection*{1) ... \section{Part 2} \subsection*{5} ... ...
0
votes
1answer
36 views

Changing the width of second page and so on in friggeri cv, keeping first intact?

Lots of people are interested in this at different places, but I couldn't find a direct solution. One can use the template from here. A part of it is answered here and a simple tweak would be to ...
0
votes
0answers
45 views

Awsome-CV print margin settings

I am using awsome-cv for creating resume. Default settings are \documentclass[11pt, a4paper]{awesome-cv} When i print the pdf file created by XeLatex, extra margins are added. My printer settings ...
1
vote
2answers
82 views

Insert graphic with tikz without margin

I have to insert a graphic into the whole page with tikz. The graphic has the same size as the final document. I use tikz because I have to insert some drawing and some text into the graphic. My ...
1
vote
0answers
84 views

How to properly change from A4 to 24x17 cm format? [on hold]

I have my PhD thesis in a a4paper document book in LaTeX. Just like: \documentclass[a4paper,10pt]{book} The thing is that now I realize I need it in a 24x17 cm. Fortunately, I have all my figure ...
2
votes
1answer
59 views

Margins and line spacings

I have 2 issues. 1) how to adjust the margins in the CV format. 2) Spacing issues with different sections. I am new to Tex and any help would be appreciated.
0
votes
0answers
70 views

How can I replicate this page using LaTeX?

I'm new to LaTeX. I'm preparing a grammar book, and I like how the book "A Practical English Grammar" was designed, simple and easy to use. I've tried using section, subsection, list... but I couldn't ...
2
votes
0answers
78 views

Student work correction classe

I'd like to get my students work correction look like this page. This document was written with Word (and not by me) and I have to type similar documents with the same formatting. If I were to ...
0
votes
0answers
31 views

How to set same header and margins for even and odd pages

I am using the document class yathesis. By default, the header and page margins are different for even and odd page (prepared for a reverse printing) but i want them to be similar since i will print ...
2
votes
1answer
41 views

Mark lines like overfull

I apologize if this has been asked before. I have searched and searched to no avail, it seems questions about getting rid of over/underfull boxes drown out any questions about how to produce the ...
1
vote
2answers
70 views

lyx: table goes out the page margin

how to solve this problem? I tried to change the font size and text width and none helped