{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)

9
votes
1answer
105 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
118 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
325 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
61 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
225 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
102 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
52 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
49 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
142 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
153 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
196 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
97 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?
5
votes
1answer
163 views

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
234 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
138 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
168 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
110 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
118 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
124 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
169 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
163 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
240 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
109 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.
1
vote
1answer
93 views

How to increase space between bibliography without using biblatex

Is there a way to increase space between bibliography without using biblatex?
27
votes
2answers
304 views

Why is there a \, space at the beginning of the “aligned” environment?

Near the beginning of the definition of the amsmath environments aligned and gathered (and also mathtools' multlined) there's an explicit thin space \,. This often has to be cancelled with \!, as ...
15
votes
2answers
255 views

How to reduce the space between two slashes when using \url?

This is a follow-up question to Space between two slashes. Bianca Lobo's answer (defining a \twobar command with proper kerning) is nice; however, it doesn't work in the argument of the \url command ...
10
votes
1answer
184 views

Space between the two slashes in “http://” too big

I'm using a lot of links with http:// in my document, but the two slashes are too much separated, I'd like them to be more near each other. How do I do this, in a neat way? I'm using a sans-serif ...
2
votes
1answer
113 views

nomenclature page formatting

I have a list of symbols generated throught the nomencl package. It works fine. The only problem I have is: How can I redefine the margins for the page? by default it is using the margins for ...
4
votes
2answers
104 views

My custom theorem/proof environments aren't playing well together

As can be shown in the following MWE, when I have a theorem environment followed by a proof environment, the proof isn't going into the next line; it's rendering right on top of the text I have for ...
0
votes
1answer
92 views

Spacing in multiline equations

Please help me to figure out how to produce with that: I have the following code: $$ gcd(0,0) = 0 $$ $$ gcd(u,v) = gcd(v,u) $$ $$ gcd(u,v) = gcd(-u,v) $$ $$ gcd(u,0) = |u| $$ $$ 2^{x^3} = ...
4
votes
2answers
101 views

Abbreviations: taking into account spacing AND punctuation [duplicate]

So I'm trying to come up with some good, general definitions for latin abbreviations in my TeX template... What I did up to now is this: \usepackage{xspace} \newcommand{\etc}{etc.\xspace} ..which ...
6
votes
2answers
167 views

A macro for optimization problems

This question is an extension of Using an array environment inside an xparse command. I was advised to make a separate question for the extension. I would like to thank egreg very much for his help. I ...
1
vote
1answer
87 views

Changing properties of epigraphs using “epigraph” package

Please help me to figure out how to produce with that: I have the following code: \epigraph{«Теперь нам ясно, что вся структура теории чисел держится на одном основании, а именно, на алгоритме для ...
6
votes
1answer
121 views

\hfill in in table cells

There are tables in my document. The baselines between the last row of each table and the following text is usually circa 16,25p (see below). Now I wanted to add right-aligned text to some selected ...
0
votes
0answers
64 views

How do I set the space size around stuff and various (title, legend, …) font size to specific values in my document? [closed]

I have to follow these very strict and boring rules. Like the article class: neither title page nor table of content. No heading/footer on the first page Following pages must have: small text ...
1
vote
2answers
104 views

How to display formulas?

I am using the following format for all \begin{math} newP = p + vt + 0.5a(t square) \end{math} How do I from left justified to centrally justified leave one blank line before and after the ...
16
votes
4answers
403 views

Do starred commands eat up space after them?

Do starred commands eat up spaces after them, like unstarred ones do? That is, is \somecommand* nextword equivalent to \somecommand*nextword? And: Does it depend on the particular way a starred ...
2
votes
1answer
167 views

apacite: How can I use \bibitemsep with natbibapa option?

I'm using the apacite package, trying to format my reference list so that it is single-spaced but with a blank line in between each entry. From the documentation for apacite, it seems that the way to ...
4
votes
1answer
99 views

Flexible vspace

I created a macro to insert diary-like right-aligned paragraphs. \newcommand{\diarydate}[1]{\begin{flushright}\textit{#1}\end{flushright}} Example: \diarydate{New York, August 1992} This looks ...
2
votes
1answer
91 views

Is there any way to make two pages per sheet (landscape) and the page numbering appears as if each column was a page?

I want to make a landscape sheet with two pages (like two columns) and I want that the page numbering to be a number per page (a number per column) instead of a number per sheet. I use ...
2
votes
1answer
195 views

How to reduce distance between two columns?

I have 5 columns in my table. So I want to reduce distance between two columns to make it look good. In the following figure, I want to reduce distance between column 1 and 2. I tried ...
3
votes
2answers
147 views

Align (center) header row in table

I use @{\hskip 50pt} to separate columns in my table. The problem which arises is that I add this extra space after a multicolumn. This also moves the header row so that it is no longer centred. Is ...

1 3 4 5 6 7 33