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

2
votes
1answer
34 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 ...
2
votes
1answer
67 views

Vertical space between Text and figure

If the code is like this: text text text text text.~\cite{sour}\begin{figure}[htbp] \centering \includegraphics[width=0.9\textwidth]{IMG/fig} \caption{Caption.} \label{fig:figlabel} ...
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 ...
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... ...
0
votes
1answer
35 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
4answers
196 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}) = ...
2
votes
1answer
131 views

Vertically aligning form fields within a table

I would like to vertically align form fields within table rows. The problem I am facing is that other columns within the same row can stretch over multiple lines. Solutions as sketched in form field ...
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 ...
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 ...
2
votes
1answer
90 views

How to fix the space between “Figure” and “5” in “Figure 5:” in figure caption?

I use this solution to get captions for my figures at the side, which works really fine. But sometimes, if the word behind "Figure xyz:" is too long for the line, I get something like this: How can ...
0
votes
0answers
17 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 ...
17
votes
2answers
11k views

Remove vertical space around align

I need to display math in my report, but is it possible to remove the vertical space around align*? A little example is the following (where I just want the align* to have the same vertical space as ...
3
votes
1answer
34 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\\ ...
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
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} ...
22
votes
5answers
19k views

How to shorten/shrink spaces between words?

My objective is to fit more words within one line. In order to show what I mean, I will exaggerate the word spacing here: Pretend this is a normal line in the document: Lorem ipsum dolor sit ...
7
votes
0answers
96 views

Hightlight specfic digits within siunix's \num

I would like to highlight specific digits in a number. Since the number is large I would like to use \num{} from the siunitx package. Of course I can do it manually as in the MWE below, but was ...
27
votes
4answers
39k views

Remove space after figure and before text

I have a figure in my paper (I am using IEEEtran package). After this figure there exists a space between the figure and the text. How can I reduce the size of this white space. To be specific the ...
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.
4
votes
2answers
1k views

How can get rid of margins and minimize white space to fully use a page in LaTeX?

I want to create a formulary in LaTeX. I can use it at the exam and it has do be at maximum a page recto-verso. I don't want margins (only the strict necessary for printing). I also want to minimize ...
3
votes
3answers
73 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
33 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 ...
19
votes
1answer
331 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{% ...
10
votes
2answers
3k views

How to remove space between back address and address in scrlttr2?

There is a blank line between the back address and the address? How can I remove it? \documentclass{scrlttr2} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage{ngerman, ae} ...
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? ...
0
votes
1answer
66 views

Spacing between Header and Chapter Titles

I have the following template: %Loading in the packages \documentclass[12pt]{report} \usepackage[a4paper, width=150mm, top=25mm, bottom=25mm ,bindingoffset=6mm]{geometry} \usepackage{graphicx} ...
40
votes
1answer
9k views

How to modify the space between the numbers and text of sectioning titles in the table of contents?

I'm preparing a document using the book class. In the table of contents, the space between the subsection number and title is too wide. How to reduce it?
2
votes
2answers
52 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 ...
4
votes
0answers
54 views

How do I stop \usepackage{graphicx} pushing my whole document down? [duplicate]

After I load the graphics package and create a pdf I get my image to appear perfectly but my page numbers are now basically on the very bottom of every page and the text on each page has shifted down ...
2
votes
1answer
44 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: ...
2
votes
1answer
283 views

LOF and LOT customization in memoir

I am attempting to add LOF and LOT to my current document using the memoir class. When I try to remove the spacing above the LOF and LOT titles, I get the "Undefined control sequence. ...
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 ...
1
vote
1answer
101 views

Remove vertical space between several chapters in ToC

I would like to remove the vertical space between several (but not all) chapters in my ToC (namely, the literature, the list of symbols, and the index). The following code works in the preamble to ...
1
vote
1answer
47 views

variable beforeskip in \@startsection

Is it possible to have a "calculated" \beforeskip in \@startsection ? I want the beforeskip of a subsection to be 1.5ex unless the previous paragraph is a section. In that case I want the section and ...
4
votes
2answers
60 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
55 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 ...
3
votes
1answer
103 views

Spacing of text within a table cell

I am inserting the following text inside the cell of a table \documentclass[a4paper]{book} \usepackage[latin1]{inputenc} \usepackage[pdftex, final]{graphicx} \usepackage[francais]{babel} ...
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 ...
4
votes
1answer
63 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 ...
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 ...
2
votes
1answer
44 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 ...
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 ...
7
votes
2answers
312 views

Customizing clean thesis

I am using the cleanthesis template. In this template, there is no paragraph by default. As explained in Getting back the paragraph in cleanThesis?, the paragraph can be re-established by commenting ...
3
votes
2answers
177 views

amsthm in clean

I am looking for a good latex template for my phd. I did not like the classicthesis because of the huge margin and the collapsed table of contents. I found the cleanthesis to be just what I was ...
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 ...