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

6
votes
2answers
95 views

How to prevent uneven spacing between words

In the following example, I get awkward spacing in a multicol environment in the second question. Notice that the words "Which of the following" are not spaced as they are in the first question. I'd ...
1
vote
1answer
29 views

Remove spacing between theorem environments in hebrew article

I'm making a cheat-sheet for an upcoming exam. It must be 1 A4 page (double sided). I've set the size of everything to tiny (it took quite a lot of effort) but now I have a serious problem with ...
2
votes
1answer
46 views

How to manage the position of intertext within align

\begin{equation*} \begin{aligned} E(X) & = \sum_{x=0}^{\infty}x\frac{e^{ - \lambda }\lambda ^x}{x!} \\ & = \sum_{x=0}^{\infty} \frac{e^{ - \lambda }\lambda ^x }{(x-1)!} \\ & = ...
1
vote
1answer
53 views

Beamer miniframes: horizontal space between dots when using the compress option

I'm using the beamer miniframes theme (with subsection=false) and the compress option. Currently the navigation shows the dots for each subsection side-by-side. I would prefer if there would be a ...
2
votes
1answer
119 views

LYX: How to remove white spaces between two figures

Lyx is leaving a lot of white space between figures. I want to reduce this white space. How can I do this in LYX, I am not familiar with latex coding. Attached is the image of the actual page. In lyx ...
2
votes
2answers
35 views

Math mode: Space character that is counted at most once if it appears multiple times

I have the following two custom commands: The conditional probability: \newcommand{\cProb}[2]{\operatorname{P}\left[ #1 \,\middle|\, #2 \right]} and a dotas a placeholder for arguments in ...
3
votes
1answer
29 views

Spacing around equal sign with breqn

In the following minimal example, the spacing around the equal sign is wrong. How can I fix this? It is rendered as x =0 instead of x = 0. Changing to align* instead of dmath* works fine. ...
0
votes
1answer
37 views

How to change size of box or lines in table using Latex

Dear all, table given in figure contains values. when i try increase the box sizes in the table the vertical line remains incomplete i.e it does not complete the box(encircled) .How i can change the ...
2
votes
1answer
43 views

Fancyhdr headrulewidth-related question

I have a work-around for this one, but I'd like to do it more elegantly if possible. Suppression of the line under the header when using fancyhdr seems to be well understood, and I have been doing it ...
1
vote
0answers
85 views

Excessive vertical space after lstlisting

I have created a macro \piece to structure longer sections into smaller, numbered pieces. (I am using the macro in a set of lecture notes where I try to introduce one concept per piece.) The code, ...
1
vote
0answers
34 views

problems to remove whitespace between itemize env and plain text | a difference of 1cm in \vspace{-n} results in ~ 2 sites difference

after the itemize env, i have about a half page whitespace, until the text appears. When i insert \vspace{-6cm} about 1,5 pages jumps up and covers part of the itemize env. When i do \vspace{-5cm} i ...
1
vote
1answer
60 views

How to increase the spacing between the item and sub-item in latex?

I have the following LaTeX code: \documentclass{article} \usepackage{enumitem} \begin{document} \begin{enumerate}[label*=\textbf{\arabic*.}] \setlength\itemsep{0.5em} \item Test item 1 ...
0
votes
1answer
32 views

the Space of fraction and equation looks strange

the LaTeX code is: $Z_c$ : $$ \begin{equation} \tag{3} Z_c=\sqrt{\frac{R_0+jωL_0}{G_0+jωC_0}} \end{equation} $$$$ \begin{equation} \tag{4} I^+=\dfrac{U^+}{Z_c} \quad I^-=\dfrac{U^-}{Z_c} ...
6
votes
2answers
221 views

double sqrt (surd) symbol

I want to define a macro that prints two adjacent sqrt symbols. (Notation from Cauchy's analysis book). I get something close but the spacing is changing depending if there is a number before it. ...
2
votes
0answers
34 views

How can I create block of text that ignores the surrounding glue? [duplicate]

After developing a custom environment that has both table-like data and paragraph data, I noticed some interesting effects. The glue (I think) is messing with the alignment of the text around each ...
2
votes
2answers
206 views

Writing fraction in matrix

I am trying to write a fraction in a matrix. I am doing it using the following code: \[ \begin{bmatrix} \frac{1}{6} & \frac{5}{6} & 0 & 0 \\ 0 & 0 & 1 & 0 \\ ...
2
votes
1answer
41 views

How to define space as a variable?

I want to define a command that makes vertical space like \\[30pt] variable. I want to define the string between the brackets so that it is variable like 20pt or 1.5cm. Thus I would be able to define ...
1
vote
0answers
46 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
46 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
109 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
41 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
55 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
112 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
39 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
70 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
31 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
36 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
39 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
72 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
48 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
76 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
39 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
77 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
50 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
81 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
64 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
211 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
45 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}} ...
7
votes
1answer
70 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
42 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
24 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
125 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
49 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
222 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
59 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
81 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
54 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
30 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
51 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? ...