{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
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} ...
6
votes
1answer
491 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 ...
1
vote
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 ...
4
votes
1answer
3k 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
194 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 ...
15
votes
4answers
22k 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
475 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
666 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
299 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, ...
47
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 ...
21
votes
2answers
20k 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} ...
13
votes
3answers
3k 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 ...
17
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
543 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. § ...
34
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
921 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 ...
73
votes
2answers
39k 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.\\ ...
3
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
430 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
344 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
695 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
711 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
617 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
934 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 ...
11
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*} ...