{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)

11
votes
2answers
5k views

How to globally change the spacing around equations?

How could I go about setting the 'above' and 'below' vspaces around the equation environment? If the same could be done for the subequations or gather environments, this would be a bonus.
5
votes
1answer
1k views

Including an itemized list within a tabular column using the paralist package

The paralist package offers the option of typesetting an itemized list with a \topsep length of zero, and this is especially useful in a tabular setting. However, the following minimal example does ...
20
votes
2answers
5k views

How to modify spacing around quotation environment?

I am almost there in my quest to reproduce the rather compact layout of the book I'm translating... one thing to go, though: I successfully used the enumitem package to modify the vertical and ...
10
votes
5answers
849 views

A \boxed alternative with nicer spacing?

I like using \boxed to emphasize my answers in homework problem sets. However, whenever I use superscripts/exponents inside the box, the box becomes taller than it seems it should. This causes two ...
9
votes
1answer
4k views

Increasing paragraph indentation in KOMA script

The default parindent in KOMA scrartcl is too small for me. I remember reading somewhere that just changing \parindent directly is not wise, since it also affects other things (like itemize etc). And ...
7
votes
1answer
1k views

Blank lines in align environment

Is there a way to insert a blank line between two equations in align environment? From what I understand a blank line is interpreted as \par and \par is not allowed in align. Can I disable this ...
5
votes
1answer
322 views

Space length between the chapter number and the chapter title

How can I learn the horizontal distance between the chapter number and the chapter title both in ToC and the body text where I use \documentclass[12pt,reqno]{book}. Which keys hold these values?
45
votes
5answers
8k views

Good practice on spacing

In various places, in passing, I've seen mention of various good practices regarding well-behaved spacing in LaTeX. For example, Dr. Who should really be written Dr.\ Who or Dr.~Who to get the right ...
59
votes
3answers
51k views

\vspace vs. \vskip

What is the difference between \vspace{-1em} and \vskip -1em, for example? I guess the first is LaTeX, and the latter is TeX. When is the proper time to use one and not the other, and why?
15
votes
3answers
2k views

Making a LaTeX document appear as though it were typeset in MS Word

I am typesetting a document in LaTeX for which I have been given exact specifications that are intended for an MS Word-processed document (single-sided, single-spaced, 0.75 inch margins, no more than ...
25
votes
2answers
13k views

How can I increase the line spacing in a matrix?

I'm trying to create a pmatrix whose components are rather complicated fractions (Christoffel symbols), and the line spacing is too small making the whole thing a bit cramped and hard to read. Is ...
21
votes
2answers
4k views

Why should I put a ~ before \ref or \cite?

My question is in the title of this post, but extends to other referencing commands like \eqref, \citep, \citet (and the like) as well.
18
votes
1answer
703 views

Different vertical spacing (parskip) between concurrent section titles and paragraphs

I'm trying to remove the spacing between section headings, but maintain the paragraph to section heading spacing. Even though I set titlespacing before and after to *0, there is still spacing - quite ...
18
votes
2answers
19k views

Vertical spacing of a table cell

I want to tabulate formulas, but I find that the lines of the table cells are too close together, and this is aesthetically unsatisfactory. Example (formulae copied from wikipedia): ...
16
votes
1answer
820 views

Why is \parskip zero inside a minipage?

This question was originally entitled "inconsistent paragraph spacing with \parskip inside minipage" as the MWE below shows. But I found the answer at How to preserve the same parskip in minipage, ...
5
votes
1answer
337 views

Color changes cell height in tabular

The following code shows that a \color{red} command increases the height of a tabular cell. I want to use a switch, not a command as \textcolor{red}{text}. \documentclass{article} ...
5
votes
3answers
772 views

Removing a backslash “\” when passing arguments to newcommand

Consider the following minimal example: \documentclass{article} \usepackage{glossaries} \makeglossaries \newcommand{\NewS}[4]{ % Q1: How can I use argument #1 without the backslash in the ...
14
votes
2answers
968 views

\intextsep gives doubled space

If a float (black box) follows my {example} environment (gray left line) the skip between them is too big. I guess it’s twice \baselineskip but it should be only one \baselineskip plus some glue. It ...
8
votes
1answer
5k views

Vertical space before and after align environment

I am wondering if it is possible in LaTeX to generally adjust the spacing before and after math in the align environment from amsmath. From the Mathmode-guide (by Herbert Voss) I gather that ...
4
votes
1answer
593 views

How do I eliminate the vertical realignment when using arrayrulecolor with cmidrule?

I'm using consecutive \cmidrule commands in conjunction with \arrayrulecolor to alternately hide and unhide horizontal rules in a table. However, when \arrayrulecolor is used with \cmidrule, some odd ...
3
votes
2answers
2k views

Shortcut for “vertical space” in LyX

Has someone got an idea what the shortcut is/where I can create one for the \medskip{} command (or any other command, that generates a vertical space in my document)? I looked in ...
15
votes
5answers
2k views

Proper way to detect empty/blank text

I am attempting to ignore a command if it is passed with empty/blank text. My use case is not as complicated as one Expand away empty macros within ifthenelse where @egreg provides what seems like a ...
7
votes
1answer
2k views

Spurious space above align environment at top of page/minipage

It seems that the align environment adds additional vertical space if it starts at the top of a page or minipage. Below are two pages, and two minipages (on Page 1), where the first page/minipage has ...
6
votes
2answers
3k views

Extra space for numbered titles in table of contents

Background A manual with chapters, sections, subsections, and sub-subsections. Using KOMA Script v2. Problem The spacing between the heading title and its number is too close to the number in some ...
32
votes
2answers
9k views

Large negative spaces

I know about \! which creates a thin negative space but is there any native command for large negative spaces (like quad or qquad for positive spaces) ?
46
votes
2answers
8k views

Two letter variable names

In math mode, TeX assumes "hidden multiplication" (so that two variable names put nearby have invisible multiplication between), so that, AFAICT, expressions like $ABC$ are rendered with small ...
27
votes
1answer
8k views

What is the difference between \vskip and \vspace?

I found myself writing: \vspace 1 \baselineskip and then when not compiling changing without thinking to: \vskip 1 \baselineskip but what is the difference? Perhaps knowing this will make me ...
22
votes
1answer
7k views

Remove space around bullet points in itemized or enumerated list

How can I reduce the amount of space around items in an itemized or enumerated list? I would like to reduce the vertical space between items, the space to the left of the bullet, and the space ...
19
votes
1answer
11k views

\hspace vs. \hspace*

After trying both commands, I noticed that \hspace* opposite to \hspace will insert a space over the end of the line. So I was wondering if someone could explain how that works and also when to use ...
19
votes
2answers
3k views

Why does vfill not work inside a beamer column?

I recently tried to set up a quartered page layout in beamer (separate question might follow) and \vfill failed in a column environment. Minimal example: \documentclass{beamer} \begin{document} ...
17
votes
2answers
600 views

What is the right way to use of non-breakable space before math expressions?

I have seen LaTeX code that puts a ~ between every math expression and the text preceding it, does not use ~ in this manner at all, and uses a ~ in this way if and only if the math expression ...
12
votes
3answers
14k views

Reducing spacing after headings

I've searched many sites but I couldn't get any answer. Here is this mystical question: How can i reduce the spacing after headings? Here is my code. \documentclass[12pt,a4paper]{article} ...
22
votes
1answer
11k views

How can I modify vertical space between figure and caption?

\documentclass{article} \usepackage[draft]{graphicx} \begin{document} \begin{figure} \centering \setlength\fboxsep{124pt} \setlength\fboxrule{1pt} \fbox{\includegraphics{dummy}} \caption{Dummy ...
12
votes
1answer
1k views

How can I inject the proper amount of vertical space between captions and figures?

In my source document, I have an image and a code listing, separated by some text. When I generate PDF using pdflatex, the image is just above the listing, and it looks like the caption for the image ...
12
votes
4answers
5k views

What is the right way to use the `\!` spacing command?

I have noticed that I hardly ever use the \negthinspace command \!. This is because I don't know how to use it properly (I do use other spacing commands quite a bit, because I can better understand ...
11
votes
3answers
3k views

Too much whitespace before lists when changing the \parskip length

I have the following in my preamble: \addtolength{\parskip}{\baselineskip} \setlength{\parindent}{0 pt} Now there is too much whitespace before an enumerate list environment, in the example I have ...
8
votes
3answers
10k views

Global setting of spacing between items in itemize environment for beamer

I'd like to modify the spacing between items in the itemize environment. This post shows how to modify a specific itemize environment (\addtolength{\itemsep}{0.5\baselineskip}). However, I'd like to ...
24
votes
2answers
652 views

Two rules directly under each other

I'm trying to make two rules of different length (fatness) directly under each other, something like: -------------------- ==================== Where = is a fatter line than -. The vertical space ...
21
votes
2answers
354 views

When to use \, { } or ~ to prohibit gobbling of a space following a macro

There are various ways to ensure that a space after a macro is not gobbled and wondering how to decide which one to use. Are there cases where it matters which solution is used. ...
16
votes
4answers
545 views

Microtype and quote environment leads to different indent of first line

When the microtype package is loaded a quote environment which starts with punctuation marks is inconsistent "indented". The first line in the following minimal example is unaffected, i.e. at the same ...
16
votes
3answers
2k views

biblatex: Putting thin spaces between initials

This question led to a new feature in a package: biblatex Robert Bringhurst, The Elements of Typographic Style, rule 2.1.5 states "Add little or no space within strings of initials." If ...
15
votes
3answers
8k views

Distance between chapter title and text

In my scrreprt I've changed distance between paragraphs with \setlength{\parskip}{9pt}. But \parskip changes also distance between chapter title and the paragraph. How can I change distance between ...
14
votes
3answers
13k views

Reduce spacing in bibliography using biblatex

How can you control (in my case reduce) the spacing of the bibliography in biblatex? I used to use \begin{spacing}{0.9} \bibliographystyle{plain} \bibliography{refs} \end{spacing} and ...
11
votes
2answers
1k views

Reduce white space around TikZ picture?

Is there a simple way to reduce the amount of white space around the TikZ in the MWE pasted below (in particular in the x direction)? \documentclass{article} \usepackage{xcolor} \usepackage{tikz} ...
9
votes
2answers
3k views

Proper way of vertical spacing before/after environments

I am trying to typeset my thesis. I have to put predefined vertical space before and after some specific environments like equation and table. Since there are many instances of these environments I do ...
7
votes
1answer
2k views

Punctuation in equations

My document will contain a lot of equations, and as usual in that case I would like to use "punctuation" in the equations, like commas, colons, periods/full stops, semicolons, etc. Is there a special ...
3
votes
2answers
455 views

Reduce the space between a quotation and a title

When I use the quotation environment at the start of a section I get too much space between the title and the start of the quotation. How to modify spacing around quotation environment? has ways to ...
18
votes
3answers
2k views

Get the size that a figure is being rendered

Suppose I have a figure in my LaTeX document: \begin{figure} \includegraphics[scale=0.5]{some_graphic} \end{figure} My question is pretty simple: Is there a way to get the size that some_graphic ...
14
votes
3answers
999 views

Fixed-width interword space

I would like to typeset post--World War II with what Adobe InDesign calls a "quarter space". The en-dash is there to be wider than a normal space, to clarify the constituent structure ([post-[[World ...
13
votes
1answer
2k views

Abbreviations and spacing

I'm sure this is a pretty standard questions that's been asked (and answered!) a hundered times before, so apologies for boring people. In LaTeX, I'd like to write a macro for abbreviations, such as, ...