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

7
votes
1answer
498 views

How can I make a “really zero-height” box?

In my document I need to show some labels in draft mode. But they should have zero height and depth (the purpose is not to affect on resulting text: all exept labels should be the same in both draft ...
3
votes
4answers
238 views

Auto-indent the second line of a paragraph

When working with numbered lists with long content, I get outputs like this: However, I would like to produce an output like where "z" and "planes" are aligned with the word "Giving". Using ...
2
votes
1answer
74 views

How to prevent \vec from making \left(\vec{f}\right) ugly?

It seems like \vec makes \left( and \right) expand in an ugly fashion: \begin{align*} \ g(\vec{f}) \ g\!\left(\dot{f}\right) \ g\!\left(\dot{\vec{f}}\right) \ g\!\left(\vec{f}\right) ...
0
votes
1answer
60 views

How to adding vertical spacing in \raggedright or \RaggedRight

I usually use \\, \par, \newline, etc. to add whitespace to LaTeX. However, when I use raggedRight, the pdflatex spits out a ton of messages saying "There's no line here to end." Ultimately, all ...
1
vote
0answers
58 views

Space in fraction

See distance from/to fractionline...How can i lower little bit \partial W? \documentclass[10pt,a4paper]{letter} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{...
7
votes
2answers
78 views

Vertical space different at top of first page

I've been working on a document with extra vertical space at the top of some pages and noticed that in certain contexts the spacing comes out differently on the first page compared with later pages. ...
3
votes
1answer
51 views

Reducing space between items of reference

I want to reduce the space between items of my references. After reading many related posts and trying various methods, I was still unable to do that :( I use BibTeX and here is my code (the ...
3
votes
1answer
58 views

How can I make “headings” inside a figure?

I have a figure that is built up of multiple parts and I want each part to have a "title". How can I do that in a way that looks nice? Right now I am just using \textbf for the "titles" and everything ...
0
votes
1answer
70 views

Extra inter-line spacing in a tabular environment [duplicate]

I have a table that is typeset using a tabular environment. (I want to keep it in a tabular environment.) The contents of each row is an expression involving radicals. The inter-line spacing is ...
1
vote
1answer
43 views

Alignment in \addchap left and right at the same time

I'm using scrbook and want to accomplish the following: The chapter (unnumbered) shall be devided in two parts - one ragged left and bold and - one ragged right and normal font Now I get a strange ...
3
votes
2answers
51 views

Wider space between minus sign and number when surrounded by verts

When I write the following: \documentclass[12pt,a4paper]{article} \begin{document} $$ -1, -2, -3, \dots \| -1 \|, \| -2 \|, \| -3 \| $$ \end{document} It produces the following: As you can ...
3
votes
2answers
34 views

Regulation of the distance between the first verse and the previous paragraph using `verse`

The insertion of poetry in a given prose text using the ambient verse introduces a distance between the first verse and the previous paragraph, as well as between the last verse and the following ...
2
votes
1answer
46 views

Font size too in first row big for table

I'm trying to make a good looking table for my project but when I'm trying to make the font size larger on the first row of the table they get too big and parts of the letters crosses the top line. I ...
4
votes
1answer
48 views

Typeset siunitx-like percentage value in math mode

I'd like to typeset "10 %" with exactly the same spacing between 10 and % as in \SI{10}{\percent}. For some reason I'd rather not use siunitx in this particular instance. How do I replicate the ...
1
vote
2answers
53 views

spacing between rows in a table

I have a table here. But it does not look right. First thing is regarding the spacing between rows. I need to increase the spacing. Second thing is at row 25, the number somehow exceeds the column. ...
5
votes
4answers
174 views

Spacing after \vtop

There is insufficient spacing between the lines in the MWE, made using an \hbox filled with two \vtop boxes. \parindent=0pt \newdimen\linewidth \linewidth=4in \newdimen\colsep \colsep=1em \...
3
votes
2answers
122 views

Double spaced document with exceptions

I have to set the line space among my thesis double. So I use the following commands at preamble \setlength{\parindent}{1em} \setlength{\parskip}{1em} \renewcommand{\baselinestretch}{1.8} However, ...
2
votes
3answers
184 views

Vertical spacing in KOMA-script

How can I change vertical spacing (and indents) of \paragraph, list and list item elements in KOMA-script article class? Is there some canonical way to do this? I've tried to use titlesec package, ...
0
votes
0answers
31 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
67 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
58 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
110 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: \usepackage[...
2
votes
1answer
48 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
55 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
41 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} \begin{...
1
vote
1answer
54 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
57 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
51 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} \begin{...
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
32 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
29 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
82 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
55 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 ...
7
votes
2answers
489 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
60 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
116 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{ circled/.style={draw,circle,...
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
45 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
182 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
93 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$ & $d^C$...
0
votes
2answers
126 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
42 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
95 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
60 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
76 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
41 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
71 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
51 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
50 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} \...