{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}.
4
votes
4answers
58 views
Why is `\strut` working in these scenarios?
\strut seems to be a powerful command to get the interlinear spacing correct; particularly, when working with text in \parboxs or minipages. But it's also nice in contexts in which LaTeX is setting ...
3
votes
1answer
40 views
Unexplained Gap?
I'm trying to make a resume CV document, using a various packages for certain things. I'm not sure if I'm not noticing a conflict in these packages, or I'm being stupid when or comes to margins or ...
0
votes
0answers
50 views
wrapfig with {R} remains left and keeps white space to the right
I am using wrapfig inside normal text (no lists or anything), with the {R} option to make it float right. However, some of the figures end up being aligned left, with all the space to their right ...
3
votes
1answer
36 views
footnote with no preceding space
I would like my footnotes to be separate in the .tex file, but rendered without a space in the resulting file. Can this be done?
Example:
This is some text\footnote{with a footnote}
renders as
...
5
votes
2answers
103 views
Negative phantom
I noticed that \cos is somewhat larger then \sin, and I thought of using something like \hphantom{\cos}\neghphantom{\sin} to add the difference after one of my expressions. However it turns out there ...
5
votes
2answers
59 views
Boxes of zero height, depth and width unexpectedly affecting document spacing
I was adding some mark up for a roughdraft of a document I'm working on. But when I eliminated the mark up, the spacing and linebreaks came out differ.
My intention was to create boxes of zero ...
3
votes
2answers
33 views
List of abbreviations/units customisation
I'm still working at my thesis template and ran into the next problem:
\documentclass[pdftex, 12pt, oneside]{book}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
...
12
votes
1answer
193 views
Is there any opposite of newpage?
Is there any command which is the opposite of \newpage/\pagebreak/\clearpage, i.e. which goes back a page instead of going forward, similarly to the way you can use \vspace to move the current ...
5
votes
0answers
67 views
Acronym generates abnormal spacing
I'm using the acronym package but I just realized that it has some problem with spacing. It is the last version (2012).
Every time an acronym starts a new line, at the end of the previous line there ...
3
votes
1answer
44 views
Vertical space and its size
I don't know if somebody has already asked, but:
how should I do a vertical space of a size of a half/quarter of page?
8
votes
2answers
75 views
Eat double space
How can I get a command to eat an unnecessary space, consider the below:
\documentclass{article}
\newcommand{\mycommand}[1]{#1}
\begin{document}
%Creates single spaces
Discussed ...
3
votes
2answers
26 views
Extra whitespace at top of xymatrix
I'm making some slides where I want to show permutations with little diagrams of dots and arrows. Here is my attempt to depict the permutation 12345 --> 31245:
\documentclass{article}
...
5
votes
2answers
100 views
Using a negative space \! to differentiate between functions and products
In Physics, I often have functions like f(x), but also multiplications like y(-x). I would like my math to be easy to understand, so I am looking for a way to suggest function calls and ...
1
vote
1answer
25 views
How to move up the text
I have used a LaTeX template for the cover letter:
% Cover letter using letter.cls
\documentclass{letter} % Uses 10pt
%\usepackage{helvetica} % uses helvetica postscript font (download helvetica.sty)
...
5
votes
2answers
48 views
Customise \textvisiblespace
The accepted answer in this question shows a neat redefinition of \textvisiblespace, which I like to use because it doesn't produce a warning in math mode.
However, I use it with monospace in an ...
0
votes
1answer
25 views
Bibliography vertical shift with apsrev style due to empty line [closed]
I have found the following issue when using bibliography, in particular the style option apsrev. Compare the .pdf output of the following code,
\documentclass[twocolumn]{revtex4}
...
5
votes
1answer
102 views
Why isn't diagrams.sty compatible with LuaTeX
I am trying to debug the problem with Paul Taylor's diagrams.sty (not in TeX Live or MiKTeX, but available from CTAN).
Minimal example:
\documentclass{article}
\usepackage{diagrams}
...
0
votes
2answers
36 views
No spacing between enumerated items with \usepackage{enumerate}
I use this code now:
\documentclass[11pt]{article}
\usepackage{enumerate}
\begin{document}
\begin{enumerate}
\item a
\item b
\item c
\end{enumerate}
\end{document}
I want to decrease the line ...
1
vote
2answers
51 views
Spacing depending on optional subscripts and superscripts
I am totally new to LaTeX (use it for 2 days), so I am sorry if this has already been asked, but I spent the last 6 hours searching for a solution, but to no avail. (I stumbled upon a package xpeek ...
3
votes
1answer
35 views
Extraneous empty line within memoir's list environment (for very tight lists) if used with memoir's Spacing environment (for single-spacing)
In order to typeset lists with very tight interline spacing, I normally define my own tightlist using memoir's list environment.
Even though my definition (see shortly) (1) ensures that all vertical ...
3
votes
1answer
37 views
Problems with the lstlisting environment (margin and white line)
Consider the following example:
\documentclass{article}
\usepackage{listings}
\usepackage{color}
\begin{document}
\definecolor{light-gray}{gray}{0.95}
\lstset{columns=fullflexible, ...
7
votes
1answer
46 views
Change text color in table, preserve ability
I'm having difficulty creating a new command for \rowstyle that allows me to color the text of different rows in a table and preserve my ability to space out the columns and not induce space between ...
13
votes
2answers
124 views
Usage of LaTeX macro \space (compared with \␣)
Occasionally I find that internal package code contains the macro \space (defined as \def\space{ } by LaTeX). The most-taught way to produce "explicit" spaces in paragraph text is to use \␣, and I ...
5
votes
3answers
71 views
How give space text in math mode?
I have a problem about space text in math mode , and i have minimal working anwers like this following from Microsoft Word :
But, since i use LaTeX dont space text in math mode, like this following ...
4
votes
1answer
31 views
Custom \special command causes unwanted whitespace
For a custom application we use DVI as an intermediate format and feed it to a converter. Our converter needs a "hint" to locate the beginning of a \section in the DVI file. Therefore, we modified ...
0
votes
0answers
30 views
Table of Contents section numbers overlap titles, Sphinx Documentation Generator
I'm attempting to use the Sphinx Documentation Generator to generate a large PDF document with a lot of deeply nested sections with long title(API documentation). I'm not very knowledgeable on LaTeX.
...
1
vote
0answers
82 views
Free space in bar-chart with empty entries
I would like to plot some data set with the ybar option of pgfplot.
But not all entries are nonzero.
The zero entries waste space between the bars and when the plot gets crowed it is not clear anymore ...
2
votes
1answer
44 views
Adding space after a line in ToC
I have been trying to determine way to add space after a section or chapter line in my table of contents. tocloft allows me to add spacing before lines but not after, and this leads to spacing issues ...
3
votes
1answer
50 views
Vertically align characters raised with \stackrel
I learned from Stefan's reply to Putting a character above another character to use \stackrel in math mode to do just that. I'm using that right now to mark segments of a word as having a high (H) or ...
3
votes
1answer
83 views
acronym - tabular — weird spacing while using \ac
I'm currently writing a Lab-Report, using a lot of acronyms and tables.
What I have so far looks like this:
\documentclass{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
...
0
votes
1answer
31 views
Conditional spacing in ToC column headers
Sorry in advance for this being such a specific question, but I'm at my wits end with this problem.
My university has odd formatting requirements for dissertations (I know, don't they all). In ...
4
votes
2answers
53 views
Longtable with multicolumn and parbox spacing issues
I've been trying to build a "complex" table of a certain size but I still have some problems with the spacing. As you can see in the attached pictures, some lines overlap the table row dividers, other ...
4
votes
1answer
63 views
Consistent distance between bar plot groups of different sizes
I'm trying to make a bar plot where i always have one single bar paired against multiple bars. Two problems arise -- first, the first bar is assumed to have 6 other bar buddies and gets pushed to the ...
1
vote
1answer
45 views
Space in while printing but not viewing PDF [closed]
I am trying to write in a IEEETran class of latex. I have a very strange problem.
The minimum stripped code is as follows -
\documentclass[conference]{IEEEtran}
\def \b {\beta~}
...
2
votes
1answer
45 views
Space between underline and contents
Does anybody know how to increase the space between underline and contents?
I am trying to use the template for my thesis, here is the .sty file for header.
%UHEAD.STY If this is included after ...
7
votes
2answers
54 views
An environment for two-way rules in category theory
I want to typeset some category-theoretic calculations involving adjunctions (sometimes called two-way rules).
In short, they look approximately like this (MWE):
\documentclass[a4paper]{article}
...
36
votes
3answers
808 views
Meaning of \quad
Many LaTeX command names have some 'justification'.
For example the commands \cup and \cap have a straightforward meaning.
However, I couldn't find a meaning for the commands \quad and \qquad. Is it ...
3
votes
2answers
46 views
Odd spacing of two column tables & lists
I have an issue with the spacing of the first multiple choice question in my MWE. I have NO idea what is going on. I have run into issues of this sort before, but it was because of improper line ...
5
votes
1answer
62 views
Sub and superscript on the left
I want to do something like this:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}
Hom_{K\cap {}_a^bK}
\end{align*}
\end{document}
But there seems that the _a^b is ...
4
votes
2answers
53 views
Insufficient width for chapter numbers in ToC
I'm trying to format my thesis, and I copied the formatting stuff from a friend who finished her thesis last year. Unfortunately, she only had two chapters and then subsections. I have more chapters, ...
3
votes
1answer
67 views
vertical spacing on enumitem
In the example below I want the enumerate list to essentially be ``inline'' with the word Example from the example environment. It works perfectly with text or enumerate* (inline list), but I cannot ...
2
votes
3answers
74 views
Formatting an equation
\begin{align} \frac{1}{2} (1-\varepsilon^2)\left(\partial_\tau \phi\right)^2
= \frac{1}{2} \left(1-\epsilon ^2\right) \left(
-\frac{S \epsilon \sin\tau }{\sqrt{\lambda }}
-\frac{\text{g2} S^2 ...
1
vote
0answers
48 views
Spacing in Dirac's ket vector
I have defined myself a \ket which does \left| #1 \right\rangle. For a state with two numbers, say n and m, one writes, on paper, |a b>. What kind of distance should I use to separate those ...
3
votes
1answer
50 views
Spacing in the table of contents - change row
I need to change the spacing between the changes in a row. 6pt Spacing must be between
- 2.2 and 2.2.1
- 2.3 and 2.2.2.
Use the comment
\renewcommand\cftsubsubsecafterpnum{\vskip6pt}
...
4
votes
0answers
58 views
Strange vertical space before the caption of a longtable with KOMA-Script classes when xcolor is loaded
When using one of the main KOMA-Script classes — scrartcl, scrreprt, scrbook but not scrlttr2 —, the vertical position of the caption in a longtable environment changes when one loads or unloads the ...
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
33 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 ...
9
votes
3answers
109 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
46 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
47 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) ...