{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
0answers
43 views

Weird word spacing in latex [duplicate]

Why is it so weird spacing like this in LaTeX, how can I remove it? I also noticed that LaTeX auto-shortens words like easily becomes eas-ily. Look at the screenshot below: The code is: the ...
0
votes
1answer
189 views

Add whitespace after header and remove page number

I am writing a short document which I need to fit all on 1 page. I am trying to squeeze everything on there, and because I'm short of space, I wanted my name and title just to be a header right at the ...
12
votes
3answers
292 views

non-invasive kerning/spacing modification: what options are there?

Once in a while, you may want to (1) adjust or create a kerning pair (or, better yet, kerning class) in a font, or (2) adjust a particular glyph's sidebearings. examples of scenario (1) would include ...
2
votes
2answers
57 views

How to create space at the bottom of a the 1st page only

How should I add space at the bottom of a particular page? I want to create a space at bottom of 1st page and it should not followed for other pages. Suppose I want the last four line to go to the ...
2
votes
1answer
146 views

Eliminate overfull hbox warning for mdframed frame that goes into margin

I like my mdframed frames to go into the margin, so that the text is not effected, by using a negative leftmargin and rightmargin. However this results in an Overfull \hbox (0.43031pt too wide) ...
7
votes
1answer
771 views

Writing a letter in ConTeXt, formatting issues

I'm writing a letter to someone, using ConTeXt. I'm running into some formatting issues. The following is the code I have, and the PDF output. There are two things that I'd like to fix. ...
5
votes
2answers
948 views

Spacing after itemize (without parskip package)

This piece of code seemed to be working fine for a long time, until I try to remove the parskip package. Without this package, it seems that I need to include two hacks: Add a ...
11
votes
2answers
561 views

Why is there extra space after (:) in \texttt{}

Whenever I type a space after a colon (:) in a \texttt{} command I end up with extra space — here is a minimal example: \documentclass[12pt]{article} \thispagestyle{empty} \begin{document} ...
1
vote
1answer
351 views

\par\bigskip and the parskip package

I read that if one uses the parskip package then there is no need to add \par\bigskip to separate paragraphs; it is enough to move the new sentence to new line with Enter. That's true but at some ...
6
votes
1answer
4k views

How can I control the horizontal space between minipages?

I'm trying to place two mini pages next to each other, one with text, one with an image. But my code has them spaced really far apart. How can I bring them together horizontally. I've tried \hspace ...
4
votes
1answer
175 views

Latex randomly skips a line (or not)

Consider the following example: \documentclass{article} \RequirePackage{amsthm} \usepackage{lipsum} \RequirePackage[framemethod=tikz]{mdframed} \mdfdefinestyle{proof}{ skipabove = ...
9
votes
1answer
256 views

How to stop LaTeX from forcing single line paragraphs on two lines

I have a document containing some short paragraphs which would fit on a single line using normal spacing. When typesetting those paragraphs LaTex apparently tries hard to stretch those lines (the ...
6
votes
0answers
155 views

Vertical space between 2 subsequent headers (of chapters, sections, etc) [closed]

I'm writing a LaTeX class for my bachelor's thesis. My university's standard says that there should be a space after headers: 2cm if there's text after the header 1.3cm if there's another header ...
18
votes
1answer
321 views

Drawbacks of redefining math accents with extra leading {}?

As I discovered through the non-bug latex/4253, TeX has a (mis)feature whereby it ignores braces around a \mathaccent construction: ${a_b}_c$ works, but ${\tilde a_b}_c$ fails with a "Double ...
7
votes
3answers
265 views

Force inline-type superscript for display equations (but display-type subscript)

I am trying to create a macro \jjoin for a mathematical operator which roughly produces the following behaviour: Inline: \bigvee^{(J)}, subscript (typically i \in I) goes in the usual position (as in ...
1
vote
2answers
193 views

Way too much extra space in my tables

I'm new to making tables and I'm having a problem with them taking up way too much of my page. \begin{table}[ht] \centering \caption{Table F8: Fertility Rates by Generation and Marriage Type} ...
7
votes
3answers
334 views

xelatex + frenchb introduce extra spaces before some characters in lstlisting blocks

When using babel 'frenchb' with xelatex, spaces are introduced before colons and other characters. This is great for prose, but this is also being applied to code snippets. This yields an unacceptable ...
5
votes
1answer
240 views

Too much space between author and year in apacite citations

Does anyone else feel that there's too much whitespace between author and year in the following example (note the red brackets)? Or is it proper standard and just annoys me because I'm not used to it? ...
9
votes
1answer
1k views

Indentation of sections and paragraphs to show hierarchy [duplicate]

I am having troubles with the format of a work that I'm doing. The default output of LaTeX looks like: 1.1. Section A Latex latex latex latex. 1.1.1. Subsection A-1 Latex latex latex ...
3
votes
2answers
345 views

Single line beamer slide

This probably isn't how beamer is intended to be used. However, I would like to create a beamer slide where: there is only a single line in the slide/frame the single line is vertically and ...
3
votes
1answer
325 views

How to change horizontal spacing before section number

How do i change the small horizontal spacing that is present before a section number? I have used the command \titlespacing from package titlesec to set the left spacing to 0, but it is still ...
5
votes
1answer
2k views

automatic spacing between words in math mode

In math mode, something like $if f x > 3 then 42 else y$ typesets to this: Obviously, spacing is wrong here, and I need to correct manually: $if \: f \: x > 3 \: then \: 42 \: else \: y$ ...
2
votes
1answer
131 views

How to typeset hh:mm:ss time format in math mode?

What's the correct way to typeset a daytime in the format hh:mm:ss in math mode? For example in $2:13,12\,\mathrm{min} = \SI{133,12}{s}$.
6
votes
1answer
255 views

Numbers too close to figure captions in List of Figures, can this be fixed without changing the class?

On my List of Figures page, my figures go up to 4 digits, such as Figure 13.14. This causes the figure list to be right up against the text, such as: 13.9 My figure 13.10My next figure I need to ...
3
votes
2answers
347 views

TikZ: Text blocks with minimum spacing AND “preferred” anchor

I'm new to TikZ, and I'm trying to solve a problem which should be easy, I found many related examples but none helped me. Given the following MWE: \documentclass{article} \usepackage{fontspec} ...
4
votes
1answer
145 views

Equal separation between south of one node and north of another

I am new to TikZ and am trying to get these three boxes with equal spacings between the outer frames of the boxes such that the two arrows are the same length. I am going to have a flow chart with ...
9
votes
0answers
92 views

Using “\ ” instead of “{}” after a macro [duplicate]

Given a macro definition like \newcommand{\answer}{\emph{42}}, do They realized that \answer{} is the answer to everything. and They realized that \answer\ is the answer to everything. always ...
6
votes
2answers
203 views

Using \only<#> to change text color causes spacing issues

Hello and thank you in advance for your help! I'm comparing the following two commands: This is a \only<1>{test}\only<2>{\textcolor{red}{test}}. ...
1
vote
1answer
186 views

How to reduce size of bibliography header [duplicate]

I want to reduce the amount of space that the title of my bibliography takes up. I've tried using negative vspace, albeit unsuccessfully. My current MWE is: ...
8
votes
1answer
203 views

a ∣ b and a ∤ b in formulas

What is the correct way, both semantically and typographically, to typeset a ∣ b and a ∤ b (read “a divides b” and ”a does not divide b”)? I guess I could simply type | (vertical bar, U+007C) or ...
4
votes
2answers
110 views

Printing something, leaving larger space

Is it possible to use something like \myphantom[xyz]{abcdef} to print "xyz" with some alignment, but leaving space as if it were "abcdef"? A code like: \[mn xyz \myphantom[printed]{abcdefghi ...
10
votes
1answer
404 views

\@ vs. \␣ after abbreviation. (Read backslash-at vs. backslash-space)

I was used to write abbreviations like foo i.e.\ bar but today learned that I could also write them as foo i.e.\@ bar. Both of these apparently have the effect of keeping the space to its normal ...
3
votes
1answer
179 views

itemize: How to change horizontal spacing to subitems in beamer

Bugged me for some time: how to change the space pointed out below? * abc * cde > fgh ^^^^ this
7
votes
1answer
1k views

Recommend way to get angular velocity in degree with siunitx

The siunitx package has a special macro for setting angles in degrees called like \ang{42}, which renders as , i.e. sets no space between the number and the unit as recommended and in contrast to the ...
0
votes
1answer
1k views

splitting by using & \qquad

\epsilon ^7 \left(g_7 \phi _1^7+6 g_6 \phi _1^5 \phi _2+10 g_5 \phi _1^3 \phi _2^2 + 4 g_4 \phi _1 \phi _2^3+5 g_5 \phi _1^4 \phi _3+12 g_4 \phi _1^2 \phi _2 \phi _3 + 3 g_3 \phi _2^2 \phi _3+3 g_3 ...
5
votes
1answer
245 views

Beamer ToC: vertical spacing compressed when making ToC in columns environment

I am trying to adapt the Beamer table of content to my needs. I use the columns environment to change the lay-out of frames with a lot of white space. This works fine in most cases, but when I use it ...
7
votes
1answer
654 views

TeX ignores \vskip at the beginning of document

Here is a simple Plain TeX snippet for demonstration \vskip 3in Aaaaa \vskip 3in Bbbbb \end When I compile this with pdftex, I expect to see a 3-inch-high blank space, then Aaaaa, followed by ...
5
votes
1answer
171 views

How to make letter spacing in verbatim/fancyvrb look like listings

I've just noticed that the spacing between letters is different in verbatim vs. lstlisting environments: Given that I add the option columns=flexible to the lstlisting environment, the spacing in ...
3
votes
2answers
2k views

How do I remove white space above itemize command in beamer using enumitem

I am new to \LaTeX. I am trying to use solution give on How to remove the whitespace BEFORE itemize/enumerate? to remove vertical space before itemize environment using enumitem and beamer. But I ...
3
votes
1answer
248 views

How to extend the horizontal line and colored box all the way?

I want to extend the horizontal line and the colored box all the way to the end of the page, however using \hrulefill (instead of \hline, screws up the format.) This is my code: ...
11
votes
2answers
281 views

Should a negative kern be added after a degree symbol if followed by punctuation?

Not sure why I have not noticed this before, but spacing between a degree unit and punctuation seems strange as shown in red. Should a manual \kern be added (as shown in blue)? Code: ...
3
votes
1answer
68 views

Leading space in samepage environment after equation

When used directly after the an equation, the samepage environment inserts a leading space. Is this the intended behavior? How do I remove it? Compare the output of ...
0
votes
0answers
29 views

Overspaced paragraphs [duplicate]

\documentclass[12pt, a4paper]{book}%, oneside \begin{document} \chapter{Current Approach}\label{chap:background} \pagebreak \section{Approximation} Nunc accumsan iaculis odio, vel pretium neque ...
1
vote
0answers
113 views

How to reduce space between heading (e.g. “List of figures”) and contents in thesis [closed]

I have trouble reducing the space between the the title like LIST OF FIGURES, TABLE OF CONTENTS, etc., and the list body body in my thesis. I had the same problems with chapter headings, which I fixed ...
2
votes
1answer
247 views

How to adjust the sign of implication sign

I want to get the following implication arrows: But according to percusse's suggestion not implies, not Leftarrow, description in the middle of an arrow in TikZ-cd I would get this: As you can ...
5
votes
2answers
102 views

Empty space in standalone document with textopo

The question is related to similar issues with standalone package: lots of empty space is added in addition to the desired figure. However, this time no empty paragraphs in source code. My MWE: ...
1
vote
0answers
68 views

Remove the unnecessary white space between figures and the sentences [duplicate]

This is the command I used to have the figures. \begin{figure}[h] \centering \includegraphics[scale=0.2]{ch5} \caption{lalalalal} \label{llaa} \end{figure} However, ...
5
votes
1answer
123 views

Ugly spacing in lstinline

I am using the listings package to typeset Erlang source code in my thesis. For short snippets, I use \lstinline. The result is often unsatisfying. Consider the following example, which contains ...
7
votes
2answers
142 views

Wrong vertical space in theorem environment closed by an equation

It happens that LaTeX, to fill a page vertically, adds extra spaces around equation environments (and other vertical spaces). Now suppose I have a theorem environment (using amsthm) which ends with an ...
1
vote
0answers
122 views

How to set a fixed (or remove) whitespace border around subfloat when using subcaption package [closed]

Say for example I have the following code for a double-column article: \begin{figure*} \centering \begin{subfigure}[t]{0.96\textwidth} \centering ...