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

2
votes
1answer
377 views

Match spacing of align in array environment

To typeset some displayed equations, only the array environment was powerful enough. However, the spacing of the array environment doesn't match the spacing of the align environment. How do I set ...
3
votes
2answers
499 views

A fix for \vspace*, does it break other things?

Thanks to the answers to this question, I believe I have a fix for \vspace* that will make it work sanely at the top of a page. \def\@vspacer#1{% \ifvmode \dimen@\prevdepth ...
13
votes
1answer
2k views

Why does \vspace*{0pt} add vertical space?

I'm trying to format the title of the table of contents using the tocloft package. It inserts code that looks like the following. \par \vspace*{\cftbeforetoctitleskip}% % code to typeset ...
3
votes
1answer
454 views

Spacing of vdots in a0poster class

I'm having trouble with the spacing of the individual dots that are typeset by \vdots when using the a0poster class. In particular, the dots are much closer together than the dots typeset by either ...
6
votes
1answer
499 views

Paragraph spacing in other languages.

I am writing a document in French using LaTeX and I found a weird behavior with paragraph spacing. Here is a MWE (in English): \documentclass{article} %\usepackage[french]{babel} ...
5
votes
4answers
3k views

How to center the whole tabular, center the header line cells, and have some space after it?

I have a few questions about tables that are probably pretty basic. Here is the code for my table. \begin{table} \begin{tabular}{| r | l | l |} \hline \textbf{Species} & ...
6
votes
1answer
3k views

Eliminate space at end of list in a table

I have a tabular environment, created with array loaded and using m columns, the cells of which mostly contain lists. In cells with a list, there is about 1em of dead space at the end of the list ...
2
votes
1answer
126 views

How can I position some text on the same place on multiple pages with partly different content?

I am creating the first pages of a book and I want one page with just the title and the next page to have title plus the authors and some other stuff. However LaTeX places the title differently on the ...
10
votes
1answer
5k views

Relative padding of a minipage's paragraph

Background Created a custom command for rendering quotations (epigraphs). Problem The text in the following image has no space at the border: The word "and" is flush with the right margin. Code ...
3
votes
2answers
733 views

Extra large gap in article where figure code is, even though figure is at top of page

I writing an article using the amsart document class and whenever I use \begin{figure}...\end{figure} to put a figure into the article, it places the figure at the top of the page (which is fine), but ...
4
votes
1answer
764 views

biblatex, hyperref and punctuation issue

And a little bit more biblatex stuff: I've noticed that, when using hyperref, there is an issue in form of an ugly space between the citation and the punctuation (be it comma or period). Please, take ...
5
votes
2answers
736 views

What is the easiest way to decrease the linespread in a table of contents?

Using the scrartcl class for a report I am writing, I would like to have only the sections show up in the table of contents. Although I manage to do that, the linespread looks too big in my eyes, and ...
14
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, ...
5
votes
3answers
3k views

tabular* with rubber spacing and \cline

I'm using a tabular* with rubber spacing to fill the complete width of the page. This works fine, except that when I use \cline, the line is not complete. It seems that \cline does not cover the ...
11
votes
2answers
2k views

Ugly spacing around f in math mode

My paper contains many math expressions like $abcde$ or $abdefv$. Unfortunately, the latter looks very ugly, particularly in regards to the spacing around the f. In particular, there is a ...
3
votes
1answer
1k views

An environment to change the vertical space around a formula

Specially in beamer presentations, I use a custom environment to change the vertical space around a formula. The code is: \newenvironment{shrinkeq}[1] { \bgroup ...
3
votes
1answer
1k views

Latex ignoring vspace. How do I get these two images on the same page?

I have the following to insert two images into a latex document: \begin{center} \hspace*{-1in} \includegraphics[width=8.5in]{rmse.pdf} \vspace*{-2in} \hspace*{-1in} ...
7
votes
1answer
504 views

Footnote being pushed to after a float page.

I have somewhat bizarre footnote placement in a document that I'm typing. Unfortunately, I'm also having trouble reducing it to a minimum not-working example as this behaviour seems to depend on many ...
4
votes
1answer
2k views

Vertical space before environments

How can I control the vertical space before an environment, e.g., taublar or minipage. Here is an example that reproduces my problem \documentclass{article} \begin{document} \noindent ...
2
votes
1answer
9k views

Two double spaces between paragraphs

How can I set two double spaces between all paragraphs in a report? I have already set double spaces between lines with this command: \usepackage{setspace} \doublespacing
3
votes
3answers
1k views

Protecting negative spacing in math mode

I am using \! to create negative spacings and put a dash over a symbol in math mode. (Here I am denoting missing transverse energy by defining a command \met where a dash is put across E_T, see code ...
5
votes
1answer
4k views

How to shorten the length of an arrow?

I use tkz-graph.sty from Altermundus. When I make an arrow from vertex A to vertex B, the arrow is too long: it goes from the center of A to the center of B. Can I shorten the arrow on both ends by a ...
4
votes
1answer
198 views

How to disable leading space from hyperref?

I defined the following command: \newcommand{\reqWVSDataSource}[0]{ \hyperref[req:wvsDataSource]{\textit{Req01}}} If I use it like this: (\reqWVSDataSource) hyperref adds a leading space. Thus ...
3
votes
1answer
4k views

how do I set the space between paragraphs with beamer?

I am trying to set the space between paragraphs in beamer (in a block environment). I tried using \setlength{\parskip}{8pt plus 1pt minus 1pt} in the beginning of the document, with varying numbers ...
50
votes
2answers
9k 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 ...
17
votes
4answers
24k views

Reduce space between enumerated items

Background A book with lots of images. All of the images are set to "here definitely" (as they must come after the text that introduces them). Problem The list types (enumerated and bullet) have ...
8
votes
2answers
486 views

Typesetting special table formats

I want to typeset Flynn’s taxonomy: | Single | Multiple | instruction | instructions ---------+-------------+-------------- Single | | data | SISD | ...
9
votes
1answer
191 views

Ensuring that vertical space is consistent in list of polynomials

\documentclass{article} \usepackage[fleqn]{amsmath} \usepackage{mathrsfs} \usepackage{amsfonts} \pagestyle{empty} \setlength\mathindent{0pt} \begin{document} \[3x^3\] \[3x^2\] \[3x\] \[3\] ...
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
691 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
302 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 ...
23
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 ...
19
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. § ...
37
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
944 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 ...
77
votes
2answers
42k 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
435 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} = ...