{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
82 views

Using whitespace in TeX informatively to typeset predicate calculus

I am using this set of macros to write up some predicate calculus notes. The issue I am having is that in the math environment of LaTeX, things are automatically spaced in ways that are not most ...
9
votes
3answers
214 views

A phantom-like command that instead replaces the text with a horizontal line?

I'm trying to find a way of replacing part of text with a horizontal line. I'd like it to behave like the phantom command which replaces the text with an empty box of the correct width (and height), ...
2
votes
0answers
35 views

Spacing in list of algorithms within classicthesis template

Consider the following screenshot: Differently than \listoffigures, \listoftables or \lstlistoflistings, the \listofalgorithmes command is adding an extra white space between chapters in the ...
3
votes
2answers
150 views

TikZ + scalebox: Vertical text spacing in node

As this issue: TikZ: Text becomes invisible in large PDF could not yet be solved, my constantly growing PDF needs to become even smaller to stay out of invisibility range. As a consequence, \tiny is ...
1
vote
1answer
32 views

How to force single word spacing in section headings for two-column articles

I do not know how to force a single space between the words "Discussion" and "and" in the section heading below. \documentclass[12pt,twocolumn]{article} \begin{document} \hyphenation{Conclusion} ...
1
vote
0answers
24 views

Curious behaviour of vertical space in one and two column document

When I use the first code (in a two-column document) the vertical space between the text and the gather environment is small. When I use the starred version or a one-column document then the space ...
1
vote
0answers
39 views

How to change the default top margin for an invoice?

Here is what I've got: \documentclass{letter} \newcommand*{\BottomLeftX}{1.0in+\hoffset+\oddsidemargin}% ...
7
votes
1answer
68 views

Eliminating extra vertical space around quotes in letters

Eliminating vertical space around a quote, as described here, succeeds when the documentclass is article \documentclass[11pt]{article} \usepackage{quoting} \quotingsetup{vskip=0pt} \begin{document} ...
1
vote
0answers
21 views

Which macros define spaces around table and float environments? [duplicate]

I am trying to define the length of vertical space between tables and text globally in my document. So far, I have been using \setlength{\intextsep}{0cm} \setlength{\floatsep}{0cm} ...
0
votes
0answers
25 views

References alignment problem in IEEtrans

I just wanted to ask if anyone has an idea on how to fix an alignment problem I am getting when using the IEEE template. In my references, the first 10 entries are aligned and rest are misaligned. I ...
17
votes
4answers
681 views

Which commands consisting of a non-letter eat spaces afterwards?

Command names consist of a sequence of letters (until and excluding the first non-letter) or of a single non-letter. Command names ending in a letter (including of course those consisting of a single ...
3
votes
3answers
80 views

Horizontal space in a new environment after \label{}

Why is the horizontal space inserted in the following mwe? \documentclass{scrartcl} \usepackage[american]{babel} \usepackage{environ} \usepackage{amsthm} % proof environment \makeatletter ...
2
votes
2answers
63 views

White space in tex file vs. white space in output

Googling around has not produced an answer to this, possibly because of the complexity of the question doesn't lend itself to easy googling. What I want to be able to do is control how white space ...
5
votes
1answer
34 views

Reducing space before chapter works with english but not with hungarian babel package

I write my thesis recently and I want to reduce the spaces before chapters. I find the solution, but it isn't working for me with \usepackage[magyar]{babel} I use the following codes: ...
4
votes
1answer
84 views

Add a symbol in ToC between the section number and its section

My problem is that there exists an overlap between the symbol to introduce and the section title; it is manifest with two \heartsuits \documentclass{article} \usepackage{tocloft} \usepackage{lipsum} ...
2
votes
2answers
92 views

How can I change the default \\ spacing?

So, I have a definition which takes in data like this: ...{apple\\orange\\cat\\imperial green tea\\left-handed president}... In the document I get the following after compilation: apple orange ...
3
votes
0answers
27 views

Changing a macro's output depending on immediate context

I've set up a macro for differential parts as so: \newcommand{\dd}[1]{\,\mathrm{d}#1} which is useful for differentials at the end of integrals because of the space. (I realise the argument ...
3
votes
1answer
110 views

moderncv banking style: How to move the title block all the way to the left?

In have used banking style in the moderncv class. I have modified things a bit. The code is so huge and messy that for me to provide the MWE would be impossible. In, the moderncvstylebanking.sty file, ...
1
vote
2answers
69 views

The distance between the caption and the table

I use the following table in Latex. And I want to decrease the distance between the caption and the table. And also I want to adjust the distance between the table and the above text; the distance ...
2
votes
1answer
81 views

How to reduce vertical spacing between proof environment and enumerate environment

How can I reduce the space between the proof environment head and the enumerate environment in the minimal example below? Note: This is most likely not a duplicate question. Some while ago, I posted ...
4
votes
1answer
84 views

Image vs Text Arrangement [duplicate]

When I write a multi-page paper with imported images, I usually try to group the picture with the text referencing it. Sometimes, there is not enough room at the end of the page for the picture, and ...
6
votes
3answers
138 views

Horizontal spacing after cases bracket in equation

How can I add a little horizontal spacing after the cases bracket, at the depicted position, so that 1 and 0 move to the right (the given screenshot looks okayish, but I'm using a different font where ...
5
votes
1answer
63 views

Stretching an \fbox horizontally to fit the page

I have a frame box next to some text (Komentar:), and I would like to stretch it so it fills up the page. I've done this using the calc package by subtracting \widthof{Komentar: } from \hsize (or ...
2
votes
0answers
42 views

Cancel the use of \baselineskip when at the top of page

I've defined a macro \myaddress which prints my address at the end of a document, cf. Simplify how I write my address in documents. That macro includes the use of \vspace{\baselineskip} to separate it ...
1
vote
1answer
73 views

Is it possible to change the spacing between particular columns of a table?

I am struggling to make a longtable fit on A4 pages in portrait mode. The problem is that the table is too wide. I am not allowed to use smaller fonts (that would solve my problem but it's not an ...
1
vote
0answers
36 views

Reduce space below an algorithm

I am using the algorithm package for my algorithms in the paper. I find that the space below the algorithm is very large after generating a PDF, so I want to shrink the space. Firstly, I come to add ...
1
vote
2answers
149 views

Problems with fractions in a square root [closed]

whenever i have a fraction inside a square root, the square root symbol drops down below the line and intercepts whatever is on the next line. I think the package savetrees may be causing the ...
3
votes
1answer
54 views

What spacing/justification change might fix this hbox overfill in an enumerate environment?

I'm planning on cleaning up a large TeX file for viewing on an e-reader (hence, small page size), and as I'm new to TeX I'm practicing on a sample file and following these instructions. However, I'm ...
2
votes
2answers
67 views

Special Table Spacing in Latex

I have a table in which I display a row with say "x" and in the following row below "x" I display the standard error of "x". However, I want those two rows to be close to each other and also to be a ...
7
votes
1answer
222 views

Beamer Block: White Space When Using Math

I want to reduce the white space (above and below) when I insert an equation environment in a beamer block. \documentclass{beamer} \usetheme{Antibes} \usepackage{amsmath} \begin{document} ...
2
votes
1answer
41 views

Strange vertical blank

Typesetting: \documentclass[a4paper]{report} \usepackage{amsmath,mathptmx,hyperref} \usepackage[top=3cm, bottom=3.5cm, outer=4cm, inner=4cm, marginparsep=0.7cm, marginparwidth=1.5cm]{geometry} ...
6
votes
3answers
111 views

How to get spacing in math mode without just repeating fixed spaces (tilde ~)?

I'm looking for a way to move text in my equation, instead of just shoving multiple ~~~~ until it's in the right position. I'm quite new to LaTeX, what exactly would be the command? I'm also looking ...
7
votes
2answers
225 views

How to use special characters like the question mark as a variable in a formula?

If i write $t=a$ in LaTex, I get "t = a". If I write $t=?$ I get "t =?" but I want to get "t = ?". The ? shall have the same distance from the equals sign as any other variable or letter. Is there a ...
1
vote
2answers
105 views

Remove extra vertical space in amsmath's align environment [duplicate]

If I use \begin{align*}...\end{align*} and out of it I write a text then there is a big vertical space between the text and the mentioned environment. Why is there that space? And how can I erase it? ...
1
vote
1answer
102 views

Placement of Chapter Number in Makechapterstyle

In this code, I'm not able to move the chapter number, only the title. The chapter number should be at the same height as the chapter title. What command can I use? The chapter title should not be ...
6
votes
3answers
164 views

\mathop in sums and limits

What is the \mathop command meant to be, officially? I see it used in indexes of sums and limits to improve the spacing, e.g. \sum_{n\mathop = 1}^\infty a_n Why doesn't it just format it like ...
8
votes
4answers
201 views

How to merge two tabulars into a single table the width of the column?

I am asking for advice on achieving two separate effects in the table environment. (1) I have two tables with a different number of columns. I need to merge them into a single table. I have this ...
10
votes
1answer
145 views

mdframed: how to prevent a box from splitting if the remaining content (or the initial content) is too small?

Question I would like to prevent mdframed to split a box too early or too late. By this, I mean that I would like the remaining part of the box to always be greater than a fixed length, given before. ...
5
votes
1answer
129 views

mdframed: splittopskip does not work when the first object after splitting is another mdframed box

Question I would like to add space in an mdframed environment after a splitting (a page break) and in the case where the first object after the splitting (the page break) is another mdframed ...
6
votes
3answers
136 views

Vertical skip between p{…} rows of tabular

I want to increase a bit the vertical spacing in my tabular table. I did something like this: \documentclass{article} \begin{document} \begin{tabular}{p{4cm}p{4cm}} Lorem ipsum dolor sit amet ...
3
votes
1answer
59 views

Streched vertical space between two subfigures

I want to add vertical space between two subfigures so that so that the upper figure is aligned with the top of the page and the last line of this figure caption is aligned with the bottom of the ...
4
votes
1answer
56 views

Label inside mdframed messes up spacing

I have a problem with mdframed in combination with \parskip and \label. Consider the following code, which is a MWE stripped down from a large document. \documentclass{article} ...
5
votes
1answer
809 views

tabu and space between columns

I have aproblem with column widths in tabu environment. I set dimensions of tables and columns. First columns should have the same width = 5cm, First and second table should have the same width = ...
1
vote
2answers
57 views

Changing paragraph spacing within an item using paralist

I am using compactenum in the paralist package. I wish to have spacing between paragraphs within an item, but no additional spacing between items. The option: \plparsep: Space between paragraphs ...
5
votes
1answer
56 views

Insert Spaces in Command Using Math Mode

I borrowed a predefined command (below), which uses math mode. Within the [[ ]], obviously, it doesn't observe spacing. Is there a way to make the command observe spacing within the [[ ]] ...
2
votes
2answers
64 views

How can I remove an empty caption line

I'm generating LaTex automagically from a lengthy document that is written in the multimarkdown language, compiled by a software package called Scrivener. It's a workflow that works well, but this is ...
3
votes
1answer
76 views

Adding vertical space between two \hline

How can I add vertical space between the double line in the example below? I tried to use \vspace, but that results in a Misplaced \noalign error. \documentclass{article} \begin{document} ...
3
votes
1answer
82 views

3 subfigures in a row, different sizes. How to manually adjust the spaces in beween?

I want three subfigures to be shown next to each other so that the subcaptions of all three subfigures are equally 'wide'. I'm experiencing 2 problems. Since my middle subfigure is a lot smaller, ...
4
votes
3answers
161 views

Spacing after \times

When using \times after some wide symbol, the space following \times becomes smaller than wanted. For example \documentclass{article} \usepackage{mathtools} \begin{document} \begin{align*} > ...
2
votes
0answers
59 views

Problem with the table of contents

I am writing a work about logarithms and in the table of contents I am confronted with this problem: There is no space between the number of the sub sub-subsection and the title: 2.3.10.1 Função ...