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

3
votes
1answer
27 views

Set linespread in algorithm environements

My algorithms are really complicated and I want to \onehalfspace their lines to make them more readable, while keeping the rest of the document singlespace. How can I do this so it will automatically ...
24
votes
6answers
705 views

It doesn't hyphenate words ending with “—”

UPDATE Well. After a while, I decided to see again about this “problem”, and just discovered that in pdfLaTeX, using \usepackage[utf8]{inputenc} and the — (the unicode —, not the ligature ---) it ...
7
votes
2answers
1k views

Indent Theorem like \hangindent, but for multiple paragraphs

I would like to create a theorem style which indents the theorem exactly like a \hangindent would do, expect that the indention should continue for all paragraphs of the theorem. For example: ...
0
votes
0answers
37 views

Messed up margins in memoir-class

I am using \documentclass[a4paper,oneside,11pt,leqno,openbib]{memoir} to write my thesis which has 5 chapters and each chapter has different sections. My problem is, every time I start a section, the ...
2
votes
0answers
23 views

Vertical spacing in `\newcommand`s [duplicate]

Consider the piece of code. \documentclass{article} \newcommand{\hello}{Hello world!\vspace{12pt}Hello again!} \begin{document} \hello \end{document} This produces the following output. ...
1
vote
1answer
37 views

Spacing on a specific formula

Latex is formatting this formula all squished together. How do I format it properly? $\varphi' \gets \left\{ C_n \setminus C_i \middle| C_n \textrm{does not interfere with} C_i\right\}$ EDIT: ...
4
votes
2answers
42 views

Handling spacing between multiple lines of a title text

For my thesis I have a very long title and it spans three lines. The spacing between the lines are coming out to be very less. I tried adding `\smallskip'. This has improved the spacing between first ...
2
votes
1answer
35 views

Increasing horizontal space between chapter number and chapter title in scrreprt

I would like to change the distance between the chapter number and the chapter text. A poor way to do it would be renew \thechapter, but this affects section titles too. Other answers seem to suggest ...
3
votes
1answer
52 views

Large gap in typesetting before group of displayed equations

I'm new to LaTeX; my lab professor said it would be great to have our first lab typed up nicely. I plan on doing research in my future, so I figured learning LaTeX early would be an excellent ...
2
votes
1answer
39 views

Placing text between horizontal lines generated by \rule: equispacing

How to fix the vertical spacing between the text and the lines? In the following MWE the vertical space between the text and the line below it is much greater than the vertical space between the text ...
0
votes
0answers
183 views

Tabular derivations with bussproofs [duplicate]

I am trying to typeset derivations in the CCG grammar formalism. These are just derivations as in type theory, but with words as the initial premises. I've tried to typeset them using the bussproof ...
1
vote
1answer
42 views

Add image, after long space in begin environment [Title changeable]

MWE \documentclass[a4paper,twocolumn,12pt]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[turkish]{babel} \usepackage[listings,skins,breakable]{tcolorbox} ...
1
vote
1answer
42 views

Long space in italic format

MWE, \documentclass[a4paper,11pt]{article} \usepackage[utf8]{inputenc} \begin{document} 120 kHz ’e \textit{120 kHz ’e} \end{document} and output, Sometimes this red line is getting longer. Why ...
2
votes
2answers
2k views

Reduce spacing between lines

I have alternating lines and texts. Example may be a sign-in sheet where there is a line on which a person sign and his name is written immediately below this line. The following code generate the ...
2
votes
1answer
57 views

siunitx table with separate-uncertainty is too wide

I'm using a tabular environment with the siunitx type S and the package option separate-uncertainty, like in the example below. In the resulting document, the columns are too wide, and the 3rd column ...
3
votes
1answer
56 views

Footnotes: Large space between text and number in justified text

I have inserted a footnote in a justified column. However, the space between the text and superscript is huge. How do I keep the superscript number next to the text?
0
votes
0answers
24 views

SIG Proceedings template, figure*, clearpage and section spacing

When using either of the two SIG Proceedings templates (normal or compact), the height of a figure* influences the spacing before a \section, \subsection or \subsubsection. Minimal example: ...
9
votes
1answer
124 views

Why do coordinates in Bezier curves add to the padding in TikZ?

I have a little tikzpicture drawn with a Bezier curve, that I use in the text. I noticed that it has an unusual amount of horizontal white space, more than e.g. a circle: \documentclass{article} ...
19
votes
3answers
27k views

Remove space after figure and before text

I have a figure in my paper (I am using IEEEtran package). After this figure there exists a space between the figure and the text. How can I reduce the size of this white space. To be specific the ...
1
vote
0answers
87 views

Squeezing a paper into a page limit - with IEEEtran

I'm working on this draft for a submission to some conference which - woe is me - uses IEEEtran. I could rant about that class for days, but never mind right now... the point is, I need to squeeze ...
1
vote
0answers
46 views

List Of Listings Overlapping Text

I'm attempting to generate a list of listings for my dissertation. The university doesn't have a standard LaTeX template, but there is a pretty good one generated sometime ago that does the trick. The ...
3
votes
1answer
63 views

Decreasing space between title and body in scrartcl

Here is a MWE using scrartcl. If I just have a title, and no subtitle, author, date, or any of that other stuff, is there a clean way I can decrease the space between the title and the body, here ...
1
vote
0answers
40 views

XeLaTex error with spaces in name MiKTeX 2.9 update [closed]

Since the last MiKTeX 2.9 update, I am unable to compile .tex files with spaces in names, e.g. "file with spaces in name.tex" Any minimal file, as \documentclass[12pt, twoside]{report} ...
4
votes
1answer
64 views

Extra vertical space when using align and no numbering

I think I've found a small bug in the way the showonlyrefs=true option in mathtools works. Consider this semi-minimal example: \documentclass[12pt]{article} \usepackage[utf8]{inputenc} % UFT8 - ...
0
votes
1answer
33 views

Titlepage and vertical space

I need to reduce the vertical space up the title of the only front page. I'm using the book class and specifically the titlepage enviroment. \vspace{-2.0cm} doesn't work... Any suggestion?
11
votes
4answers
1k views

Annoying space before the first item in an enumeration which starts a theorem

Consider the following example: \documentclass{article} \newtheorem{Theorem}{Theorem} \begin{document} \begin{Theorem} On the other hand, this one has only one claim. \end{Theorem} \begin{Theorem} ...
0
votes
0answers
59 views

Same caption space

I want to have the same vertical spacing between figures/listings and their captions. Currently, the space between figure and caption is shorter than that between listing and caption. What should I ...
2
votes
1answer
42 views

Remove vertical space around align equations

Formed with the alignment occurs in the equation some gaps. I tried to indicate with red arrows. This is without gaps like I mentioned with the ellipse how can i do? Sorry for my English. ...
1
vote
1answer
85 views

Auto spacing in math mode

I have a long line of math expression, which is as follows: $verylongword verylongword verylongword verylongword verylongword verylongword verylongword verylongword verylongword verylongword ...
3
votes
1answer
31 views

Label variables of equation using tikz without using itemize - followup question

I have tried to implement a solution I found here for my problem. I do however hit a bit of a snatch. If I just add some text above and below of the example, the graph and the text get on top of each ...
0
votes
0answers
14 views

How to position two figures side by side with custom alignment? [duplicate]

I would like to put two figures side by side such that they are centered on the page and have an arbitrary (given) space between them. Although there are a lot of similar questions here, none has ...
164
votes
1answer
194k views

What commands are there for horizontal spacing?

I know that \: in LaTeX produces a space when rendered. Are there any alternatives, because my LaTeX renderer doesn't support \: (it renders it as text), and there is no help / FAQ that I can find.
3
votes
1answer
51 views

Remove unwanted vertical space before and after environment in footnote

I am trying to make my own environment for (left-)indented blocks inside hanging footnotes, in which the normal quote environment doesn't work, it's left indent being the same as that of the indent of ...
2
votes
1answer
29 views

Remove vertical space after new chapters in listofalgorithms

When generating list of algorithms, the command \listofalgorithms automatically inserts a 10pt vspace after the last algorithm caption in a chapter. I need to remove this vertical space in such a way ...
0
votes
0answers
24 views

Disable vertical spacing in Clean Thesis [duplicate]

When I use the article class in latex and I have a definition, followed by a huge align environment, latex produces the following output I am using the thesis template ...
3
votes
1answer
39 views

Document paragraph spacing changes

I'm a bit confused about the paragraph spacing in my large document. To begin with my document has spaces between the paragraphs, which looks nice. However about halfway through it changes to no ...
2
votes
2answers
1k views

How to reduce space after authors block? (ieeetran)

I'm using \documentclass[10pt, conference, compsocconf, letterpaper]{IEEEtran}. How can I reduce the space between the authors block (with their affiliations) and the text? Right now I have: Paper ...
5
votes
1answer
74 views

TikZ Spacing Between Arrow and Node

I'm attempting to draw a simple diagram comprised of three nodes arrange in a triangle. I'm having a difficulty with getting the arrows to "connect" to one of the nodes, there's a small space between ...
48
votes
3answers
5k views

\newcommand and spacing

How can I define my own shorthand command, but making sure that the spacing afterwards is correct? \newcommand{\abc}{\textsc{abc}} produces 'ABC,' but has the problem 'ABCmoretexthere' (i.e. no space ...
1
vote
1answer
37 views

Remove vertical space before and after align with enumerate / make multicols align to the top

MWE: \documentclass{article} \usepackage[top=3cm,bottom=3cm,left=3.2cm,right=3.2cm,headsep=10pt,a4paper]{geometry} \usepackage{amsmath,amsfonts,amssymb,amsthm} \usepackage{enumitem} ...
4
votes
1answer
39 views

Remove spacing from \part?

Currently, trying to reduce the line spacing when I use the \part command. Ideally, I am currently trying to achieve the following result below: Part I: Project Scope With the surrounding padding ...
3
votes
1answer
70 views

Letterspace all caps in document

How does one letterspace all uppercase letters in a document? I can achieve this for small caps with fontspec: \usepackage{fontspec} \setmainfont[SmallCapsFeatures = {LetterSpace = 7.5}]{Warnock ...
0
votes
0answers
21 views

Trying to get the spacing right after an expanded sequence [duplicate]

I've defined \newcommand{\foo}[1]{\textbf{#1}} \newcommand{\bar}{\foo{Bar}} Now, when I compile \bar tender --- tend your \bar. I would like to get Bar tender - tend your Bar. but what I ...
1
vote
1answer
245 views

Big algorithm causing big mess

I am writing a document in which I needed to include the description of the Number Field Sieve (NFS) algorithm as mentioned in the book by Crandall and Pomerance. The algorithm's pseudo code is ...
2
votes
1answer
74 views

Reduce inter-word spacing in run-in \paragraph style

I'm quite new to Latex and slowly writing/making my book (electrical measurements, some signal processing, that stuff), but sometimes I get trapped in probably trivial issues. My first writing is with ...
2
votes
2answers
84 views

mdframed does not attempt to stretch or shrink vertical spaces within its content

When the content in an mdframed environment is overfull, mdframed will rather break the page instead of iteratively shrinking the vertical length up to the specified minimum. The following output ...
5
votes
2answers
71 views

How to mimic spacing around \bullet with \DeclareMathOperator?

I'm trying to define \conjunction by means of \textbullet instead of \bullet, since the latter looks too big in logical formulas. How can I make the spacing around \conjunction to behave like the ...
23
votes
7answers
2k views

No space following macro without argument

With a macro such as: \def\naive{na\"{\i}ve} I find that the space which I would hope to follow it, is absent. So, with the \naive approach I get the naïveapproach in the output. How do I ...
19
votes
2answers
113k views

Adding tabs or creating my own command

I have a problem adding tabs and I can't use a tabular environments (like tabular or tabbing) because I can't mix it with enumerate environments. Is there a way to add a simgle tab like in any text ...
19
votes
4answers
8k views

What is the right way to use the `\!` spacing command?

I have noticed that I hardly ever use the \negthinspace command \!. This is because I don't know how to use it properly (I do use other spacing commands quite a bit, because I can better understand ...