{spacing} is about both horizontal and vertical white space, e.g. space between letters or words, or space between paragraphs. For adjusting the space between the lines of a document, use {line-spacing} or -- if your question is specifically about the package of the same name -- {setspace}.

learn more… | top users | synonyms (2)

12
votes
4answers
4k views

Removing spaces between “words” in math mode

I'd like to set $1024 \times 768$ without any space between the three items. Is this possible? If so, how? E.g., what I get is: 1024 x 768 and what I want is: 1024x768
9
votes
4answers
9k views

Reduce space between enumerated items

Background A book with lots of images. All of the images are set to "here definitely" (as they must come after the text that introduces them). Problem The list types (enumerated and bullet) have ...
7
votes
2answers
184 views

Ensuring a paragraph uses at least a given height?

I'm making a custom document class based on memoir, and I don't know how to implement the chapter precis so that it does what I want (the chapter precis is a small optional paragraph that follows ...
7
votes
2answers
82 views

Is there something between singlespace and onehalfspace?

Perhaps there is a trivial solution for this, but I wonder if there is anything between singlespace and onehalfspace. The reason is that, when I use singlespace it seems to be very compact while ...
2
votes
2answers
128 views

barchart in pgfplots looks really bad

Problems: The bar value "90" is written over a black line, almost impossible to read The value "58" is written over an x tick, hard to ready Bar spacing is bad. There is too much space between the ...
7
votes
1answer
125 views

How to automatically add \! in subscripts?

This code \documentclass{article} \usepackage{fouriernc} \begin{document} $a_1$ $a_{\!1}$ \end{document} produces this output: I like the spacing on the lower one much more. Is there a way to ...
1
vote
1answer
60 views

Moving the table caption

I want to move a wrapped table and caption, I'm trying to use vspace but it doesn't move the caption. Any ideas? \documentclass[12pt]{article} \usepackage{wrapfig} \usepackage{floatrow} ...
7
votes
3answers
125 views

Can \left( … \right) be instructed to ignore nonexistent upper or lower limits of summation? [duplicate]

In a formula such as \[ \left( \sum_{n\in\mathbf{N}} \right) \] the left and right delimiters extend not only downwards to cover the lower limit of the sum, but upwards an equal amount as if to ...
2
votes
1answer
86 views

Variable white space between paragraphs

I am having trouble finding out why the white space between my paragraphs is variable. Sorry, I am not allowed to post images but sometimes there is no white space (like it should be), just an indent ...
0
votes
0answers
19 views

How do I change the margin under chapter? [duplicate]

I am using the scrreprt class and the margin between \chapter and the text is too big. I tried to change it with \titlespace but later found out that titlespace does not work for chapters. Is there an ...
2
votes
3answers
84 views

How to define the proper space between elements of a matrix?

I need to draw a simple matrix, with column corresponding to some sets. I tried the following: \[D^{4}_{2}= \left[\begin{array}{cc} \diagdown & {\begin{array}{cccccc} \{1,2\} & ...
1
vote
1answer
105 views

Layout for seminar paper; justified, font, size, spacing

I just started university and decided to graduate from Word for writing my papers, thesises and so on. But I have some problems with probably the most simple things... I got this template: here the ...
0
votes
1answer
69 views

Question on top margin in chapter page

In my LaTeX template, there is a page contained the chapter part that is too far from top of the page like the following: My LaTeX file uses amsbook: \documentclass[11pt,a4paper]{amsbook}. This ...
1
vote
2answers
101 views

Spacing before and after section titles

I know this subject has been mentioned before, but I'm still having a problem in creating a space under a section title. I used the titlesec package and then tried using the command ...
1
vote
1answer
56 views

How to preserve relative spacing when changing paper size in beamerposter. (margins too big)

I recently made a poster in LaTeX using the beamerposter package, it was 48x36 inches, and came out great. I now need to re-print the poster in a smaller size. (36x24 inches) I realize that this ...
14
votes
2answers
180 views

Extra space behind month for \today with \usepackage[norsk]{babel} in December

When using \today and \usepackage[norsk]{babel} (babel <v3.8l>) in December there is an extra space behind the month name. How do I get around this? \documentclass{article} ...
2
votes
1answer
60 views

Customising list of tables to include “table” word

I am customizing the list of tables and list of figures in a report class document. I am trying to produce lists that start this way: "Table 1: Some info" and so on, instead of the default beginning ...
3
votes
1answer
48 views

Horizontal spaces to the left and right of theorems

How do I get horizontal spaces to the left and right of theorems? My initial idea was to do the following bad idea: \documentclass{article} \usepackage{lipsum}% http://ctan.org/pkg/lipsum ...
5
votes
1answer
55 views

Set indentation of choice in exam documentclass

I want to create an multiple choices question with this indenting format 1. ######## A. ### B. ### C. ### 2. ######## ######## A. ### B. ### C. ### The choices have same ...
6
votes
2answers
110 views

Indent Theorem like \hangindent, but for multiple paragraphs

I would like to create a theorem style which indents the theorem exactly like a \hangindent would do, expect that the indention should continue for all paragraphs of the theorem. For example: ...
3
votes
3answers
70 views

Spacing in QM-style integrals (differential first)

I'd like to write integrals with the differential first, the way physicists tend to: $\int dx f(x)$. The problem is that this puts an unsightly (to my eye) gap between the integral sign and the ...
4
votes
1answer
44 views

No space above first \item inside mdframed [closed]

Problem This is what happens: But I want the same vertical spacing before the first list item inside the mdframed environment as outside of it. How can I do this? Code \documentclass{article} ...
4
votes
1answer
165 views

Annoying paragraph spacing issue with memoir

I have a spacing issue while using the memoir class. The main problem is that after the first paragraph there is a line skip and an indentation and afterwards, all the paragraphs are indented properly ...
4
votes
1answer
50 views

Remove unnecessary horizontal space from amsmath align between two &

How do you remove unnecessary horizontal space in an amsmath align environment between two &? Consider: \documentclass{article} \usepackage{amsmath} \begin{document} Version 1: \begin{align*} ...
2
votes
2answers
69 views

Changing space between atoms in Chemabove

Consider this example: \documentclass{memoir} \usepackage{fontspec} \usepackage{chemfig} \usepackage{unicode-math} \pdfmapline{+arial arial <8r.enc <sAarial.ttf} \begin{document} ...
0
votes
0answers
29 views

How to reduce space before image? [duplicate]

I m using includegraphics function for image. Some text before image \begin{figure} \includegraphics[width=0.5\linewidth]{ABC.pdf} ...
0
votes
0answers
41 views

Inconsistency with needspace [closed]

I just found there is some inconsistency with\needspace command. Sometimes it adds spacing based on parameter while sometimes it does not. Is it because of package clash?
3
votes
1answer
63 views

Overset placement is uneven

I'm using this code to show that one element of the equation is greater than zero and the second element is less than zero. \begin{align} \overset{+}{\pi_{i}} + \overset{-}{w_{g}(S)} > 0 ...
43
votes
4answers
717 views

Why does \vspace, after section heading, sometimes jump/snap in discrete steps?

Well, this is one question that I've had for a long time, and one that always gets me extremely irritated. However, this time I'm even somewhat happy - that I can ask the question at all; and that is ...
12
votes
1answer
78 views

Using babel and cleveref causes unnecessary horizontal space in header

Update This bug has been fixed with version 0.18.9 of cleveref, which is currently on ctan. Question Babel and cleveref do not seem to work flawlessy together when they share the same language ...
6
votes
2answers
95 views

Several lines of formulas to the left of one curly brace pointing to equation number

How to make several lines of equations under one curly brace from the left side, such that it point to a reference number. Now I do something like this: \begin{align} \left. \begin{array}{ll} a = b ...
2
votes
1answer
96 views

Text in moderncv’s left column overlaps with right column

I was trying to compile a Resume and I am not able to figure out why only the second line has superimposed text. The below is the code. \documentclass{moderncv} \moderncvtheme[blue]{casual} ...
0
votes
1answer
76 views

Reduced word spacing when wrapping text in a cell

I'm wrapping text in a table, some of the cells have 4 words in, wrapped to have two in the first line and two in the second. LaTeX introduces a large space between the first two words so that the ...
3
votes
1answer
57 views

Adding tabs between two parts of one equation

I need to add a tab between after the semicolon in the equation shown below: \begin{equation} Thr = 4\sigma_n;\sigma_n = median \left(\frac{|x|}{0.6745}\right) \end{equation} How can I do this?
4
votes
1answer
35 views

Inserting automatic vertical space between blocks when \obeylines is active

Sometimes as I write a manuscript in LaTeX for speaking, I want to format parts of it as \obeylines and \obeyspaces permit, so that a single coherent thought is expressed compactly on each line, and ...
5
votes
1answer
71 views

Add vertical space before and after framed-theorem environments

I want my theorem-like environments to be framed, as it's an effective way of making them stand out from the main text. According to Gonzalo Medina's answer to the question box around theorem ...
6
votes
2answers
87 views

Inline math spacing and varying interword spacing

Say I want to reduce the space between two letters in math mode by 2/18 quad. Going all Die Hard 3, I put together 2 -3/18 quad \! and add 4/18 quad with \:. The problem is, though, that apparently ...
7
votes
1answer
1k views

Problem copying text from pdf - spaces being stripped

I have the following minimal working example: \documentclass{book} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \begin{document} é canção \end{document} I need to use the utf8 argument ...
14
votes
1answer
204 views

How to fix the math-spacing when a lot of \phantom, \mathrlap, etc. are used?

This question led to a new package: underoverlap Introduction Based on this question and then this question, I'm trying to perfect the \overunderbrace macro. Right now, I'm trying to get the ...
3
votes
1answer
866 views

How to remove top margin above \tableofcontents

My contents page would fit on one side, if LateX wouldn't force an automatic whitespace block on top of the table of contents. Is there any way to remove this block and have \tableofcontents start at ...
0
votes
0answers
46 views

`\setspace` and `\enumerate`

Forgive the long listing, worried about the behavior of some packages. I am looking to fix the space between text and enumerated list as I switch between \singlespace and \doublespace. Note the ...
5
votes
1answer
133 views

Vertical spacing below block quote should be retained even if footnote follows

In my text, block quotes have noticeable vertical spacing from the text above and below. When there is a footnote, this property is violated; I would like to restore it. (And I think this formatting ...
1
vote
1answer
81 views

Global typewriter tab stops every 1/2 inch

What is the best method, please, for setting up the equivalent of global (document-wide) typewriter tab stops every 1/2 inch? I'm reluctant to set up a tabular definition \begin{tabbing} at the ...
3
votes
3answers
3k views

How to get new line after \subparagraph title?

Is there a default way to change the style of the \subparagraph title, namely to add a new line after the title? Is there a way to do it without \renewcommand (some style changes of something else) - ...
3
votes
1answer
46 views

Inter-word spacing issue with long code tags

I'm having an issue with the Sphinx Documentation Generator, you may be asking what this has to do with LaTeX. Well, we were hoping to use it for our specification documentation which needs to be ...
2
votes
1answer
50 views

\titlespacing* defaults using the compact option

Using the titlesec package with the compact option, what are the \titlespacing* defaults (for \section, \subsection, etc.) for the article document class? (I have the standard defaults from the ...
0
votes
1answer
53 views

Strict \titlespacing without glue

Problem Description TeX seems to adjust the vertical space in a 2-column document, even though I have specified that no stretching or shrinking is to occur using \titlespacing. A short visualization ...
2
votes
2answers
49 views

Changing the vertical spacing before and after the quoting environment when using parskip

I'm working with the quoting environment but I can't figure out how to adjust the vertical space before and after it. I would like the environment to be indented on either side like it is but not have ...
3
votes
2answers
85 views

Table too tall for page

I have a table that is slightly too tall to fit on the same page as the section header. I would like to know the best way to make the table fit, without affecting margin spacing elsewhere in the ...
2
votes
2answers
64 views

The multi-line equation with explanation is too wide

The original question provides a good answer for how to add explanations to the multi-line equations. However, my problem is that the explanations have too long space to the corresponding equations, ...

1 2 3 4 5 33