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

0
votes
1answer
124 views

Changing vertical spacing between equations

I'd like to reduce vertical spacing between dmath equations. I don't know how spacing works here. I tried changing line spacing with setspace but to no effect. This is meant to be a formula sheet with ...
1
vote
1answer
227 views

Using parskip with ntheorem in a book

I am writing a mathematical book and would like to use ntheorem for theorems. Also, I would like to use parskip, because I like these styles of paragraphs more. My problem is that as soon as I include ...
2
votes
1answer
2k views

scrartcl and fancyhdr on first page

In relation to this question, I'd like to get a fancy header just on the first page of my scrartcl document (height about 150 pts), but even using \thispagestyle{myfancyhdr} all the following pages ...
0
votes
0answers
67 views

\AtBeginDocument breaks csquotes nesting - or \xspace won't add space [duplicate]

A couple of months ago, I asked this question because xspace wasn't adding whitespace before an active quote. The apparent solution was to add \AtBeginDocument. However, this breaks csquotes nesting ...
11
votes
1answer
335 views

How and whether to fine-tune the vertical placement of a fraction line

This is a question about the aesthetics of mathematical typesetting, as well as a technical question about LaTeX. I'm writing a lot of expressions like this: (\log\frac{p_{i\to j}}{p_{j\to i}} in ...
5
votes
1answer
199 views

How to prevent TeX from stretching glue beyond a given maximum?

Is it possible to define a glue that TeX will not stretch any further than a given limit--under no circumstances? In the following MWE, I want to set a piece of text apart from the rest by half a ...
7
votes
3answers
2k views

Adding vertical space (\vspace) around custom environment

I have document with custom environment myenv which left margin is 4em. \documentclass{book} \usepackage{lipsum} \newenvironment{myenv}{ \setlength{\leftskip}{4em} } \begin{document} \lipsum[1-2] ...
6
votes
3answers
186 views

How to stretch horizontal length

In this paper, Daniel J. Bernstein used horizontally stretched lines (page 7). I was trying to do the same. I saw this question, but none of the answers could produce the desired result. Can anybody ...
1
vote
1answer
116 views

How to eat/gobble all following skips?

Is there a way to gobble all following skips? The opposite is possible with \unskip. I have a custom chapter layout (done in memoir) using tikz, and, for instance, the list of figures uses \addvspace ...
0
votes
0answers
71 views

Large whitespace at Springer journal template [duplicate]

I just downloaded Springer WWWJ template from http://www.editorialmanager.de/pdf/latex/ and after I compiled, there is a huge whitespace on the right. Whitespace was there even if I use the sample ...
7
votes
1answer
385 views

Why does putting a vspace*{0 mm} create vertical spacing?

I am testing a new layout for my invoice. I am trying to put some small vertical spacing before the invoice title. While tesing the vertical spacing, I have spotted a strange behaviour, and reduced it ...
4
votes
1answer
161 views

Changing the Look of Proof

I am using the document class amsbook. I had an issue with my theorems having a good deal of space between the statement of the theorem and the proof. I have a new theorem style: ...
3
votes
1answer
323 views

floatflt - removing extra white space on top

When I include a figure via floatfigure into my text, I can't get it to stick to the top margin of the text body. There is always some white space left. I even tried to look in the package code, but ...
5
votes
1answer
223 views

Tabular in frame: get rid of horizontal spacing

I'm trying to surround a tabular with a thick frame: \setlength\fboxrule{2pt} \setlength{\fboxsep}{0pt} \fcolorbox{black}{gray}{ \begin{tabular}{@{}p{2cm}|p{2cm}@{}} A & B \\ \hline ...
6
votes
2answers
152 views

Getting extra space with this combination of \color and \label

If I type {\bfseries\color{red}Theorem 1. }{\itshape\label{two} This is a test.}, I get too much space between "1." and "This". Here's a file that shows what I mean: \documentclass{article} ...
1
vote
0answers
257 views

Spacing between single line paragraph with lettrine

I'm having the following problem with lettrines and paragraph with a single line : \lettrine[lines=2, loversize=0.15, findent=1em, nindent=0em ]{1}{}% First step. \lettrine[lines=2, loversize=0.15, ...
1
vote
0answers
37 views

Reducing vertical space between heading of Glossaries package [duplicate]

I am using using a custom .sty file which uses report document class. For List of Acronyms, I am using glossaries package. The space after the heading of List of Acronyms and the first acronyms is ...
3
votes
2answers
419 views

Differences in spacings

I noticed that I can use \ to produce a spacing in math environment that seems to me equal to the one produced by \quad. Where is the difference?
6
votes
1answer
1k views

How to prevent \includegraphics from inserting whitespaces / margins (no float)?

I am using \includegraphics from the graphicx package directly with no floating environment like figure. I need the images placed precisely, but something is inserting space automatically. ...
10
votes
2answers
221 views

putting spaces within text block

I have a block of text that I would like to automatically break in blocks of equal length. Something like what \num does with numbers. What I need is a definition for what I called \makeBlocks. The ...
7
votes
2answers
210 views

More aesthetically wrap text in a table?

I have a table that I must fit in one page but have difficulty doing so in any aesthetically pleasing manner. A MWE is pasted below. Are there any suggestions to improve this? Regretfully I haven't ...
13
votes
2answers
362 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 ...
5
votes
1answer
3k views

Padding in a minipage

I build a minipage with some background picture: \newsavebox\langscapeSafebox \newenvironment{dsaBoxLandscape}[1][]{% ...
8
votes
3answers
2k 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
238 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
652 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
239 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 ...
7
votes
1answer
60 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
210 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 ...
8
votes
1answer
375 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
49 views

How do I adjust the width of a grid column? [duplicate]

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
76 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
135 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
140 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
135 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
372 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: ...
3
votes
1answer
244 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} ...
2
votes
3answers
1k 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 ...
9
votes
2answers
554 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
411 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
217 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
165 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
39 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*} ...
4
votes
4answers
232 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 ...
13
votes
3answers
692 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
117 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
46 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} ...
1
vote
1answer
132 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
70 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
78 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: ...