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

6
votes
1answer
78 views

Word spacing differences between either MacTeX, microtype or setspace versions

I'm migrating to a new notebook (which means a complete MacTeX update) and noticed word spacing differences when compiling a paper I'm currently working on. I would like to keep the old word spacing ...
1
vote
2answers
54 views

How to remove space between date separators in biblatex (style footnote-dw)

If I use biblatex's style footnote-dw and the option date=short for a German text, the date's day, month, and year are separated with a space which shouldn't be the case. Here is a MWE: ...
1
vote
1answer
54 views

minitoc suppress before/after space

Is there any way to easily customize \minitoc to avoid the big before/after space? Without using \vspace{-5mm} everywhere I use them (which is in a lot of chapters), and, only as a last case ...
1
vote
1answer
93 views

Horizontal spacing in caption in algorithm2e

In algorithm2e, how can I shift the caption to the left? There is a small space that I need to remove. Here is my code: \documentclass[letterpaper]{article} ...
1
vote
1answer
41 views

Automated spacing

Suppose I would like to customize and automate the spacing around em-dash. Say, I'd like to have hair-space before and after. Is there a package or something which would enable me achieve that? The ...
1
vote
1answer
63 views

parskip options

What is the difference in effect/appearance of a typeset document between the commands set in the preamble: \setlength{\parskip}{1.5ex plus.05ex minus.05ex} and simply \setlength{\parskip}{1.5ex} ...
4
votes
2answers
84 views

How to place amsmath equations at top of page ignoring \topskip?

I need every amsmath equation to place at the top of the page. So I use \noindent to do that. Everything is fine except equation+split environment. Than formula is placed a bit higher (by ...
1
vote
0answers
40 views

why should equation be preferred to gather for single-line equations? [duplicate]

There are numerous questions/answers on which equation-type environment to use under which circumstances. For a single-line equation, various people have expressed a preference of equation over ...
1
vote
0answers
33 views

Underfull \hboxes when reducing inter word and inter letter spaces

Related to this question about shrinking a line of verse I still don't understand why I'm getting an Underfull \hbox warning for the following example. As far as I understand this warning normally ...
0
votes
0answers
28 views

Bibliography in table of contents goes to another page for one line!

Snippet of my code: \clearpage\null\thispagestyle{empty}\clearpage \setlength{\parindent}{0pt} \thispagestyle{empty} \tableofcontents \thispagestyle{empty} \newpage \thispagestyle{empty} ...
3
votes
1answer
118 views

Unwanted vertical space above x-axis in TikZ + pgfplots + groupplot

I'm using TikZ with groupplot to merge two plots vertically and thus I need to remove the lower x-axis line on the upper plot upper x-axis line on the lower plot. This is achieved with this MWE: ...
1
vote
1answer
67 views

Too much spacing in document

Suggestions needed to get rid of the space that is left blank by latex for no apparent reason. I have tried \vspace{-0.5} but it is not helping. If I go any higher with we space the text overlaps ...
1
vote
1answer
56 views

Why is there a huge gap on top of my TOC?

I tried to delete all the geometry and delete the usepackage{geometry} and all the margins and everything but end up the TOC is still away from my top a lot. I want it to have 50mm away from the ...
2
votes
1answer
144 views

Invisible and unselectable text

For alignment reasons (for boxes that align themselves on the text they contain), I currently use this command : \newcommand{\uplowtext}[1]{ \transparent{0.}TJPtjp \transparent{1.}#1 ...
32
votes
6answers
1k views

Underline just words, not the space between them

I need to typeset a sentence such that just the words are underlined, and not the space between the words. Using the \underline will include the spaces between the words. I could do it with something ...
1
vote
1answer
75 views

How to get texmaker to stop inserting $

How to get texmaker to stop inserting $ So as far as I know spaces in your text (both vertical and horizontal space are ignored in the compiler however, texmaker keeps insisting that $ x+y=2 \\\ ...
4
votes
2answers
41 views

Default values for \xxxdisplayskip

I've changed the values for the \abovedisplayskip and \belowdisplayskip, but I want to set them back to normal after a specific equation. What are the standard values?
1
vote
2answers
34 views

Latex listings - breaklines divides parenthesis, wrong space near parenthesis

When using listings package, there is a wrong spacing after parenthesis and, when a line breaks, the parenthesis are very often divided from what comes before. What can I do to change that? The ...
6
votes
1answer
167 views

How to remove vertical spacing below mdframed boxes?

I've set skipbelow=0pt. I still have vertical spacing below every box. I think this has to do with the paragraph spacing. Is there a way to disable this for mdframed? I'd like to avoid using ...
5
votes
2answers
262 views

Where does this vertical space come from?

I (thankfully) received couple of answers to one of my previous questions and while testing each one out I noticed a behavior to which I found no solution. This is my MWE: ...
1
vote
1answer
33 views

Cite after end of sentence mangles whitespace (Biblatex!)

(This is an almost-duplicate of Cite after end of sentence mangles whitespace, since I forgot to mention Biblatex there.) I am using the report class to write a thesis. Sometimes, more than one ...
5
votes
1answer
43 views

Cite after end of sentence mangles whitespace

I am using the report class to write a thesis. Sometimes, more than one consecutive sentences refer to the same source, so instead of writing Booh \cite{source}. Baah \cite{source}. I write Booh. ...
0
votes
2answers
88 views

Remove whitespace above and below itemize in a table [duplicate]

I have a table where some cells contain a bulleted list produced by itemize. I want to present these lists in a compact way. I use the enumitem package and \setlist[itemize]{nosep} (plus other ...
4
votes
2answers
73 views

Proper leading around displaystyle fractions

I would like to typeset a fairly complicated fraction in display style surrounded by paragraph text. Here's an MWE. \documentclass{memoir} \usepackage{libertine} \usepackage[libertine]{newtxmath} ...
2
votes
4answers
155 views

Reduce the space between label and item in a description list

I have description lists that I'm using discursively, like \begin{description} \item[Video recordings] arguably produced the richest part of the data set. \item[Questionnaires] were no ...
8
votes
4answers
262 views

drawing music staves with \rule loop

I want to draw blank music staves using nothing but \rule in a loop. (I know there is MusiXTeX and Lilypond, not to mention Tikz, but really, I just want some horizontal lines.) In this example, the ...
3
votes
1answer
76 views

Increase vertical distance between chapter title and chapter preamble (Koma Script)

I'm using Koma Script's scrbook for a document. I would like to insert some text above chapter headings, which can be done like this: \documentclass[chapterprefix=true]{scrbook} \begin{document} ...
0
votes
0answers
14 views

No space between columns on certain pages - with sigplanconf

I'm writing an article using the ACM SIGPLAN's sigplanconf document class (with options letter,10pt,twocolumn,preprint). I'm using a bunch of packages, and cannot easily reproduce this issue, so ...
3
votes
1answer
65 views

Vertically center elements in rows of array

In the following table, I would like to center the Venn diagrams vertically. Here is a MWE showing my diagrams aligned "top": \documentclass[letterpaper,10pt,american]{article} \usepackage[left=1 in, ...
3
votes
2answers
165 views

How can I remove all space between two images with a global option?

I want to include several images just below each other without vertical space. How can I do this by adding some code to the preamble (i.e. I want this setting globally). Consider the following ...
3
votes
3answers
188 views

Moving a matrix (array) to the left margin

So, of particular interest to my question is the second to last line of the following code: \documentclass[]{article} \usepackage{amsmath} \usepackage{units} \usepackage{amssymb} \usepackage{array} ...
8
votes
1answer
193 views

What's the difference between @minus and minus?

When I look at different uses of glue in spacing, I see both \@minus and minus. What's the difference between \@minus and minus?
5
votes
1answer
49 views

Is it possible to declare that the footnote number is right aligned but uses a dynamic width?

Our document has footnotes ranging from 1 to more than 100. I would like to see the footnote numbers right-aligned to the footnote text the space that is used for the footnote number should be ...
1
vote
1answer
141 views

Beamer: reduce vertical space on title slide

In the following title slide, I want to include some graphics at the bottom, but they are cut off. Is there some way I can reduce the vertical space between the \author{} block and the \date{} block. ...
3
votes
1answer
78 views

How can I control the space above a section heading in the memoir class?

I'm using the memoir class to typeset a cassette cover with some lyrics in it. I'd like to section headings to be very basic, just with a lineskip above and under them. But it seems that there's more ...
2
votes
1answer
69 views

`:` is set to `\colon`, but the spacing is still wrong - part 2

This question explains how to make : behave as \colon. It has two solutions. The present question concerns the second, less upvoted solution, egreg solution, as in this question of mine, it turned out ...
3
votes
3answers
163 views

Shrink a line of verse

I have some lines of Sanskrit verse (left indented via a quoting environment) which are slightly too long, similar to the following example: \documentclass{memoir} \usepackage{quoting} ...
3
votes
1answer
52 views

Using Needspace within paragraph provides too much space

I am trying to implement the solution provided in Equation tag in twoside-mode outer. It seems the solution provides too much space above the align environment. The following code reproduces the ...
2
votes
1answer
52 views

Define variables in a column

I am having trouble aligning/setting up my variable definitions in my paper. I have attached a picture of my current results. So this is a two column paper and the results I have shown go in one ...
1
vote
1answer
35 views

How do I get rid of vertical space above an unordered list?

\newcommand{\stuff}[2]{% \begin{itemize} \item #1 \item #2 \end{itemize} } When I use this command: \stuff {Hello} {World} The list has a large vertical space above it. I cannot ...
2
votes
1answer
24 views

hyperrefs have a different spacing when written inside a macro [duplicate]

Let's say I want to make a hyperlink like this: A link is placed \href{www.google.com}{here} to google. Then I decide to make a macro for that: \newcommand\Myhref[2]{ \href{#1}{#2} } A link is ...
4
votes
1answer
63 views

`:` is set to `\colon`, but the spacing is still wrong

This question explains how to make : behave as \colon. Except that the solution in the most upvoted answer doesn't work 100%. That solution says to make : behave in such a way, one has to use the ...
2
votes
1answer
35 views

Spacing between custom verbatim environments

I have a document that uses multiple custom verbatim environments, created using the fancyvrb package. Spacing around these is controlled by my own code; I have disabled the spacing added by fancyvrb ...
3
votes
3answers
81 views

Specify distance from page margin to header with geometry

With geometry, the placement of the header is set by specifying the distance from the text body below to the header above with headsep: \documentclass{article} \usepackage[showframe, headsep = ...
9
votes
3answers
260 views

Increase word space between words in small caps

With tracking activated for small caps, it can be a little bit hard to detect interword spaces. Cf. below. \documentclass{article} \usepackage{fontspec} \setmainfont{Libertine Serif}[ ...
3
votes
1answer
136 views

Remove whitespace around tikz picture in running text

I'm trying to draw a star in text brackets using tikz and I can't figure out how to remove the large white space to the left and right. The code is: \documentclass{article} \usepackage{tikz} ...
2
votes
1answer
46 views

scrlttr2 - onehalfspacing in main body, singlespace in address

I'm writing a letter with scrlttr2 and I want the main body in \onehalfspacing. But even with \begin{onehalfspacing} TEXT BODY \end{onehalfspacing} the address is set in one-half spacing as well. ...
1
vote
1answer
72 views

Remove whitespace around own environment

Does anyone know how to remove the whitespace which is created by TeX everytime I use my own created environment? I tried the tricks with \ignorespaces and \ignorespacesafterend but that doesn't seem ...
6
votes
1answer
55 views

Affect the vertical space in labelling environment for the Acro package in KOMA-Script

I am using the scrreprt class and have defined the way my acronyms are presented with the definition: \usepackage{acro} \newenvironment{acronyms} {\labeling[~\dots]{longestword}} {\endlabeling} ...
4
votes
2answers
175 views

How to automate adding spaces around an ampersand in math mode

Suppose, we are writing a logical expression in math mode: \documentclass{article} \usepackage[a4paper]{geometry} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \begin{document} $a\&b$ ...