{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}.
2
votes
1answer
27 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
32 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 ...
2
votes
1answer
32 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: ...
10
votes
2answers
81 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
23 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
37 views
What variables control the space before and after table environments? [duplicate]
Code:
\documentclass{article}
\usepackage[a5paper]{geometry}
\setlength{\parindent}{0cm}
\begin{document}
text
\begin{table}[ht]
\begin{tabular}{ |c| }
\hline
text\\
\hline
...
0
votes
0answers
23 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 ...
0
votes
0answers
31 views
How to reduce space between heading (e.g. “List of figures”) and contents in thesis
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
67 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
43 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
42 views
Remove the unnecessary white space between figures and the sentences
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, ...
3
votes
1answer
32 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
59 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
20 views
How to set a fixed (or remove) whitespace border around subfloat when using subcaption package
Say for example I have the following code for a double-column article:
\begin{figure*}
\centering
\begin{subfigure}[t]{0.96\textwidth}
\centering
...
7
votes
5answers
220 views
Best practice for typesetting quantifiers?
When I work with quantifiers I noted that are very close to the other symbols and the result does not look good, for example
$\exists a\in\mathbb{R}\exists b\in\mathbb{R}\forall c\in\mathbb{R}\forall ...
3
votes
2answers
45 views
Placing image in second column of two column page
I would like to use a two column layout and have images and text in the second column begin at the top of the page and continue down with even spacing. I've tried using the multicol package as well, ...
1
vote
1answer
34 views
to remove unnecessary space between text and figure on same page
What is the command that I can used to remove unnecessary space between text and figure on same page?
Below command doesn't do anything
\newcommand{\squeezeup}{\vspace{-2.5mm}}
4
votes
1answer
69 views
How to remove the unwanted space on the left side of the following gather*?
\documentclass[preview,border=12pt,varwidth]{standalone}
\usepackage{amsmath}
\begin{document}
\abovedisplayskip=0pt\relax
\begin{gather*}
6x^2-30x+36=0\\
6(x^2-5x+6)=0\\
6(x-2)(x-3)=0\\
x-2=0 \quad ...
4
votes
1answer
51 views
Math-mode kerning/spacing of letters
Take the following two equations:
\begin{equation}
o^{AR}_{i,t} = w^{AR}_i x_t + o^{AR}_{i+1,t-1}
\end{equation}
\begin{equation}
o^{MA}_{i,t} = w^{MA}_i x_t + o^{MA}_{i+1,t-1}
...
2
votes
3answers
77 views
how to arrange the place before a pair of parentheses indicating a note in math mode?
I need write some formula. I don't know how to choose the |space| as below:
$a_1=S_1$, $a_n=S_{n} - S_{n-1}$ |space| ($n > 1$)
(Maybe
$a_1=S_1$, $a_n=S_{n} - S_{n-1} |space| (n > 1)$
is ...
1
vote
0answers
45 views
Unwanted extra space after header of first section, using multicols article
I'm a beginner of LaTex, so I'm sorry if I've asked an easy question. I'm writing a scientific article, and after only the first header of the first section I get an unwanted extra space. Here is the ...
17
votes
1answer
159 views
Evaluate typographical beauty of a document (widow, orphans, hyphens, etc) in order to optimize the page geometry
When finalizing documents, one of the last things I do is usually to play with the page geometry to improve the overall layout: get rid of a few orphans or widows, reduce the number of hyphenations, ...
2
votes
0answers
35 views
Vertical spaces above and below longtabu
This is, in a way, a follow-up-question to New table-environment, spaces and enclosing { } in a new environment, which has already been answered conveniently by @egreg.
Please compile this MWE:
...
2
votes
1answer
53 views
How to define the default vertical distance between nodes?
Use positioning can control the individual vertical position of nodes. But is there any way to control the default vertical spacing?
\documentclass{article}
\usepackage[utf8]{inputenc}
...
6
votes
1answer
71 views
How to remove the white space on the top of the following table?
How to remove the white space on the top of the following table?
\documentclass[preview,border=0pt,varwidth]{standalone}
\usepackage[table]{xcolor}
\usepackage{array}
\usepackage{longtable}
...
10
votes
4answers
169 views
Using commas in mathematical formulas
I need write some formula, but I don't know how to arrange the comma's place.
$p,\ q\in N$, blabla $0<a,\ b<1$ blabla $i,\ j=1,\ 2,\ \dots,\ n$
or
$p,\;q\in N$, blabla $0<a,\;b<1$ ...
2
votes
1answer
36 views
New table-environment, spaces and enclosing { } in a new environment
It was hard for me to find a proper title (feel free to change it) for my question which I want to introduce with an example:
Situation
In my document I sometimes use tabus directly in the document ...
0
votes
0answers
55 views
Missing $ inserted - did I make something wrong? [duplicate]
Im writing a paper using Latex and I get repeatedly this "! Missing $ inserted. $ l.92 ?" error. Its only in two passages and I don't see any obvious mistake I made. The code is:
...
5
votes
2answers
55 views
Uneven spacing around ellipsis in $[A_1;\dotsc;A_n]$
I've noticed that when a \dotsc has a semicolon on each side, there's uneven space around the ellipsis created. With
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}
...
3
votes
1answer
40 views
Space between paragraphs (local)
I would like to increase the space between two paragraphs only, not for the whole document. For example I want to have something like this
Paragraph1: One paragraph here
Paragraph2: Space between ...
4
votes
2answers
66 views
Unwanted extra spaces are included before and after backslashes in biblatex URL
I have a biblatex reference with a URL field. However, every backslash is surrounded by spaces.
I am using
\usepackage[sorting=nyt, citestyle=authoryear, bibstyle=authoryear, isbn=false, ...
1
vote
0answers
17 views
Different vertical spacing just in header row of table [duplicate]
Does anyone know how to make the header row of a table of a different thickness than the body rows? I can control the standard 'thickness' of the rows via: \renewcommand{\arraystretch}{1.25}, where ...
3
votes
1answer
68 views
How to put two minipages side-by-side, which use 100 % of the text width?
In draft-mode a black marker indicates that the reserved space is too low. This also appears in the following example, but it shouldn't. How can I put two minipages exactly side-by-side?
...
1
vote
1answer
36 views
Spacing issues with letterhead background
I have a letterhead background that I use on cover letters. I am having spacing issues with some text being obscured by the letterhead image. I have tried using \\, \\*, vspace{5in} etc to no avail.
...
6
votes
2answers
198 views
More than one width of a glyph in LaTeX or LuaLatex
I don't know where I can ask about it.
I have font with 2 or 3 versions of letter 'a'.
How I can put this information to LuaLaTeX, LaTeX etc.?
When the paragraph are breaking/making LaTeX made ...
7
votes
1answer
63 views
Weird break before English language citation
I'm using LyX to write my thesis I've encountering this weird problem. When in-paragraph citations are formatted as English in my Danish document (which I do to get the spell checker working for ...
6
votes
2answers
54 views
Increasing vertical space between two subpictures
I'd like to increase the distance between the upper pictures and the lower ones (a-c and b-d are too close to eachother). I'm new to tikz and I really don't know where to put my hands on. Thank you.
...
6
votes
1answer
92 views
Wrong spacing in math-mode
Consider the following example. (The code is not my own.)
Code
\documentclass{article}
\usepackage{mathtools}
\usepackage{siunitx}
% Subscript text directly in math mode.
\makeatletter
...
3
votes
2answers
67 views
amsthm in clean
I am looking for a good latex template for my phd. I did not like the classicthesis because of the huge margin and the collapsed table of contents.
I found the cleanthesis to be just what I was ...
0
votes
0answers
33 views
Left margin for boxed option in algorithm2e
When I am using the boxed option in algorithm2e package, the left margin between the box border and the algorithm is 0. Is there any way to adjust this?
The package has been included as following
...
4
votes
1answer
53 views
Same vertical spacing for chapter and chapter*
I use \chapter*{} in the \frontmatter and \chapter{} in the \mainmatter.
I use titlesec and the styling of the chapter headings is this:
\documentclass[10pt,a4paper,openany,oneside]{book}
...
...
3
votes
1answer
38 views
Testing and modifying white space around an environment
I'm trying to create something similar to marginpar but without the hassle of floats (particularly because I'm going to have a lot of these).
First issue These notes always appear at the beginning of ...
1
vote
0answers
34 views
Latex float so no stretching appears, but everything is placed on top
It has probably been already answered, but I cannot find it.
If I include images as floats, LaTeX places the last one on a single page in the middle. How do I make LaTeX to put in on the top of the ...
1
vote
0answers
36 views
space bibliography [duplicate]
my bibliography looks like
Abowd, J.M., F. Kramarz, and D.N. Margolis. 1999. High-wage
Workers and High-wage Firms.Econometrica, 67(2): 251333.
Abowd, J.M., R.H. Creecy, and F. Kramarz. 2002. ...
6
votes
1answer
279 views
Is there an alternative to LaTeX which isn't whitespace sensitive?
I have been using LaTeX for about a year now, and I quite like it.
However, I like to space out my source code. In most languages, this doesn't cause an issue,
as extra newlines don't affect meaning.
...
2
votes
1answer
69 views
changing spacing of caption
I'm creating a figure using LyX. I would like the spacing of the caption below the figure to be 1.3. Is there an easy way to accomplish this? Setting the spacing to 1.3 for the entire document using ...
2
votes
1answer
64 views
Remove photo padding in moderncv classic
When \photo is used in moderncv, it includes a ~3px padding between the image and the border. How does one remove this? I have found the part of the moderncvstyleclassic.sty that deals with the ...
4
votes
1answer
59 views
Increase the space between operator in subscript/superscript
I need to increase the space globally between operators in subscripts/superscripts.
Example: \sum_{x=4}
I need a little more space before and after the = symbol in the subscript. It is required ...
1
vote
1answer
41 views
Tree with more levels
I'm working with the package qtree and I'd loved to make more levels. My code is:
\begin{frame}[t]{\secname}
\Tree [.{L} [.{L1} {\textit{Lag}: \\ ${\textstyle x=y$ \\ \small{C}} ]
...
11
votes
3answers
132 views
How to generate non-blanks between words?
In an otherwise-vanilla latex doc, I have a long list of strings that I need separated by <space> <cdot> <space>. The output needs to look like:
Lorem <cdot> ipsum ...






