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

11
votes
2answers
152 views

How to get rid of unwanted spaces with \input?

for my project to bring scripting to (Xe)(La)TeX, i need to execute command lines with write18, redirect output to a temporary file, and then insert the produced text using input. i've noticed some ...
4
votes
1answer
221 views

Padding in a minipage

I build a minipage with some background picture: \newsavebox\langscapeSafebox \newenvironment{dsaBoxLandscape}[1][]{% ...
8
votes
3answers
643 views

Desktop wallpaper with black background templates

I want to prepare some cheat sheets to be used as desktop wallpapers. I would like to go for something like this: It has, I think, context highlighting (or maybe just environmental highlighting) a ...
4
votes
2answers
73 views

Table and Longtable environments reproduce different spacing in LOT

I have been using the table and longtable commands quite a lot for my thesis, and I've observed they reproduce different spaces in the list of tables. Here is the MWE: ...
4
votes
1answer
65 views

A horizontal line with the same space-filling behaviour as /hfill?

Is there a command or package which would allow me to draw a line in the largest available space in the way that \hfill fills up the remaining space in a line? i.e., a command to draw a line from the ...
7
votes
1answer
64 views

Reversing the effect of a \newline with the next command?

I'm using the harvard package and the agsm bibliography style. I'm aware that there are alternatives, e.g., natbib plus har2nat, and I will be looking into those in the not-too-distant future, but at ...
1
vote
0answers
31 views

Why does \iow_shipout: introduce typeset whitespace (where \iow_now: does not)?

For my resume, I have an environment that lays out information in two minipages—one for position/education data, one for the environment contents. The class I wrote also produces plain text ...
2
votes
1answer
53 views

Adjust spacing in table of content

I am very new to TeX. I have a Latex template for writing a thesis. I'm trying to report only the part of the template that I think are important.. please tell me if I'm omitting something! I am ...
7
votes
1answer
152 views

Gratuitous vertical space with nested list environments given a certain line length

In the following MWE the simple addition of ":" causes some extra vertical spacing to appear before the nested enumerate environment, despite the fact that adding ":" does not cause the text to split ...
0
votes
0answers
37 views

How do I adjust the width of a grid column?

I've tried looking up the code and couldn't find something that allows me to adjust the width of a column. I want to make the width larger (in the vertical direction). This is what I have so far: ...
2
votes
2answers
42 views

spacing between \paragraph{} and next chars

Is it possible to make a new line between the text of \paragraph{} and the next characters ? I've tried this, but nothing have changed. \paragraph{Raffinement du cas d'utilisation \og Rechercher \fg} ...
5
votes
3answers
83 views

reducing spaces in TOC titles

Is it possible to manage that space in this following TOC defined in the picture between alphabets and related titles to make smaller, please ? Knowing that the definition of these titles is ...
1
vote
2answers
113 views

how to cancel a space?

I'm trying to cancel the space made by \item using \hspace{0cm} but this haven't work. Any suggestion please ? \begingroup \setlength{\LTleft}{-20cm plus -1fill} \setlength{\LTright}{\LTleft} ...
1
vote
0answers
30 views

Starting a theorem or a proof with an equation and vertical spacing

Is it bad practice to begin the statement of a theorem or of a proof with an equation? If it is acceptable, what is your opinion on the resulting spacing in the three cases, in the code below? In the ...
6
votes
2answers
65 views

Use of optional argument stretch in \parbox

I'm having some difficulty on how to use the "stretch" optional argument of \parbox. Is it supposed to equally interspace lines of text inside a box of determined size? If I code it like: ...
2
votes
1answer
75 views

Vertical spacing around theorem environment

Consider this answer from karlkoeller: \documentclass[danish]{article} \usepackage{babel} \usepackage{color} \usepackage{amsthm,thmtools} % Colors. \definecolor{section_color}{rgb}{0.35,0.0,0} ...
1
vote
3answers
87 views

Space after comma in units package

I have a problem with using the units package. In my thesis I used it sometimes in math environment, sometimes not. Now I realized that there is an addition space after the comma in math mode. I think ...
8
votes
2answers
136 views

How do I control parskip within a tcolorbox?

I am using the tcolorbox to provide some beautiful frames around certain parts of my document; I use the parskip to give nice spacing between paragraphs. When I have more than one paragraph inside a ...
0
votes
1answer
52 views

Blank pages after appendices titles

I have a couple of appendices whose title is followed by a blank page before actual content starts (usually in the form of figures or tables). Example (software.tex): \chapter{Software} ...
3
votes
1answer
89 views

\rowcolor truncating cells in table

I am working on formatting a table a coauthor originally created for publication, and running into a problem when trying to color-code rows. The degree symbol in the first data row is formatted in an ...
7
votes
2answers
92 views

Creating Horizontal Lines With A Specific Distance

I'm relatively new at LaTeX. I've read material online and have been practicing. However, I have not been able to find a solution to two of my questions. I'm hoping someone may be of assistance. This ...
1
vote
1answer
24 views

Incorrect alignment when using aligned

I'm trying to TeX some nice equations but there is a strange behaviour when I use an aligned-environment in an align*-environment. I think one little example makes my problem clear: \begin{align*} ...
3
votes
4answers
116 views

Vertical spacing for writing answers

I couldn't find any answers to this issue, so I hope you LaTeX gurus can help me out. I am formatting a study guide with the KOMA scrbook class. Throughout there are (enumerated) lists of discussion ...
12
votes
3answers
269 views

Displaymath environment that can align equations and squeezes math

I have a long equation to align. Without squeezing the math, it is just barely longer than \textwidth. However, the align environment doesn't squeeze the math at all, which results in a badbox. ...
1
vote
0answers
58 views

The spacing of `\to`

Let's say I use \def\searrow{\mathbin{\text{\rotatebox[origin=c]{-33}{$\to$}}}} instead of the \searrow. But \mathbin doesn't seem to provide the spacing that \to has; what should it be? Other ...
1
vote
0answers
44 views

What is the space around a parbox? [duplicate]

I write a short macro which put a picture on the left and a text on the right: \newlength\largeur \newcommand{\uneQuestion}[1]{ \setlength{\largeur}{\columnwidth} ...
0
votes
1answer
41 views

Why my first text line is indented? [duplicate]

Here is my LaTex code: \documentclass{article} \usepackage{amsmath} \usepackage{color} \pagestyle{empty} \begin{document} \definecolor{blu}{RGB}{31,111,130} \definecolor{gren}{RGB}{39,110,13} ...
4
votes
1answer
38 views

Broken footnotes in psp.cls

When I write an article using the psp class for the journal Mathematical Proceedings of the Cambridge Mathematical Society, there's something broken with the footnote markers in the text. The footnote ...
4
votes
2answers
59 views

Section headings overflow gutter

How can I prevent the title from overflowing the gutter? It seems to only overflow by the amount of space introduced by the numbered part of the title. We are using this style: ...
3
votes
2answers
116 views

Align math explanation [duplicate]

Any possibility to align the fractions (units in general) too? Wobei: \begin{flalign*} \noindent \tab \rho _{KOH} & = 2.04 \frac{g}{cm^3} &\\ M_{KOH} & = 56.10 \frac{g}{mol} &\\ ...
4
votes
1answer
63 views

How do I Make a Three-Column Title?

I'm trying to format a title for my document. Normally, I write <Title> \hfill \today, to have a title nicely split into two columns, each aligned at the left and right margin, respectively. ...
7
votes
3answers
163 views

Maintaining alignment between irregularly vertically spaced TikZ matrix nodes

I'm trying to create a diagram with pairs of rectangles of different sizes, each separated by a fixed interval. Additionally, I want each pair to be left-aligned at the same point. Here's an example ...
2
votes
1answer
42 views

Setting the line length for caption

I am trying to use subfigure to put two figures beside each other and unfortunately LaTeX puts them to the right. I used hspace to reduce the space between them and that results in messing up the ...
0
votes
0answers
49 views

Text spacing altered when using minipage

Why does the spacing between words alter when using minipage function ? \documentclass[a4paper, 14pt, oneside]{article} \usepackage{soul} % Used for the title name (eg. title) \usepackage{titlesec} ...
2
votes
1answer
69 views

Local scoping of textfloatsep

I was wondering if you can set the scope of \textfloatsep locally. I have found an old thread on Google groups, which points out that you couldn't. Has that changed by now? So what I want to do is ...
4
votes
1answer
70 views

Bad horizontal spacing when using the fourier/utopia font

Consider the following MWE: \documentclass{article} \usepackage{fourier} \begin{document} If \(0<b<1\). \emph{If \(0<b<1\)}. \emph{If 0<b<1} \end{document} that yields the ...
6
votes
2answers
88 views

too much space with tabto and enumitem

The MWE below indicates the problem. The final item, number 6, isn't aligned correctly (it is pushed some extra space to the right!). This is also the case when I change the number of tabs to 2. ...
3
votes
0answers
73 views

floatrow - remove whitespace beneath figure

I have a page layout with exactly 40 text lines and some small pictures to distribute throughout the text. When I arrange 2 pictures at the page bottom in a row via floatrow and specify their height ...
8
votes
1answer
159 views

Using vspace, with spacing?

When I use the vspace command it won't work unless I put a new, empty line before and after the command. Is this normal? If it is, why is that? Why does it require spacing around the command?
2
votes
0answers
41 views

compute position of each symbol [closed]

I've created a program that generates clickable areas on images with HTML5, taking as input a series of coordinates. Now what I'd like to do is send to that program a .png of a LaTeX expression ...
4
votes
1answer
104 views

Vertical space between two paragraph (only)

I would like to increase the vertical space between two specific paragraphs. These paragraphs are already in a deep section (\subsubsection{}) so I do not want to put each paragraph inside a ...
4
votes
2answers
95 views

Reduce spacing between two (custom) paragraphs in scrreprt

I have defined a custom paragraph named myparagraph to use it as a small, unnumbered headline within my document. The reason is that I like the font of the paragraph heading, which is not as bold as ...
2
votes
0answers
73 views

aboveglftskip in expex linguistic glosses

First of all I am not an expert in using LaTeX, I just started a few months back. I am using MiKTeX with the expex package for glossed linguistic examples. If we take a look at a glossed example, we ...
3
votes
2answers
82 views

Pagebreak at the end of a page

I have reproduced a simple example, which shows my spacing problem. Description: The page is completely filled with text, only 1-2 words go over to the next page, despite it looks as if there was ...
3
votes
1answer
65 views

Beamer listings fragile — Too much space

I am using listings package in Beamer. If I use inline listing, there is no problem and the listings look good. However, if I use \begin{lstlisting}, it is required to use fragile frame and the ...
0
votes
0answers
34 views

Is there a way to compact equations? [duplicate]

I know you can compact titles using: \usepackage[compact]{titlesec} \titlespacing{\section}{0pt}{0pt}{0pt} I want to do something similar with equations, I have a lot of whitespace below and ...
2
votes
2answers
100 views

Why is there only one question on the second page? Using Exam Class

I am trying to format this exam; however, the number of question per page is horrible. There is no logical reason why there is only one question on the second page and several on the next page and ...
1
vote
0answers
63 views

Overall formatting in LyX

I could not find a previous question that dealt with this topic, and much of the guidance is one-off. I am creating a paper and I want the text to be double spaced but not section headings, the ...
4
votes
1answer
55 views

Bullets without itemize ignoring spacing

Easy question for those in the know :) I can produce a itemised list like this \documentclass{article} \usepackage{enumitem}% http://ctan.org/pkg/enumitem \begin{document} \begin{itemize} \item ...
2
votes
1answer
282 views

moderncv: Increase space between cventry

I wrote my CV using moderncv but the entries (in particular \cventry) are too compact for me. I tried to change the parskip but it does not change anything. Could you tell me how could I increase the ...