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

Space before colon in beamer captions

As you can see below, LaTeX is formatting my captions like this: Figure : caption, while I would like them to be Figure: caption, without a space before colon. Here's a MWE: \documentclass{beamer} ...
1
vote
0answers
22 views

Spacing is varying between two mdframed environments with llncs class

Try out the MWE below. If I uncomment the commented line and comment out the previous one, the space between two `mdframed' environments increases drastically. \documentclass{llncs} ...
2
votes
2answers
55 views

Inconsistent vertical spacing using section headers

Last week I read a short paper on LaTeX and now I'm writing my first document. I've googled and fixed most problems but this one I haven't found any working answer to. It's for a math assignment and I ...
3
votes
2answers
50 views

Aligning multiple lines in long equations and arranging the line breaks in `\align` environment

I have the following code sample: \begin{align} \pi^{(1)}_{i j} \enspace & = \enspace -\frac{1}{4}\eta^{\lambda \sigma} \left( \eta^{\mu \alpha}\eta^{\nu \beta} + \eta^{\mu \beta}\eta^{\nu ...
1
vote
2answers
54 views

fncychap: Remove vertical space between heading and first element in toF and toT

I'm trying to remove the vertical spacing that occurs when using the fncychap package, but how to do this? I've already done it in the toc by writing the following: \renewcommand\contentsname{Table ...
0
votes
0answers
41 views

how can I reduce space before and after the title of list of figure?

How can I center, change the fontsize and reduce the space after and before the title of list of figures, list of table and content? Can I change a macros like @makechapterhead?
2
votes
1answer
72 views

How to control spacing in toc for different sections?

I need to have a TOC that has double space between Chapter titles but single space between sections and subsections. I know there are several related questions on this matter, but the difference is ...
8
votes
3answers
200 views

Why does \overline mess up the spacing?

Consider $a \triangleright b$ and $a \overline{\triangleright} b$. They behave completely different in terms of spacing: Why? How do I fix that?
0
votes
0answers
70 views

Manipulating Documentclass thesis in latex

I am writing my thesis in the following documentclass \documentclass[11p, topenright, twoside, openright, plainfootsepline, headsepline, ...
2
votes
1answer
104 views

A math symbol in quotation marks

As to quoting math symbols, we already find nice answers in How to write quotation marks in math environment? But I have a question to a problem that doesn't show up in the examples in the above ...
0
votes
0answers
11 views

How do I change the spacing above/below \begin{align}…\end{align} [duplicate]

Is there a simple way to reduce the spacing above and below \begin{align}...\end{align}? And also for gather, equation, subnumcases etc. I can use \vspace but that's messy and inelegant. I'd like to ...
2
votes
1answer
100 views

Avoiding empty space at the bottom of a scrlttr2 letter

Per How to avoid empty space at the end of a page when using scrlttr2? I tried adding the options suggested to scrlttr2, but at least in the following example, it doesn't seem to work. I get a big ...
3
votes
1answer
51 views

Automatic substitution of spaces in fields with Biber and Biblatex

I have a pretty large .bib file which fields may contain spaces (e.g. the "series" field can be "SIGMOD '99"). When I print the bibliography, some lines are thus broken on these spaces, which is ...
1
vote
1answer
42 views

Setting margins below and above figures does not have any effect in beamer

For the sake of using captions I'd like to put my graphics into a \begin{figure} ... environment. Doing that a white space is added before and after the picture, table or whatever. This answer is ...
7
votes
1answer
280 views

How can I fill vertical spaces with dotted horizontal lines?

I'm sure this must be a duplicate, but I can't find it. I'm preparing a worksheet for students to use when starting to work on an assignment. Here is a (naturally sweetened) version of the code: ...
12
votes
3answers
163 views

Nonstandard analysis: Typesetting `^*` depending on context

In nonstandard analysis, the nonstandard extension operator * is used frequently. Typesetting it is not straightforward, though, because the placement of * depends on the symbol to follow. E.g., the ...
2
votes
1answer
57 views

Detect whether there's space before and after macro

My document has a custom macro called \newcommand{\myparenthetical}[1]{[#1]} However, I want to be sure that in the document I always have a single space before and after the macro. I would like ...
0
votes
0answers
14 views

pgfmathsetmacro increases border size [duplicate]

Upon creating some graphs with TikZ, I noticed that the border at one side was much larger than it needed to be. The cause seems to be the \pgfmathsetmacro command: \documentclass{standalone} ...
2
votes
1answer
34 views

Figure spacing carrying over to next page

I'm trying to make an image align with the text it's positioned next to. I've managed to make the top align fine by using \setlength{\intextsep}{0em}%, but for some reason the bottom vertical spacing ...
4
votes
2answers
100 views

Matrix in matrix: how to adjust vertical space?

Normally, I'm kind of a Latex guru and I find solutions to problems easily with sites like this, but now I encountered something I cannot find an appropriate solution for: I have matrices within a ...
1
vote
1answer
70 views

Even vertical spacing in multline and gather environments

Using fractions or expressions with sub- and superscripts may lead to uneven vertical spacing in math environments spanning several lines (i.e., align, gather, multline,...). A fix for align was ...
0
votes
0answers
21 views

Why does Latex swallow the whitespace after \LaTeX command? [duplicate]

The sentence LaTeX is fun is produced by \LaTeX\ is fun Why does Latex tend to swallow the space between the words 'Latex' and 'is' unless the space is escaped by a backslash?
1
vote
2answers
67 views

Changing space before chapter without titlesec package

I am sorry if this is a repeated question, I could not find anything similar on the forum search. How to adjust the space before the chapter heading without using titlesec package. I tried this code ...
2
votes
1answer
49 views

horizontal spacing in equations

I am trying to replicate the same exact output as plain math mode would give for a simple polynomial formula but using \matrix because I want to right-align the terms in the polynomial or leave some ...
1
vote
1answer
45 views

How to reduce space between words in gsm package

I used gms package (a special package of AMS, provided for their Graduate Studies in Maths serie) to write a math book. I got a problem with space, and then I want to narrow a line by reduce the ...
5
votes
2answers
410 views

Writing on the last line of a page

I would like to put a phrase like "turn the page" or something on the bottom of a page, preferably on the last line. I may use \vspace{ } with some trial and error. I was wondering if there is a ...
1
vote
0answers
65 views

longtabu bottom caption too close

I want to add the longtabu caption bottom of the table. I know this is not good. But I was told to do so. When I do it as in the code sample, the caption comes too close to the table. But after the ...
0
votes
0answers
43 views

Messed up margins in memoir-class

I am using \documentclass[a4paper,oneside,11pt,leqno,openbib]{memoir} to write my thesis which has 5 chapters and each chapter has different sections. My problem is, every time I start a section, the ...
2
votes
0answers
23 views

Vertical spacing in `\newcommand`s [duplicate]

Consider the piece of code. \documentclass{article} \newcommand{\hello}{Hello world!\vspace{12pt}Hello again!} \begin{document} \hello \end{document} This produces the following output. ...
3
votes
1answer
38 views

Set linespread in algorithm environements

My algorithms are really complicated and I want to \onehalfspace their lines to make them more readable, while keeping the rest of the document singlespace. How can I do this so it will automatically ...
1
vote
1answer
42 views

Spacing on a specific formula

Latex is formatting this formula all squished together. How do I format it properly? $\varphi' \gets \left\{ C_n \setminus C_i \middle| C_n \textrm{does not interfere with} C_i\right\}$ EDIT: ...
0
votes
0answers
21 views

Macro spacing mystery [duplicate]

I get different spacing results when I define a \hspace directly or as a macro. Directly: \documentclass{article} \title{Title} \author{Daniel Domingues \hspace{0.2cm}$\diamond$\hspace{0.2cm} ...
2
votes
1answer
64 views

Increasing horizontal space between chapter number and chapter title in scrreprt

I would like to change the distance between the chapter number and the chapter text. A poor way to do it would be renew \thechapter, but this affects section titles too. Other answers seem to suggest ...
3
votes
1answer
60 views

Large gap in typesetting before group of displayed equations

I'm new to LaTeX; my lab professor said it would be great to have our first lab typed up nicely. I plan on doing research in my future, so I figured learning LaTeX early would be an excellent ...
2
votes
1answer
124 views

Placing text between horizontal lines generated by \rule: equispacing

How to fix the vertical spacing between the text and the lines? In the following MWE the vertical space between the text and the line below it is much greater than the vertical space between the text ...
1
vote
1answer
45 views

Add image, after long space in begin environment [Title changeable]

MWE \documentclass[a4paper,twocolumn,12pt]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[turkish]{babel} \usepackage[listings,skins,breakable]{tcolorbox} ...
4
votes
2answers
65 views

Handling spacing between multiple lines of a title text

For my thesis I have a very long title and it spans three lines. The spacing between the lines are coming out to be very less. I tried adding `\smallskip'. This has improved the spacing between first ...
6
votes
1answer
110 views

CM fonts kerning in math superscripts

Using CM fonts with either a traditional engine or XeTeX, an expression such as $D^rf$ produces too much space between the r and the f in the output. It's easy to fix manually by inserting a \!. ...
1
vote
1answer
45 views

Long space in italic format

MWE, \documentclass[a4paper,11pt]{article} \usepackage[utf8]{inputenc} \begin{document} 120 kHz ’e \textit{120 kHz ’e} \end{document} and output, Sometimes this red line is getting longer. Why ...
2
votes
1answer
117 views

siunitx table with separate-uncertainty is too wide

I'm using a tabular environment with the siunitx type S and the package option separate-uncertainty, like in the example below. In the resulting document, the columns are too wide, and the 3rd column ...
2
votes
1answer
120 views

How to create additional space below Section headings followed by Subsections in the Table of Contents

I am preparing my thesis using the apa6 document class. I'm using the tocloft package to format my Table of Contents and List of Figures. In the TOC, I can't figure out how to add space BELOW section ...
3
votes
1answer
121 views

Footnotes: Large space between text and number in justified text

I have inserted a footnote in a justified column. However, the space between the text and superscript is huge. How do I keep the superscript number next to the text?
0
votes
0answers
52 views

SIG Proceedings template, figure*, clearpage and section spacing

When using either of the two SIG Proceedings templates (normal or compact), the height of a figure* influences the spacing before a \section, \subsection or \subsubsection. Minimal example: ...
9
votes
1answer
221 views

Why do coordinates in Bezier curves add to the padding in TikZ?

I have a little tikzpicture drawn with a Bezier curve, that I use in the text. I noticed that it has an unusual amount of horizontal white space, more than e.g. a circle: \documentclass{article} ...
1
vote
0answers
74 views

List Of Listings Overlapping Text

I'm attempting to generate a list of listings for my dissertation. The university doesn't have a standard LaTeX template, but there is a pretty good one generated sometime ago that does the trick. The ...
1
vote
0answers
115 views

Squeezing a paper into a page limit - with IEEEtran

I'm working on this draft for a submission to some conference which - woe is me - uses IEEEtran. I could rant about that class for days, but never mind right now... the point is, I need to squeeze ...
4
votes
1answer
137 views

Decreasing space between title and body in scrartcl

Here is a MWE using scrartcl. If I just have a title, and no subtitle, author, date, or any of that other stuff, is there a clean way I can decrease the space between the title and the body, here ...
1
vote
0answers
59 views

XeLaTex error with spaces in name MiKTeX 2.9 update [closed]

Since the last MiKTeX 2.9 update, I am unable to compile .tex files with spaces in names, e.g. "file with spaces in name.tex" Any minimal file, as \documentclass[12pt, twoside]{report} ...
0
votes
1answer
50 views

Titlepage and vertical space

I need to reduce the vertical space up the title of the only front page. I'm using the book class and specifically the titlepage enviroment. \vspace{-2.0cm} doesn't work... Any suggestion?
2
votes
1answer
56 views

Remove vertical space around align equations

Formed with the alignment occurs in the equation some gaps. I tried to indicate with red arrows. This is without gaps like I mentioned with the ellipse how can i do? Sorry for my English. ...