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

155
votes
4answers
26k views

Space after LaTeX commands

I have a definition \newcommand{\arnold}{Arnold Schwarzenegger} when I refer to it by \arnold is a it is rendered as Arnold Schwarzeneggeris a In order to have a space in front of "is" I ...
117
votes
1answer
118k views

What commands are there for horizontal spacing?

I know that \: in LaTeX produces a space when rendered. Are there any alternatives, because my LaTeX renderer doesn't support \: (it renders it as text), and there is no help / FAQ that I can find.
89
votes
2answers
57k views

Lengths and when to use them

There are many lengths in LaTeX. For instance, \enskip, \enspace, \quad, \parskip, \smallskip, ... Some of them are mostly used for vertical spacing, some others are mostly used for horizontal ...
83
votes
2answers
46k views

How do I create an invisible character?

I cannot remember how to create an invisible character in LaTeX, i.e. I want to put a space the that has the width of a particular character, say `M'. I know there is a command for this, and this is ...
81
votes
4answers
23k views

Vertical space in lists

What is the best way to globally change the amount of vertical space between items in list environments?
80
votes
5answers
6k views

Is there an easy way to have my whole document with a space between paragraphs rather than indentation?

I would like to have my whole document showing a blank line (or space) between paragraphs and no indentation. I know how to do it line by line, but is there a way to change that with just one or a few ...
76
votes
6answers
75k views

Column and row padding in tables

How do you guys go about controlling column padding in tables? Update To clarify, I'm looking for a way to control both vertical and horizontal padding. So, if I had a simple table like in the ...
71
votes
3answers
64k 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?
70
votes
4answers
4k views

Spacing around \left and \right

Why does the addition of a \left and \right introduces an extra space around the formula? Specifically, why do $\cos(\theta)$ and $\cos\left(\theta\right)$ render differently? Is there a way to use ...
54
votes
2answers
10k 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 ...
53
votes
2answers
2k views

Drawbacks of xspace

I'm certain I have read that xspace can cause more problems than it solves. But I cannot find anything to that effect either on this site or the web. Are there any drawbacks or risks associated with ...
53
votes
2answers
9k views

Is a period after an abbreviation the same as an end of sentence period?

Does latex do anything special with periods? If so, is there a way to differentiate end-of-sentence periods from periods indicating abbreviation?
52
votes
16answers
17k views

Squeezing scientific paper to fit within page limits

I am submitting a paper to a conference that has a limit of 10 pages. I have edited and edited the text, but the paper still fills 11 pages, and I am reluctant to remove anything. What tricks can I ...
51
votes
4answers
1k 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 ...
49
votes
5answers
11k 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 ...
44
votes
3answers
25k views

Adding vertical space at the start of a page

I'd like to, first thing before writing anything on a page, add some vertical space. Minimal (non)working example: \documentclass{article} \begin{document} \vspace{250px} I want to be further down ...
43
votes
2answers
4k views

\newcommand and spacing

How can I define my own shorthand command, but making sure that the spacing afterwards is correct? \newcommand{\abc}{\textsc{abc}} produces 'ABC,' but has the problem 'ABCmoretexthere' (i.e. no space ...
42
votes
3answers
12k views

Meaning of \quad

Many LaTeX command names have some 'justification'. For example the commands \cup and \cap have a straightforward meaning. However, I couldn't find a meaning for the commands \quad and \qquad. Is it ...
40
votes
2answers
765 views

Why is there a \, space at the beginning of the “aligned” environment?

Near the beginning of the definition of the amsmath environments aligned and gathered (and also mathtools' multlined) there's an explicit thin space \,. This often has to be cancelled with \!, as ...
39
votes
3answers
38k views

Removing vertical space inside \maketitle

In \documentclass{article}, the \maketitle command results in a lot of wasted vertical space. Is there any way for me to remove it? In other words, I'd like the author to appear directly below the ...
39
votes
2answers
14k 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) ?
38
votes
4answers
44k views

Have new line between paragraphs, no indentation [duplicate]

Possible Duplicate: Is there an easy way to have my whole document with a space between paragraphs rather than indentation? I am sure that this must be a dup, but I can't find the right ...
38
votes
4answers
21k views

When one should use spacing line \quad or \,

In general, in most places, it is said that using TeX defaults is the best. However, TeX does provide things like \, and \quad etc. When one should use them? Both in general and in math mode in ...
38
votes
1answer
30k views

How to add extra spaces between rows in tabular environment?

I couldn't find any option that lets me expand the vertical space between rows in tabular environment. For example, \begin{tabular}{c c} $f^{(n)}(x)$ & $f^{(n)}(0)$ \\ ...
37
votes
11answers
7k views

Double space between sentences.

I've been reading a question on spaces between sentences on a sister site. The answers there seem to imply that the days of double spacing between sentences are over, and that this was a relic of the ...
35
votes
2answers
3k views

Macros for common abbreviations

Common abbreviations are surprisingly tricky to format correctly. I'd like some simple macros for them, to be used like so: You should eat more fruit, \eg apples, bananas, oranges, \etc. There are ...
35
votes
2answers
662 views

Viewer-independent copyable spaces at the beginning of a line?

I need to include a couple of Python code listings, where the indentation of the lines (using some number of spaces) is significant. I would like for the code listings to be copyable, so the spaces at ...
34
votes
1answer
2k views

When should I use intersentence spacing (`\@')?

I've got a sentence that ends on an acronym: blah blah WORD. Next sentence blah Running this through chktex, I'm informed that: Warning 13 in ./file.tex line 9: Intersentence spacing (`\@') ...
33
votes
3answers
1k views

Removing the spaces between words

Is there any way to remove spaces from in between the words in a text? Something like \RemoveSpaces{This is my sentence.} which will be converted to Thisismysentence.
33
votes
3answers
3k views

Bad spacing of math letters within italic text

I use the standard AMS theorem style, which means that my theorems are set in italic. In combination with math variables, this sometimes gives horrible spacing: The input If $U$ or $V$ \dots yields ...
33
votes
1answer
17k views

Vertical Spacing within align environment accounting for fractions

The default vertical spacing within an align environment seems very tight when there are fractions in the lines. I am aware of three manual tweaks that can be applied: Adjust the value \jot. ...
31
votes
1answer
2k views

What is glue stretching?

I had a question about dynamic vspaces (Dynamic vspace depending on text height) and there was a hint I should use a stretchable glue. Searching with Google didn't give me a helpful answer. I would ...
31
votes
1answer
6k views

How to modify the space between the numbers and text of sectioning titles in the table of contents?

I'm preparing a document using the book class. In the table of contents, the space between the subsection number and title is too wide. How to reduce it?
31
votes
1answer
21k views

How to change the spacing between figures/tables and text?

I was wondering if there is any way to lessen the spaces between figures and text. In my paper I have a lot of figures (graphics) and it is inconvenient for me to have default (large) spaces between ...
29
votes
4answers
5k views

Using display style fraction in a matrix environment

I'd like use the \dfrac command in a bmatrix environment as follows: \documentclass{article} \usepackage{amsmath} \begin{document} \[ \begin{bmatrix} \dfrac{\partial f}{\partial x} \\ ...
29
votes
2answers
794 views

Ensure minimal length of last line

This question led to a new feature in a package: impnattypo One rule in French typography is that the last line of a paragraph should not be shorter than the double of the indentation of the ...
29
votes
1answer
3k views

What, if anything, is the advantage of \bigskip and friends over \vspace?

What are the advantages to using \bigskip, \medskip, and \smallskip instead of just using \vspace{somelength}?
29
votes
2answers
1k views

What is the proper use of \@ (i.e., backslash-at)?

In this answer, \@ is used after a period and before an \xspace, presumably to indicate that the preceding period (in "etc.") was not sentence-final. In these tips, \@ is used before a period and ...
29
votes
1answer
10k 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 ...
28
votes
6answers
3k views

How to make an equation more compact?

I have an equation that wastes a lot of space around the union symbol: \documentclass{article} \usepackage[cmex10]{amsmath} \usepackage{amssymb} \begin{document} \begin{equation} RA_U \left ( new ...
28
votes
4answers
23k views

Shift title and author text up?

What is the best way to shift the title text 'up' in a LaTeX document compiled with pdftex? When I do this: \documentclass[12pt,letterpaper, onecolumn]{article} \setlength{\topmargin}{0in} ...
28
votes
7answers
2k views

How to replace a large block of text by an empty block of the same size?

I know there exists the \phantom command, but does it work on large blocks of text (containing several paragraphs or even several pages)? What I want is to have some commands, call them \hide and ...
27
votes
1answer
10k views

How to typeset a “small” non-breaking space

I can use ~ to produce a non-breaking space. But it is too large for me, and I would like a non-breaking space of the size of \, for example. Is it possible ?
27
votes
1answer
58k views

How to change the space between the itemize “items” in LaTeX? [duplicate]

Possible Duplicate: Vertical space in lists How to change the space between the itemize "items" in LaTeX so that I can continue to use the "itemize" and "item" tag without needing to ...
26
votes
3answers
3k views

What is the difference in citing/referencing with or without tilde?

I've seen examples referencing a table as follows: Table~\ref{table:overview} shows an overview of all the elements. What is the use of the tilde in front of \ref or \cite and when do you have to ...
26
votes
4answers
3k views

How do I ask LaTeX to exactly fill up a page?

I understand that I can control interline spacing in LaTeX in a number of ways. The commands like \baselineskip, \baselinestretch, \linespread come in handy in controlling the interline spacing. Each ...
26
votes
3answers
1k views

Mathematical description of TeX's infinite numbers?

TeX has things like infinitely stretchable spaces and infinitely bad penalties. Since Knuth is Knuth, I assume these are a carefully thought-out implementation of some well defined non-Archimedean ...
26
votes
2answers
16k 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 ...
26
votes
1answer
8k 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 ...
26
votes
1answer
1k views

How do I ask beamer to exactly fill up a slide?

Inspired by a recent question with a very similar sounding title, I would actually love to implement auto-magic vertical stretch for beamer slides (where, maybe unlike full documents, I think makes a ...