{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
3answers
4k 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 ...
12
votes
2answers
1k views

\addvspace can't replace \vspace

I want to replace \vspace with \addvspace in a command. When so doing, I get obtuse "something's wrong--perhaps a missing \item." errors. I'd appreciate an explanation of why this happens and how ...
7
votes
1answer
7k views

amsmath align environment: row spacing

How can I stretch the spacing between consecutive lines in an align* environment? I have a few lines with \fracs in which both the numerator and the denominator consist of textual phrases, not math ...
12
votes
2answers
4k views

Create empty box sized according to imaginary content

In LaTeX, is it possible to create an empty box that has exactly the dimensions of some content given? Example: \emptybox{abc} would insert an empty box of the size as if "abc" was printed there.
6
votes
5answers
305 views

Typeset a series of characters with equal distances?

for typesetting tables with design of experiments, I have to typeset strings like "+ - + +", - - - +", etc. in a column of a table to represent the so called pattern of the experimental run (sometimes ...
5
votes
2answers
745 views

Spaces behind \textgreater not working as expected

I have the following code: \textit{WMC \textgreater average} But the text looks like this: WMC >average It does not even change if I add even more spaces. So what am I doing wrong?
7
votes
1answer
16k views

Remove/Reduce vertical space between paragraphs for acm_proc_article-sp

I need to use a certain document class (acm_proc_article-sp) that introduces vertical space between paragraphs. I want to remove or at least reduce that space, which I am unable to. Here is a minimal ...
4
votes
1answer
487 views

Theorems and Definitions as quotes

Most standard styles highlight theorems and definitions using italics. Now this is something I really would like to avoid in my thesis (and generally). Unfortunately, if I just remove this "feature", ...
1
vote
1answer
306 views

How to delete space of empty “section number”

I have renewed the section number so that it doesn't display anything \renewcommand{\thesection}{} now the problem is that LaTeX is still reserving space for the section number although isn't ...
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 ...
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 ...
3
votes
2answers
2k views

Vertical spacing with underbrace command

How can I set how much vertical spacing is put between my equation and the curly bracket used in underbrace? As an example, I feel like the following just puts the brace too close to the equation: ...
1
vote
1answer
140 views

Spacing of characters in a mathematical set, displayed inline in paragraph

I have a mathematical set notation that I want to display inline in a paragraph of text. However, when I write this, the output is not very beautiful: $\{ (w_j,\dots,w_{j+n-1}) | 0 \leq j \leq ...
1
vote
1answer
523 views

How to control spaces between objects?

I have a problem with controlling spaces between different object and environment. In my MWE you can see I use quote and \footnote on the one page. Unfortunatelly when I use them lines on adjoining ...
2
votes
1answer
835 views

Is italic + less-space formatting of \subparagraph typographically sensible?

As discussed in Difference between \paragraph and \subparagraph in scrreprt?, my formatting does not make a difference between \paragraph, as the proposed workaround does have no effect, if the option ...
3
votes
2answers
2k views

spacing with wedge and bigwedge with bigger index

I have this math code: \[ \bigwedge_{i,j \in \underline{n},\atop { i \neq j,\atop k,l \in \underline{|\sigma|}}} x_{i,k} \neq x_{j,l} \wedge \bigwedge_{i \in \underline{n},\atop k \in ...
8
votes
2answers
4k 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 ...
17
votes
4answers
570 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 ...
12
votes
3answers
7k views

Define pretty sets in LaTeX; esp., how to do the condition-separator?

E.g., I have this set: \{ \alpha \in \Sigma^\omega | \exists^\omega n : \alpha [0,n] \notin \Sigma^* a_1 \Sigma^* a_2 \dotsb a_n \Sigma^* \} Here, I use | as the separator for the condition part. ...
5
votes
2answers
3k views

Vertical space of \includegraphics[height=2cm]

I am trying to place an image on the right of some individual lines of text that do not stretch over the entire \textwidth. The image will go higher than the first line and I have to be able to ...
1
vote
1answer
602 views

Reduce vertical spacing/gap - for \listoftables, \listoftables between heading and first entry

The following MWE demonstrates the large gap between the heading 'List of Tables' and the caption for the first entry in this list. How can the vertical space between the heading and first line of ...
4
votes
2answers
653 views

Removing space before Section in Table of Contents when using Article

How can I remove the vertical spacing before each section in the table of contents from a 'article' documentclass?
2
votes
1answer
1k views

fncychap: vertical space between text and heading too large - shift left heading - improving on fix?

To reduce space between the table of contents heading and the first entry in the table of contents the following solution is used: \addtocontents{toc}{\vskip-40pt The heading to display} However, ...
2
votes
1answer
460 views

Could I change the default column sep of `aligned` from \quad to \qquad globally?

I need your help: to change the default column sep of aligned from \quad to \qquad globally, thanks.
13
votes
1answer
939 views

Italic Correction for Linux Libertine Font

I was looking for a new font for the manuals of my LaTeX packages and found the Linux Libertine most pleasing. However it seems that it doesn't support italic correction (yet). I assume that a font ...
4
votes
2answers
1k views

fncychap package - vertical gap/space between text and heading too large - how to reduce?

The below example shows the table large gap between the top of the table of contents its section heading. How can this gap be reduced? \documentclass{book} \usepackage[Bjornstrup]{fncychap} ...
4
votes
1answer
2k views

Vertical space around theorems

I'm working in a document that has double-spacing (yuck!), and I want to establish some standards in order to make the thing look "presentable". Currently, the only environment that has an automatic ...
4
votes
2answers
886 views

How to increase vertical spacing between entries when using glossaries long style?

I am using the glossaries package with long style. However I don't want the entries to be so tight one to another. Minimal code: \documentclass{book} \usepackage{glossaries} ...
2
votes
1answer
1k views

Memoir: no space after section heading

How do I set zero space after a section heading using memoir.cls? If I use the following: \setbeforesubsubsecskip{-\baselineskip} \setaftersubsubsecskip{0pt} I get a run-in heading. This is only ...
7
votes
3answers
593 views

How to do extra spacing when using small caps for abbreviations?

The default letter spacing for small capitals seem optimised for use in headlines and such but a bit too cramped for use in abbreviations. How should I do to get the letter spacing more suitably ...
4
votes
1answer
1k views

How to correctly position biblatex \autocite?

I'm using biblatex 1.2a and \autocite because I don't know if the final format of the book will require inline or superscript citations. Seems the correct usage of \autocite is preceding it by a ...
4
votes
2answers
1k views

Vertical space after title of unnumbered chapters (bibliography/ToC)

The title pretty much says it all: It is possible to add arbitrary vertical space after the title of the ToC or bibliography page within the report document class?
21
votes
3answers
6k views

How to specify a fixed height for all rows in a table?

I have something like this: \newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} \begin{tabular}{| c | C{3cm} | C{4cm} |} Short Text & Short Text & Short Text ...
4
votes
1answer
3k views

Footer spacing in LaTeX

I have a huge footer in my LaTeX-document (a table I need on each page), but the table is too high to be in the document even though I use \addtolength{\footskip}{-30pt} below that size the footer ...
6
votes
1answer
779 views

Ignore Whitespace Within Environment

I'm using the bnf package to format a context-free grammar in one of my documents. I'm finding that any whitespace will be reflected in the output. I would like to keep the whitespace in the code for ...
3
votes
2answers
1k views

Space after closing double quotes in XeLaTeX

I'm writing some non-technical text that I'm trying to typeset using XeLaTeX. For simplicity, I'm keeping the actual text in plain text files which after certain modifications (e.g. escaping %, \ and ...
8
votes
2answers
3k views

Vertical spacing of framed environment

Here is an MWE that shows the problem: \documentclass{article} \usepackage{framed} \setlength{\FrameSep}{3pt} \setlength{\parindent}{0pt} \begin{document} \fbox{Foo} \fbox{Foo} \begin{framed} Foo ...
27
votes
1answer
54k 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 ...
9
votes
3answers
273 views

Automatically checking for accidental spaces in macros?

It is easy to forget a \relax or % at the line end of commands in the body of macros. For example, in writing \def\myMacro{ \invokeX \invokeY{} \invokeZ } You must add a space swallower at ...
3
votes
2answers
502 views

Whitespace in memoir titles

I am unhappy about the whitespace before and after my chapters, sections, and subsections etc. Using the memoir class I tried to find out on how to reduce this. For my chapters it says I should use ...
9
votes
1answer
3k views

Extra vertical space between aligned equations in ConTeXt?

In LaTeX, I can use \\[3mm] for example, to put extra vertical space, if I think it will improve the readability of displayed, aligned equations. And in fact I find I do this quite a bit. But what ...
11
votes
1answer
6k views

Tilde and slash in LaTeX

I am getting strange errors in LaTeX: perhaps you should insert a `~' before "\ref" missing `\ ' after "i.e." missing `\ ' after "i.e." I understand that the first expects me to put a tilde before ...
7
votes
1answer
3k 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 ...
14
votes
4answers
896 views

Todo note steals space

I'm writing a larger document and I use the todonotes package to add reminders. For some reason, when I add a note, the space after the note's insertion point is removed. Here's minimal example: ...
9
votes
2answers
1k views

How do I backcolor in verbatim?

I have some code I want to typeset as verbatim (lstlisting would be ok as well) - but I want to highlight some parts of it via a different background color, i.e. something like this: \begin{verbatim} ...
20
votes
5answers
17k views

Add space between paragraphs in Beamer

Customizing spacing between paragraphs in Beamer plagues me constantly. To split two paragraphs by one empty line I usually put \medskip tag between paragraphs, but this is very ugly solution. Now I ...
9
votes
2answers
216 views

Make the $ that opens a math environment replace preceding spaces with a single non-breakable?

I find myself spending effort in placing the tilde character before every inlined math I type, e.g., On 1899, G. Pick proved that the area of a simple polygon~$P$ whose vertices are located ...
10
votes
2answers
690 views

Can you employ \unskip to automatically place a non-breaking space before \cite or \ref?

It is recommended to place a non-breaking space before \cite, \ref, inline math and perhaps at few other locations. The question is whether you can design an improved version of \cite (say) which ...
2
votes
2answers
804 views

overbrace but leave spacing in math unaffected

I would like to use an overbrace, but I do not want how much text I put in the overbrace to affect the spacing of the math (i.e. I don't want the the "a" and the "b" to get further apart in the ...
11
votes
1answer
4k views

Customize spacing between section number and its caption?

is there any chance to customize the spacing between the (sub)section number and its title in every appearance in the document? That is, in any header or footer as well as in the table of contents and ...