{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
0answers
80 views
Adding floating space between main text and footnotes
I have to typeset a text with several widows and lots of footnotes. The editor told me to leave an additional blank line between the main text and the footnotes and to use this space to print the ...
9
votes
2answers
93 views
create text blocks with zero pt leading
What I want to achieve is a text block with zero or, better, nearly zero leading and with searchable text.
The above example is a tikz picture, created with inkscape and exported to tikz.
My own ...
1
vote
0answers
38 views
Space between a|b in math mode? [duplicate]
For a context free grammar I need to write:
A -> a | b
My code for this is
$ A \rightarrow a | b $
however this gives me something like
A -> a|b // wanted: a | b, note the space before ...
5
votes
2answers
97 views
Parsing leading hardspaces
This question is related to (but distinct from) this question: Parsing a \$ as part of an improved \getargs command, which I asked earlier.
I am experiencing a residual space in a string result from ...
0
votes
0answers
45 views
Usage of \IfEndWith and \StrGobbleRight Inserting Spaces [closed]
2013-03-06: Update:
It seems that there was a recent update to xstring which resolved this problem. Just updated all packages and the MWE below now correctly produces:
It seems as if I am ...
5
votes
1answer
96 views
Margin note beside heading
I would like to insert a hyperlink or two for each heading and I would like to have them inserted into the margin such that they are aligned with the header. I was hoping to create a command which ...
2
votes
1answer
127 views
Spacing in flalign affected by mathpazo
I got the following (partly shorted) equation:
I would like to get rid of the space left of the equation (left of Q') so that the label (0.2) fits on the right side.
\documentclass[
a4paper,
...
2
votes
1answer
51 views
How to decrease the space after figures [duplicate]
I want to reduce the space between Figure description and text.
0
votes
1answer
75 views
How to reduce the space before & after \section and \subsection [duplicate]
How to reduce the space before and after titles specified by \section and \subsection
\subsection
\section
4
votes
1answer
92 views
Incorrect vertical spacing inside a mdframed environment
I have some problems about vertical spacing before and after some environments inside a mdframed environment. It is as if topsep=0. The insertion of \setlengh{\topsep}{8pt plus 2pt minus 4pt} fixes ...
0
votes
0answers
33 views
Inconsistent spacing in the List of Tables, generated by the template [closed]
The thesis template by my school generates the list of tables. However, the line spacing is not consistent in the table. Any ideas how to fix it?
4
votes
1answer
83 views
How to remove unnecessary space after flalign* environment
I was wondering whether it would be possible to remove some unnecessary space after flalign* environment. I tried using \belowdisplayskip, but to no avail.
Below is the sample input.
...
0
votes
1answer
74 views
Table cutting off fractions [duplicate]
I am having some problems with my table cutting the tops and bottoms off of my fractions.
See image. The horizontal padding seems fine as is, but I couldn't figure out how to increase the vertical ...
2
votes
2answers
147 views
How to horizontally top-align multiple \tikzpicture's without using \hspace?
The use case I'm having is the following:
\documentclass{article}
\usepackage{amsmath}
\usepackage[showframe]{geometry}
\usepackage{qtree}
\begin{document}
\Tree [.A B C [.D E ] ]
\Tree [.F [.G H ...
4
votes
2answers
140 views
Restoring qtree spacing in tikz-qtree
Is it somehow possible to achieve the same node spacing in tikz-qtree as in the original qtree package? Compare the two:
qtree:
tikz-qtree:
The spacing between nodes in one level should be the ...
4
votes
0answers
81 views
Overlapping label and text in description environment [closed]
I'm relatively new to LaTeX, and I am having this problem with the description environment:
\documentclass{article}
\usepackage{amsmath}
\usepackage{bm}
\usepackage{IEEEtrantools}
\usepackage{amsthm}
...
3
votes
3answers
99 views
New environment with center and parsep
I want to make a new environment where the content is centered and where I can specify a local parsep value.
My attempt to make this work is the following:
\documentclass{article} ...
2
votes
1answer
53 views
Vertically aligning list bullet when using \infer
I have a list where one of the list items is an \infer{...}{...} command. In this case, the list bullet is not vertically centered with the item, as you can see in the picture:
How can I move the ...
3
votes
1answer
64 views
Alignment spacing for negatives - Why am I unable to properly align my equations?
Although I searched the Web and indeed found an answer here, I still seem unable to address my issue of aligning two rows in my step-by-step process for solving a very basic equation. Just in case it ...
9
votes
1answer
108 views
Why is parskip=half messing up the spacing in mdframed?
without parskip:
parskip=half:
\documentclass[parskip=half]{scrartcl}
\usepackage{blindtext}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{thmtools}
...
9
votes
2answers
119 views
Compute remaining horizontal space in align environment
I use align* often and sometimes it is preferable to add text to the right hand side of an equation instead of using \intertext, or \shortintertext, which tends to interrupt the math flow. This is ...
9
votes
3answers
326 views
Nicer alignment of x^*/2
I'm trying to typeset $\frac{x^*}{2}$, but I can't find a (simple) way to make the alignment look nice. So far, I've tried the following:
\documentclass{article}
\begin{document}
\begin{equation}
...
2
votes
1answer
62 views
How to control the horizontal location of subscript?
Sometimes I find the subscript is located too far from the letter (to which it is the subscript) such as in
\mathbf{v_{_\text{B}}}
How to get the subcript closer to the letter?
1
vote
1answer
73 views
How to control spacing in end of itemize?
This refers to my previous question
How to reduce space in begining but not in end of itemize
Now I need to control spacing in the last of itemize like I could control in the beginning as suggested ...
1
vote
0answers
38 views
\lstlistoflistings does not add spaces by chapter [duplicate]
I'm quite new in LaTeX and ended up with this problem: I'm using list of tables and list of lstlistings (\listoftables, \lstlistoflistings), both numbered by chapter. List of tables does add spaces ...
0
votes
1answer
238 views
How to remove space after image caption? [duplicate]
I am writing one article in which i need to write one image and its caption. I found space after caption seems to be more than normal.
\begin{figure}[!ht]
\centering
...
1
vote
1answer
110 views
Vertically center block of text including chapter for dedication page
I have a dedication page in my book (using \documentclass[a4paper,11pt,openany,oneside]{book}. It is in a separate chapter and contains two small paragraphs. The chapter is on a separate page. At the ...
4
votes
1answer
53 views
Missing space before “and” in author list with two \thanks
I am trying to typeset the authors' names in a paper so that they appear as
Joe Bloggs* and John Smith**
(i.e. typeset with a joining "and" and normal spacing between words). I also need to put a ...
4
votes
1answer
50 views
How can I move an equation without affecting the label?
I am having an issue with the automatic LaTeX equation and label formatting on one of my longer equations (see results below).
Minimum Working Example
\documentclass[11pt]{article}
...
2
votes
1answer
148 views
How to adjust the space between pictures using minipage?
I use minipages to place three graphs, however the spaces between each two is not with the same width. Here is the code, may someone help me? and how to locate the (a) (b) (c) above the each of the ...
12
votes
3answers
155 views
Bizarre spacing of \cdot when trying to typeset a permutation type
I was just trying to write some cycle types in a permutation group, like so:
The conjugacy classes of the symmetric group are simply given by the
cycle types, so there are five in $S_4$: $Id$, ...
6
votes
1answer
203 views
TikZ: Controlling text within nodes and placing nodes in text
Need some help working with TikZ. Let me begin by saying that I think TikZ is amazing. I hardly know what I'm doing at this point and yet I've been able to draw some very nice diagrams with it.
...
0
votes
0answers
101 views
\epigraph and book paragraph spacing [closed]
When using \epigraph, an entire line is added between paragraphs on following right-hand pages. Text on the page the epigraph is used is unaffected. How do I remove the extra line between paragraphs?
...
2
votes
1answer
60 views
Is there a way to reduce spacing before the footnote call?
I find the spacing between the word it refers to and the footnote call a bit too large. Is there a way to reduce it ?
0
votes
0answers
32 views
Text in command gets glued to following text [duplicate]
I made this command \newcommand{\BR}{MyBrand\superscript{\scriptsize ™}}, when I use it and write something like this \BR is awesome the ouput is:
MyBrand™is awesome
What am I doing wrong here?
9
votes
1answer
211 views
+50
Exhaustive list of use cases for the interword space \␣
The Guide to LaTeX (4e) states that \␣ is a "[n]ormal space between words after a command without arguments or after a period that is not the end of a sentence" (p. 467).
For the former case ...
13
votes
3answers
241 views
Fixed-width interword space
I would like to typeset post--World War II with what Adobe InDesign calls a "quarter space". The en-dash is there to be wider than a normal space, to clarify the constituent structure ([post-[[World ...
6
votes
1answer
141 views
Applying condition around \intertext and \shortintertext leaves excess vertical space
When I try to make either \intertext or \shortintertext conditional I get excess vertical spacing prior to the conditional text as per the MWE below. Note the excess vertical spacing prior to "Albert ...
3
votes
1answer
183 views
Combining Textstyle and Displaystyle
In my mathematics writing, I often use both superscripts and subscripts on the probability operator. The subscripts are generally lengthy, and I would like for them to appear underneath the operator, ...
2
votes
1answer
84 views
Center alignment of tikzpicture outside figure environment without vertical space [duplicate]
How to align tikzpicture outside figure environment without introducing vertical space? I'm aware of related questions, such as What is the correct way to center a \tikzpicture? and Should I use ...
2
votes
1answer
69 views
Is it possible to add some vertical space like ~~~?
I sometimes uses ~ to adjust space between symbols. Now I want to add some vertical space which play similar role, how do I do that?
(It's not about controlling space between lines, but just add some ...
7
votes
3answers
111 views
I want to create a command that will conditionally gobble up trailing whitespace: I want an “\unxspace” command
I have a command that occasionally produces whitespace that I don't want.
\def\testa{a}
\def\testb{a}
\newcommand{\mycommand}[1]{\ifx\testa\testb{#1}\fi}
When \testa and \testb are different, I ...
0
votes
1answer
122 views
LaTeX source code listing with less Space between characters
I'm trying out LaTex and I want to write shell Code in my document.
Therefore I took this code from: http://stackoverflow.com/a/742069
\documentclass{report}
\usepackage{color}
\usepackage{xcolor}
...
2
votes
1answer
61 views
How to reduce space in begining but not in end of itemize
This refers to my question.
How to reduce space in begining of itemize?
[topsep=0] also reduces space between the itemize and text below to itemlist. I just want to reduce space in the begining not ...
9
votes
2answers
125 views
Math Spacing in the presence of a trailing/non-trailing comma
I thought I knew how to use a \hphantom{} but don't know of an easy way to handle this case due to the comma. I want to get the text aligned for the X row. I added the appropriate \hphantom{{}+1} ...
2
votes
1answer
175 views
Auto resize tabular row height
After running following code
\documentclass[10pt]{article}
\usepackage{multirow}
\begin{document}
\begin{tabular}{|l|l|l|} \hline
\multicolumn{3}{|c|}{Schedulers} \\ \hline
\multirow{3}{3cm}{Row 1. ...
4
votes
3answers
164 views
How are space tokens and empty lines processed by long commands (as their potential arguments)?
How are spaces and empty lines processed by long commands (i.e., those that do not accept paragraph breaks inside)? Are there different space tokens aside from " " and an empty line? It appears that ...
2
votes
2answers
269 views
center and \centering both add space above; \centerline does not
The nag package suggests I use the center environment in LaTeX, rather than the TeX \centerline command.
When I do that, however, I find that the former inserts a blank line above the line (in my ...
3
votes
1answer
112 views
What are the different kinds of vertical spacing and horizontal spacing commands available?
@egreg gave a very nice and thorough answer to What are the different kinds of boxes in (La)TeX?. It seems it would be nice to have a similarly thorough answer to controlling spacing.
I'm not ...
7
votes
2answers
105 views
How to specify RULES in main body
I want to write RULES in main body, how to write the correct TeX code that guarantees a little larger space before and after RULES like this.


