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

Forcing all content into 2nd column

I'm working in landscape,twocolumn mode and am using Latex to make a programme for an upcoming event. Since it is the outside of the programme I need the cover info to only be on the right hand side ...
1
vote
1answer
2k views

How to change spacing between columns for just one page in the document

I'm using the multicol package for my columns. So far, I have \setlength\columnsep{10pt} in the preamble to set the default column separation. But for one particular page, I'd like to set the ...
2
votes
1answer
112 views

Equal spacing between equations on a page

I am writing a short quiz for my students in LaTeX, however I am having trouble with the spacing. The two equations I have are: $\int sin^3(x)cos^{\frac{3}{2}}(x)dx$ \vspace{20pc} $\int ...
1
vote
1answer
332 views

Latex: Equal spacing between equations on a page [duplicate]

I am writing a short quiz for my students in latex, however I am having trouble with the spacing. The two equations I have are: $\int sin^3(x)cos^{\frac{3}{2}}(x)dx$ \vspace{20pc} $\int ...
4
votes
1answer
205 views

\xspace and hyphenation

I was considering to use xspace for some common standard terms in my document, like: \newcommand{\ring}{my secret ring\xspace} I am now wondering, if hyphenation gets it right, when I do this? ...
14
votes
2answers
444 views

How does \\ suppress spurious spaces while \par\noindent doesn't

I'm trying to build a description-list-with-header-line by using a macro. In the non-MWE, the macro adds additional value like index entries and margin notes, but here I have the simplest case ...
4
votes
0answers
55 views

Block environment with empty title in Beamer: how to reduce empty space at the top [duplicate]

I'm using the LaTeX beamer class to write a presentation. I'm placing vertically aligned equations inside a block environment without a title. When I do this, I get extra empty space at the top of the ...
1
vote
2answers
491 views

Empty space after adding an image [duplicate]

After adding an image I have an empty space. How can it be reduced? I used \FloatBarrier. But it did not worked. % Following copied by Marc van Dongen from comment from OP. ...
18
votes
1answer
840 views

Different vertical spacing (parskip) between concurrent section titles and paragraphs

I'm trying to remove the spacing between section headings, but maintain the paragraph to section heading spacing. Even though I set titlespacing before and after to *0, there is still spacing - quite ...
2
votes
1answer
383 views

Adding floating space between main text and footnotes

I have to typeset a text with several widows and lots of footnotes. The editor told me to leave an additional blank line between the main text and the footnotes and to use this space to print the ...
9
votes
2answers
127 views

create text blocks with zero pt leading

What I want to achieve is a text block with zero or, better, nearly zero leading and with searchable text. The above example is a tikz picture, created with inkscape and exported to tikz. My own ...
1
vote
0answers
45 views

Space between a|b in math mode? [duplicate]

For a context free grammar I need to write: A -> a | b My code for this is $ A \rightarrow a | b $ however this gives me something like A -> a|b // wanted: a | b, note the space before ...
5
votes
2answers
148 views

Parsing leading hardspaces

This question is related to (but distinct from) this question: Parsing a \$ as part of an improved \getargs command, which I asked earlier. I am experiencing a residual space in a string result from ...
5
votes
1answer
249 views

Margin note beside heading

I would like to insert a hyperlink or two for each heading and I would like to have them inserted into the margin such that they are aligned with the header. I was hoping to create a command which ...
2
votes
1answer
216 views

Spacing in flalign affected by mathpazo

I got the following (partly shorted) equation: I would like to get rid of the space left of the equation (left of Q') so that the label (0.2) fits on the right side. \documentclass[ a4paper, ...
2
votes
1answer
159 views

How to decrease the space after figures [duplicate]

I want to reduce the space between Figure description and text.
0
votes
1answer
3k views

How to reduce the space before & after \section and \subsection [duplicate]

How to reduce the space before and after titles specified by \section and \subsection \subsection \section
4
votes
1answer
160 views

Incorrect vertical spacing inside a mdframed environment

I have some problems about vertical spacing before and after some environments inside a mdframed environment. It is as if topsep=0. The insertion of \setlengh{\topsep}{8pt plus 2pt minus 4pt} fixes ...
6
votes
1answer
370 views

How to remove unnecessary space after flalign* environment

I was wondering whether it would be possible to remove some unnecessary space after flalign* environment. I tried using \belowdisplayskip, but to no avail. Below is the sample input. ...
0
votes
1answer
128 views

Table cutting off fractions [duplicate]

I am having some problems with my table cutting the tops and bottoms off of my fractions. See image. The horizontal padding seems fine as is, but I couldn't figure out how to increase the vertical ...
2
votes
2answers
657 views

How to horizontally top-align multiple \tikzpicture's without using \hspace?

The use case I'm having is the following: \documentclass{article} \usepackage{amsmath} \usepackage[showframe]{geometry} \usepackage{qtree} \begin{document} \Tree [.A B C [.D E ] ] \Tree [.F [.G H ...
4
votes
2answers
428 views

Restoring qtree spacing in tikz-qtree

Is it somehow possible to achieve the same node spacing in tikz-qtree as in the original qtree package? Compare the two: qtree: tikz-qtree: The spacing between nodes in one level should be the ...
4
votes
0answers
319 views

Overlapping label and text in description environment [closed]

I'm relatively new to LaTeX, and I am having this problem with the description environment: \documentclass{article} \usepackage{amsmath} \usepackage{bm} \usepackage{IEEEtrantools} \usepackage{amsthm} ...
4
votes
3answers
1k views

New environment with center and parsep

I want to make a new environment where the content is centered and where I can specify a local parsep value. My attempt to make this work is the following: \documentclass{article} ...
2
votes
1answer
291 views

Vertically aligning list bullet when using \infer

I have a list where one of the list items is an \infer{...}{...} command. In this case, the list bullet is not vertically centered with the item, as you can see in the picture: How can I move the ...
3
votes
1answer
86 views

Alignment spacing for negatives - Why am I unable to properly align my equations?

Although I searched the Web and indeed found an answer here, I still seem unable to address my issue of aligning two rows in my step-by-step process for solving a very basic equation. Just in case it ...
10
votes
1answer
449 views

Why is parskip=half messing up the spacing in mdframed?

without parskip: parskip=half: \documentclass[parskip=half]{scrartcl} \usepackage{blindtext} \usepackage{amsmath} \usepackage{amsthm} \usepackage{thmtools} ...
9
votes
2answers
255 views

Compute remaining horizontal space in align environment

I use align* often and sometimes it is preferable to add text to the right hand side of an equation instead of using \intertext, or \shortintertext, which tends to interrupt the math flow. This is ...
9
votes
3answers
349 views

Nicer alignment of x^*/2

I'm trying to typeset $\frac{x^*}{2}$, but I can't find a (simple) way to make the alignment look nice. So far, I've tried the following: \documentclass{article} \begin{document} \begin{equation} ...
2
votes
1answer
108 views

How to control the horizontal location of subscript?

Sometimes I find the subscript is located too far from the letter (to which it is the subscript) such as in \mathbf{v_{_\text{B}}} How to get the subcript closer to the letter?
1
vote
1answer
125 views

How to control spacing in end of itemize?

This refers to my previous question How to reduce space in begining but not in end of itemize Now I need to control spacing in the last of itemize like I could control in the beginning as suggested ...
1
vote
0answers
40 views

\lstlistoflistings does not add spaces by chapter [duplicate]

I'm quite new in LaTeX and ended up with this problem: I'm using list of tables and list of lstlistings (\listoftables, \lstlistoflistings), both numbered by chapter. List of tables does add spaces ...
1
vote
1answer
8k views

How to remove space after image caption? [duplicate]

I am writing one article in which i need to write one image and its caption. I found space after caption seems to be more than normal. \begin{figure}[!ht] \centering ...
1
vote
1answer
466 views

Vertically center block of text including chapter for dedication page

I have a dedication page in my book (using \documentclass[a4paper,11pt,openany,oneside]{book}. It is in a separate chapter and contains two small paragraphs. The chapter is on a separate page. At the ...
4
votes
1answer
117 views

Missing space before “and” in author list with two \thanks

I am trying to typeset the authors' names in a paper so that they appear as Joe Bloggs* and John Smith** (i.e. typeset with a joining "and" and normal spacing between words). I also need to put a ...
4
votes
1answer
67 views

How can I move an equation without affecting the label?

I am having an issue with the automatic LaTeX equation and label formatting on one of my longer equations (see results below). Minimum Working Example \documentclass[11pt]{article} ...
2
votes
1answer
2k views

How to adjust the space between pictures using minipage?

I use minipages to place three graphs, however the spaces between each two is not with the same width. Here is the code, may someone help me? and how to locate the (a) (b) (c) above the each of the ...
12
votes
3answers
212 views

Bizarre spacing of \cdot when trying to typeset a permutation type

I was just trying to write some cycle types in a permutation group, like so: The conjugacy classes of the symmetric group are simply given by the cycle types, so there are five in $S_4$: $Id$, ...
8
votes
1answer
1k views

TikZ: Controlling text within nodes and placing nodes in text

Need some help working with TikZ. Let me begin by saying that I think TikZ is amazing. I hardly know what I'm doing at this point and yet I've been able to draw some very nice diagrams with it. ...
2
votes
1answer
123 views

Is there a way to reduce spacing before the footnote call?

I find the spacing between the word it refers to and the footnote call a bit too large. Is there a way to reduce it ?
1
vote
0answers
72 views

Text in command gets glued to following text [duplicate]

I made this command \newcommand{\BR}{MyBrand\superscript{\scriptsize ™}}, when I use it and write something like this \BR is awesome the ouput is: MyBrand™is awesome What am I doing wrong here?
19
votes
2answers
668 views

Exhaustive list of use cases for the interword space \␣

The Guide to LaTeX (4e) states that \␣ is a "[n]ormal space between words after a command without arguments or after a period that is not the end of a sentence" (p. 467). For the former case ...
16
votes
3answers
1k views

Fixed-width interword space

I would like to typeset post--World War II with what Adobe InDesign calls a "quarter space". The en-dash is there to be wider than a normal space, to clarify the constituent structure ([post-[[World ...
6
votes
1answer
723 views

Applying condition around \intertext and \shortintertext leaves excess vertical space

When I try to make either \intertext or \shortintertext conditional I get excess vertical spacing prior to the conditional text as per the MWE below. Note the excess vertical spacing prior to "Albert ...
3
votes
1answer
975 views

Combining Textstyle and Displaystyle

In my mathematics writing, I often use both superscripts and subscripts on the probability operator. The subscripts are generally lengthy, and I would like for them to appear underneath the operator, ...
4
votes
1answer
177 views

Center alignment of tikzpicture outside figure environment without vertical space [duplicate]

How to align tikzpicture outside figure environment without introducing vertical space? I'm aware of related questions, such as What is the correct way to center a \tikzpicture? and Should I use ...
2
votes
1answer
106 views

Is it possible to add some vertical space like ~~~?

I sometimes uses ~ to adjust space between symbols. Now I want to add some vertical space which play similar role, how do I do that? (It's not about controlling space between lines, but just add some ...
10
votes
3answers
244 views

I want to create a command that will conditionally gobble up trailing whitespace: I want an “\unxspace” command

I have a command that occasionally produces whitespace that I don't want. \def\testa{a} \def\testb{a} \newcommand{\mycommand}[1]{\ifx\testa\testb{#1}\fi} When \testa and \testb are different, I ...
3
votes
1answer
514 views

LaTeX source code listing with less space between characters [duplicate]

I want to write shell Code in my LaTeX document. I'm using the listings package, with a code sample adapted from Tormod Fjeldskår: \documentclass{report} \usepackage{color} \usepackage{xcolor} ...
2
votes
1answer
90 views

How to reduce space in begining but not in end of itemize

This refers to my question. How to reduce space in begining of itemize? [topsep=0] also reduces space between the itemize and text below to itemlist. I just want to reduce space in the begining not ...