{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}.
1
vote
0answers
24 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
46 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
44 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
60 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
41 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 ...
13
votes
0answers
75 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
30 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
46 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
66 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
163 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
34 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
47 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
53 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
37 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
67 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
35 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
195 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
61 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
48 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
89 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
66 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
31 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
52 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
32 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
271 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
65 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
60 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
58 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
131 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 ...
3
votes
3answers
73 views
Reduce tab spacing
How can I reduce the spacing after I have used & in tabular?
\documentclass{article}
\usepackage{tabularx}
\begin{document}
\begin{tabularx}{\textwidth}{X X}
\textbf{Greetings} & Refer to ...
6
votes
1answer
110 views
Code improvement and suggestions in template
Consider the following MWE:
\documentclass[12pt,twoside,letterpaper]{report}
\usepackage[text={4.95in,7.5in},centering,bottom=1.5in,showframe]{geometry}
\usepackage[dvipsnames]{xcolor}
...
8
votes
1answer
108 views
Trying to make sense of TeX decisions (stretching, tolerance)
For example, if I don't set stretch parameters (tolerance, badness, emergencystretch, sloppy, etc) I get some overfull boxes (full LaTeX code post at the end).
Notice that TeX seems unwilling to ...
2
votes
1answer
51 views
Latex Section header and figure won't print on same page
I'm trying to print a section that has only figures (no text aside from captions). I have a figure that clearly does not take up a whole page (it takes up half a page at most), but for some reason I ...
8
votes
2answers
82 views
Extra page at beginning of appendix containing big figures
I have an appendix that contains two full-page figures. The first page of the appendix is always blank except for the title -- I suspect this is a common problem with appendices of full page figures.
...
2
votes
1answer
41 views
How to put a vertical space between two functions inside algorithmic environment?
To make the algorithm readable, I would like to put some space between two functions. E.g.:
\documentclass{article}
\usepackage{algorithm}
\usepackage{algpseudocode}
\begin{document}
...
2
votes
2answers
65 views
How can I lower an \xrightarrow
I'm referring to a previous post where I asked how to handle lines that are too tall due to stacked mathematical symbols. In particular, the problem occurs in my texts when using \xrightarrow like in ...
8
votes
2answers
84 views
Dollar sign with txfonts and fontenc
I have a strange problem with the dollar sign ($) and \textbf{} when using the txfonts and fontenc packages. The dollar sign has a space after it. Both packages are required to reproduce the problem.
...
5
votes
1answer
45 views
Edit space for overbraces in equation
I would like to use \overbraces and \underbraces in my equation. However, when I make the text for \overbraces too long, the \overbrace doesn't contain the correct part.
...
13
votes
3answers
97 views
Difference between \mskip and \mkern
What are the differences between \mskip and \mkern? The TeXbook writes the following (ch. 18):
You can insert math glue into any formula just by giving the command
‘\mskip⟨muglue⟩’. [...] ...
7
votes
1answer
84 views
Additional Space after Colon in References
I'm printing the references in my document using:
\nocite{*}
\bibliographystyle{plainnat}
\bibliography{D:/economics/dataset}
Here is one example of the generated references.
George J. ...
3
votes
2answers
38 views
Table column spacing: right most column has too much space, should be shared
I made a table. It has 5 columns, the last 4 centered.
Right now, they are not evenly spaced. Namely, the last column is way too far from the others. How do I go about fixing this? Here is the code ...
0
votes
1answer
39 views
LaTeX \bar in table [duplicate]
I'm very new to Latex. So i want to put a \bar W in a table but the bar is covered by the horizontal line of table.So it becomes invisible. I tried adding \noalign{\smallskip} after \hline but it cuts ...
8
votes
1answer
118 views
Too much vertical space before \part when using \marginpar
When I use a \marginpar{...} before \part{...} on a new page, I get a big space on the top of that page. Below is a screenshot, where the left one was typeset with marginpar, the right one without:
...
6
votes
2answers
65 views
Better vertical space between paragraphs and centered tabular or figure
When I need to place a tabular or figure inside a paragraph (usually in exams or class notes) I use {\par\centering <tabular>/<figure>\par} because center environment uses too much ...
4
votes
0answers
132 views
Formatting of matrices
I have a document full of matrices, and many of them don't look very good, right now. Hunting for solutions, I found this post from two years ago.
I have the same problems mentioned there, and I'd ...




