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

4
votes
2answers
5k views

How to reduce space in begining of itemize?

I am writing one list after one text. Following is list items: 1. Pen 2. Hen 3. Ten I need to reduce spacing between text (Following is list items:) and beginning of list (Pen). How can ...
2
votes
0answers
39 views

Is there a way to control vertical spacing between minipage elements?

I have a large (7-chapter) document on linear algebra. In a part of the document where I do row/column operations, I have put the matrices in a figure within a minipage. I am getting a lot of vertical ...
6
votes
1answer
127 views

“$a, b$” vs. “$a$, $b$”

I have two questions. Would you use Let $x, y$ and $z$ be real numbers. or Let $x$, $y$ and $z$ be real numbers. ? Which one is better? Would you use For $x, y\in\mathbb R$ we have ... or For $x$, ...
4
votes
2answers
583 views

Strange spacing in inline listings (listings package)

I am using the listings package to typeset some code. I've defined a lstlisting environment, based upon the standard Haskell environment, and added a number of literate replacements, including: ...
2
votes
0answers
30 views

How can I remove the extra vertical space above the first equation in a cases environment?

This problem seems to be related to the AIAA class that I have to use to submit the paper that I am writing, as I cannot reproduce it with other classes. The latest Aiaa.cls class file can be ...
1
vote
2answers
65 views

\vfill does't work after upgrading texmaker

I recently upgrade MikTex and TexMaker to the latest version (2.9.5840 and 4.5 respectively) for another reason. the problem is that the command \null \vfill before and after column content won't ...
0
votes
2answers
15 views

interword spacing latex in a table

I have a table with words separated by commas. Latex puts additional spaces in between these words which look a bit odd. \begin{table*}[!tb] \begin{center} \begin{scriptsize} \begin{tabular} ...
3
votes
1answer
1k views

Adding floating space between main text and footnotes

I have to typeset a text with several widows and lots of footnotes. The editor told me to leave an additional blank line between the main text and the footnotes and to use this space to print the ...
1
vote
0answers
31 views

how to reduce the space in a equation in latex?

general, the equation in latex looks like: But in some paper, the equation looks more compact, like There is less space among the equation. How to make such a configuration?
5
votes
2answers
85 views

Suppressing whitespace at end of environment

This must have been answered before, but I'm afraid I can't find it. I'm defining an environment and I want the end block to be formatted immediately after the end of the contents, without ...
2
votes
0answers
20 views

Two chapters on same page in memoir, with twocolumn

This is a follow-up to the question two chapters on same page in memoir \documentclass[oneside,landscape,twocolumn]{memoir} \usepackage{lipsum} \begin{document} \chapter*{Test 1} This is a test ...
2
votes
1answer
58 views

exsheets: how to use skip-below with custom heading

I am using exsheets for making problem sets and worksheets. I made a custom heading, but now skip-below key does not work: \documentclass{article} \usepackage{exsheets} ...
2
votes
1answer
39 views

Template - Arbitrary Spacing in Lyx Formal Lab Report

I've been using Lyx and an MIT Template that is available from the link below (also including a minimal example) to write my Formal Lab reports for my undergraduate Physics labs. I (and my tutors) ...
4
votes
2answers
136 views

\topsep, \itemsep, \partopsep and \parsep - what does each of them mean (and what about the bottom)?

The enumitem package documentation says: \topsep, \itemsep, \partopsep, \parsep? Look it up, n00bz. L0L Ok, it doesn't quite say that, but - can I get a diagram with what each of these means? ...
40
votes
7answers
56k views

Inserting a small vertical space in a table

Is there a way that I can insert a small space in a table? When I use a superscript, the number touches the \hline. \documentclass[9pt,letterpaper]{article} \usepackage{helvet} ...
3
votes
2answers
44 views

\ref is adding blank spaces to the label name depending on position in the paragraph

Ok, this is a pretty strange problem based on a workaround suggested here: Reference name of description list item in LaTeX I am trying to hyperlink/refer back to descriptions by their name in this ...
1
vote
0answers
39 views

spaces in references in pdf view

I am using book document when I view my work on pdf, some of references looks like this with spaces. how to avoid them? Can I change "bibliography" to "references"?
3
votes
1answer
248 views

Wrong spacing with empheq

Consider the following example: \documentclass{article} \usepackage{mathtools} \usepackage[amsmath]{empheq} \usepackage{xcolor} \definecolor{shadecolor}{cmyk}{0,0,0.45,0} ...
7
votes
4answers
247 views

Typesetting an integer interval

I am trying to typeset a integer interval like this: [0..m-1] However, the space between 0,., and m - 1 are too small. Is there a package to improve this?
0
votes
0answers
20 views

Remove vertical spacing above References Label

I am using biblatex to format my bibliography. I would like to remove the vertical space that is inserted above the "References" in the references section. I wish to have the label as the top of ...
1
vote
1answer
24 views

Remove top space from lstlisting inside tabular

I have the following problem. lstlisting seems to add an extra space before and after the code. Is there a way to remove it ? I would like to remove the blank spaces before and after the code : ...
2
votes
1answer
28 views

Turn off the effect that the space between words are expanded to fit the columns

Currently I have the my draft of poster as below: \documentclass[a2]{sciposter} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{enumitem} \usepackage{amssymb} \usepackage{graphicx} ...
5
votes
2answers
8k views

changing spacing of caption

I'm creating a figure using LyX. I would like the spacing of the caption below the figure to be 1.3. Is there an easy way to accomplish this? Setting the spacing to 1.3 for the entire document using ...
1
vote
1answer
38 views

Have new lines after paragraphs but not after headings in LaTex?

I wish to follow the convention of marking paragraph breaks with a line break as opposed to the LaTex default of an indent. However I do not wish to have a new line after section headings. Previous ...
1
vote
0answers
48 views

Distance between header and text

I'm having a big problem with my Latex document. I've never used Latex before but till now it's going fine. So here is my problem: the distance between the text and the headline is too large, but ...
44
votes
3answers
16k views

What is the difference between \vskip and \vspace?

I found myself writing: \vspace 1 \baselineskip and then when it's not compiling changing without thinking to: \vskip 1 \baselineskip but what is the difference? Perhaps knowing this will make ...
3
votes
0answers
39 views

Remove spaces between various elements

I am trying to remove the space between the elements that I show in the following image. The space I talk about is denoted by the gray line (that line is not produced by LaTeX, it is merely a way to ...
2
votes
1answer
108 views

Can't justify text

Let's say we have following code: \documentclass[a4paper,14pt,final,draft]{extreport} \usepackage[left=3cm,top=2.0cm,right=1.5cm,bottom=2.7cm]{geometry} \usepackage{changepage} ...
1
vote
1answer
29 views

Vertical space between chapter number and chapter title using sectsty

I am using sectsty to format my chapter titles, but I want the vertical space between Chapter # and Chapter Title gone, and I can't find a way to do it without losing the styles applied by sectsty. ...
26
votes
2answers
31k views

Confusion: \onehalfspacing vs. \spacing vs. Word vs. the world?

I have to write a paper with the requirement to use "1.5 line spacing" 12pt Times New Roman. Naturally I used \usepackage{setspace} \begin{document} \onehalfspacing Lorem ipsum… So far so good. But ...
2
votes
2answers
40 views

Vertical space before new section on new page begins

How can you create vertical space before a new section on a new page begins? Using vspace or bigskip does not work. Example: \vspace{5mm} \section{Section 1} Some text \subsection{Section 1.1}
2
votes
1answer
34 views

Spacing around CJK text with ucharclasses package

I'm modifying a .sty file that's used with documents that includes Latin, Arabic and Japanese text intermingled without specific markup. I am using xeCJK to identify the Japanese text and ...
22
votes
7answers
17k views

How should imaginary numbers be typeset?

I've never had to typeset complex numbers before and I'm finding that I'm uncertain about what best-practices are. My question is really about typesetting just i. (Hence my title referring to ...
3
votes
0answers
34 views

Defining an 'optional' description list environment

I'm trying to create a variant of the description environment that coerces any present description to be on the next line. I can't seem to get the vertical spacing right when there's no description ...
4
votes
2answers
198 views

What's the space between paragraphs?

\documentclass{article} \usepackage{lipsum} \begin{document} \paragraph{First paragraph} \lipsum[4] \paragraph{Second paragraph} \lipsum[4] \end{document} What is, and what sets, the space between ...
1
vote
1answer
45 views

Different margins for odd and even number pages

According to my institute guidelines Ii have to do the following in my thesis: Left margin: 1.25" (to ensure sufficient space for binding), Right mar- gin: 1" Caution: For front and back ...
4
votes
2answers
62 views

avoid space after thousands separator in math mode

In math mode, LaTeX inserts a small space after a comma. This looks nice in $a,b,c$, for example. But I don't like the way it looks when using a comma as a thousands separator, e.g., $x = 100,000$. ...
1
vote
2answers
41 views

minipage 6 figures avoid mixing figures horizontally

I looked deeply in here and I couldn't solve my problem. I have 6 figures which I want to separate each other with enough space for avoiding mix it. I have 2 figures, below another two and below ...
2
votes
2answers
32 views

Indentation and lacking space when using gb4e with minipages

The normal behavior of a gb4e example environment is seen in (1) in the MWE below. But when I want two examples side by side, using minipage, the example is indented, and there is no space before or ...
3
votes
2answers
48 views

Spacing is off with convenience command

I want to define a command called \ksp{} that looks like this: \newcommand*{\ksp}{K_{sp}} However, this function gives an error if it's not invoked in math mode. See example here. ...
1
vote
1answer
20 views

Spacing of \tilde{\otimes} [duplicate]

How can I make the spacing of the two symbols, \otimes and \tildeotimes, identical? \documentclass{article} \usepackage{amsmath} \DeclareMathOperator{\tildeotimes}{\tilde{\otimes}} \begin{document} ...
2
votes
1answer
79 views

Modify arraystretch for a single row in table

I need to display fractions within a table and it requires to set \renewcommand{\arraystretch}{2.3} The problem is that not all rows contain fractions, and in this cases the white space below and ...
2
votes
2answers
47 views

How to add a space between a title and the dotted leader?

I need to put some horizontal space between a title (of chapter, section, subsection, etc.) and the dotted leader, as it is marked in the given figure by red rectangles. The space should be ...
4
votes
4answers
53 views

Vertical spacing of \underset and other tweaks

please consider following code: \documentclass[a4paper]{article} \usepackage{ngerman} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amssymb} ...
3
votes
1answer
165 views

Why does declaring a command in-document produce horizontal space?

I'm really confused about why there is some extra horizontal space that appears before the second "Test" on my second line: \documentclass[12pt]{article} \usepackage[english]{babel} \begin{document} ...
1
vote
0answers
30 views

Avoid empty line after quote environment when last element in footnote

Is there any way to redefined the quote environment (or the list environment in general) so that it does not issue an empty new line. I need to have block quotes in footnotes and the extra empty line ...
3
votes
1answer
36 views

Left-right spacing of parentheses with DeclarePairedDelimiter

I know that \big and similar commands cause an incorrect spacing between the delimiter and their contents, and they should be replaced with \bigl and so on. I've defined some commands with ...
1
vote
0answers
45 views

LyX Spacing after = sign in \align

My question is the same as this question, but in the context of LyX. The solution for that question was to put the & before = sign. I manually implemented this tweak in LyX, by changing the raw ...
1
vote
1answer
62 views

How to change spaces before and after sections and chapters

I am using this documentclass with option [twoside,12pt] and this MWE: \documentclass[twoside,12pt]{Classes/aesm_edspia1} \usepackage[latin1]{inputenc} \usepackage[english,french]{babel} ...
1
vote
2answers
28 views

Remove subsubsection numbering and remove the blank space when underlining

My question refers to removing the blank space in front of the subsubsections when disabling the numbering. Concerning the way to disable the subsubsections numbering, there is no problem, this is ...