{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
0answers
57 views

HZ typesetting system in plain TeX

How can I use the hz typesetting engine with plain TeX and pdfTeX? I read about it in TUG Vol 36 no.2, Peter Karow article, link: TUG Vol 36 no.2, Peter Karow.
1
vote
1answer
51 views

Memoir: reduce the space in the top of the page

I'm using the memoir package to create my master thesis. When I write a page with text and it goes to the next page, it gives me a vertical space after my header and down to my text. What could ...
3
votes
3answers
74 views

Automatic vertical spacing after minipage when used in tabulator environment

I encountered some issues with the minipage package combined with the tabulator options. For clarity, I provide a MWE: \documentclass[10pt, a4paper]{article} \usepackage{multicol} ...
5
votes
1answer
69 views

How to decrease vertical whitespace before and after an equation

I want to decrease the vertical space before and after an equation. But the effect should not be global! So I just want to change a the vertical space of a part of my equations. Here is an example of ...
2
votes
0answers
27 views

colored column in tabularx [duplicate]

In a tabularx, I try to set the text color for a complete column as follows: \documentclass{article} \usepackage[papersize={60mm,60mm},margin=5mm]{geometry} ...
4
votes
1answer
60 views

WordSpace factor does not increase again

I am trying to understand how the WordSpace factor of fontspecs's \addfontfeatures works. The word space is decreasing when I lower it, but not increasing when I increase the factor again: ...
2
votes
1answer
43 views

Spacing between numbers and text in text mode

I am puzzled by the appearance of this tiny piece of text: \documentclass{article} \begin{document} 12 to 15 \end{document} It depends a little on the zoom level, but it's probably not just me ...
6
votes
2answers
107 views

subcaption: No space after label (DeclareCaptionFont breaks labelsep)

In the following example I am using \DeclareCaptionFont to change the color of the caption labels: \documentclass[11pt]{article} \usepackage{xcolor} \usepackage{caption} \usepackage{subcaption} ...
1
vote
0answers
69 views

reducing space between sections

I want to reduce space between between specified sections sections (C and D) only in my document. I don' want disturb my rest document. Here is a minimum code \documentclass[11pt]{book} ...
0
votes
0answers
17 views

Large space on one page because of array of equations [duplicate]

When I was making solutions for a probability course, I encountered some annoying problem that because of the existence of a big array of equations, the document automatically changed to a new page ...
0
votes
1answer
74 views

\vspace not working as expected

I have a code block using minted and mdframed and a caption afterwards. \begin{mdframed} \begin{minted}[tabsize=4]{c++} some code \end{minted} \end{mdframed} \begingroup\captionof{listing}{some ...
1
vote
2answers
27 views

How to reduce the spacing for empty dates in title (when using the titling package)

I am looking for a marco which changes the behaviour of date (while using the titling package) in the case the date is empty. This MWE A should give a document as normal: \documentclass{article} ...
1
vote
1answer
41 views

How do I align all paragraphs between all pages [duplicate]

The alignment of the paragraphs in each page separetely seems fine, but when you look at the difference between where they begin in page 1 and 2, it looks really ugly and stuff.
1
vote
1answer
36 views

\bigskip renders as different sizes on different pages

Using memoir, when I use \bigskip to separate sections from each other, on some pages it's a huge skip, on others it's much smaller, and the difference is obvious and noticeable. I'm using 5.5" x 3" ...
3
votes
1answer
41 views

\smash still inserts unwanted vertical space

Consider this MWE: \documentclass{scrartcl} \begin{document} \hrule Paragraph \vspace*{1cm} \hrule \smash{~~~~~~~~~~~~~~~~Overlap} Paragraph \end{document} (View output at latexfiddle.com) In ...
1
vote
1answer
55 views

Latex leaves indentation in references (\bibliography)

I have the same problem as in Latex leaves blank space in references, but I am using the \bibliography{} command. Is there any way to remove the indentation? \documentclass[urlsf]{usmthesis} ...
4
votes
1answer
57 views

Automatically calculate width

This is a question to Werner's answer to the question "How to draw arrows between parts of an equation to show the Math Distributive Property (Multiplication)?". Consider the following code: ...
5
votes
2answers
90 views

Document class gsm-l's ToC is messed up

I'm writing a text using document class gsm-l but the number of the sections overlap with the section symbol §, like this: Here's an MWE: \documentclass[a4paper,12pt]{gsm-l} \usepackage{amsthm, ...
1
vote
1answer
68 views

Double Columns for Problems

I am working on a calculus pdf and I am writing a small section of text which contains problems for the reader to solve. I want the problems to be of two columns to use up all the space I have. An ...
0
votes
1answer
21 views

How to make pagebreak spread the paragraphs in scrartcl

Using scractcl (or article), I would like a page break via \pagebreak to have the same effect (of spreading the paragraphs evenly across the page) as in document class book. I couldn't find this ...
1
vote
0answers
53 views

Large distance between figure/tables and subsequent section

I'm working on my paper but I'm encountering huge gaps between the tables and figures t o the subsequent subsections. Why is this happening? \begin{table}[H] %\begin{center} ...
2
votes
1answer
44 views

Pushing text to the end of the line [duplicate]

I would like to typeset text (a link) at the end of the current line, like this 1 Text. [Link] 2 More text, that is unfortunately too long to fit the ...
1
vote
0answers
38 views

Inter-word spacing in long section heading

I have a long section heading, e.g. \subsubsection*{Identification Identification Identification Identification Identification Identification} Using chktex, I got the warning "interword spacing ...
0
votes
1answer
58 views

Decreasing space between sections in llncs

I want to squeeze the space for sections, subsections, and subsubsections on a llncs document. The following can only squeeze subsubsections. How could I squeeze sections and subsections? ...
2
votes
2answers
87 views

How to set spacing/padding in tables only on one side of the cell?

I have another problem and hope you can help. I want to set a padding/spacing in my table, but only on the right side of the cells. When I set the \setlength{\tabcolsep}{5pt}%, the padding is also on ...
3
votes
2answers
66 views

Extra vertical space below table row when compressing line spacing

I have a large table in which many of the cells have free-flowing text in paragraph form. Rather than use \midrule's to help the reader delineate between rows, I'm trying to compress the text line ...
1
vote
1answer
30 views

\hbox{} or ~ when beginning a paragraph? [duplicate]

Consider the following MWE: \documentclass{article} \usepackage[showframe]{geometry} \begin{document} \bigskip This is a test. \end{document} This renders as follows: As you can see, the ...
3
votes
1answer
43 views

Inclusion of ragged2e causes spacing side-effect in Tikz

I am working on a memoir document whose chapter titles are styled with Tikz. My actual graphic is quite a bit more complex, but for the sake of simplicity, the MWEs in this question will simply ...
1
vote
2answers
59 views

Force spacing for tikz pictures used as variables

I wish to typeset a math equation involving boxes of different sizes (which represent matrices of different sizes in my work). What I have done so far is as follows: \documentclass{article} ...
4
votes
2answers
58 views

List/Itemize with image bullets

I want to have something like bullets but with images, I found an example but it doesn't align quite well. The text should be aligned to the center of the image and the image (preferably it's center) ...
11
votes
2answers
280 views

Always safe to use empty braces `{}` to guard space?

I'm generating LaTeX code and, as such, am faced with the difficulty to preserve spaces between inserted LaTeX commands and ensuing text. They way I'm doing it now is as suggested by the answer to a ...
2
votes
1answer
38 views

Control space between (table) float environment and head

does someone know how to control the distance between a table and the head of a document page defined by the actual textheight? Somehow it only works for figures (figure 3.4) not for tables. As I ...
3
votes
1answer
71 views

csquotes: spacing between text guillemets

Consider the following mwe: \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage[babel,german=guillemets]{csquotes} \usepackage[T1]{fontenc} ...
18
votes
2answers
448 views

Example in which `$$…$$` gets wrong spacing

The use of \[...\] vs. $$...$$ is discussed in Why is \[ ... \] preferable to $$ ... $$? and What are the differences between $$, \[, align, equation and displaymath?. It seems like \[...\] has ...
0
votes
1answer
60 views

setspace and parskip induced symmetry problems in custom chapter title

The MWE below demonstrates that I have a distinct lack of symmetry in the space between the horizontal lines and chapter title text despite employing the solution in Consistent Line Spacing in ...
2
votes
2answers
82 views

How to correctly insert a leading space in a line?

\begin{minipage}{0.45\linewidth} \textit { Research Intern\\ \href{http://www.department.com}{~Department Name}\\ ~University Name\\ } \end{minipage} In the above ...
2
votes
0answers
64 views

Unwanted vertical space at top of page before subsection heading

I have been using LaTeX for a while now, but I am very new to defining my own commands in the preamble. I am working on my thesis, and I'm using a custom .cls file which has been passed down by other ...
4
votes
3answers
65 views

Creating rule inside environment that is same width as text

I have an environment which left and right skips are set to same value. Inside it I have a text and a rule below that text. I want rule to have exactly same width as text above it. (Similarly to what ...
2
votes
1answer
36 views

Extra blank lines in tabularx

I have written a macro that uses the functions in xstring: \newcommand{\yyyymmmdd}[1] {\IfSubStr{#1}{-01-}{\StrSubstitute{#1}{-01-}{-Jan-}}{} \IfSubStr{#1}{-02-}{\StrSubstitute{#1}{-02-}{-Feb-}}{} ...
4
votes
1answer
73 views

memoir \vplace / \vspace that breaks pages on content starting with a section header

When using memoir's \vplace environment, I've noticed that LaTeX tends prefer break before a \vplace when its content starts with a \{sub}section. So for example: ...
0
votes
0answers
26 views

Own “Table of” increase space between section number and text beginning

in following question is a "Table of equations" I implemented. Remove vertical space between title and first line of own "table of" But unfortunately the space between the section number and ...
0
votes
0answers
69 views

Additional space after title of BibTeX Bibliography

I have declared a Bibliography as follows \pagebreak \addcontentsline{toc}{chapter}{Bibliography} \vspace*{3em} \begin{spacing}{1.0} \bibliographystyle{plain} \bibliography{bibliographyfile.bib} ...
3
votes
1answer
151 views

How can I loosen the letter spacing in my bold-faced headers?

When headers are set to bold face, they appear too tight please see MWE. % %---------------------------------------------------------------------------------------------------------- % ...
1
vote
2answers
53 views

How do I remove the space between the last paragraph and the bibliography?

This MWE \documentclass[12pt]{article} \begin{filecontents*}{citations.bib} @article{hansen1982large, title={Large sample properties of generalized method of moments estimators}, author={Hansen, ...
2
votes
1answer
48 views

How can I define a unique vertical spacing value for all parts of my document which has lists and paragraphs?

I am trying to write my CV in LaTeX and I am not using a specific package for CV. I am coding it myself. My problem is: The space after normal paragraphs and the space after the lists are not the ...
3
votes
0answers
64 views

LaTeX seems to insert an extra inter word space before a capital letter in the middle of a word

But I guess it doesn't and it's just a font issue that makes the combination look like there was a space: \documentclass{article} \usepackage{fontspec} \begin{document} ...
2
votes
2answers
67 views

Vertical Spacing and Alignment for Equations [closed]

How can I set the vertical spacing for all equations at once? And how can I align them to the left without use \usepackage[fleqn]{amsmath} in preambule? \documentclass[a4paper,12pt]{article} ...
2
votes
2answers
81 views

Constant Solution Spacing in the Exam Documentclass

I'm using the exam documentclass and I would like to keep the spacing between questions the same whether or not the solutions are printed using \printanswers (so it has the effect if the solutions ...
7
votes
1answer
301 views

How to colour \hrule

I am trying to display a coloured \hrule. This discussion implies wrapping the \hrule in a \textcolor should do, but that adds an ugly extra vertical space above the \hrule. Other questions on LaTeX ...
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 ...