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

19
votes
3answers
3k views

Making a LaTeX document appear as though it were typeset in MS Word

I am typesetting a document in LaTeX for which I have been given exact specifications that are intended for an MS Word-processed document (single-sided, single-spaced, 0.75 inch margins, no more than ...
5
votes
3answers
306 views

Control vertical space between answers in alterqcm

Consider the following minimal example of the alterqcm package: \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage[upright]{fourier} \usepackage{alterqcm} \parindent0pt ...
4
votes
3answers
6k views

Writing a limit so that the subscript goes directly underneath

When I write $\lim_{x \rightarrow p} f(x) = q$, the subscript x \rightarrow p appears to the right of the limit, instead of directly underneath it. When I try $\displaystyle \lim_{x \rightarrow p} ...
12
votes
1answer
1k views

Removing extra space with \pmod command

When using the \pmod command as a subscript to a sum, I often encounter some extra unwanted space. For example, writing \[ \sum_{n \equiv 1 \pmod{k}} ... \] produces the following image: Does ...
17
votes
2answers
1k views

Improving typesetting of sums with long limits

This piece of code \documentclass{article} \usepackage{mathtools} \begin{document} ...
3
votes
1answer
820 views

Implied Double Space in Table of Contents Vs. Sections

I'm attempting to remove a double space that seems to be automatically put after the display of list of figures, table of contents, etc. What I mean visually is show as follows: What I would like ...
5
votes
1answer
766 views

How can I reduce the space between paragraphs and block quotes?

I'm using the mla package from the texlive-humanities ubuntu package to format an MLA-style paper. Unfortunately, something is a little off, and there's a little extra space between paragraphs and the ...
9
votes
2answers
558 views

How can I get my ellipses formatted correctly in XeTeX?

I've been using \dots and \ldots to try to get ellipses happening. Ellipses should look like this: Some text . . . and then some more text. But instead they look like this: Some text ...and some ...
3
votes
1answer
704 views

Column spacing problem

I'd like to know how to position two columns in the following table closer together. The table looks like this: I have found I had a problem with spacing of tabular columns combined with ...
5
votes
1answer
3k views

Invisible character equal to the height of capital letters [duplicate]

Possible Duplicate: How do I create an invisible character? How can I insert an invisible character (similar to \strut) which has a width of zero (won't impact word or letter spacing) and ...
2
votes
0answers
450 views

Caption spacing in longtable package [closed]

I am using a style file that sets a particular spacing for the List of Figures (LoF) and List of Tables (LoT) in my Table of Contents. However, I am using longtable for all my tables, and it is ...
9
votes
1answer
627 views

ignoring vertical space due to underbraces in cases environment

In the following formula, I would like to change the rendering such that the lower end of the "cases" brace looks as if there were no underbraces. Is that possible? I already tried \smash and negative ...
6
votes
2answers
6k views

Can't generate vertical space between tables

I realize this is probably a really simple issue but I'm a complete beginner. I am auto-generating code very similar to the LaTeX code below. However no matter what I do I can't get space between the ...
13
votes
1answer
766 views

What does 'missing \@ before…' error mean in vim?

I get this strange behavior when I have capitals before a period, like so 1 \documentclass{article} 2 \begin{document} >> 3 Another possible protein blah blah blah from GRIP/ABP. Blah ...
4
votes
1answer
1k views

reduce vspace after section header

I am currently using the the scrartcl document class and glossaries for acronyms: \documentclass[12pt,a4paper,headsepline,notitlepage,parskip=half]{scrartcl} ...
4
votes
1answer
252 views

How to typeset definitions with several paragraphs in the KOMA classes

The KOMA classes do not use vertical inter-paragraph spacing with some good arguments (see page 50 of the scrguide). I defined an environment for definitions with the amsthm package using their ...
4
votes
1answer
4k views

Empty line after a tabular environment

I would like to have a little table without caption within my text. There should be, however, some space between the preceeding and following lines of text. The following snippet ...
11
votes
4answers
2k views

Displaying pinyin over Chinese characters, without impacting word spacing

I want to display pinyin (romanized form) over Chinese characters. However, the two methods I know (using stackrel or tabular both change the spacing between characters. This demonstrates the problem: ...
11
votes
5answers
9k views

Spacing around table and figure environments

I've got table and figure environments, some placed "here" with h and some arranged automatically. But all together I don't like the spacing above and below the figure and table environments. I ...
6
votes
1answer
263 views

Temporarily changing the spacing between Chinese text and numerals

When mixing Chinese text and non-math mode numbers together within a sentence, narrow numbers are given the same amount of space as characters: \documentclass{article} \usepackage{ctexcap} ...
6
votes
2answers
540 views

How to use non-breaking space (~) with \usepackage[spanish]{babel}?

I just realized that when I \usepackage[spanish]{babel} I can no longer use ~ as a non-breaking space before n or N. MWE: \documentclass{article} \usepackage[spanish,notilde]{babel} ...
1
vote
0answers
115 views

Print programs with its proper syntax by minted [closed]

I have post a question several weeks ago: Print programs with its proper syntax, and I finally decided to use the package minted. I summarize a little bit my needs here: the language I define has its ...
6
votes
1answer
564 views

Include hspace in header/footer in fancyhdr? [duplicate]

Possible Duplicate: How can I force a \hspace at the beginning of a line? I am trying to put a postal address in the footer. I want the first line to be "Address: Address line1", then the ...
14
votes
2answers
221 views

Extra space behind month for \today with \usepackage[norsk]{babel} in December

When using \today and \usepackage[norsk]{babel} (babel <v3.8l>) in December there is an extra space behind the month name. How do I get around this? \documentclass{article} ...
6
votes
1answer
397 views

hspace except at the beginning of a line

I am using the footmisc package: \usepackage[perpage,para]{footmisc} Every time I make a footnote, I use my own podnote command: \newcommand{\podnote}[1]{\footnote{\hspace{-1ex}#1}} However, I ...
1
vote
2answers
221 views

Displaying HTML, Asian fonts, fonttype and tabs

How do I get LaTeX to just print the following lines as plain text? The angled brackets are messed up when I compile the .tex file into .ps the main texts are bounded by <p>...</p> within ...
12
votes
3answers
798 views

Why don't I get any space after \thepage?

The code \thepage of yields the output 3of. I can fix it by writing \thepage~of, but what causes this in the first place? I can't imagine when it would be useful.
5
votes
1answer
513 views

Spacing using minipage in theorem environment (ntheorem)

Consider the following example and notice the different vertical spacings between the theorem caption and the text. Is there a way to get the same spacing when using minipage as in the case of normal ...
2
votes
1answer
2k views

How can I customize 'headsep' attribute in the geometry package so that I can set it for individual pages?

I use the \geometry package for formatting my CV, and I know (from How to remove vertical space between header and body of text?) that I can use the headsep attribute to customize the spacing between ...
8
votes
3answers
4k views

Format spacing for correlation table (any statistical table)

I'm attempting to format a correlation table for publication but can't get the spacing right when I include significance stars. I'd like to have minimal space between columns. The space between ...
3
votes
1answer
263 views

How do I get rid of this line spacing after multicols?

How do I get rid of the extra spacing after multicols? \documentclass{article} \usepackage{amsmath} \usepackage{anysize} \usepackage{lipsum} \usepackage{multicol} \begin{document} ...
9
votes
2answers
2k views

Compact collapsing of equations and paragraphs

I want to duplicate the compact look of G. K. Batchelor's fluid dynamics book. Where a paragraph terminates such that the mathematical expression can collapse up into the vertical space of the ...
0
votes
1answer
547 views

Vertical space between headlines, tables, images and the following text too large

Is there a way to globally set a value (or minimum and maximum value) for the vertical space between, for instance, headlines, tables, images and the like and the following text. Right now I have ...
3
votes
2answers
2k views

Getting front page title in the middle of the page when using \thispagestyle{empty}

For front page of the document I'm using \thispagestyle{empty}. But this command put the title on the very first row. I want to put the title in the middle to the page. I tried with \vspace{50mm} but ...
6
votes
2answers
5k views

Spacing before and after with \newtheoremstyle

I want to define my own theorem style for examples. I want them to be numbered the same way as theorems (so Example 2.4 follows Theorem 2.3); I want them to be formatted exactly the same as theorems ...
3
votes
2answers
1k views

Horizontal spacing

I want to do some horizontal spacing. I tried with \hspace{6cm} but it doesn't work, and I don't know why. I also tried \\[.6cm] but since I want to make space between two tables, it doesn't work ...
9
votes
5answers
13k views

How can I force a \hspace at the beginning of a line?

My code is this: \setlength{\parindent}{0ex} \texttt{ x\hspace{1ex}\hspace{1ex}\hspace{1ex}y \newline \hspace{1ex}\hspace{1ex}\hspace{1ex}\hspace{1ex}y } What I'd like to see is: x y y ...
4
votes
1answer
509 views

\addvspace after a titlesec heading

So, I'm trying to make an environment that is always padded above and below by a certain vertical space, no more and no less (unless the previous or following elements require even more space). My ...
15
votes
2answers
9k views

Normal subgroups

To typeset that H is a normal subgroup of G, I would use H\unlhd G. However, the result doesn't satisfy myself, since the G seems too close to the triangle: Adding a space \ makes "too much ...
3
votes
1answer
485 views

Belowskip on minted?

Is it possible to remove the spacing below the code of a minted environment? When I have a block of code underneath another it doesn't produce any spacing (which is what I want), but it does for text ...
9
votes
1answer
361 views

How can I avoid whitespace after a macro which takes arguments?

I have a macro that (simplified) is defined like this: \newcommand{\mymacro}[1]{ %use #1 \par\noindent% } I'd like to be able to use it like \mymacro{Arg 1} Beginning of paragraph ...
8
votes
1answer
2k views

Spurious space above align environment at top of page/minipage

It seems that the align environment adds additional vertical space if it starts at the top of a page or minipage. Below are two pages, and two minipages (on Page 1), where the first page/minipage has ...
1
vote
1answer
2k views

Subcolumns with multicol and the exam class

I'm using the multicol package with the exam class to create 2 sub-columns within a multicols environment for checkbox answers when the answers are short and one word. There is a significant amount of ...
4
votes
2answers
147 views

Recreate the conditions of the document preamble while loading a file in the document body

While in the document body I like to temporary switch back to the mode active in the LaTeX preamble, i.e. spaces between macros should be ignored. I don't mind whether I get the ! LaTeX Error: Missing ...
3
votes
2answers
871 views

title of sub plots with ybar groupplots

I tried to use groupplots to arrange several bar plots but the titles are drawn on top of the axis labels of the plot above. Am I doing something wrong here? \documentclass{article} ...
7
votes
1answer
640 views

Too much space after integral sign with unicode-math and lualatex

(I had a feeling this was a duplicate, but couldn't find an older question about it. Forgive me if I'm just bad at searching.) Consider the minimal example \documentclass{article} ...
4
votes
2answers
5k views

How to reduce spacing in equations?

I want to typeset short equations (variable = value) saving space. Is there a global parameter which allows to reduce the space between operators and operands in math mode? I found out, that there ...
3
votes
2answers
703 views

Amsmath, spacing, left alignment

It was recommended that I include amsmath package to use \tag{} (which works). When I do this however, it somehow changes my predefined spacing; I would like everything to be left aligned, no left ...
4
votes
2answers
2k views

Writing in an invisible table

I'd like to list a few phrases in one language, and their meanings in another language. I thought about doing it like that: Sentence 1 ---------- Translation 1 Longer Sentence ----- Longer ...
8
votes
2answers
836 views

Four Language Parallel Column Book

I am trying to format a four column parallel text in four different languages to display on two pages with two columns per page. I have tried using ledpar and parallels but I cannot get it to work. ...