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

34
votes
2answers
29k 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 ...
13
votes
1answer
7k 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 ...
5
votes
2answers
3k 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
157 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
612 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 ...
3
votes
1answer
1k 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 ...
4
votes
2answers
4k 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 ...
11
votes
2answers
6k 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 ...
19
votes
4answers
660 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 ...
21
votes
3answers
11k 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
4k 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
645 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 ...
5
votes
2answers
909 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
520 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.
14
votes
1answer
1k 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
2k 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} ...
6
votes
1answer
3k 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 ...
5
votes
2answers
1k 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 ...
8
votes
3answers
811 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 ...
5
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?
23
votes
3answers
11k 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 ...
6
votes
1answer
5k 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
1k 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
2k 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
5k 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 ...
80
votes
1answer
147k 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
282 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 ...
4
votes
2answers
853 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 ...
16
votes
1answer
9k 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 ...
8
votes
1answer
4k 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 ...
22
votes
4answers
1k 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
2k 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} ...
27
votes
5answers
31k 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
235 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
747 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
1k 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
5k 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 ...
8
votes
1answer
2k views

Table of Contents: Customize space between dots before page number?

I am writing a small KOMA-Script scrartcl document with multiple sections. In the table of contents, LaTeX fills the current line with dots between the end of the section name and the page number. Is ...
12
votes
5answers
3k views

Improve intercolumn spacing of this table

I'm trying to spruce up the appearance of this table: \begin{tabular}{rr@{\hspace{2em}}rr@{\hspace{2em}}rr@{\hspace{2em}}rr} \toprule \multicolumn{2}{c@{\hspace{2em}}}{\textbf{Word C}}& ...
2
votes
1answer
2k views

Adjust spacing of algorithm float caption

Background Using the algorithm package to display source code listings. Problem The LaTeX (LyX) code (test.lyx) is at: http://pastebin.com/QRWDhA7E An example graphics (query.png) file is at: ...
17
votes
3answers
15k 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 ...
5
votes
2answers
418 views

Spacing for homogeneous coordinates

Homogeneous coordinates in projective geometry are usually denoted like this: $[x:y:z]$. However, I think that : plays the role of a comma, and should be surrounded by much smaller spaces than for ...
9
votes
1answer
2k views

Using infer from the proof package?

I am using the \infer command from the proof package. Few things that I am trying to do unsuccessfully: How can I have some space between the elements of the proof? such as space between x and y ...
11
votes
2answers
28k views

Separate \arraystretch value for every table

\arraystretch defines vertical spacing of tables. If I have several tables, how can I define a separate value of \arraystretch for every table? In my case, the last defined \arraystretch works for all ...
8
votes
1answer
1k views

List environment inside the tabular environment: extra line at top preventing alignment

I have a LaTeX question that is bugging me. I have been trying to get a list environment to appear correctly inside the tabular environment. So far I have gotten everything to my liking except one ...
8
votes
2answers
996 views

\frenchspacing not setting the space factor codes correctly?

When I type \showthe\frenchspacing, I get the following output: > \frenchspacing=macro: ->\sfcode `\.1006\sfcode `\?1005\sfcode `\!1004\sfcode `\:1003\sfcode `\;1002\sfcode `\,1001 . Shouldn't all ...