{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
2answers
529 views

Whitespace surrounding elements in a matrix

I was just wondering, when writing a matrix in the following way \begin{pmatrix} \begin{array}{cc} -5 & 3 \\ 6 & -4 \end{array} \end{pmatrix} I get quite a lot of ...
1
vote
1answer
96 views

Spacing problem at chapter end

For most of the chapters in my document, LaTeX lays out the text wonderfully. The text goes right down to the page number. However, for a few of the chapters, I have the problem pictured above. ...
5
votes
2answers
2k views

How to get align or similar equation environment to use the whole line instead of centering around the equality sign

I'm creating a Beamer presentation in which a line in the equation environment should fill the whole screen and should not only be centered arround the equality sign. I think this looks nicer and is ...
2
votes
2answers
23k views

add white space to manually indent line

I'm trying to add space to a line so that it lines up with the text above it which is bulletpointed. If I add \indent to the second line it indents the above line too so that it is all shifted over. ...
4
votes
2answers
660 views

Wrapping text within align

I am writing Flashcards for the upcomming finals. To describe the equations I use the align* environment like this: \begin{align*} x_+ &: \text{ Molenbruch von Enzymen, bei denen ...
7
votes
3answers
519 views

Space before right bracket

I have created this formula using mathptmx as font \begin{equation} BER = Q\left(\sqrt{\dfrac{2E_{b}^{\text{RX}}}{N_{0}}}\right) \end{equation} getting the above result: I'm not totally ...
11
votes
4answers
273 views

Bump right-aligned text to next line iff no room

I a chat discussion it was suggested that \hspace*{\fill} (with a space before it to allow for a line break) was sufficient to always get the text following aligned to the right. And indeed, it is ...
4
votes
1answer
124 views

Grouping Negates Effect of \centering

Why does the use of \begingroup, \endgroup negate the effect of centering in the MWE? The MWE below yields a left aligned figure (not desired), with subsequent text on the left (desired): But if ...
12
votes
1answer
208 views

Extra space added after equation when it is coloured

For some reason space is added after my equation when I colour it. This does not happen if the colour is added to text. Is there a simple way to prevent this from happening, like a global setting (I ...
10
votes
3answers
574 views

How to extend the text under summation symbol without making extra space

I want to get the following: I tried the following \[ a(i,k) \leftarrow \min\Big\{0, r(k,k) + \sum_{i^{'} | i^{'}\notin \{i,k\}}\max\{0, r(i{'},k)\}\Big\} \] and got How can I make the ...
8
votes
1answer
1k views

How to make a perfect colour filled threeparttable table?

A three line table is used for my report. I want to fill lightgray background color to the whole table, but there is white space between rows, how to eliminate this issue? Without \addlinespace: ...
8
votes
3answers
1k views

How can I make \titlespacing not omit the top spacing?

In a multicols*{2} environment for 12pt linehight text, I use \titlespacing*{\subsection}{0pt}{12pt}{12pt} To create exactly 12pt of space before and after subsections. Together with a line height ...
4
votes
1answer
159 views

Make a postfix operator with suppressable spacing?

I would like to create a postfix unary operator that normally leaves \medmuskip between the operand and postfix operator. It's easy enough to do this using, for example, ...
0
votes
1answer
119 views

Rule between environments (no spacing!)

I want to place a rule between two centered tabulars like the following example. But I am not able to control the correct spacing of 2mm in between the rule. Can somebody maybe explain :-) what should ...
7
votes
2answers
573 views

Problem of different spaces between subscripts and letters in math mode

In math mode, the spaces between subscripts and letters are not always the same, but depending on the preceding letters! See e.g. (different colours indicate different spaces) Is it the feature of ...
3
votes
2answers
284 views

Leftidx problem: upper indices have different height

When using the leftidx package to create the same upper index on both sides of \Bbbk[G], the indices have different height and look ugly. Minimal example: \documentclass{article} \usepackage{leftidx} ...
8
votes
1answer
384 views

Why do we have something like “-3.5ex \@plus‎ -‎1ex \@minus‎ -‎.2ex” instead of a fixed value? [duplicate]

Possible Duplicate: What is glue stretching? In the book class, we have the following. ‎\newcommand\section{\@startsection {section}{1}{\z@}%‎ ‎{-3.5ex ...
5
votes
3answers
139 views

What is the easiest way to see default “spaces” with respect to “ex” and “em” in the book class?

What is the easiest way to see default "spaces" with respect to "ex" and "em" in the book class? I mean by spaces all horizontal and vertical spaces such as: the space before and after the ...
1
vote
1answer
754 views

Bad formatting of Bibliography

I tried two ways to format a bibliography with lots of URL's: Without 'RaggedRight' With 'RaggedRight' In the first case, there are wide spaces between words in some items, that a really not ...
3
votes
1answer
1k views

Why doesn't the \closing center in my letter?

If I pdflatex the below Latex, then "Kind regards," and "Sandra" doesn't get centred. If the letter is two pages long, then it does. Question How do I get this centred when my letter is just one ...
25
votes
2answers
1k views

Two rules directly under each other

I'm trying to make two rules of different length (fatness) directly under each other, something like: -------------------- ==================== Where = is a fatter line than -. The vertical space ...
2
votes
1answer
112 views

Text won't left align above list

I'm very new to LaTeX and have been using a template from my brother's resume to do up my own, and I have everything exactly how I want it except for the fact that I can't get the text on a line above ...
3
votes
1answer
3k views

Tex Cover Letter Doesn't Display “Sincerely, My Name”

I'm using the cover letter example from this website: http://www.matthewjmiller.net/howtos/customized-cover-letter-scripts/ What it should look like and the source of the tex is on that website, I ...
3
votes
1answer
147 views

equivalent \addlinespace command for table columns?

I just discovered the Latex command \addlinespace which increases the whitespace between the rows in a table. I was wondering if there is a command like that to increase the whitespace between the ...
5
votes
3answers
88 views

Help with generalized list

I want to create an environment which contains a list to typeset auto-numbered thesis (just like one does with math formulae). I would like the spacing to be something like this: This is the code ...
8
votes
1answer
620 views

Make \addlinespace globally to work with all tables

I found that useful command \addlinespace[3pt] to create an extra white border around the rows. See example: \documentclass[a4paper]{report} \usepackage{multirow,booktabs} \usepackage[table]{xcolor} ...
3
votes
1answer
1k views

Remove vertical space between two chapters in table of contents in latex

I want to remove vertical space between two chapters in table of contents. I can remove the vertical space between chapter and a section by using \usepackage[titles,subfigure]{tocloft} ...
4
votes
1answer
982 views

Vertical spacing between sidenotes (and, between sidenotes and captions) in tufte-book

Within from LyX, using various sidenotes in a tufte-latex-book environment, along with float figures, results sometimes in an overlapping of sidenotes and caption(s). For example, two sidenotes ...
20
votes
1answer
24k views

\hspace vs. \hspace*

After trying both commands, I noticed that \hspace* opposite to \hspace will insert a space over the end of the line. So I was wondering if someone could explain how that works and also when to use ...
3
votes
3answers
385 views

Special spaces in LaTeX

I need special hard spaces for example i need 0.33em, 0.5em, 1em, hair etc. spaces. Also i need a normal spaces (word spacing) in 0.25em to 0.75em. How to do it? Sorry for bad English.
11
votes
1answer
257 views

Declare acronyms and abbreviations to automatically correct spaces after periods?

If I understand correctly, (La)TeX assumes that a period after a lower-case letter ends a sentence while a period after an upper-case letter does not. Unfortunately, my documents usually contain ...
6
votes
1answer
1k views

enumitem revert nolistsep

With enumitem package, I have used \setlist{nolistsep} for some part of the document. For another part of my document, I need to revert the separation in the list entries to its default. I wonder ...
6
votes
3answers
595 views

Putting a coloured background behind text without adding whitespace

Consider this: I want to be able to highlight text like this without adding space around it -- so each word in the first line should line up with the corresponding word in the second line. (I know ...
4
votes
0answers
770 views

How do you put spaces in \url? [duplicate]

Possible Duplicate: Obey spaces with URL package (path command) How to prevent \url from removing the spaces in a path? The url I want to put in \url{} is ...
13
votes
1answer
4k views

Two consecutive spaces

When using some other editors, when you type two spaces with your space bar, two spaces are effectively displayed. This is not the case in LaTeX (btw, that's not the case on these websites ;) ). My ...
5
votes
2answers
2k views

Can I change the paragraph spacing in LyX UI?

In LyX user interface, there is a good-enough large space between a chapter text and the next paragraph, but between the paragraphs there is no space and it makes harder to see the structure of what I ...
10
votes
1answer
324 views

Controlling space after heading when doublespaced

I'm writing a document with both doublespaced and singlespaced sections. I'm using the setspace package to do the doublespacing and the koma-script report class for the document. In the double spaced ...
0
votes
0answers
130 views

Empty line between paragraphs [duplicate]

Possible Duplicate: Is there an easy way to have my whole document with a space between paragraphs rather than indentation? Adding an empty line between paragraphs does not work, \newline ...
3
votes
1answer
109 views

Spacing between align and list environement

How can I reduce the spacing between the align and the list environment? \begin{align*} {_C}\vOm=( 0, 0, 0 ) \end{align*} <=== THERE IS STILL SOME SPACING inbetween? ...
8
votes
1answer
654 views

The line spacing in the list of algorithms

This is my code: \documentclass[12pt,a4paper]{book} \usepackage[T1]{fontenc} \usepackage[chapter]{algorithm} \renewcommand{\baselinestretch}{1.5} \begin{document} \begin{spacing}{1.2} ...
7
votes
2answers
587 views

Making mdframed paragraph behave like normal paragraphs in terms of spacing

I'm using the mdframed package to highlight a paragraph with rules on both sides. However, the mdframed-environment creates a box for the paragraph inside of it and so the spacing around it is ...
4
votes
1answer
123 views

Too much space at end of chapter

When writing my thesis in LyX, I encountered the following problem: After finishing a chapter, I wrote \break in order for LyX to start writing the next section in the next page. The problem is that ...
6
votes
1answer
174 views

How to obtain the space left to bottom of page

Since it is impossible to use \vfill inside a framebox, is there any way of getting the current height position of text? I want to fill in a framebox so that it uses all the space left on a page, ...
8
votes
1answer
339 views

Custom environment with fancy text indentation

I am trying to typeset text by breaking it into smaller cameos, numbering each cameo, and putting a heading. See below for an example of how I want the typeset text to look. The code with which I ...
14
votes
1answer
1k views

Math mode: Spacing after Superscripts

Math mode adds extra horizontal space after superscripts. I have listed various options for removing it in the MWE. I would like to know if there is any recommended way of doing this in amsmath. I ...
7
votes
1answer
575 views

Translating custom \section format to titlesec

I have some custom \section formatting with a horizontal rule, and I'm trying to DRY out my code by using titlesec to define default formatting options. But I can't exactly reproduce what happens when ...
3
votes
3answers
141 views

Distance between related, but separate math terms

Say I have two equations that I would like to have in display math, a_1 = 1 and a_2 = 2. If I just put them like this, they do not look separated enough: \[ a_1 = 1, a_2 = 2 \] I usually use ,\quad ...
2
votes
1answer
307 views

Table of Contents inconsistent spacing

My Table of Contents shows different spacing between lines when a chapter has sections and subsections and when it doesn't. I need the same spacing above ad below every chapter while keeping sections ...
5
votes
1answer
529 views

Space length between the chapter number and the chapter title

How can I learn the horizontal distance between the chapter number and the chapter title both in ToC and the body text where I use \documentclass[12pt,reqno]{book}. Which keys hold these values?
7
votes
2answers
123 views

How do I add a line automatically before a listing

I am using the listings package and I want to automatically add a blank line before every listing. Any idea on how to do this?