{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
0answers
30 views

Avoiding orphan parts of a command

I have a command that is used to print stuff with a certain structure: \newcommand{\miracle}[2]{ \textbf{#1} #2 \bigskip } How can I ensure that the stuff printed by the ...
1
vote
1answer
55 views

How do I remove white space at the top of my inserted matlab code?

I've Solved This Question: use \vspace{-1cm} I'm using this package: \usepackage[autolinebreaks]{mcode} I want to put a subtitle for my Matlab code and then have it follow on immediately after ...
1
vote
2answers
50 views

Incorrect space in tabular around an array

I have searched a little in the forum, and I can't find a satisfying solution to my problem. I want to create a tabular in which I compare two different situations, and a line of the comparison is an ...
2
votes
1answer
101 views

Line spacing between equation and text

To reduce space between displayed equations and between text and equation, I have added the following command in LaTeX preamble in my standard article document in LyX: ...
2
votes
1answer
47 views

How to delete “space” between author1 and comma in citation

I created my bibliography style (author-year) in "custom-bib" using natbib. Then I replace and with , (between author1 and author2) using \providecommand{\BIBand}{,}. As a result, I received the ...
3
votes
1answer
52 views

Extra word spacing in the caption of a figure

I cannot figure out why there is extra word spacing in the caption. Possibly because of subfigures? Thanks for any help. \begin{figure}[H] \centering \begin{subfigure}[h]{.45\textwidth} \centering ...
2
votes
1answer
38 views

Vertical Space Between Environments

im trying to get rid of the vertical space between environments, for example: \documentclass[12pt,a4paper]{article} \usepackage[spanish]{babel} \usepackage{ragged2e} \begin{document} ...
1
vote
1answer
50 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
56 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
48 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
20 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
30 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
27 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
74 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
52 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
476 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
58 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
97 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
42 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
177 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
85 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
97 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
39 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
93 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
56 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
74 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
40 views

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

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
59 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
49 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
48 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
66 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
69 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
154 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
56 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
40 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
60 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
53 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
47 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
101 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
57 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
446 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
28 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
98 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
61 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
39 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 ...