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

4
votes
1answer
3k views

Make an invisible vbox

I'm placing a PDF meta information in a \vbox in a plain XeTeX document, and I would like it to behave as if there were no box at all (so any additional \vskip after the \vbox will appear). Right now, ...
3
votes
1answer
3k views

Tex Cover Letter Doesn't Display “Sincerely, My Name”

I'm using the cover letter example from this website: http://www.matthewjmiller.net/howtos/customized-cover-letter-scripts/ What it should look like and the source of the tex is on that website, I ...
21
votes
3answers
6k 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 ...
12
votes
5answers
2k views

Ellipsis with a period/fullstop

While quoting how ellipsis should be used if few sentences are omitted in between. (ommissions are not clauses or words or phrases, but sentences). For example if there is a passage like: This is a ...
10
votes
4answers
4k views

Redefining \maketitle to put a maximum of information in a page

I'm currently writing LaTeX articles containing all of my lessons content in order to have it on a very few pages instead of the heavy thing the teacher gives us with exercises, demonstrations and so ...
9
votes
5answers
11k 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 ...
9
votes
3answers
13k views

Control spacing around table caption

I want to put several tables in the same table float like this: \documentclass[a4paper, 12pt]{article} \usepackage[T1]{fontenc} \usepackage{subfig} \begin{document} \begin{table} \caption{Internal ...
7
votes
2answers
3k views

Spacing of \multline inside align (i.e. \multlined)

Related with How can I use multline within an align environment?. Consider this document: \documentclass{minimal} \usepackage{amsmath,mathtools} \begin{document} \begin{align*} & ...
6
votes
2answers
340 views

Using a negative space \! to differentiate between functions and products

In Physics, I often have functions like f(x), but also multiplications like y(-x). I would like my math to be easy to understand, so I am looking for a way to suggest function calls and ...
6
votes
3answers
452 views

Uneven vertical spacing displaymath

I would like to ask you why we have uneven vertical skips between the first two and last two vectors, coming from the source: \documentclass{article} \begin{document} \[(a,b,c,d,e,f,g,h)\] ...
5
votes
2answers
4k views

moderncv - modify size of blank spaces

I'm trying to find a way to modify the moderncv LaTeX "library" (dk if library is the right word). As shown on the picture below, I want the space 1 & 2 to be reduced by half. I'm new in LaTeX, ...
5
votes
2answers
1k views

Relation spacing error using =& in aligned equations

The middle equation in the following example seems to have wrong spacing around the = sign. The only difference is that I used =& for aligning around the = sign rather than &=. This worries ...
4
votes
3answers
929 views

Extra line of vertical separator using itemize in tabular

I'm creating a resume based off of the example tutorial HERE. It's fairly simple, actually -- just a two columned table with dates on the left and job on the right. I prefer bullets vs. a paragraph ...
3
votes
1answer
541 views

Permutation cycle notation

How do you nicely denote a permutation via cycle notation? Ie, the cycle \[1 \mapsto 2 \mapsto 3 \mapsto 1\] can be done by something like: \[ (1\quad2\quad3) \] using \quad, but that seems ...
3
votes
2answers
784 views

Align (center) header row in table

I use @{\hskip 50pt} to separate columns in my table. The problem which arises is that I add this extra space after a multicolumn. This also moves the header row so that it is no longer centred. Is ...
3
votes
2answers
1k views

Length parameter for vertical skip space in a math environment?

I learned here that I can use \\[<len>] to explicitly set the vertical skip space between lines, e.g., <len> set to 3ex. I'd like to set <len> to, say, 2-times the normal length in ...
2
votes
1answer
1k views

How to increase space between bibliography without using biblatex

Is there a way to increase space between bibliography without using biblatex?
2
votes
2answers
1k views

booktabs and tiny horizontal space

In a regular table, I'm trying to remove the small horizontal space before the first column and after the last one as achieved with package booktabs with the option @{}. How can I do that? Please ...
2
votes
2answers
2k views

Tune space around section headings

I am using \Huge centered section headings but the space generated around the heading is too big currently: I would like to reduce the space around the heading (The "Créé à son image" text) to make ...
1
vote
1answer
3k views

How to put subcaptions below subtables, and increase gap between subtables with 'subfigure'?

Using 'subfigure', how can I create subtables within a table, such that a) subcaptions are underneath each subtable, and b) there's a reasonable horizontal gap between the subtables? So far I've only ...
51
votes
4answers
1k views

Why does \vspace, after section heading, sometimes jump/snap in discrete steps?

Well, this is one question that I've had for a long time, and one that always gets me extremely irritated. However, this time I'm even somewhat happy - that I can ask the question at all; and that is ...
25
votes
1answer
4k views

How can I put more space between bibliography entries (biblatex)

My bibliography (made with biblatex) has all items close to each other. I would like to introduce some space between them, e.g. half a line. How can I do this?
14
votes
1answer
8k views

Condense the space between bibliographic entries

In order to save space, I would like to condense the bibliography, specifically, reduce the amount of vertical space between entries. Currently, it seems there is double-space between consecutive ...
13
votes
1answer
951 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 ...
26
votes
1answer
1k views

How do I ask beamer to exactly fill up a slide?

Inspired by a recent question with a very similar sounding title, I would actually love to implement auto-magic vertical stretch for beamer slides (where, maybe unlike full documents, I think makes a ...
22
votes
2answers
27k views

What is the difference between \hspace*{\fill} and \hfill?

In the memoir manual on page 183 ,this example is given: \begin{figure} \centering \hspace*{\fill} {ILLUSTRATION 1} \hfill {ILLUSTRATION 2} \hspace*{\fill} \caption{Example float with two ...
26
votes
3answers
3k views

What is the difference in citing/referencing with or without tilde?

I've seen examples referencing a table as follows: Table~\ref{table:overview} shows an overview of all the elements. What is the use of the tilde in front of \ref or \cite and when do you have to ...
25
votes
2answers
23k 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} ...
17
votes
1answer
284 views

Is there a method just write `---` to get an em-dash, putting thinspace both before and after it?

Is there a method just write --- to get an em-dash, putting a thinspace both before and after it? The situation about break is similar with the original ---.
14
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 ...
13
votes
3answers
783 views

Changing ALL spacing in a TeX document

I'm taking an exam and I'm allowed a two side page with information on it. Naturally I want to put as much as possible on it so: What are all the spaces that I can change to fit as much information ...
15
votes
1answer
774 views

How to fix the math-spacing when a lot of \phantom, \mathrlap, etc. are used?

This question led to a new package: underoverlap Introduction Based on this question and then this question, I'm trying to perfect the \overunderbrace macro. Right now, I'm trying to get the ...
15
votes
3answers
9k views

Creating a new environment with one optional argument

I want to create a new environment with one optional argument in LaTeX. Here is what I used: \newenvironment{argument}[1][]{% \par \noindent \textbf{Argument#1:} \noindent} {} When there is no ...
11
votes
1answer
637 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 ...
9
votes
1answer
4k views

How do I write $\sim$ approximately with the correct spacing?

I would like to use the symbol $\sim$ as "approximately". e.g: \documentclass{minimal} \begin{document} There are $\sim 10^{80}$ atoms in the universe. \end{document} I think that I need to declare ...
9
votes
3answers
10k views

Random unwanted space between paragraphs

I generate LaTeX code from XML for a book I'm writing, using pdflatex (Version 3.1415926-1.40.10 (Web2C 2009)) and memoir. Very infrequently, there appears to be an extra blank line between two ...
6
votes
1answer
5k views

How to put two minipages side-by-side, which use 100 % of the text width?

In draft-mode a black marker indicates that the reserved space is too low. This also appears in the following example, but it shouldn't. How can I put two minipages exactly side-by-side? ...
23
votes
1answer
11k views

Setting the column gap in a twocolumn (or multicol) document

I have a document that uses twocolumn with scrbook. How can I set the width of the space between the two columns?
13
votes
1answer
3k views

How can I add a subtitle to a section title?

I'd like to do this for some of my sections but not all. I'd also like to maintain the current spacing; for example, if the vspacing is 1cm from section title to body text (at 100% zoom), then I'd ...
12
votes
2answers
375 views

Better automatic spacing of differential d?

This question was basically about whether the differential d should be upright or italicized, not about how to achieve that in tex. However, this useful answer did suggest something like the following ...
12
votes
1answer
6k views

Too much space after sections when I change parskip

I changed the parident and parskip of my document. But now there is a huge empty space after the sections. How can I reduce the space after a section? \documentclass[12pt,a4paper]{scrartcl} ...
12
votes
2answers
4k views

Create empty box sized according to imaginary content

In LaTeX, is it possible to create an empty box that has exactly the dimensions of some content given? Example: \emptybox{abc} would insert an empty box of the size as if "abc" was printed there.
10
votes
2answers
495 views

hyphenation next to a parenthesis

I have some very special hyphenation puzzles involving optional hyphens next to parentheses. (semi)group should be hyphenated as (semi-)/group di[rected ]graph should be hyphenated as di-/[rected ...
9
votes
1answer
1k views

Change text color in table, preserve ability

I'm having difficulty creating a new command for \rowstyle that allows me to color the text of different rows in a table and preserve my ability to space out the columns and not induce space between ...
8
votes
4answers
659 views

How to make 4 equal paddings (left, right, top, bottom) in a table cell?

I want each cell in a tabular to have 4 equal paddings of exactly 15pt each. How to make 4 equal paddings (left, right, top, bottom) in a table cell? \documentclass{article} ...
7
votes
2answers
8k views

How to remove/change the vertical spacing before and after an \algorithm environment?

I saw a question that tells me how to change the spacing in an algorithm environment, but I don't know how to do remove/change the space before and after an algorithm environment like: % remove the ...
15
votes
3answers
1k views

Difference between \mskip and \mkern

What are the differences between \mskip and \mkern? The TeXbook writes the following (ch. 18): You can insert math glue into any formula just by giving the command ‘\mskip⟨muglue⟩’. [...] ...
12
votes
2answers
4k views

How to add vertical space struts after hline?

I know the table trick of adding "struts" in the first line after and the last line before a \hline. I use it throughout my document, and it looks good that way. However, now I am working within a ...
12
votes
2answers
1k views

\addvspace can't replace \vspace

I want to replace \vspace with \addvspace in a command. When so doing, I get obtuse "something's wrong--perhaps a missing \item." errors. I'd appreciate an explanation of why this happens and how ...
11
votes
2answers
3k 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 ...