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

1
vote
1answer
45 views

Vertically aligning form fields within a table

I would like to vertically align form fields within table rows. The problem I am facing is that other columns within the same row can stretch over multiple lines. Solutions as sketched in form field ...
2
votes
1answer
53 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 ...
9
votes
3answers
148 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}[ ...
5
votes
1answer
32 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 ...
3
votes
1answer
44 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 ...
1
vote
1answer
22 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. ...
4
votes
1answer
59 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 ...
12
votes
2answers
2k views

Exchange meaning of : and \colon

I usually use the colon symbol : to denote maps. For set syntax there is the braket package. So as the spacing of : is not appropriate, I want it to behave like \colon. I tried ...
17
votes
4answers
16k views

How to shorten/shrink spaces between words?

My objective is to fit more words within one line. In order to show what I mean, I will exaggerate the word spacing here: Pretend this is a normal line in the document: Lorem ipsum dolor sit ...
3
votes
2answers
111 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
30 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
38 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
20 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
22 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 ...
3
votes
3answers
28 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 = ...
2
votes
1answer
21 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 ...
0
votes
1answer
49 views

\hbox overflow, Friggeri fancy CV

I'm VERY new to LaTeX so the searches I have done have lead to zero progress in solving my problem. I've been playing around with the entrylist parameters on the .cls file to no avail. My essential ...
108
votes
7answers
127k views

Column and row padding in tables

How do you guys go about controlling column padding in tables? Update To clarify, I'm looking for a way to control both vertical and horizontal padding. So, if I had a simple table like in the ...
3
votes
1answer
55 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
16 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 ...
2
votes
1answer
2k views

How to change the height of a (multi)row in tabular with math

I have the following code: \documentclass{article} \usepackage{multirow} \begin{document} \begin{table}[htbp] \centering \begin{tabular}{lcccl} \textbf{Irland} & - & ...
1
vote
1answer
41 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 ...
1
vote
2answers
48 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
19 views

How can I eliminate spurious spacing using datetime with a modified .def?

I am trying to construct a corrected version of dt-welsh.def for use with the datetime package. In part, this is because my existing set up depends on datetime and, in part, it is because datetime2 is ...
2
votes
1answer
25 views

Badbox in bibiliography while using TexnicCenter

I have the following excerpt from my bibliography and it is spaced as expected and produces no problems except for one citation, namely \bibitem{Mulmuley}. \begin{thebibliography}{99} ...
1
vote
2answers
43 views

Landscape mode makes landscape page too small

I used the instructions from how-to-change-certain-pages-into-landscape-portrait-mode to create a table with plots in landscape mode. The page is turned , but with the left side up, instead of ...
5
votes
1answer
39 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} ...
10
votes
2answers
276 views

Appending an empty row after every 5 or 10 rows in LaTeX table

I wonder how to append an empty row after every 5 or 10 rows in LaTeX table. Here is my MWE in .Rnw format. Any help will be highly appreciated. Thanks! \documentclass{article} ...
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$ ...
7
votes
5answers
314 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 ...
3
votes
1answer
47 views

Adjusting space when using the “lettre” class

I am quite new in writing letters with LaTeX, and I am wondering whether there is a way to adjust the space between the end of the sender's e-mail address and the subject of the letter (see picture ...
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 ...
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
31 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 ...
1
vote
1answer
84 views

Why is the space below the numerator different to the space above the denominator?

I've never noticed it before, but LaTeX puts a lot more space between the numerator and the bar than it puts between the bar and the denominator. Now maybe this makes sense for more complicated ...
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) \\ ...
0
votes
1answer
126 views

Spacing between section, subsection, subsub… etc

I'm in the process of writing my bachelor thesis. The problem is: standards. Question: How to make the spacing between text and titles (chapters, sections, subsections etc.) but still hold the ...
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}{} ...
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
1answer
105 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
54 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} ...
3
votes
1answer
68 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 ...
0
votes
1answer
26 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
31 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 ...
5
votes
3answers
33 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 ...
2
votes
2answers
64 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 ...