{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
1answer
49 views

Large space on page after inserting tikz figures wrapped in minipage

I'm trying to insert four tikz figures inline with minipages, but there's an unexpected space between the figures and the title. This happens regardless of how many figures I put or how large the ...
2
votes
1answer
52 views

Multiple Space Hacks Generate More Space

This is a follow-up to a recent post: Creating removable comment command without extra space. I'm trying to do a common thing: make a removable comment command so contributors to a document can leave ...
4
votes
2answers
47 views

Why is \smallskip so big after display math?

In the below MWE, why is \smallskip adding so much extra space after display math? (And how do I fix it?) \documentclass[12pt]{article} \usepackage[english]{babel} \usepackage{amsmath} ...
1
vote
1answer
19 views

Removal of gaps in expresssion

I have an expression in a body of LaTeX: $O(\mid\emph{P}\mid+\mid\emph{Q}\mid+\sqrt{nk})$ Which produces: This is correct but is it possible to remove the gaps between the characters at all?
4
votes
1answer
29 views

Trouble with the size of parentheses and spacing in an `align` environment when using the `mleftright` package

I am having some trouble with the mleftright package. For a particular math paper that I am working on, I created a macro that would allow me to write functional notations whose parentheses ...
3
votes
1answer
24 views

Is there a \flushbottom-like command that may also decrease vertical spacing?

I am currently working on my thesis, which (hopefully) will once be finished and will then have to be printed. I would like the bottom lines of all pages to be aligned, like \flushbottom does. The ...
3
votes
1answer
70 views

Titlesec space issue

\documentclass[11pt,]{article} \usepackage{titlesec} \titleformat{\section}[leftmargin]{\normalfont \titlerule*[.6em]{\bfseries.}% \vspace{6pt}% \sffamily\bfseries\filleft} {\thesection}{.5em}{} ...
2
votes
1answer
47 views

Space lost after \newcommand [duplicate]

I use the initialism "CE" a lot in my thesis, both in an out of equations. I find that the letters are too far spaced for my liking when used in an equation, so I use the \! command to reduce the ...
6
votes
2answers
470 views

Is it generally a good idea to insert some glue in \vspace?

I have seen a lot of posts like this one \parskip stretches more than expected that use some glue inside \vspace. I wonder if it is good idea to define a new \vspace command with some glue to replace ...
3
votes
1answer
55 views

Creating removable comment command without extra space

I'm trying to create a command we can use for comments in our document. During development, we want the comments to appear; for production, we want them to disappear. This is a common enough problem ...
2
votes
2answers
80 views

How to remove vertical space between two tikz matrix rows?

I have the following matrix in TikZ: Here's the code: \documentclass{article} \usepackage{tikz,amssymb} \usetikzlibrary{matrix,calc,fit} \begin{document} \tikzset{ ...
1
vote
0answers
9 views

Unwanted space with label in subfigure (subcaption) environment [duplicate]

I am tiling images in latex using subcaption's subfigure environment. And because I'm taking things very precisely, I tried to calculate exact spacings, so everything aligns nicely, as in the ...
1
vote
1answer
36 views

Variant irregular size grid layout

I am currently preparing for an exam to which we are allowed to bring 1 sheet of paper. Naturally, I want to fit as much information as possible on it. The information that I need are a bunch of ...
3
votes
2answers
172 views

Drawbacks of csname method to avoid spaces after command

I had a similar problem as this one: Space after LaTeX commands My first attempt was something like this: \newcommand{\satip}{SAT\textgreater IP} This leads to the known Problem, that spaces after ...
2
votes
4answers
76 views

Space between caption and table in TeX

I have this code \begin{table}[h] \caption{Numerical example geometry} \label{tab_numerical_geo} \begin{center} \scalebox{0.9}{ \begin{tabular}{|c|c|c|c|c|c|c|} \hline $d^A$ & $d^B$ & ...
0
votes
2answers
73 views

wrapfigure at the bottom - no white space below wrapfigure

I want to place some figures at the left or right side of my book resulting into a reduced column width for the text. So I am using wrapfigure environment with number of narrow lines of 40. By this ...
2
votes
0answers
32 views

Big space between longtable/longtabu and the preceeding section header

If I add a longtable or longtabu environment directly after a \section command a very big space is set between the header and the table. In case of the second example where some text is in between ...
2
votes
1answer
91 views

How to snap a float to grid

I have a two-column document with some column-spanning floats. The problem is that floats essentially reduce the page size when present, and the remaining page size does not necessarily correspond to ...
2
votes
1answer
55 views

dramatist remove spacing between speech items

I'm typesetting a drama script using the dramatist package, which defines the drama environment, which is basically a list environment, and each speech entry is a list item. Since I need to print the ...
5
votes
1answer
72 views

Inconsistent spacing of \dots and … with amsmath

\documentclass{article} \usepackage[utf8]{inputenc} \DeclareUnicodeCharacter{2026}{\dots}% … \usepackage{amsmath} \begin{document} \[\left\{a \dots \right\}\] \[\left\{a … \right\}\] \end{document} ...
0
votes
0answers
22 views

Spacing between custom command and subsequent text [duplicate]

I have defined a custom command for the name of my project; e.g. \newcommand{\projectname}{Gizmo}. When I used the command in my document, I've found that I need to place a ~ after the command in ...
2
votes
0answers
36 views

How do I increase the white space between a section's title and the page header?

I would like something like this: I'm using article document class and package geometry, but I think I'm missing some definitions for the sections. I'm new at this and would like to write my masters ...
1
vote
2answers
53 views

Adding some horizontal space to an itemize environment where \tab is used

I would like to add some horizontal space to this itemize environment. (Note that I use \tab). I tried using [itemindent=4cm] and \addtolength{\itemindent}{4cm} but the result is this: How can I ...
5
votes
1answer
43 views

Itemize inside environment gives double space after

Some definitions and theorems end with an itemize. When I use pure amsthm this looks good, but when I use thmtools+amsthm it looks ugly with too much space below the theorem. I do not see what I have ...
4
votes
1answer
47 views

Extra Space Before align* and Not Display Equation

There is an extra space between the section and the align* parts of the page. This does not occur if the equation is simply enclosed in \[...\]. \documentclass{article} \usepackage[fleqn]{amsmath} ...
1
vote
1answer
62 views

Space between sectioning header and tabular environment

I have this situation on Latex. How can I eliminate this space between the \section{PESTA} and the tabular? \subsection{PEST+A} \begin{tabular}{ |p{5cm}|p{10cm}| } \hline ...
2
votes
0answers
51 views

How can I customize headings in book-class?

I am writing my master thesis in the book-class in Latex and need some help to format the headings in the document. I have a Word-template from the University which have specific formats of the ...
3
votes
1answer
67 views

Stretched character spacing with url citation

When printing a citation with a long URL lacking good break points, in a wide text block, the character spacing gets stretched out. \documentclass{article} ...
2
votes
1answer
96 views

Beamer: space between frame title and text

I would like the space between the frame title and the text to be the same in all pages. I tried \addtobeamertemplate{frametitle}{\vspace*{2cm}}{\vspace*{-2cm}} but as you can see in the image below, ...
2
votes
1answer
55 views

Horizontal line without vertical gap

I'm trying to create a underlined heading like this, without space between John Smith and the underline I tried this command, but it adds a vertical gap between the name and the underline ...
0
votes
1answer
37 views

Changing the page number/footnote number font?

I think I've been using this code: \renewcommand{\footnotesize}{\fontfamily{phv}\selectfont\scriptsize} It changes the font of the footnote but not the number of the footnote itself. Any way to ...
4
votes
1answer
57 views

Controlling horizontal spacing in math mode in text

I am using the most recent release of TexLive on my MacBook Air. I am using the packages amsmath, amssymb, scalefnt, graphicx,and subcaption in addition to a journal's package. Like a previous ...
1
vote
2answers
48 views

I want a double space between my paragraphs

I want double spacing between my lines so I used this: \doublespacing Now I also want a single double space between my paragraphs, what should I do in that case? If I didn't change anything in my ...
3
votes
1answer
43 views

Spurious whitespace with algpseudocode and noend

I'm currently typesetting some pseudocode and was up to now pretty happy with the algorithmicx package and the algpseudocode command set. However, I would now like to use the noend option to omit end ...
5
votes
2answers
89 views

tikz bounding box / cropping: too much space for curves

I have a problem with TikZ's auto-cropping/auto-calculating the bounding box for a tikzpicture. Look at the following example: \documentclass{article} \usepackage{tikz} \begin{document} Lorem ipsum ...
3
votes
2answers
55 views

How to have an empty TikZ picture (with absolutely placed content) be ignored for spacing?

I want to use a TikZ element to place absolutely on the page. Unfortunately, no matter what I do, the TikZ picture is treated like a character, which causes it to be treated like a paragraph when not ...
6
votes
1answer
317 views

Space after semicolon

\documentclass{beamer} \begin{document} \begin{frame}{Mutual Information} \begin{align} I(X;Y)&=H\left( {X} \right) -H\left( {X\mid Y} \right)\\ I(X{;}Y)&=H\left( {X} \right) -H\left( {X\mid ...
1
vote
0answers
27 views

How to change spacing between the section heading and the first line of the body of the setion

I need increase the spacing between the section heading and the first line of the section to 2 double spaces. Please see the picture attached.The marked spacing is what i need to increase. Please ...
6
votes
2answers
87 views

\DeclareMathOperator: wrong space when the operator is followed by a binary operator

In his answer to the question Shortcuts and/or user-defined shortcuts for math symbols in LaTeX?, it is advised to denote the gradient with \DeclareMathOperator{\grad}{grad}. But this is suboptimal ...
4
votes
2answers
36 views

Space around escaped equations in listings?

I am using listings with mathescape=true to include some typeset output. However, I would like a little white space around that output. Currently I have \lstset{language=, keepspaces=true, ...
2
votes
1answer
52 views

How to change space before and after chapter / section etc

I would like to have the following spacing: \titlespacing*{\chapter}{0pt}{50pt}{30pt} \titlespacing*{\section}{0pt}{13.2pt}{*0} \titlespacing*{\subsection}{0pt}{13.2pt}{*0} ...
5
votes
2answers
128 views

Comment-like environments and spacing

I often need to "turn off" environments. One way I do this is below in my minimal working example: \documentclass{article} \newenvironment{nothing}{\setbox0\vbox\bgroup} {\egroup} \begin{document} ...
0
votes
1answer
37 views

How to insert flexible float/text separation in two-column mode

To avoid ugly extra white space in the text, i want a flexible glue between the float and the text in two-column mode. In one-column mode, I can add extra glue using \textfloatsep, and I hoped I could ...
1
vote
1answer
54 views

Variable separation between items in a list environment

Is it possible to define a list environment where each item has a user-specified amount of space below it? I'm looking for something to the effect of \begin{myitemize} \item[1in] One ...
0
votes
0answers
55 views

How to limit the width of \halign?

The glues inside my \halign rows don't get reduced when they should. The contents of \halign behave as if they had infinite horizontal space. This is the source code for the first table (it's very ...
1
vote
1answer
60 views

Bad spacing around $\in$ symbol before math calligraphhic letter

I'm using a math calligraphic font for some set U, and when I tried to state that X is an element of U $X\in\mathcal{U}$, I obtained a horrible result. Below is the code, with some other examples for ...
0
votes
2answers
42 views

Add spaces to the start of lines in a blockquote

I'm trying to typeset a poem in a \blockquote, but the spaces at the start of each line disappear when I make a PDF. How do I allow the spaces to remain at the beginning of each line of the poem? ...
1
vote
1answer
41 views

How do I remove extra spacing on a new page following an align*?

I have the following code: %... \begin{proof} Let $P=(x_P, y_P, z_P)$ be a fixed point on the plane, $R$ a fixed length, and $X=(x,y,z)$ a variable point such that $XP=R$. As $X$ varies, it is ...
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 ...