{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
136 views

Make a command start new line in a list if it is not currently at the end of another list

I am trying to typeset a structured proof as demonstrated by Leslie Lamport in his paper How to Write a 21st Century Proof. In particular, I am trying to typeset Figure 3 (shown below). My code and ...
2
votes
0answers
31 views

TOC: Distance between title and text [duplicate]

Original Question In scrreprt the distance between title and content of a TOC is larger than the distance between a regular chapter title and the text body. Does this make sense in terms of ...
7
votes
1answer
86 views

Fixate document length to n pages

I often find myself squeezing documents to meet ensure the final document is below some set length. I often do this by cutting whitespace, enlarging pages by a line height, etc., and of course by ...
7
votes
2answers
6k views

vertical spacing between subfloat

I am using subfig package. Is it possible to reduce the spacing between two sufloats one below the other? I couldn't find anything in the documentation.
2
votes
2answers
51 views

Regarding groupnotation and spacing [duplicate]

(G, *) is certainly an acceptable notation for a group. However, I prefer the notation . As you can see, the distance between the letters and brackets are uncomfortably long. Is there a way to shorten ...
3
votes
2answers
571 views

Minipage make different space between tables

I have the following problem. I use a minipage to show two table next to each other. As you can see in the figure the first two rows of the tables are okay, but the thrid has a problem with the ...
3
votes
1answer
1k views

Figure overlaps Table

When placing a table then a figure, the figure overlaps half the table.. Here is what the tex looks like: \begin{table}[h] \newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{...
3
votes
2answers
214 views

Getting less space in “$V$,”

If I think there's too much space between the $V$ and the , in $V$,, what's the best way to reduce it? It seems safe to use \kern and not safe to use \hspace, since if you use \hspace the line might ...
7
votes
1answer
345 views

Automatic line breaking and \hfill

I work on a CV and I would like to write some content (e.g. conference information) on the left side of the page and a date on the right side of the page. Because the content on the left side might ...
4
votes
1answer
320 views

Adding Non-breaking space after single character in text mode

Is it possible in LaTeX (2e) to create macro or other processing command that will add non-breaking space after single character in text mode? Example: A new example here will add a "tilde", after ...
1
vote
0answers
248 views

Change paragraph spacing without messing up the rest of the document

If I use \setlength{\parskip}{1cm plus4mm minus3mm} Or change the lengh of parskip in anyway, it not only changes the space between paragraphs, but also the space before and after equations, the ...
3
votes
1answer
51 views

Why does inserting a space with {} only work some of the time?

I was just trying to customize my footnotes and noticed some strange (to me, at least) behavior. Usually, if I'm inserting a one-character white space I'll simply insert a pair of empty curly braces ...
3
votes
0answers
123 views

How can I obtain the same vertical space between the chapter number and the chapter title? [closed]

How can I obtain the same vertical space between the chapter number and the chapter title for all chapters? The space between the chapter number and the chapter title reduces when the title goes on ...
9
votes
2answers
322 views

Defining the minimal amount of space around an operator

How do I define the minimal (and possibly maximal) amount of horizontal space around an operator? Something similar to wrapping the operator with \,s. Here's a picture: And a minimal example (...
5
votes
2answers
1k views

Uneven space between bibliography entries using flushend

I'm having problems with uneven spacing between bibliography entries. As seen in the attached screenshot, the space between entry 4 and 5 is much smaller than the rest of the distances. This makes the ...
13
votes
1answer
165 views

How can we detect that we are right after display math mode? (for vertical spacing)

I need a "\smartmedskip" feature/macro in plain TeX which is in usual identical to \medskip, however, if we are right after display math mode, then it should be just "disabled", i.e. it should then ...
6
votes
1answer
916 views

Fixing vertical spacing after \captionof as a custom caption

I'm trying to get a single caption after two columns of code. For two columns, parcolumns is the only method I've found that allows a page break in the middle and is my current favorite. Using ...
11
votes
1answer
128 views

How to automatically put a space after the first parenthesis in f(x) g(y)?

When I write \documentclass{article} \usepackage{mathtools} \DeclarePairedDelimiter\p{\lparen}{\rparen} \begin{document} \[ w = \int f\p*{x} g\p*{\frac{y}{2}} h\p*{z}\ dx \] \end{...
4
votes
1answer
95 views

Why do the braces in f{\left(x\right)} affect the output? [duplicate]

Why does f\left(x\right) result in more space before the ( than f{\left(x\right)}? i.e. Why does putting extra braces suppress the space?
10
votes
2answers
1k views

Spurious [?] vertical space introduced by multicols

In the example below, you'll notice, in the first box, a slight spurious vertical space before the text actually starts, and probably introduced by multicols. Do you know how to get rid of it? \...
4
votes
1answer
281 views

Double slashes close together with resizing

I basically want this symbol, but I want it to resize properly: While X/\mkern-6mu/H looks good, when I try to resize using \biggl, then the horizontal space between the two slashes becomes very ...
3
votes
1answer
363 views

Unwanted extra lines appearing in bibliography

When I compiled a very lengthy paper with a lengthy bibliography, I noticed that at some places in the bibliography, an extra line had been entered between entries: I tried to cut down the document ...
5
votes
1answer
122 views

ConTeXt: Font change shifts column content

Background I would like to place balanced itemized lists inside a two-column layout. Problem Changing the font affects the balanced layout; the fonts are: Chivo Gentium Basic Code The ...
4
votes
1answer
254 views

Automatic non-breakable spaces?

Very often I have to manually add non-breakable spaces to make things look better. For instance: see~\cite{Bla98} for all~$x$ see Section~\ref{sect:bla} It looks specific enough so that it could ...
5
votes
1answer
97 views

Using \newcommand to format numbers/strings according to a pattern [duplicate]

I'm an aspiring LaTeX user and have so far managed the first steps and created my first few documents. Coming from a programming background I've been wondering how you could use \newcommand to create ...
3
votes
1answer
147 views

Spacing text in table cells

How do I to space these two cells on this way? And not on this way: Code: \begingroup \setlength{\LTleft}{-20cm plus -1fill} \setlength{\LTright}{\LTleft} \begin{longtable}{|>{\centering\...
5
votes
2answers
3k views

Spacing between subfigure and subcaption

Consider the code below. I'm attempting to add space between the subfigures and their respective captions by modifying subfigcapskip (I've also tried skip, aboveskip, and captionskip), but I'm not ...
7
votes
2answers
2k views

Align equations with conditions

I am using the following equation with boundary conditions, I would like to position the equation centrally aligned and would like to keep the boundary condition to the right. But the equation is a ...
5
votes
2answers
165 views

removing space after first hline of tabular

How can I either remove the space after the first hline of the right tabular (the second tabular in the following code) or if that is not possible, what kind of value do I have to pass to the trim-...
3
votes
3answers
293 views

Fit equations as same size of the text fonts

An inline equation is written with the sentence appears, It can be noticed the line spacing has been locally increased for that particular sentence containing the variable E. How to shrink the ...
4
votes
1answer
129 views

Altering vertical space between lines of one breqn (dmath) equation

The breqn documentation says that It also makes it possible to specify different vertical space values for the space between lines of a long, broken equation and the space between separate ...
4
votes
2answers
397 views

Variable column spacing in a table

I have a relatively complex table with quite a few sub headings. I am trying to adjust the column spacing so that the separate "groups" are more visible. Here is a bit of my current table: \...
5
votes
4answers
144 views

Multiple alignment points in equations and no curly brackets for correcting spacing

Consider the following example: \documentclass{article} \usepackage{amsmath} \usepackage{siunitx} \begin{document} \begin{alignat*}{5} &\text{Honning:}\qquad &&\frac{\SI{16710}{\g}}...
6
votes
2answers
4k views

Unit spacing with siunitx in an equation

I'm just starting to get to grips with the siunitx package, but I've noticed that there seems to be some issues with regards to unit notation spacing in an equation. With siunitx it is possible to ...
5
votes
2answers
309 views

Removing gap above “Chapter X” introduces problems with the text formatting

I am trying to get the page layout of my thesis sorted out. I am using fancyhdr to give me the page number in the top right and chapter name in the top left with a horizontal rule under, and sectsty ...
5
votes
1answer
984 views

Decrease horizontal space in moderncv's cvdoubleitem

When labels are too small, the \cvdoubleitem macro in moderncv creates way too much space between the first description and the second label: \documentclass[11pt,a4paper]{moderncv} \usepackage[...
5
votes
1answer
2k views

Moderncv: Extra vertical space after cvitem

Extra vertical space is produced after \cvitem and before the next \section. Is there a better way to fix this than to use \vspace*{-6mm}? The problem is shown below, between the "Skills" and "...
4
votes
1answer
933 views

Too much space below figures [duplicate]

I am trying to use graphicx package to include figures. However it seems to leave too much space between the figure and caption. My LaTeX lines are \begin{center} \includegraphics[scale=0.6]{...
3
votes
1answer
483 views

How to increase space between two columns in moderncv

I was able to increase width of the column but I want to increase the space between \cventry that is date and the contents.
5
votes
3answers
204 views

Proper vertical spacing and pagebreaks in custom environment

I would like to design a simple environment which displays examples. This is what I got so far: \documentclass{article} \usepackage{xcolor} \usepackage{parskip} \usepackage{lipsum} \makeatletter \...
2
votes
1answer
2k views

Space between items in List of Figures/Tables within a chapter

I would like to add some tiny space between items within a chapter in the List of Figures/Tables. It should be compatible with \setlength{\cftbeforechapskip}{Xpt} I'm using for ToC. My code is: \...
0
votes
0answers
189 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 ...
3
votes
1answer
121 views

How to get the available space for an image

I want to design a figure (in a external graphics editor, e.g, Illustrator) to exactly fit (without scaling!) the whole available space on an empty page of my document minus the caption of the figure. ...
9
votes
2answers
175 views

Preventing line shrinking with raggedright

Sometimes with \raggedright, if a line is too long, but only slighly so, it will be shrunk instead of broken up. Here is an example: \documentclass{article} \raggedright \begin{document} This is a ...
3
votes
0answers
68 views

Eqnarray vs align environments [duplicate]

I keep reading that \begin{align} is preferred to \begin{eqnarray}. Unfortunately, I can't get align to justify rcl. I'll change between align and eqnarray, and the rightmost column is right ...
13
votes
1answer
439 views

Is there a way to make a “non-selectable” space in LaTeX?

Is there a way to create a horizontal space in LaTeX that is visible to the reader but invisible to the computer when selecting and copying text (using PDFLaTeX)? An example of the problem: When I ...
5
votes
1answer
400 views

Acronyms with same style as LOT?

I use the acronym package with page numbers. Now I would like to have the dots between the acronym and the page number in same style as in the ListofTables: same spacing between the dots and between ...
3
votes
1answer
171 views

Change itemize margin

I am working inside the beamer environement and need to change the margin width for an itemize enveronement. The only way i found to do this is shown below. \begin{minipage}{0.1\linewidth} \hspace*{...
3
votes
1answer
602 views

Endfloat: Spacing of multiple tables per page at end of chapter

As an alternative to having each table or figure on a separate page at the end of each chapter, I'm using a command to put an \mbox around each figure/table. How can I control the spacing, as some ...
18
votes
1answer
370 views

siunitx disturbs spacing of \, in math with xelatex

In the following example - compiled with XeLaTeX - the spacing of \thinspacing/the value of mu (used by \,) is disturbed if \SI is used in the math before: \documentclass{article} \usepackage{...