{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
0answers
54 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
73 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} \usepackage[margin=1in,paperheight=3in]{...
2
votes
1answer
201 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
59 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
45 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
65 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
61 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
51 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
109 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 ...
4
votes
2answers
60 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
580 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
30 views

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

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
115 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
39 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
68 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} \titlespacing*{\...
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
45 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
66 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 \item[....
0
votes
0answers
61 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
70 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
45 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
44 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
106 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
37 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
47 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
80 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
177 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
36 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
31 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
52 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
115 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
37 views

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

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
85 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 \begin{...
0
votes
1answer
37 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} \end{...
6
votes
2answers
254 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
225 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
44 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
51 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
53 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
130 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
43 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} \usepackage[subfigure]...
2
votes
1answer
72 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
122 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
42 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} \command[\mathrel]{...
2
votes
1answer
76 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 you ...
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
48 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
43 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 (...