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

How to match alignment of subscripts if one of main characters is \overline-d?

I can align dagger and non-dagger expressions using, for example, $\psi_i^\dagger \psi_i^{\vphantom\dagger}$. How do I do the same for overlines, for example: in $\overline{\psi}_i \psi_i$, the ...
2
votes
1answer
201 views

Is there a variable width, non-breaking space in LaTeX

I sometimes use ~ in LaTeX to keep for example "Figure" together with its \ref. However, in some cases where LaTeX has to stretch a line quite a lot to fill it, it appears that ~ is fixed-width. It ...
2
votes
1answer
107 views

Remove vertical space between title and first line of own “table of”

I try to reduce the space between the head and the first line of my own "table of". I found several solutions for table of content and other standard "table ofs". But somehow they do not work with my ...
1
vote
1answer
49 views

Adjust spacing in the title page using the scrbook package

The title of my document has three lines. In the title page, the width of the first and the third lines are almost equal as in the following example. I want to slightly expand the spacing between ...
0
votes
0answers
29 views

Reduce Section heading number and spacing in document having a table of content

I have set up a document to have a table of content: \begin{document} \selectlanguage{english} \tableofcontents{} I then have sections within the document which appear in the table of content ...
2
votes
1answer
45 views

Spurious horizontal space after \mbox{}\vskip0pt\noindent

How can one avoid the horizontal space (text indentation) created by the new line in the environment defined below? \documentclass{scrartcl} \usepackage[T1]{fontenc} \usepackage[american]{babel} ...
3
votes
1answer
60 views

Removing space resulting from newcommand definition

My document is a list of entries. Here is an example with three entries: All entries have a title and two subtitles. These are followed by text, bullet points or a combination of the two. Note that ...
1
vote
0answers
17 views

phantom does linebreak instead of invisible math mode character [duplicate]

I have the following two lines: $\Rightarrow$ Generate $\mathbb{G}^n$ and check the existence of a homomorphism\\ from $\mathbb{G}^n$ to $\mathbb{G}$! I want the second line to start exactly under ...
3
votes
4answers
382 views

Remove space before itemize

I have defined a \newcommand called \NewEntry that takes two parameters and prints one above the other. \newcommand{\NewEntry}[2]{ #1 \\ #2 } Calling this command by \NewEntry{ENTRY} ...
3
votes
2answers
59 views

Temporarily increase spacing between paragraphs in a quotation, and then put it back

I would like to add an extra blank line between paragraphs inside a quotation, but only inside of that quotation. I know you can do this using \parskip, but how do I restore the old value? I tried ...
1
vote
1answer
26 views

Undesired indenting after subequation environment defined as a macro

Often in my work I need to form optimization problems in Latex and therefore I defined a macro that comprises all my desired characteristics to simplify the procedure. However, as I am not very ...
3
votes
2answers
62 views

Text left spacing (local “margin”) [duplicate]

How can I add left space to a block of text? (see the attempts and pictures below) I can think of two ways: minipage \documentclass{article} \usepackage{lipsum} \begin{document} \lipsum[1] ...
2
votes
0answers
43 views

\printacronyms gives an extra line at end

I used acro package with tabular style to print acronyms. When I did that, it added an extra line to the end of acronyms list, therefore \vspace{-\baselineskip} corrects the problem. However that ...
4
votes
1answer
67 views

Problem changing spacing for equation environment

My document needs a line spacing of 1.5, if I set this line spacing using the setspace's \onehalfspacing command, or using \linespread{1.5}, the equation environment is also affected. The effect of ...
1
vote
1answer
30 views

Remove the vspace reserved for the disappeared items in beamer

I have a list in a beamer slide and for each item there must be a figure or an inner list, shown only in one slide. The problem is that, although the figure disappears, the space it used to occupied ...
0
votes
0answers
7 views

odd vertical alignment for mathop [duplicate]

I have encountered an odd vertical misalignment when using mathop to define some one-character macros. Specifically, I am (re)defining \i via \renewcommand{\i}{\mathop{\mathbbl{i}}} (for ...
0
votes
1answer
35 views

How to have list items without initial space?

Code mimicked from Double-column for Question/Answer Format? but with longer inputs: \documentclass{article} \usepackage{paracol} \usepackage{ulem} \usepackage{fontspec} \usepackage{newunicodechar} ...
1
vote
0answers
29 views

space inside tikz node [duplicate]

Why is there no space between the \x number and the text in my tikz nodes? There is a space in the final one in which I manually inputted a number instead of using a forloop. That's what I'd like the ...
3
votes
1answer
49 views

Why is the parskip package messing up the spacing in mdframed?

Consider the following MWE: \documentclass{article} \usepackage{amsthm} \usepackage[framemethod=tikz]{mdframed} \usepackage{lipsum} %\usepackage[parfill]{parskip} \newtheorem{theo}{Theorem} ...
4
votes
1answer
44 views

Relative spacing in titlesec

I am trying to create a custom section and subsection format that consists of the index, followed by a vertical line, followed by the title. An example can be found here: ...
1
vote
1answer
57 views

Space between two consecutive headings with titlesec option largestsep

To format headings I am using the titlesec package. I need 12 pt space before each heading and 6 pt after. If there are consecutive headings (i.e. heading directly followed by subheading) I need 12 pt ...
7
votes
4answers
372 views

How to hide a part of a latex file?

I would like to have a generic command that basically reserves space for a set of commands, without actually rendering them in the PDF. For example, \hide{this is some hidden text} will allocate ...
1
vote
1answer
55 views

Why does section command cause large vertical space before only at top of page?

% \documentclass{book} % % \usepackage[fleqn]{amsmath} % \usepackage{amsthm,amssymb} % \usepackage[explicit]{titlesec} % \usepackage{titletoc} % \usepackage[english]{babel} % \usepackage{txfonts} % ...
2
votes
1answer
45 views

Ensure minimum distance between two elements

Context: I'm typesetting a songbook in which there are occasionally "chords" typeset above one word, i.e. if I type someting like This \chord{A}is my \chord{B}beautiful song I'll get something that ...
3
votes
1answer
34 views

Are there spaces between rules of the tables, how can I delete them?

\documentclass[a4paper,11pt,twoside,openright]{book} % \usepackage{geometry} % \geometry{ % a4paper, % total={210mm,297mm}, % left=20mm, % right=20mm, % top=20mm, % bottom=20mm, % } ...
1
vote
1answer
36 views

Placing a visible picture in beamer that doesn't take up any space

I am preparing slides with bullet points, and would like to illustrate some of the early ones with a (temporary) picture. Of course, this can be achieved with simple overlays as in \begin{itemize} ...
7
votes
2answers
100 views

how to space after LaTeX3 commands

I am trying to define a message that includes a computed number. \RequirePackage{expl3} \ExplSyntaxOn \int_set:Nn \l_tmpa_int { 42 } \msg_new:nnn { package } { message } { The~number~ \int_use:N ...
1
vote
0answers
48 views

Reduce vertical space before \paragraph and fit as many lines in the page as possible

ORIGINAL QUESTION: Is there a way to discourage latex from putting too much vertical space before the start of a new \paragraph, before theorem and proof environments, and other paragraph-like things? ...
2
votes
0answers
69 views

list of figures space after figure name? [duplicate]

I am using a template to write my thesis and I got something like that which is shown in the image when it automatically generates list of figures. How can I fix that? I am also enclosing the part ...
2
votes
2answers
112 views

\hspace before \section?

I would like to add a space before a section heading. I have tried: \hspace[*]{5pt}\setkomafont{section}{\fontsize{45}{40}\selectfont \fontspec{Mathilde}} unsuccessfully. I realise that Latex ...
3
votes
1answer
58 views

Unwanted extra space after hyperlink with biblatex

I am using biblatex for my references, and I found the chem-angew style which I appreciate very much. I found out how to add an hypertext link under the journal title, and it works fine. But there ...
6
votes
3answers
111 views

Vertically align a list to the bottom of the page

When a list (in the example below, itemize, but I'm having the same trouble with lists defined using enumitem, and the exe environment of package gb4e) occurs at the bottom of the page, the last item ...
5
votes
1answer
125 views

$x_1,x_2$ vs. $x_1$, $x_2$

Basic version of my question: Consider the fragment of some text bla bla $x_1,x_2,x_3$ bla. Is this correctly type-setted, or is bla bla $x_1$, $x_2$, $x_3$ bla better ? Advanced version: Cf. the ...
2
votes
1answer
55 views

Can anybody help me to make space between the letters in a column?

I try to make the table same as the image but texstudio highlights me errors in the compilation. I hope anyone of the masters can help me with comments especially in the use of \multirow and how to ...
4
votes
2answers
132 views

Creating truth tables using over/underbrace with array environment

Using the code \documentclass{article} \usepackage{amsmath} \usepackage{array} \newcolumntype{C}{>$c<$} \begin{document} \[ \begin{array}{C|C|C|C|C|C} $p$ & $q$ & $p\land q$ & ...
0
votes
0answers
28 views

Why does tabbing inside tabular create extra vertical space?

MWE: \documentclass[english]{article} \usepackage[english]{babel} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{array} \renewcommand{\arraystretch}{1.5} \usepackage{booktabs} ...
4
votes
3answers
120 views

huge spacing between caption and longtabu

I have the problem that my caption is very far away from my table and I can't find a reason and solution for that. Can anyone help me to solve it? I already tried \usepackage{caption} ...
3
votes
2answers
68 views

Missing space after Appendix

I am working on a document that has an appendix. I would like it to have the heading: "Appendix A. Tasks for Progressive Formulation" This is the code I am using \appendix \newpage ...
1
vote
0answers
49 views

Length units different when compiling in Mac OSX vs Windows 10

When I use \vskip, \vspace, \hspace etc, and I use any of the spacing units for these commands: cm, em, in, pt... I get two different results when running it on a Mac OSX vs. on a Windows 10 ...
2
votes
2answers
26 views

Leaving some space between the 'Contents' heading and the ToC

In amsart, how do you leave an additional \vspace{3mm} between the heading 'Contents' and the Table of Contents?
2
votes
1answer
45 views

Vertical spacing around custom center environment followed by \noindent

Inspired by this answer (to define a center environment with no vertical spacing): \newenvironment{nscenter} {\parskip=0pt\par\nopagebreak\centering} {\par\noindent\ignorespacesafterend} I ...
1
vote
0answers
34 views

How to single space references if linespread(2.0) is used in preamble?

I have a question about line spacing. I'm writing a paper and the paper is to be double spaced, including captions. As a result, I put linespread(2.0) in the preamble of the document. However, I want ...
2
votes
2answers
76 views

latex \right\} not show up in pdf

The following is a piece of LaTeX code displaying a function. But in the PDF file generated, the right curly bracket "}" does not show up at the end. If I replace \right\} with just \}, then the right ...
2
votes
1answer
26 views

Remove extra space added by Diacritic

I have two separate lines over two separate words, but I want to have the line at the same distance over these words. I have to use however a Diacritic over one of those two words, which causes the ...
0
votes
0answers
43 views

Treat first page like the rest

I am new to LaTeX, and I am having trouble with the first page since the first page is being treated differently from the rest. First custom headers and footers wouldn't apply to the first page, but I ...
6
votes
1answer
78 views

Word spacing differences between either MacTeX, microtype or setspace versions

I'm migrating to a new notebook (which means a complete MacTeX update) and noticed word spacing differences when compiling a paper I'm currently working on. I would like to keep the old word spacing ...
1
vote
2answers
54 views

How to remove space between date separators in biblatex (style footnote-dw)

If I use biblatex's style footnote-dw and the option date=short for a German text, the date's day, month, and year are separated with a space which shouldn't be the case. Here is a MWE: ...
1
vote
1answer
53 views

minitoc suppress before/after space

Is there any way to easily customize \minitoc to avoid the big before/after space? Without using \vspace{-5mm} everywhere I use them (which is in a lot of chapters), and, only as a last case ...
1
vote
1answer
89 views

Horizontal spacing in caption in algorithm2e

In algorithm2e, how can I shift the caption to the left? There is a small space that I need to remove. Here is my code: \documentclass[letterpaper]{article} ...
1
vote
1answer
41 views

Automated spacing

Suppose I would like to customize and automate the spacing around em-dash. Say, I'd like to have hair-space before and after. Is there a package or something which would enable me achieve that? The ...