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

4
votes
2answers
218 views

Problem with content location with standalone package

I'm trying to create multiple pages with varying page heights using the standalone package. When I try to run my file (using XeLaTeX on a mac) the content gets shifted up and to the left so that it's ...
3
votes
2answers
115 views

How to avoid unwanted Spaces in \NewDocumentEnvironment?

I tried to make my own "quote"-Environment and I wanted the first Letter to be bold and a little bit bigger than the rest. As \lettrine doesn't work the way i wanted, i tried to code it on my own. ...
3
votes
1answer
254 views

How to make a circular arrow have the same size and position as other circular symbols?

I'm using the mathabx package's circular arrows; however, since I otherwise prefer the usual amsmath symbols, I'm following the setup described in Importing a Single Symbol From a Different Font to ...
8
votes
1answer
5k views

vspace equivalent of newline

I am writing one report using LaTeX and R. I just found \vspace can be used for \newline. May I know how much \vspace == \newline? \vspace{x cm} = \newline x = ?
11
votes
2answers
10k views

How to set the space between rows in a table

This is the Latex code I have to create a table: \documentclass{article} \usepackage{amsmath} \usepackage{tabularx} \usepackage[top=0.5cm, bottom=0.5cm, left=0.5cm, right=0.5cm, columnsep=0.75cm]{...
7
votes
2answers
581 views

Ensuring a paragraph uses at least a given height?

I'm making a custom document class based on memoir, and I don't know how to implement the chapter precis so that it does what I want (the chapter precis is a small optional paragraph that follows ...
8
votes
1answer
1k views

Controlling parindent in enumerate inside customized list environment

I'm trying to control the indentation of paragraphs in an enumerated list that is inside a customized list environment. I find that changing \parindent in the inner list has no effect. Here's an ...
3
votes
1answer
151 views

Vertical spacing problem with multicol package and a newcommand

The following code produces and unwanted space. Why and how can it be avoided? A redefinition of the command or macros are invited. \documentclass[letterpaper]{article} \usepackage[dvipsnames]{xcolor}...
3
votes
2answers
254 views

Ellipsis without brackets — fine tuning

Very much related to this question and its answer, I would like to ask the following: If I want to indicate omissions in a quotation not by using Text [...] more text. but instead by using Text ... ...
14
votes
1answer
460 views

Dedicated symbol for […] in quotations?

I would like to use [...] in quotations to indicate a part which was not included. Just entering [...] does not render it perfectly in my opinion. Is there a special way of inputing said symbol? ...
3
votes
1answer
3k views

Spacing problem while using itemize in minipage

I am using itemize in minipage and observe unexpected spacing among items. \documentclass[11pt,table,a4paper]{article} \usepackage[framemethod=TikZ]{mdframed} \usepackage[top=.5cm, bottom=2cm, left=...
0
votes
0answers
60 views

How to avoid having to use the tilde with every macro? [duplicate]

I am relatively new to LaTeX, so please bear with me. I have just started using macros and finding them quite useful. However, I find myself having to use the tilde (~) a lot of times to get a space ...
3
votes
1answer
368 views

Use headings in letters / vertical space

I need to use headings in a letter, more precisely in documentclass dinbrief. Knowing that LaTeX does not support section or subsection commands in this document class I use the following workaround: ...
1
vote
1answer
133 views

How to use soul with glossaries to space-out acronyms?

I want to increase the spacing between capital letters of acronyms inside text. Acronyms are printed by \ac, \acs, etc. commands of the glossaries package. soul package provides a nice command \caps. ...
8
votes
2answers
1k views

How can I use color in a mathematical expression without losing horizontal spacing?

How can I use color in a mathematical expression without losing horizontal spacing? \documentclass{article} \usepackage{xcolor} \definecolor{red}{HTML}{dd0000} \begin{document} \[3+(-5)-2+3\] \[3+(-...
7
votes
1answer
1k views

Annoying paragraph spacing issue with memoir

I have a spacing issue while using the memoir class. The main problem is that after the first paragraph there is a line skip and an indentation and afterwards, all the paragraphs are indented properly ...
1
vote
1answer
67 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 ...
6
votes
1answer
13k 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
159 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 \frac{3x^...
1
vote
1answer
663 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 \frac{3x^...
4
votes
1answer
255 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
676 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
57 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
2k 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. \documentclass[12pt,...
20
votes
1answer
1k 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 ...
3
votes
1answer
1k 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
149 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
51 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
165 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 ...
6
votes
1answer
399 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
375 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
347 views

How to decrease the space after figures [duplicate]

I want to reduce the space between Figure description and text.
0
votes
1answer
17k 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
5
votes
1answer
230 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
889 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. {\setlength{\...
0
votes
1answer
237 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
2k 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
820 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 ...
6
votes
0answers
747 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
2k 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
694 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
106 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
896 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} \usepackage[framemethod=TikZ]{...
11
votes
2answers
353 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
363 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} \...
3
votes
1answer
185 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
202 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 ...
6
votes
1answer
30k 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 \includegraphics[width=0.7\...
1
vote
1answer
1k 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 ...