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

Avoid the spurious space \noindent adds at the beginning of a theorem

This question is related to Enumerate after \label and Heiko's answer (with \noindent trick). As pointed out by Heiko: Then the first item moves from the theorem title line to the next line, the ...
4
votes
1answer
44 views

Sections in the margin and subsections on the same line as the section

I'd like to write a document so that \section material shows up in the margin and so that \subsection material shows up on the same line as the \section in the margin (assuming there isn't anything ...
1
vote
1answer
87 views

How to reduce line space in node labels

How do I reduce the space between Drill and $0 in the node? \documentclass[border=3mm,tikz]{standalone} \begin{document} \begin{tikzpicture} [grow = right, sibling distance = 6em, level distance ...
3
votes
1answer
37 views

Header of (List of Equations) in Appendix

I have used this method to create a list of equations. Now I am putting this list as a chapter in appendix as follows: \documentclass[12pt,twoside]{report} \usepackage{fancyhdr} ...
2
votes
1answer
33 views

Horizontal spacing for function arguments in fractions

I'm writing with collegues on a document that heavily uses one kind of custom operator (here: a probability density function). We have not decided finally what symbols to use. Consequently, we use a ...
3
votes
3answers
105 views

Mathematical optimization problem doesn't look good

I was trying to write an optimization problem in which "subject to" part is a vector statement. however it doesn't look good. \[ \begin{array}{clcll} \textrm{min} & \|k_i\|^2 ...
3
votes
1answer
33 views

Can't get correct spacing around reserved words with semantic package

I am working on a programming language semantics text, and decided to use the semantic package. According to the manual, I can use this: \reservestyle[\mathrel]{\command}{\mathbf} ...
2
votes
1answer
59 views

How to “globally” reduce space in equation to get compact or narrow formed equations?

The above one is done by Word, the below equation is done by LaTeX. How can I get the compact form like Word "globally"? Here's my code: Please take a look at and give me some advice .... thank ...
2
votes
0answers
28 views

Blank rule after end of paragraph while using the \input{}

At this moment I am writing my first .tex file using the \input{} command. My 'master' file will look like this. %preamble \begin{document} \input{introduction.tex} %et cetera \end{document} ...
1
vote
0answers
30 views

\newtheoremstyle above space does nothing in beamer

I would like to change the space above and below a \newtheorem in beamer. I tried to use \newtheoremstyle, but nothing happens. Here is an example showing above space set to 3000pt which has no effect ...
0
votes
0answers
34 views

How to fix a table (not table*) using space on two columns?

I have a very small table that should fit just right on one column, in the middle of the text, just like I would expect a float to behave. However, regardless of where it ends positioned on the page ...
5
votes
3answers
58 views

Better way to remove extra space around the quote

There are extra spaces around the extensive (indented and long) quotations. My current solution to eliminate them is as follows: \begin{quote} \vspace{-\baselineskip} Lorem ipsum... ...
2
votes
0answers
32 views

How can I set the space between footnotes and page number equal to the space I have between text and page number?

The page numbers are at the bottom center of my document. From time to time, I add footnotes but realised that the space between the footnotes and the page number is not the same for the case I do not ...
5
votes
3answers
62 views

wrapfigure environment vspace above figure

I am trying to use wrapfigure to place a figure within my document and I have noticed something odd occurring. Code: \documentclass{article} \usepackage{lipsum,tikz,wrapfig} \begin{document} ...
2
votes
1answer
37 views

Negative Spacing - Align Environment

I am writing the following optimization model: \documentclass[preprint,3p,times,onecolumn]{elsarticle} \usepackage[fleqn]{amsmath} \usepackage{mathrsfs} \begin{document} \begin{align} & ...
1
vote
1answer
53 views

Spacing elements in forest environment

I need to typeset a directory tree, and I found here an appropriate solution using forest package. After a slight modification (the squares on the paths, as suggested here), I got this: ...
2
votes
1answer
35 views

Methods to resolve long line overflowing into margin

My document sometimes has lines which slightly overflow into the margin, such as in the below example. I was wondering what different methods could resolve this issue, such as changing spacing between ...
0
votes
1answer
40 views

Remove vertical spacing from top/bottom of itemize environment within a table [duplicate]

I'd like to create compact itemized lists within a column of a table that are vertically alligned with non-itemized text from the same column. I'm using enumitem to get more control over these ...
3
votes
2answers
54 views

glossaries optionally delete white space between long form and abbreviation

If one has an foreign acronym (here english) coupled with a german word one uses a - between both. Now I have the problem that the first occurrence of an acronym falls together with a coupled german ...
7
votes
2answers
201 views

How can I control the minimum number of lines (rows) that should be kept together when a page break is necessary?

What to do when tabular alignment just doesn't cut it? I designed (perhaps not efficiently or with the "right" approach, yet using some helpful LaTeX3 answers from egreg) a way to enter data into an ...
0
votes
1answer
36 views

How to use tocloft package to customize the space between figure number and title?

My settings is as follows: \renewcommand{\cftfigfont}{\songti\zihao{-4}} \renewcommand{\cftfigpresnum}{\loflabel\hspace*{0.4em}} \renewcommand{\cftfigaftersnumb}{\hfill\hspace*{1.0em}} ...
8
votes
1answer
63 views

xgalley doesn't like \addvspace

The following minimal example produce the typical "Something's wrong--perhaps a missing \item" error. I can't understand what's wrong with loading xgalley together with the use of \addvspace... ...
1
vote
2answers
37 views

wrapfig: cannot restart from beginning, vspace doesn't work

Problems with wrapfig seems to never end. I want to put a figure on the left and write text on the right. This text doesn't cover all the figure height. Then I do a vspace and starts to write AFTER ...
1
vote
1answer
16 views

Reduce space of index area between subcaptions

I'm inserting 2 rows of images with \subcaptionbox but the vertical space between them remains, which is originally occupied by index of first column images. How could I reduce the space of this ...
4
votes
1answer
111 views

siunitx: spacing between \num and a variable name

I am using siunitx to typeset numbers and units. But when typesetting numbers in front of a variable, I feel a thin space is missing. For example, with \num{0.1234}a I get (1), and with ...
3
votes
1answer
36 views

widen space between words in gb4e

I use the gb4e package for writing linguistics examples. A MWE is something like the following: \documentclass{article} \usepackage{gb4e} \begin{document} \begin{exe} \ex \gll aaaaa bbbbbb cccc\\ ...
8
votes
4answers
199 views

Align objective function in latex

I am writing the following optimization model: \documentclass{article} \usepackage[cmex10]{amsmath} \DeclareMathOperator*{\Min}{min} \begin{document} \begin{align} &Q_t(v_{t-1},a_{ti\omega}) = ...
1
vote
2answers
58 views

How can I change the spacing of a document throughout?

I want one page of my document to be single spaced, and one to be double spaced. I'm using \renewcommand{\baselinestretch}{2}, but can't seem to change the spacing throughout.
3
votes
3answers
74 views

Vertical skip after the hline

I have a problem with my table. Basically, I would like to leave a medium skip after the hline before the name of the models (i.e. after the line and before 1. Female). I tried: ...
2
votes
0answers
40 views

too much spacing between equations and text if line before equation is full [duplicate]

I have a problem when equations appear in the text without a linebreak. It seems like an additional spacing before an equation is inserted, when the line before the equation is just full until the ...
3
votes
1answer
34 views

Increase spacing between text and symbol in Notations

I am using scrbook package to write my report. I am defining the list of notations as follows: \renewcommand{\nomname}{Notation} \renewcommand\nomgroup[1]{% \ifthenelse{\equal{#1}{R}}{% ...
3
votes
1answer
24 views

Lyx Paragraph Settings not working

I keep unchecking the indentation box in the lyx paragraph settings, but after I apply the change, and go back to my work, it never seems to work. I will then write a new line, and press enter and it ...
3
votes
2answers
46 views

why is there no space after \sc when using it as a macro? [duplicate]

Here is a MWE that explains it: \documentclass{article} \newcommand{\scmacro}{{\sc macro}} \begin{document} why is there no space after \scmacro even though there is space in the document? ...
2
votes
2answers
54 views

reduce space before and after verse environment

I want to reduce globally in a document the vertical space before and after a verse environment. The MWE shows the problem, with output: I would like not to use other packages, because I want to ...
2
votes
1answer
41 views

Alignment problem with enumerate

This simple table is not working out for me. The first item in the table does not align with the others, see picture. I can not figure out why not. Thank you. \begin{enumerate} ...
1
vote
1answer
47 views

Aligning numbered elements with custom spacing

I am trying to achieve the following result: 1. Section 1 Some text here 1.1 Subsection 1 Some text here (a) Some text here (b) Some text here (i) Some text ...
2
votes
1answer
46 views

How to make two lists of text appear side by side and lined up

I'm new to Latex and this forum. I want to make two columns of text: SAT:--------------------------SAT Subject Tests: Critical Reading: 800------------Biology: 800 Math: ...
1
vote
1answer
40 views

\nopagebreak in longtable results in undesired negative vertical space

System: XeTeX Version 3.14159265-2.6-0.99992 (TeX Live 2015/W32TeX). MWE (with a grid superimposed to help visualizing the issue): \documentclass[12pt]{book} ...
5
votes
2answers
53 views

Centering the section headings, but having the multines horizontally aligned wrt to the first line of the title

EDIT: I tried the solutions by @Bernard and @egreg. both the solutions work for multiline headings, that is to say that, the title is centered and all the lines of the titles are at the same distance ...
4
votes
2answers
62 views

Spacing after description environment

I'm using the description environment for a list. The problem is that the text after the description list appears like this: item1 item2 item3 text text ... while I want something like this: ...
4
votes
2answers
56 views

Longtable spacing: \LTpre and \LTpost don't seem to work, boldface adds extra space

I use XeTeX Version 3.14159265-2.6-0.99992 (TeX Live 2015/W32TeX). I am typesetting a book with lots of sloppypar with longtables. I followed this thread to use \LTpre and \LTpost to reduce spacing ...
19
votes
1answer
332 views

Reducing the huge space before the first line of the KOMA letter class

How can i reduce the vertical space to the start of the letter? \documentclass[fontsize=12pt,firstfoot=false]{scrlttr2} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{% ...
3
votes
0answers
33 views

What is plus1filll? [duplicate]

In the beamer manual on pg 64 they introduce the following suggestion on how to insert a horizontal navigation bar \insertsectionnavigationhorizontal{.5\textwidth}{\hskip0pt plus1filll}{} They ...
2
votes
1answer
29 views

pushing contents against the right margin, if there is space

I'd like \mycomment in the document below to be such that it automatically puts its argument against the right margin on the current line if it fits and otherwise against the right margin on the next ...
0
votes
0answers
26 views

apply spacing rules of a usual character to a special one

My question is, in short: how to apply the spacing rules for the french guillemets «, » to the single guillemet ‹ and ›, when I enter them directly from the keyboard (or copy paste) ? the spacing ...
5
votes
1answer
30 views

Operator with different spacing for binary operations

I want to create a macro \d where something like $4+\d x$ is interpreted as $4+d\! x$ but $\int f(x) \d x$ is interpreted as $\int f(x) \,d\! x$ In essence, I want the macro to ...
2
votes
1answer
45 views

Spacing before parenthesis in math mode

Suppose, I have something like \overline{q}_{l m_1}'(i) \overline{q}_{l m_2}'(i) \overline{q}_{l m_3}'(i) Now, this renders to which looks rather unpleasant. How can I reduce the spaces in front ...
1
vote
1answer
24 views

Reduce space in TOC between section groups

I have the following TOC: section 1 subsection 1.1 ...................... 2 section 2 subsection 2.1 ...................... 2 How can i reduce the spacing between the first 'group' of ...
3
votes
1answer
41 views

tex4ht turning the unbreakble space by ~ into unbreakable space in the html

Following my problem concerning spaces from unbreakable (thin) space inside « », for tex4ht I edited my message with the following use of the working trick from @michal.h21 ...
1
vote
1answer
28 views

keeping \parskip=0pt in HTML with take4ht

I have a problem with setting \parskip=0pt, not in my .pdf, but in my .html I want a new environment with \parskip=0pt, but make4ht -ul myfile.tex does not respect my deifnition. There seems to be a ...