{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
7 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 ...
0
votes
0answers
21 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
2answers
103 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
25 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
35 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
19 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
17 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
52 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
19 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
27 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
129 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
52 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} ...
1
vote
1answer
15 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 ...
1
vote
1answer
39 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 ...
5
votes
1answer
38 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
109 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$ ...
4
votes
1answer
34 views

Remove space between characters

How can I remove the space between this \newcommand{\deref}{\ensuremath{\rightarrowtriangle}\xspace} $b\deref\mathbf{r}_S$ such that the arrow is as closest to the two surounding characters as ...
7
votes
5answers
312 views

What's the easiest way of putting a fixed-width space?

I got some Polish text with dialogues throughout it. I just learned that in Polish typography every statement in a dialogue is started by a dash followed by a fixed-width space. Now I have plenty of ...
2
votes
1answer
29 views

Subscript overlap issue with \mathclap

I wanted to use \mathclap (from mathtools) to make more compact the appearance of \documentclass[12pt]{report} \usepackage{mathtools} \begin{document} \[ \lim_{(x,y)\to (0,0)} f(x,y) \] ...
1
vote
1answer
30 views

How to set space in the Title

i want to set the space between the title lines \newcommand{\reporttitle}{ this is a title with a lot of text bla bla bla} i used \usepackage{setspace} \setstretch{2} but nothing happens ...
3
votes
1answer
38 views

margins in \enumerate

In LaTeX, I want to \enumerate some \items which are in fact small paragraphs. I will use \alph, so the labels will read (a), (b), (c) and so forth I want the symbols (a), (b) and so forth to be ...
3
votes
1answer
33 views

Making aligned environment and stacked limits work

I'm trying to typeset something like this: \begin{align*} n^{\frac1n} & = \exp\left(\frac1n\ln(n)\right) \\ & = \exp\left(\frac1n\ln(n)\right) \\ ...
1
vote
2answers
47 views

Remove space between consecutive fbox commands

I type several fbox commands and for some reason the boxes are separated with small spaces: MWE: \documentclass{article} \usepackage{fullpage} \setlength{\oddsidemargin}{-15mm} \raggedright ...
3
votes
1answer
30 views

xspace failing with long hyphen (---)?

The xspace package fails when used together with ---: \documentclass{minimal} \usepackage{xspace} \begin{document} \newcommand{\twosslvbf}{2 SS l (VBF)\xspace} \twosslvbf is OK. \twosslvbf ...
0
votes
0answers
29 views

Vertically centering in Latex Beamer slightly too much up

One MWE of many (w and w/o the plain frame option, w and w/o the vfill, w and w/o the c frame option etc.): \documentclass[10pt]{beamer} \setbeamertemplate{navigation symbols}{} ...
2
votes
1answer
104 views

Should I remove spaces at the beginning of a line containing only a footnote?

I've just stumbled upon chktex, the LaTeX lint. While using it, I've noticed that it keeps giving warnings about needing to remove spaces at the beginning of lines containing only \footnote{Some ...
3
votes
1answer
52 views

Why do \left and \right add so much extra space under the baseline?

When I write \[ \left \lVert \overrightarrow{\nabla} \right \rVert \] I get way too much extra space under the baseline: Why is this happening, and how can I fix it?
2
votes
2answers
49 views

Spacing too large with double subscript [duplicate]

In a document that uses the newtx packages, double subscripts seem to have too much spacing. \documentclass{scrartcl} \usepackage{newtxtext} \usepackage{newtxmath} \pagestyle{empty} ...
0
votes
1answer
25 views

Spacing between Header and Chapter Titles

I have the following template: %Loading in the packages \documentclass[12pt]{report} \usepackage[a4paper, width=150mm, top=25mm, bottom=25mm ,bindingoffset=6mm]{geometry} \usepackage{graphicx} ...
1
vote
0answers
30 views

Random undesired big spaces on my pages

I was rereading my document, when I noticed that I am having random spaces. I studied it closely and noticed again that this happens if for example it is followed by a HUGE equation that can not fit ...
3
votes
1answer
65 views

professional cv spacing issues

I've been trying to figure out how to format this section of Professional CV from ShareLaTeX to make the vertical spacing more tight. The vertical bar between columns tends to leave more space than ...
5
votes
3answers
32 views

Remove vertical space below equations in 2 columns and single numbering for both equations in a column

I had previously asked a question regarding vertical spacing between equations which are in two columns. This was answered but when I use the following code I get a large vertical space between these ...
1
vote
1answer
39 views

\pagebreak affects top of next page

Why does a \pagebreak push the heading at the top of the next page down? To match other pages, I need to add \vspace*{-3\baselineskip} after the page break. \documentclass[a4paper]{article} ...
2
votes
2answers
63 views

How to create uniform horizontal space?

I am creating a set of lists that begin with dates and are then followed by a description. Given that the dates have different horizontal lengths, I would like to insert a command that creates a ...
0
votes
0answers
17 views

Determine equal spacing before and after minted environment

I have some code in a minted-environment that I want to separate from the rest of the text by equal spacing before and after the environment. I successfully used the method described here for an ...
2
votes
1answer
28 views

Remove vertical space between text and equations in column alignment

Is there a way to remove this large vertical space between my text and equations. I think this problem is a result of my aligning the equations into two columns.This is the code that I am using by ...
0
votes
0answers
33 views

How can I remove this huge space in my document? (Image annexed) [duplicate]

The space between my equation is bothering me as it looks unnecessary. I have a feeling it is because of some formatting on latex that wants every page to end specifically at the last line of that ...
1
vote
1answer
37 views

Paragraph that takes into account spaces, indentations, etc

I have a Paragraph. It begins with \begin{gather*} then for every line there is a \text{...} then \end{gather*}. I was wondering if there is an easier way to make a Paragraph that takes into account ...
3
votes
1answer
52 views

how to set label width to widest element using nomencl?

Is it possible to set the \nomlabelwidth of the nomencl package to the widest element automatically? The manual only gives the option of setting it at a fixed width as an argument to the ...
2
votes
2answers
33 views

insert zero height newline

I have the following \documentclass[12pt,a4paper]{article} \begin{document} \begin{align} a_{m,m} &\overset{(\eqref{eq:masssplitAIndex},\eqref{eq:masssplitLinvIndex})}{=} 1 - a \\ ...
1
vote
0answers
25 views

Spacing of one page changed when adding text [closed]

I have encountered a very strange problem. I was working on some text with mathematics in them which had normal line spacing. After adding some text to the third block of text (the line that starts ...
3
votes
1answer
26 views

Table of contents spacing with \addcontentslin{toc} [duplicate]

How do I increase the spacing between the numbering and the text in the table of contents? Note that I am using the article class and use \addcontentsline{toc}. Code: \documentclass[12pt]{article} ...
1
vote
2answers
37 views

Control spacing within

I'm trying to build a small listing of terms with definitions. Below is a MWE. I want the items after the \indents to line up. \documentclass{article} \begin{document} FOV \indent Field of View A ...
1
vote
0answers
32 views

Sudden space below a section

In my document, sometimes I get after piling my document, a sudden space just below the title of the section and other times I don't get this. Why does this happen and how to prevent it?
0
votes
0answers
20 views

Correctly handling spaces that occur after a user defined command [duplicate]

I am using LuaLaTeX for a manual and I am running into a spacing issue I am not sure how to resolve. I defined a new command that is simply used to make some text bold. However, I have found that this ...
8
votes
1answer
231 views

Spacing around \cdot

I'm trying to use \cdotas a dummy for a function argument in the following expression C(\cdot\mid\mathcal{F}_{t-1}) However, the above produces more space to the right of the dot than to the left. ...
1
vote
1answer
56 views

How to control space length between lines of double-underline?

I use \uuline command from ulem package to make double-underlined text. I would like to know if it is possible to control space length between lines? I drew below what I mean. If not, how to make ...
2
votes
2answers
138 views

Move Equations in Book

I asked a question here on how to align tables differently on even and odd pages. Now I need to do the same for equations written in align environment. I tried the same trick proposed for tables. They ...
0
votes
0answers
20 views

Don't eat space after command [duplicate]

I'm writing a Latex document. I'd like to define a synonym for a word that's used throughout the document. For instance, I'll define \newcommand{\productname}{VioletFrog}, so that every place I ...
2
votes
1answer
41 views

sectioning - \@startsection vertical spacing on top of page

In the MWE below, the beforeskip argument to \@startsection (#4) seems to be ignored if \section occurs on top of a page. This is cool – because no big vertical space is needed here. However, what ...