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

8
votes
2answers
1k views

How to shorten \hline in a matrix

I indicate blocks in a matrix using \hline: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*} \begin{bmatrix} a & b\\ \hline c & d ...
3
votes
1answer
252 views

tabu: adding struts before and after cell content

I am using tabu package to easily typeset my tables. So, there are few problems that i have solved: vertical spacing (from cell content to borders) is less than line height and line depth, so i use ...
5
votes
1answer
389 views

Handling margins and indent in itemize

I have looked around the site for a while and haven't found a specific answer about this particular problem: I am typing up a paper and was asked to separate different sections with headings. I would ...
1
vote
1answer
60 views

Preventing space instead of linebreaks

How to prevent space at a line break? a b c produces: a b c I want abc.
2
votes
1answer
269 views

how to use tags or symbols in latex? [duplicate]

I am writing report using Latex software but I got stuck while using tags. consider a statement( for example): for any A ∈ Γ, B ⊆ A implies B ∈ Γ. The traditional (t, n) threshold secret sharing ...
2
votes
1answer
121 views

Unnecessary space after \end{spacing}

This is my latex file: \documentclass[11pt]{article} \usepackage{setspace} \begin{document} \section*{Section 1} \begin{spacing}{1.5} Unnecessary\\ space\\ after\\ ...
4
votes
1answer
1k views

Remove sidebar in Beamer

With the following code, I tried to remove the sidebar: \documentclass[18pt]{beamer} \mode<presentation> { \usetheme{Hannover} \usecolortheme{dolphin} \usepackage{lipsum} ...
1
vote
0answers
114 views

How to define vertical spacing around subcaptions

I want to increase the spacing between my (sub)figures and their respective captions. Unfortunately, all things tried (skip or margin options in e.g. \captionsetup, vspaces) didn't have any effect. ...
9
votes
0answers
161 views

XeTeX font spacing awfulness [duplicate]

When using the Lato font (e.g., Google fonts or Lato fonts), I get completely overlapping text: When I view the PDF in Google Chrome's PDF viewer, it looks fine on the screen: but it still ...
3
votes
1answer
483 views

Defining the space between section number and section title

I am trying to define the spacing between the section name and section title in latex to get something like this . How can I do it? Also how can I define the margin and all at the first page to get ...
0
votes
1answer
572 views

Column Spacing using esttab & longtable

I am outputting regression results from Stata to Latex. The problem is that, no matter how many columns I have, the spacing between the last column and the rest of the table is wider than other ...
3
votes
1answer
184 views

Disabling “glue” and other vertical space adjustment?

I'm making a template that I can use for my résumé and CV which uses a horizontal line underneath section titles. I'm running into a problem where, when a page is nearly full, then the vertical ...
6
votes
3answers
150 views

How do I stop a table where the margin falls, rather than using the textwidth command?

I've been having some problems with nesting tables in the tabularx environment. Basically, I would like each table to stop at the margin. Ordinarily, I would achieve this with \textwidth as the width ...
4
votes
1answer
175 views

Indent chapter titles in memoir

I am using memoir with section as chapter style. I want to indent chapter style to the right. Right now I have: Chapter 1 Text of first paragraph (first line) Text of first paragraph (rest of ...
8
votes
2answers
149 views

Letter with ' (and correct spacing)

I am struggling with a problem I can't even name properly: I'm writing an article about an object A as well as its slightly different variant A'. I am wondering what character/symbol and/or spacing ...
5
votes
2answers
1k views

LaTeX moderncv classic: Change the width of the title

I'm looking to change the width of the \title environment in the moderncv template. As it is now, the maximum width of the title under my name goes all the way to the "address"/information box on the ...
3
votes
1answer
151 views

vertical space beneath last item across pages in a multicols environment

I am using the multicols environment to create a simple worksheet with exercises in two columns. Everything works wonderfully, except if the exercises span multiple pages, the multicols environment ...
2
votes
0answers
46 views

Mirror-image \colon? [duplicate]

I would like to typeset something like f \colon X \leftrightarrows \mcolon g where \mcolon is a mirror-image of \colon as regards spacing. How would I do this?
0
votes
0answers
29 views

Unnumbered section in TOC [duplicate]

I am trying to have an unnumbered sections from appendix in my table of contents. I know I can get rid of number with a \section*{foo}, but when I do this, the number just hides from the TOC and ...
8
votes
2answers
17k views

Writing mod in congruence problems without leading space

I have been writing $a \equiv r (\mod n)$ but this puts a space between the ( and mod. For example, r ( mod n ) instead of r (mod n). So, how do you write r (\mod n) without that space? What ...
4
votes
1answer
95 views

Combining dashes from babel with xspace

Assume we have some mathematical object that is used in formulae as well as in "natural" language (in my case, complexity classes). When defining a macro for such an object, I like to use \xspace so ...
3
votes
1answer
389 views

Should I use \\ to end a line or a paragraph? [duplicate]

I am somewhat confused as to how to approach the following issue. In my thesis is have a lot of text and want to group this is using line breaks and paragraphs. Up to now I have been using \\ to ...
2
votes
0answers
45 views

How to modify horizontal spacing between equation elements globally, or for a single equation? [duplicate]

I've noticed that by default, the horizontal spacing between equation elements is pretty tight, and that I can use commands for horizontal spacing between elements in an equation. Still, I don't ...
2
votes
1answer
172 views

Left aligning cell contents in a table

If you compile the code given below, then the row which states "Average Pre-Authentication Response Time" is justified with a lot of spacing between the words. I want it to be left-aligned. Also, if a ...
9
votes
1answer
168 views

How to increase the vertical space surrounding mathematical equations?

How can I, in a systematic way, increase the vertical space surrounding mathematical equations? \documentclass{article} \RequirePackage[ansinew]{inputenc} \usepackage{amsmath} \begin{document} Ah, ...
8
votes
3answers
462 views

“Fill in the missing words” needs line breaking before a \phantom{word}, and a list of removed words

Apologies for the very long title. I'm writing a "fill in the missing words" document. I have made a makro \fjern{} ("remove" in Norwegian) which underlines the argument and places it in a phantom ...
3
votes
1answer
144 views

Vertical space in interaction with figure/center environment

I misused the figure environment to insert some vertical space and now try to replace it by center. However, the two environments behave differently when I use a scaled box as content of the ...
4
votes
1answer
138 views

Spacing around brackets in slanted or italics

From time to time I use brackets as an equivalent of respectively, like in the following sentence: A semigroup [monoid, group] $S$ is commutative if, for all $x, y \in S$, $xy = yx$. Now, I would ...
6
votes
2answers
168 views

Space between floats and text after special declaration of font size for scrbook

Our designer suggested a font size of 10.5. We passed this as an option to the srcbook class and everything seems to work fine except the space between main text and floats. With fontsize=10.5 much ...
4
votes
1answer
2k views

Space just before minipage

This is my .tex file: \documentclass{article} \usepackage{framed} \setlength{\FrameSep}{3pt} \begin{document} \noindent{}The king\\ \begin{minipage}{0.9\textwidth} is dead, ...
6
votes
1answer
216 views

MetaPost: Non-uniform periodic tessellations

Overview Looking to create backgrounds that have regular polygons aligned to a grid. Problem The space between the polygons varies, even though the radius for the polygons has been calculated in ...
3
votes
1answer
138 views

Too little space between wrapped text and the line below it

Consider the following table example, the text in the second row is wrapped. \documentclass[a4paper]{article} \usepackage[english]{babel} \usepackage[utf8x]{inputenc} \usepackage{tabu} ...
7
votes
1answer
169 views

How to expand equation to textwidth?

I have an equation like so: \begin{equation} \label{eq:helper_params} \tilde{B} = \begin{bmatrix} CB\\B \end{bmatrix}, \tilde{I} = \begin{bmatrix} I_p\\0 \end{bmatrix}, \tilde{Q} = ...
2
votes
1answer
224 views

vertical margins inside a frame

How can I change the vertical margins inside a frame. For example, how do I remove the space shown in the figure below:
19
votes
2answers
378 views

How do I define a new punctuation mark?

Here's is some code for a variant exclamation point despite its various short comings (such as non-scalability) \documentclass[12pt]{article} \usepackage{tikz} \usetikzlibrary{calc} ...
6
votes
1answer
4k views

TikZ: remove margin, padding, border around nodes containing images

I want to create a simple figure where images are connected with arrows. Here is what I did: \begin{tikzpicture} \node[](A) {\includegraphics[width=0.2\textwidth]{a}}; \node[right=1mm of A](B) ...
3
votes
1answer
129 views

Store and reuse distance between items

I am creating a table in which I have cells containing itemize environments. For a given row I have either zero or two cells containing this environment and working together. However the text for the ...
4
votes
2answers
122 views

Prevent spacing in sub or super scripts with eulervm

When typing formulas to explain physics, sometimes non spaced text in super or subscripts is helpful. $q_{heat}$ To prevent spacing in subscripts, I often used \textit in math mode: ...
0
votes
1answer
215 views

Adding in extra vertical space with a new bullet point (using easylist)

I'm using easylist to take notes and so far have really liked it. The only big problem I'm running into is it just doesn't quite look good sometimes because if you have multiple lines of text, then ...
2
votes
1answer
302 views

Increase distance after examples created with gb4e

The package gb4e is used to create linguistic examples. I have noted, however, that the vertical space set before an exe environment in gb4e is larger than the space set after it. I don't really see ...
15
votes
1answer
330 views

Eating space before a command

If I have a \newcommand*{\foo}{foo} it will 'eat' space after it. Is there a way to tell it to eat space before, so that the result of e.g. bar \foo bar would be 'barfoobar'?
3
votes
1answer
769 views

Permutation cycle notation

How do you nicely denote a permutation via cycle notation? Ie, the cycle \[1 \mapsto 2 \mapsto 3 \mapsto 1\] can be done by something like: \[ (1\quad2\quad3) \] using \quad, but that seems ...
8
votes
3answers
287 views

Reduce space between 'genfrac' and indices

\documentclass{article} \usepackage{amsmath}% http://ctan.org/pkg/amsmath \DeclareRobustCommand{\eulerian}{\genfrac<>{0pt}{}} \begin{document} % Source: ...
1
vote
1answer
78 views

How to change the spacing for chapters which are not numbered

I would like to make a custom TOC so that: Introduction I.CHAPTER II. CHAPTER 1. Section 2. Section III. CHAPTER List of figures List of tables Notes The main idea is that chapters ...
2
votes
3answers
1k views

How to I reduce space before and after HRule?

I have a command: \newcommand{\HRule}{\rule{\linewidth}{0.2mm}} and it produces a thickness I am happy with but the space before and after the line is far too large and taking up much of my ...
6
votes
1answer
768 views

Tight horizontal lines around a block of text

I wish to create a block of text with tight horizontal lines above and below, e.g. This is a paragraph. The following example seems to produce more space between the paragraph and the horizontal ...
5
votes
1answer
127 views

How to get proper spacing when typesetting an expression such as $f\left(\frac{y}{2}\right)

I am trying to typeset the value of a function $f$ for $x = \frac{y}{2}$ (or something other which requires more vertical space). To get properly sized parentheses I tried: f\left(\frac{y}{2}\right) ...
3
votes
1answer
2k views

Adding row spacing to a longtable?

I want to add some extra spacing between the rows of my longtable - but not for every table of the entire document, just one of them. I've tried to use the \\[dist] mechanism, but with surprising (at ...
3
votes
1answer
367 views

Using \parbox in Beamer has unwanted effects

I want to change from an itemized list on one slide to an image on the next slide. I tried this with a \parbox with overlay specifications. It works ok when the inner position of the parbox is set to ...
13
votes
1answer
109 views

Long command name for horizontal space ~

The short command \, has (more or less) the long command equivalent \thinspace. - What is the long command for the unbreakable space ~? Also, is there a long command for a space which is *just a ...