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

3
votes
1answer
28 views

How can I use \noexpand and \unexpanded without appending a space to the unexpanded tokens?

One of my current tasks involves composing an auxiliary file with extra commands to be loaded at a separate compilation. Here's an MWE: \documentclass{memoir} \newwrite\testaux ...
6
votes
1answer
368 views

Math spacing in TeX Gyre Pagella

The spacing in the following output looks off to me. In particular, the integral symbol has not grown to accommodate the height of the integrand, the spacing in the fraction seems large, and the ...
1
vote
0answers
73 views

Why is there so much space under and over my itemize? [closed]

I am using a template from somebody else for my master thesis. I have changed the template to fit my needs and everything works, except for the itemize-area. Most of the time there is way too much ...
0
votes
0answers
30 views

How can I produce better spacing between header and content when using fancyhdr package?

I am currently using the fancyhdr package with the following setup: %BOOK FORMATTING \usepackage{fancyhdr} % nice header format \fancyhead[RO, LE]{\textbsf{\thepage}} % ...
3
votes
2answers
80 views

Turn * into thin space for clearer math spacing

In a formula, the space between variables often corresponds implicitly to a multiplication operator. I find LaTeX's default spacing not so readable: symbols are too close to each other, and I would ...
2
votes
1answer
32 views

Extend space for many authors in conference paper

Prologue For a conference paper, I am asked to use an existing style file. The typesetting code apparently has a history of re-use and adaptations of more than 20 years, and it looks pretty crumbled ...
2
votes
1answer
41 views

Asymmetrical Composition of images

I am desperately trying to arrange my images as in this sample figure for my paper and I am stuck. Has anyone been able to do this successfully and could give me some pointers? It should be noted ...
6
votes
1answer
64 views

Is there a way to get rid of my \vspace{} hack?

I am creating my CV in TeX from scratch and I have come across multiple invisible lines that make my formatting inconsistent. I have this command to make a bulleted list from delimited elements: ...
26
votes
2answers
37k views

Vertical spacing of a table cell

I want to tabulate formulas, but I find that the lines of the table cells are too close together, and this is aesthetically unsatisfactory. Example (formulae copied from wikipedia): ...
2
votes
3answers
101 views

Table row & column spacing (not padding!)?

I need space between rows and remove white lines between the columns. All the answers I found only referenced array stretch and \tabcolsep, which I use and like, however, these only change the ...
16
votes
4answers
9k views

How to change the line spacing in my list of figures?

I am using the book documentclass and have a list of figures. After much trouble I noticed that there is a blank line to separate figures that are in different chapters, but not if they are within the ...
1
vote
1answer
17 views

Bind vertical spacing change in ToC to \*matter commands

This is a spin-off question to Change vertical space of chapters temporarly in Table of Contents. Like in the question's answer, I managed to achieve custom vertical spacing of chapters before, during ...
4
votes
2answers
81 views

spacing in description with items wrapped in minipage

I'm trying to prevent items in description environment from breaking by wrapping each one in a minipage. (Perhaps that's not a good approach, but let's put that aside if we can for my question.) When ...
3
votes
2answers
36 views

How to reduce the vertical distance before a \begin{addmargin}

I have the following texts. My problem is that between my text and myothertext a distance is inserted that is about the equal of a full line. As I want to avoid this but not sure as to how I can do ...
1
vote
2answers
30 views

Reduce space between two tabu environments

I have a document with two longtabu tables. The problem is that there's too much vertical space between them (as marked by the red line): I'd like to reduce this space whilst otherwise preserving ...
1
vote
1answer
29 views

how remove space before algorithm (caused by layout)

i'm not an expert of latex and i can't solve the following problem. I have a long algorithm and this occupies an entire column, the problem is that compiler add a blank space before it, and i need ...
0
votes
1answer
29 views

Spacing issue in equation reference [duplicate]

When I type (Eq.\ref{eq.15}) The output is Obviously the spacing between "Eq." and "1.15" is too closed. But when I type (adding a space) (Eq. \ref{eq.15}) The output is: Obviously the spacing ...
0
votes
1answer
32 views

Uneven space between lines at original column break when balancing pages using revtex4-1

This is (nearly!) a duplicate to Uneven space between bibliography entries using flushend. In this (clearly exaggerated, but you get the point) MWE, the spacing in the last three lines in the right ...
2
votes
2answers
82 views

Adjust space between two columns

I am trying to create columns in beamer presentation. I am using the following code: \begin{frame} \frametitle{Deep Learning and Autoencoders} The visualization derives from the weight normalization ...
0
votes
0answers
52 views

I can't figure out how to ccreate a complex latex figure with lots of formulas

For practice, I am trying to emulate a figure from a paper I found. It looks like this: Right now, what I have looks like this: I think I managed to get the two blocks on the top right, using ...
3
votes
1answer
30 views

Vertical space between “Proof” and start of proof

How can you add vertical space between the word "Proof" and the actual start of the proof? This question shows how to start the proof on a new line, but I can't add space properly.
14
votes
2answers
3k views

How to control the space allotted for a signature in letter documents?

I want to type my name in block capitals and in italics in the space highlighted in the blackbox, but I can't seem to be able to. Everything else is fine with the cover letter, I just need to type my ...
3
votes
2answers
44 views

Nested quotes have smaller and smaller paragraph skips

I'm using Memoir and \abnormalparskip{<length>}. Every time I start a new \begin{quote}, the space between paragraphs gets smaller and smaller until it's basically gone. Here is a minimal test ...
3
votes
1answer
333 views

How to customize a brief table of contents generated from tocloft and shorttoc into one page?

I am writing a book with over 20 chapters using LaTex. I generated the detailed Table of Contents with the package tocloft, and a brief TOC with shorttoc. Right now, the brief TOC has two pages but I ...
2
votes
1answer
42 views

Remove space between left bracket and square root [duplicate]

Sorry for my bad English. I have a problem with removing the space between left bracket and multiple root square. I use code \documentclass{article} \usepackage{amsmath} ...
14
votes
3answers
582 views

Is it possible to redefine the white space command?

I would like to replace the white space (full space entered by pressing "space" any number of times on the keyboard or by hitting enter) by something else. Let's say, a rule of the same width. Is ...
0
votes
0answers
47 views

how to reduce a gap between words in a title of bibliography and a dot over the bibliography numbering

I am writing a scientific paper using IEEE journal Latex template \documentclass{IEEEtran} \usepackage{comment} \usepackage{color} \usepackage{float} \usepackage{graphicx} \usepackage{ulem} ...
2
votes
1answer
3k views

How can I add line feed after itemize?

How can I add line feed after itemize? Some vertical spacing would be even better, I think. My document: \documentclass[12pt,a4paper]{mwrep} \usepackage{enumitem} \setlist[itemize]{label=--} ...
0
votes
1answer
37 views

Conditional branch with \ifinner and Spacing in higher derivative (2 independent questions) [duplicate]

I made some macros shown below, which outputs ordinary/partial derivative. I was checking whether they work as I expected, and found that \dif{y}{x} expands to \tfrac{\difd y}{\difd x} in align ...
5
votes
1answer
168 views

Adjust vertical spacing for any combination of text, equations and custom environments

Edit I completely rewrote the question thanks to @pluton's comment. I have a couples of documents which have to fit on two pages. Some of them are short, so nothing needs to be done. But for some ...
13
votes
4answers
17k views

Global setting of spacing between items in itemize environment for beamer

I'd like to modify the spacing between items in the itemize environment. This post shows how to modify a specific itemize environment (\addtolength{\itemsep}{0.5\baselineskip}). However, I'd like to ...
7
votes
2answers
6k views

Spacing before and after with \newtheoremstyle

I want to define my own theorem style for examples. I want them to be numbered the same way as theorems (so Example 2.4 follows Theorem 2.3); I want them to be formatted exactly the same as theorems ...
3
votes
1answer
47 views

How do I write up a new command to implement '\quad \text{} \quad'?

I would like to abbreviate \quad \text{} \quad. I tried \newcommand{\wtext}{\quad \text{} \quad} but the output proved me wrong. So I wonder how to properly achieve this?
0
votes
0answers
36 views

Bad vertical spacing in simple fraction

How can I even out the spacing in these fractions? I have tried \frac vs \dfrac along with \strut and I get similar results: \[ \bar{x} = \frac{0+1+2+5}{4} = \frac{8}{4} = 2 \] \[ \bar{x} = ...
0
votes
1answer
33 views

Align first letters of chapter titles in Table of Contents

I am trying to create table of contents for starred version of chapter. My goal is to align all first letters of the titles to the same position. I was able to achieve that separately for single digit ...
2
votes
1answer
57 views

Vertical spacing in enumitem list

Consider the following example. Code \documentclass{article} \usepackage{enumitem} % New line after \item (http://tex.stackexchange.com/a/29518/15874) \makeatletter \def\myitem{% \@ifnextchar[ ...
1
vote
1answer
36 views

indentation within the text

While preparing a report, I want to write the text (below the equations) similar to attached figure. I tried using \begin{align},\, commands (even after knowing that the align command is using for ...
1
vote
2answers
177 views

“Sign here” dotted line and names below [duplicate]

I'm trying to create a dotted line with a name below. It should be relatively simple. However, the dots appear indented with respect to the Name. They should be in line. I have tried \hspace{} before ...
1
vote
2answers
57 views

Reduce white space above chapter title, and reduce space between title and text, for unnumbered chapters

How can I reduce the white space above the chapter heading? How can I reduce the space between the heading and the text? I want to be able to do this for selected chapters only, or after a given ...
10
votes
2answers
7k views

How do I write $\sim$ approximately with the correct spacing?

I would like to use the symbol $\sim$ as "approximately". e.g: \documentclass{minimal} \begin{document} There are $\sim 10^{80}$ atoms in the universe. \end{document} I think that I need to declare ...
3
votes
1answer
49 views

How to fix my title slide (problem with aligning text)

\documentclass[12pt]{beamer} \usetheme{Rochester} \title{my title which is very long so pushes the date off the page} \author[Author]{my name} \institute[university ]{\normalsize university ...
1
vote
1answer
65 views

Removing white space in text after the image moves

I'm writing a thesis and have about 80 figures. The text leads up to the figure with a single line space: ....text text text text. \begin{figure}[h] .... \end{figure} More text, and so on... My ...
1
vote
1answer
43 views

How to reduce space between words in gsm package

I used gms package (a special package of AMS, provided for their Graduate Studies in Maths serie) to write a math book. I got a problem with space, and then I want to narrow a line by reduce the ...
0
votes
2answers
45 views

How to insert a text box with controllable margin

I want to insert a text box with controllable margin. Specially, how to format the following text as the following Figure? And how to set the space? Currently, I use \noindent\fbox{ ...
0
votes
1answer
71 views

Multicols{3} problem - how to reduce space between columns?

I want to reduce the space between columns in multicols I use \setlength{\columnsep}{<space>} but it reduces the space between the 2nd column and the 3rd column only How to make it reduce the ...
0
votes
1answer
30 views

How declare numeric constants with space without ~

I have written a document with some data that I must update at last minute. So I have created some newcommand: %-------------------------------- % Insert data here \newcommand{\srskm}{12,253~} ...
1
vote
0answers
43 views

How do I place table below plot so that category matches axis ranges?

Here is something that I'm trying to do is to align my table with x-axis category or range so that column below the x range is corresponding of the data So As example is shown, I want to create ...
4
votes
1answer
142 views

Remove empty space before chapter contents

I’m struggling to replicate a corporate design in (Lua)LaTeX. The problems arise with a very special treatment of the page head (and margins): The header is very large with a page number in the top ...
3
votes
4answers
160 views

Underset spacing

I've got the following equation \begin{align*} \hat{\boldsymbol{\eta}} = \underset{(\boldsymbol{\beta}_{1}, \ldots, \boldsymbol{\beta}_{d}, \boldsymbol{\theta}) \in B_{1} \times \cdots \times ...
11
votes
3answers
3k views

Why doesn't lineno number a paragraph when it is followed by an “align” equation environment without a space?

lineno skips the line numbering in this case: \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{lineno} \linenumbers \begin{document} Lorem ipsum dolor sit amet, consectetur adipiscing ...