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

0
votes
1answer
51 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
73 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
43 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
30 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
132 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
54 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
231 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
60 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
83 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
62 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
34 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
54 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
76 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
43 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
50 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
79 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: ...
0
votes
1answer
56 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
56 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
83 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
93 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
398 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
35 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
33 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
29 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
31 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
55 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
30 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
53 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
46 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 ...
3
votes
1answer
91 views

How to equalize the spaces above and below the theorem?

When I use the following code, \documentclass{amsbook} \makeatletter \def\ps@spheadings{\ps@empty \def\@evenhead{\normalfont\scriptsize \rlap{\thepage}\hfil \leftmark{}{}}% ...
4
votes
1answer
66 views

How to prevent XeLaTeX from dynamically enlarging or shrinking space after comma?

See the following output. Question How to prevent XeLaTeX from dynamically enlarging or shrinking space after comma? force XeLaTeX to break long sentences automatically without having to ...
5
votes
1answer
102 views

unbreakable (thin) space inside « », for tex4ht

EDIT: @michal.h21 you tip works well, but if I use a numerical code such as &#8201; for thin space, instead of its name &thinsp; in your modified trick, \def\mythinspace{\HCode{<span ...
5
votes
1answer
150 views

Prevent small, automatic spaces from splitting a word

I'm not sure if this is fundamental to LaTeX, or if this depends on the viewer, but I am facing the following phenomenon: \texttt{\textit{C}D} When I run pdflatex and view the result (in Okular) ...
2
votes
1answer
82 views

Correct way to write words with - in formula

I am wondering if there is a generally preferred way to write words with - in formula. For example: $k-distance$ or $k \textit{-} distance$ of maybe something better?
1
vote
1answer
60 views

Spacing around variables in math-mode

I'm using mtpro2 for math. In the original math-alphabet (the font mtpro2 uses), the letters seem to have greater spacing around them than what I would like. For example: $ GM = tc^3 $ produces ...
1
vote
1answer
79 views

how to make the in-line math equation as shown in the figure beautifully arranged in text?

When discussing and explaining some math equations, I sometimes prefer to use in-line equations (created by use $ ... $ in the text) in the text environment, as shown ONLY in the last two lines. ...
0
votes
0answers
24 views

CurVe document class: Adjust the space between entry's key and content

I am editing my CV with the CurVe document class. Is there any way to freely change the default space between the entry's key and its content? (as shown by the red arrow in the image below) A ...
2
votes
2answers
87 views

Why does Latex add arbitrary spacing between equations when using multicolumn?

After using multicolumn to divide up the page into three columns, some of my equations massive space in between the texts For example: The left most column, we see that there are spaces between the ...
0
votes
0answers
16 views

priming labeled arrows correctly

Using two macros to get the labeled arrows and its primed counterpart: \newcommand{\labarrow}[1]{\ensuremath{\overset{#1}{\rightarrow} }} ...
0
votes
0answers
20 views

Using ctexart documentclass and compile with pdfTex, is it possible to automatically add space between Chinese and letters or numbers?

In xelatex, space is automatically added between Chinese and letters, even if the there is no space in tex source. See here. But I found xelatex is slow, so I want to use PdfTex. So here is the ...
2
votes
0answers
36 views

Spacing in displayed equations with a piece of text in the middle

In order to avoid an excess of symbolism, I like to typeset displayed equations with some text replacing some connective, as in (\forall x\in \mathbb{N}: \{1,\dots,x-1\} \subseteq B) ...
3
votes
2answers
69 views

tabularx: use empty space between X and r

Want to use the empty space between X and r: \begin{tabularx}{\textwidth}{Xrrrr} \hline & X1 & X2 & X3 & X4 \\ \hline A & 1\% & 2\% & 2\% & 2.0\% \\ B & ...
3
votes
1answer
69 views

List of Boxes Detail

I was wondering if someone knows how to "tell" LaTeX to print an Index of Boxes ("Recuadros" for me), in a similar way to the regular Index of Tables. In the last case there is an extra space between ...
3
votes
1answer
56 views

colored underline with vertical spacing

How can I add a vertical spacing between the underline and other items by adjusting the \colorunderline command? \documentclass[12pt,b5paper]{article} \usepackage{amsmath} \usepackage{color} ...
4
votes
0answers
53 views

XeTeX: special \XeTeXcharclass needed for null glues

\XeTeXcharclass for glues (including null ones) is 255. High punctuation spacing in French with XeTeX is based on \XeTeXcharclass and \XeTeXinterchartoks both in polyglossia and babel/frenchb. As a ...
2
votes
2answers
168 views

Remove space after cases environment

After I write a begin cases environment, usually there appears a big space which bothers me. I do not know how to remove it. $\Hom(V,U)=\begin{cases}\{i:V\rightarrow U\vert i(v)=v, \forall v\in V\}, ...
1
vote
1answer
48 views

Changing the dimension of an arrow

I'm drawing a commutative diagram using the package tikzd. The problem is that the lenght of the arrows is too much. So I'm tring to find a way to reduce it. I'm using the command \arrow to draw the ...
1
vote
2answers
95 views

Exponent + square root + fraction: how to make look nice?

I have the following equation: \begin{equation}}e^{i\sqrt{\frac{\omega\mu_0\sigma z}{2}}}\end{equation} It is a fraction within a square root which is part of an exponent. Any idea how to make ...
1
vote
1answer
40 views

Columns Environment Spacing

I'm making a poster using beamerposter and I'm having some trouble with column spacing. I want to have a column that spans the entire width of the poster for my title, institution, etc. and then 3 ...