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

9
votes
1answer
3k views

Setup for sub-captions for two sub-figures one below the other

I am using the caption and subcaption packages to create sub-figures in a document. I have two cases of sub-figures: Two sub-figures side-by-side. For this, the captioning is excellent. Two ...
12
votes
1answer
2k views

How to remove top and bottom whitespace of longtable?

I am using longtable instead of tabular environment and noticed that it puts some additional whitespace at the top and at the bottom of the table. Is there some way to remove it (something less hacky ...
5
votes
2answers
684 views

How to get rid of vertical space before and behind the lists

I cannot get rid of the vertical space before and behind the lists. I have code like below: \begin{list}{-}{% \setlength{\itemsep}{0pt} \setlength{\parskip}{0pt} \setlength{\parsep}{0pt} } ...
3
votes
1answer
301 views

How do I get the spacing in the redefined label box right?

I use the following code to make xy-pic arrow labels multiline capable: \let\oldlabelbox=\labelbox \def\newlabelbox#1{% \oldlabelbox{\vcenter{\normalbaselines% ...
12
votes
3answers
5k views

Exact font size and leading

I read couple of suggestions about setting exact font size and leading in LaTeX and XeLaTeX, so my question is, simply put, the following: is it the correct way to use LaTeX's method to XeLaTeX too, ...
48
votes
5answers
10k 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 ...
7
votes
1answer
2k views

Sideways margin with parbox?

How to get right margin in parboxed header? Top, bottom and left margin are ok, but there is no margin at the right (top) side of 'Parameter' header. \begin{table}[ht]\footnotesize \centering ...
5
votes
2answers
5k views

\vspace in beamer

I'm trying to produce some padding around a table in a beamer slide. I've tried using \vspace{10mm} but that doesn't seem to produce anything. Other vertical spacing commands such as \bigskip don't ...
11
votes
4answers
3k views

Spread bullet points across block in slide using beamer

I'm using beamer to create some slides for a presentation. I've got a block containing a bulleted list. The list only has three items, and all three items are bunched up in a small block at the top of ...
22
votes
2answers
21k views

Change whitespace above and below a section heading

I want to change the spacing around a section heading so that there is less of a gap between it and the paragraph that follows. I found the following commands \usepackage[compact]{titlesec} ...
15
votes
3answers
4k views

Phantom spaces in listings (pdf)

I have a problem with SQL code in a PDF document. For code representation I'm using the listings package. Everything works perfect until I copy-paste that code from the created PDF document. I get ...
18
votes
2answers
16k views

How do I control the spacing above a new \paragraph?

I'm sorry if this question has been answered earlier or is too basic for this site, but I couldn't find a reference. I'm using LaTeX using the article documentclass. I haven't customized any of ...
6
votes
2answers
4k views

How to change \parskip in bibliography section?

I want to change a vertical interval between \bibitem-s in my bibliography section. Now it is the same as in the document: \documentclass{article} [...] \begin{document} \setlength{\parskip}{0.3cm} ...
7
votes
1answer
546 views

Which settings control the indentations of items in an enumeration?

I have a bunch of enumerates, which are nested quite deeply (in a document with bylaws, so I can't avoid the nesting). This results in the labels being pretty wide, with label text like "6. § ...
36
votes
11answers
6k 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 ...
8
votes
2answers
943 views

Non-breaking space in \citet using natbib?

When adding citations in the body of a document I'm used to write ... in some interesting paper~\cite{interesting}. So that (if I'm using numbered references) the word “paper” and the citation ...
76
votes
2answers
41k 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 ...
9
votes
2answers
2k views

\cite that tolerates whitespace?

Is there a package that provides a variant of the \cite command that tolerates arbitrary whitespace? That is, I would like to be able to write something like \cite{foo, bar, baz} or \cite{ ...
5
votes
1answer
2k views

LaTeX: Align first table line with \item contents.

Consider this example: \begin{enumerate} \item Blablabla bla bla bla. \begin{tabular}{l} Lorem ipsum dolor sit amet.\\ Consectetur adipiscing elit.\\ ...
4
votes
2answers
4k views

Include image with spaces in path directory to be processed with dvips

I have the following image that I wish to include in my document: wget http://www.biomedcentral.com/content/figures/1471-2164-10-37-1-l.jpg -O exampleImg.jpg I need to compile via dvi. I covert ...
4
votes
4answers
433 views

\frac{1-z^{n+1}}{1-z} doesn't look very good and how to leave space equal to the size of a given text

When we write it by hand we usually align the 1's in numerator and denominator. Should I change it manually, i.e. defining a command for typing the sum of the geometric progression or is there a ...
2
votes
1answer
212 views

Why is the spacing for this completely whacky?

I have the following line: $P(can't\,communicate) = \frac{\#\,of\,combinations\,of\,4\,different\,keys} {total\,possible\,arrangements} = \frac{\frac{10*9*8*7}{4}}{2025} = ...
1
vote
1answer
353 views

Moving a framed environment to the left

I want to move the following remark environment, which nicely splits over pages :), towards the left so that it is not centered anymore. I have been unsuccessfully trying for a while: would you please ...
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 ...
32
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 ...
17
votes
5answers
4k views

Increasing Letterspace for words in caps or small caps

Some typographers say it's a good habit to increase the letterspace when writing words in caps or small caps. So my question is, how to do it with pdflatex and/or xelatex? And while we're at it, which ...
11
votes
2answers
195 views

How do I make “gather” object, place its self in the text, the same way as an equation object?

Assuming the amsmath package is installed. I found a difference between the way that an equation object and a gather object is embedded within the text. If an equation is beneath a line of text that ...
14
votes
2answers
720 views

Is it possible to have a “real” \belowdisplayshortskip?

I think this is a tough one. Have you ever wondered why TeX sometimes produces vertical spacing around equations that is far from satisfactory? An example: \documentclass{article} ...
14
votes
2answers
2k views

How to indicate elision in a quotation?

How should one typeset an elided passage in a quote? An example: \begin{quotation} some text [...] then some more \end{quotation} Elision in a quote is usually indicated by an ellipsis ...
9
votes
2answers
716 views

Does {1em} mean {1em plus0pt minus0pt}?

Is plus0pt and minus0pt automatically added if I write, e.g., \setlength{\abovedisplayskip}{1em} \setlength{\jot}{0pt} \setlength{\parsep}{0pt} ...
8
votes
1answer
6k 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 ...
6
votes
1answer
1k views

How to reduce space after the end of a tabbing environment

In my resume, for each of my jobs I have a tabbing environment set up for the name of the company, the city, and the dates for the job. I then would like to have the description of the job immediately ...
1
vote
1answer
208 views

How to make an \item consisting of a list

A list environment [Edit: used to] start a new paragraph. Thus, in \begin{itemize} \item \begin{enumerate} \item Something \end{enumerate} \end{itemize} Nothing is printed at the right of the ...
3
votes
1answer
626 views

index and item separation

I'm currently creating an index with the book class. I would like to play with the vertical separation between items in the index. Below is what I am redefining: ...
4
votes
1answer
947 views

Reduce space before and after an enviroment

A simple(?) question, how do I reduce the space before and after a environment? I suppose I'm after a redefine environment command that I can put at the top of my document. Example I'm using ...
12
votes
3answers
6k views

How to increase the spacing between equations in “gather”?

Is there a way to consistently increase the vertical spacing between equation lines in a gather (or gather*) environment from amsmath? Specifically, I want to produce something like \begin{gather*} ...
10
votes
1answer
790 views

hyperlinks in biblatex

I'm making a biblatex style to solve an issue with the standard styles: if you have a reference with a doi field, it just prints the DOI number, with a clickable link if hyperref is enabled. But a ...
7
votes
1answer
5k views

taking unncessary space after e.g. or i.e. [duplicate]

Possible Duplicate: Is a period after an abbreviation the same as an end of sentence period? Hi, I often use the abbreviations e.g. and i.e. when writing. The period after these ...
66
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 ...
8
votes
2answers
471 views

Why is there a space in this equation

I have the following equation: $\|\text{DFT}\left( f_t (n) \right)\|^2 $ () This equation is rendered with a space before the second $\|$. Why is this and how can I fix it?
1
vote
1answer
527 views

What is causing different spacing between a header and content on one page only?

I have found that for only one page (so far) the spacing between the header and content is different from the spacing on all the other pages. You can see this behavior in the images below (from pages ...
2
votes
2answers
380 views

How do I modify the amount of space between the heading and the chapter's number and/or name?

Currently, the space between the bottom of my header and the top of the chapter number is quite large and I would like to be able to reduce the space between the header and the chapter number. How ...
3
votes
2answers
1k views

How do I change the spacing for math operators?

I have defined my own math operator (for displaying the order of certain function sequences--this is not the "normal" Big-O notation, though) by: ...
13
votes
1answer
1k views

\colon for maps in opposite direction

Using \colon gives correct spacing for a map $F\colon C\to D$ in one direction. But writing $L\colon C\rightleftarrows D\colon R$ for a couple of maps in both directions (e.g. for an adjunction) gives ...
49
votes
2answers
8k 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?
15
votes
8answers
532 views

The trestle problem: how to avoid >=< in the output

TeX puts no space between \mathrel characters, so one can type := to make a definition. But careless authors often type stuff like < a, b > = < c, d > to indicate that two scalar ...
7
votes
4answers
432 views

Custom acronyms via \def

I'd like to define acronyms via the \def command. I know that the acronym package exists, but that's too much typing (\ac{myacronym} vs. \myacronym). The problem that I have is that for ...
5
votes
1answer
774 views

In amsart, how I can get caption spacing in tables to be like that in figures?

In the document class amsart, I get different vertical spacing around the caption in tables and figures. For instance, compare the difference: \documentclass{amsart} \begin{document} ...
17
votes
2answers
686 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 ...
10
votes
2answers
2k views

Increase spacing in split environment

I'm writing long equations with the split environment: \begin{equation} \begin{split} ... \\ ... \\ ... \end{split} \end{equation} The problem is that the single lines are a bit high, and there is ...