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

2
votes
1answer
45 views

Skip after the label of inline description environment

I'd like to turn a paragraph containing several “subparagraps” into an equivalent inline list. See the following code. \documentclass{article} \usepackage{amsthm} \usepackage{enumitem} % ...
0
votes
1answer
34 views

Remove white space before a single chapter

I've searched this sites for similar questions, but can only find answers that remove the space for every chapter, whereas I only want it removed in one chapter. The MWE is quite minimal :) ...
3
votes
2answers
58 views

Encode into an `enumerate` environment (Version 2)

From the following code, a selection from a multiple-choice test is rendered. The four problems should be enumerated as 1.), 9.), 16.), and 25.). How do I do that with an enumerate environment? I ...
1
vote
1answer
44 views

Custom spacing of figure

I'd like to custom place a figure beside some text. I tried two approaches. First, I placed the text with tabbings in one minipage and the figure in a second minipage...and both minipages into a ...
5
votes
2answers
101 views

Create a blank space the same size as text, equations etc

I would like to create a space in my document the same size (height and width) of a certain set of text. (For context, it will compile the TEXT when I want solutions and SPACE when I only want the ...
14
votes
3answers
965 views

How to create these nice operators?

I'm trying to typeset a paper in Haskell, and I want to typeset these operators: I'm talking about <*>, <$> and <$. I've seen these before in articles about Haskell. Is there a ...
2
votes
1answer
173 views

Different positions of headers and footers in different pages

I could not figured out why I'm getting different positions of headers and footers in different pages (please see MWE below). Any help in this regard will be highly appreciated. Thanks ...
2
votes
2answers
27 views

text in align-environment

Is there a way to coordinate the space here? \documentclass[a4paper, 12pt, oneside, titlepage]{scrbook} \usepackage{amsmath} \usepackage{amssymb} \usepackage{colortbl} \begin{document} ...
3
votes
1answer
65 views

Justify text when using a tabular environment

I'm using \documentclass[10pt,twocolumn]{article} \usepackage{hhline} \usepackage[left=1cm,right=1cm,top=1cm,bottom=2cm]{geometry} \addtolength{\columnsep}{0.4cm} ...
2
votes
1answer
57 views

Specific chapter page formatting

I bought a recent math book, and it was clearly made using TeX. Here's an example from the chapter page: I wanted to reproduce this chapter style for other texts I'm working on (same fonts, sizes, ...
0
votes
0answers
26 views

Italic correction after a reference

It seems that italic correction doesn't work after a \ref. I wanted to name a variant of a theorem with a prime, and this causes a problem if there's a reference in italic mode. Here's a simple ...
1
vote
2answers
45 views

Too much white space above png figure after latex-dvi-pdf compilation

I have searched the other question here extensively as the problem of spacing seems to re-occur often, but still have not found the solution to my specific problem: I have way to much white space ...
5
votes
2answers
123 views

Inter-sentence space without a period?

How can I insert an inter-sentence space without using a period? I can easily get an inter-word space via \␣ (backslash followed by a space), or ~ if I don't want line breaking. Is there something ...
5
votes
1answer
54 views

How to automatically remove additional space introduced by primes of left superscripts?

I need to use left superscripts. I know that there are packages as mathtools, tensor and leftidx. But they all suffer from the same typographical problem. If I typeset a left superscript and this ...
3
votes
1answer
99 views

Highlight Text with Background Color

I try to highlight text with \texttt font and background color (somehow like the highlighting on StackExchange: this). I tried with a colorbox, but the problem is that it doesn't support line breaks, ...
0
votes
1answer
32 views

Non-breakable space in chapter name

How could I move last word in following example to the next row without making \newline (which will also effect ToC)? I need non-breakable space, however ~ doesn't work here at all. Thank you. ...
1
vote
1answer
49 views

To insert a blank space between two paragraphs, should I use medskip and vphantom?

There are at least 2 ways to insert a vertical white space between two paragraphs: medskip and vphantom. Which one should be preferred for example for spacing paragraphs in "The Chaos" poem?
1
vote
1answer
25 views

Move two captions to the top and to the left respectively

I have two captions in the following table: \begin{table}[!htbp] \caption{Stuff Stuff Stufff.} \begin{tabular}{l |l l| l} \hline & aaaaaaa & aaaaaaa & aaaaaaaa \\ \hline bbbbbbb & ...
0
votes
1answer
25 views

Enumitem Vertical Spaces: Control top and bottom vertical spaces seperately

I am trying to customize the vertical spacing in description environment. A global setting such as: \setlist[description]{% topsep=10pt } adjusts the vertical spacing both “before” and “after” ...
0
votes
0answers
25 views

Avoid the insertion of spaces when using newlines in latex source code

I have a problem with some Latex code that I need to write. In this code, I am putting elements into a table using a macro. This Macro also does some magic with the content it is inserting into the ...
2
votes
1answer
42 views

add a space in \addcontentsline command for list of equations

This is a follow-up question to Creating List of Equations. I think the spacing issue happened when the equation number is greater than 9 (shown in the image). I tried to add a space with \vspace and ...
0
votes
0answers
38 views

How to avoid vertical space between header and paragraph

How to avoid the space between the text continuous from previous paragraph and header? I have shown the picture of my document. please help on this issue... The image shows the unnecessary space by ...
1
vote
2answers
37 views

Force text between part and chapter to be on the next page after the part title

I have not found a better title sorry. I have a document (book class) in which I have something like : \part{MyPart} The brief introduction of my part, where I present the three chapters I will ...
2
votes
1answer
43 views

Row spacing ignored between nested tabulars

In a tabular environment, \\[<spacing>] does not always insert the requested spacing between rows containing themselves tabulars. For instance, the two horizontal lines should not be aligned ...
1
vote
1answer
40 views

Extra inter-line spacing in a tabular environment (Version 2)

I have a table that is typeset using a tabular environment. (I want to keep it in a tabular environment.) The inter-line spacing in each table is determined by \\[1.2\normalbaselineskip]. What ...
7
votes
1answer
488 views

How can I make a “really zero-height” box?

In my document I need to show some labels in draft mode. But they should have zero height and depth (the purpose is not to affect on resulting text: all exept labels should be the same in both draft ...
3
votes
4answers
224 views

Auto-indent the second line of a paragraph

When working with numbered lists with long content, I get outputs like this: However, I would like to produce an output like where "z" and "planes" are aligned with the word "Giving". Using ...
2
votes
1answer
72 views

How to prevent \vec from making \left(\vec{f}\right) ugly?

It seems like \vec makes \left( and \right) expand in an ugly fashion: \begin{align*} \ g(\vec{f}) \ g\!\left(\dot{f}\right) \ g\!\left(\dot{\vec{f}}\right) \ g\!\left(\vec{f}\right) ...
0
votes
1answer
45 views

How to adding vertical spacing in \raggedright or \RaggedRight

I usually use \\, \par, \newline, etc. to add whitespace to LaTeX. However, when I use raggedRight, the pdflatex spits out a ton of messages saying "There's no line here to end." Ultimately, all ...
1
vote
0answers
58 views

Space in fraction

See distance from/to fractionline...How can i lower little bit \partial W? \documentclass[10pt,a4paper]{letter} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} ...
7
votes
2answers
73 views

Vertical space different at top of first page

I've been working on a document with extra vertical space at the top of some pages and noticed that in certain contexts the spacing comes out differently on the first page compared with later pages. ...
3
votes
1answer
45 views

Reducing space between items of reference

I want to reduce the space between items of my references. After reading many related posts and trying various methods, I was still unable to do that :( I use BibTeX and here is my code (the ...
3
votes
1answer
57 views

How can I make “headings” inside a figure?

I have a figure that is built up of multiple parts and I want each part to have a "title". How can I do that in a way that looks nice? Right now I am just using \textbf for the "titles" and everything ...
0
votes
1answer
66 views

Extra inter-line spacing in a tabular environment [duplicate]

I have a table that is typeset using a tabular environment. (I want to keep it in a tabular environment.) The contents of each row is an expression involving radicals. The inter-line spacing is ...
1
vote
1answer
38 views

Alignment in \addchap left and right at the same time

I'm using scrbook and want to accomplish the following: The chapter (unnumbered) shall be devided in two parts - one ragged left and bold and - one ragged right and normal font Now I get a strange ...
3
votes
2answers
44 views

Wider space between minus sign and number when surrounded by verts

When I write the following: \documentclass[12pt,a4paper]{article} \begin{document} $$ -1, -2, -3, \dots \| -1 \|, \| -2 \|, \| -3 \| $$ \end{document} It produces the following: As you can ...
3
votes
2answers
28 views

Regulation of the distance between the first verse and the previous paragraph using `verse`

The insertion of poetry in a given prose text using the ambient verse introduces a distance between the first verse and the previous paragraph, as well as between the last verse and the following ...
2
votes
1answer
34 views

Font size too in first row big for table

I'm trying to make a good looking table for my project but when I'm trying to make the font size larger on the first row of the table they get too big and parts of the letters crosses the top line. I ...
4
votes
1answer
40 views

Typeset siunitx-like percentage value in math mode

I'd like to typeset "10 %" with exactly the same spacing between 10 and % as in \SI{10}{\percent}. For some reason I'd rather not use siunitx in this particular instance. How do I replicate the ...
1
vote
2answers
49 views

spacing between rows in a table

I have a table here. But it does not look right. First thing is regarding the spacing between rows. I need to increase the spacing. Second thing is at row 25, the number somehow exceeds the column. ...
5
votes
4answers
169 views

Spacing after \vtop

There is insufficient spacing between the lines in the MWE, made using an \hbox filled with two \vtop boxes. \parindent=0pt \newdimen\linewidth \linewidth=4in \newdimen\colsep \colsep=1em ...
3
votes
2answers
102 views

Double spaced document with exceptions

I have to set the line space among my thesis double. So I use the following commands at preamble \setlength{\parindent}{1em} \setlength{\parskip}{1em} \renewcommand{\baselinestretch}{1.8} However, ...
2
votes
3answers
121 views

Vertical spacing in KOMA-script

How can I change vertical spacing (and indents) of \paragraph, list and list item elements in KOMA-script article class? Is there some canonical way to do this? I've tried to use titlesec package, ...
2
votes
0answers
37 views

Weird spacing in align environment

Using this MWE: \documentclass{memoir} \usepackage{amsmath} \begin{document} \begin{align} x &= y \end{align} \begin{align} x =& y \end{align} \end{document} I get this (cropped) ...
0
votes
0answers
30 views

Avoiding orphan parts of a command

I have a command that is used to print stuff with a certain structure: \newcommand{\miracle}[2]{ \textbf{#1} #2 \bigskip } How can I ensure that the stuff printed by the ...
1
vote
1answer
54 views

How do I remove white space at the top of my inserted matlab code?

I've Solved This Question: use \vspace{-1cm} I'm using this package: \usepackage[autolinebreaks]{mcode} I want to put a subtitle for my Matlab code and then have it follow on immediately after ...
1
vote
2answers
39 views

Incorrect space in tabular around an array

I have searched a little in the forum, and I can't find a satisfying solution to my problem. I want to create a tabular in which I compare two different situations, and a line of the comparison is an ...
2
votes
1answer
97 views

Line spacing between equation and text

To reduce space between displayed equations and between text and equation, I have added the following command in LaTeX preamble in my standard article document in LyX: ...
2
votes
1answer
44 views

How to delete “space” between author1 and comma in citation

I created my bibliography style (author-year) in "custom-bib" using natbib. Then I replace and with , (between author1 and author2) using \providecommand{\BIBand}{,}. As a result, I received the ...
3
votes
1answer
47 views

Extra word spacing in the caption of a figure

I cannot figure out why there is extra word spacing in the caption. Possibly because of subfigures? Thanks for any help. \begin{figure}[H] \centering \begin{subfigure}[h]{.45\textwidth} \centering ...