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

1
vote
1answer
51 views

Why is the space below the numerator different to the space above the denominator?

I've never noticed it before, but LaTeX puts a lot more space between the numerator and the bar than it puts between the bar and the denominator. Now maybe this makes sense for more complicated ...
1
vote
1answer
21 views

Tighten spacing in multiple-element subscripts that include primes and uppercase-Greek letters

My MWE compiled with pdfLaTeX: \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \begin{equation} \frac{ \Gamma_{v'J'\Lambda'} \Gamma_{v'J'\Lambda' \rightarrow\Lambda''} } { ...
0
votes
1answer
94 views

Spacing between section, subsection, subsub… etc

I'm in the process of writing my bachelor thesis. The problem is: standards. Question: How to make the spacing between text and titles (chapters, sections, subsections etc.) but still hold the ...
1
vote
1answer
75 views

Will it stretch? Plumbing the depths of Interline glue

I've gone back to basics to gain a better understanding of how TeX works. One of the things I've been puzzled about is the workings of interline spacing and why ocassionaly (depending on font sizes ...
4
votes
3answers
94 views

Empty space under a figure

I am getting a significant amount of empty space under the following figure. How do I get rid of it? (I am a new user and I don't know how to post a tex code.) \documentclass{article} ...
0
votes
0answers
9 views

footmisc's bottom option and memoir's footnotes

In order to avoid overstretched inter-paragraph-glue I would like to use footmisc with the bottom option. However it interferes with my footnote setup. See the following example: ...
0
votes
0answers
13 views

Vertical spacing around align in a figure

Math environments like align put vertical space around them, to separate them from the text. This is all well, and if I wanted to change that, I could check this question. However, these environments ...
1
vote
0answers
11 views

Custom line-spacing inside a footnote

I know I can use the following command to set the spacing in footnotes throughout the document to double space: \renewcommand{\footnotelayout}{\doublespacing} But is there a way to allow for custom ...
3
votes
1answer
61 views

Center plot created with pgfplot from matlab

If I have a nice plot in matlab, then I save it as a tikz standalone file matlab2tikz('myimage.tikz','standalone',true) and I create a pdf in my terminal with pdflatex myimage.tikz to include ...
2
votes
1answer
23 views

No spacing between words in the pseudocode package

I am using the pseudocode package for an algorithm. (Here is the documentation: Pseudo Code Package Documentation) There is no spacing between normal text inside the pseudocode block. I have to ...
4
votes
2answers
36 views

Odd spacing due to diagonal dots in pmatrix environment

I'm trying to typeset this matrix, but it seems the spacing between the fourth and fifth lines is off, perhaps due to the diagonal dots : Here is my Latex code : \[ \mathrm{Mat}_{\mathcal B}D = ...
0
votes
0answers
30 views

Vertical spacing not working properly

I'm trying to use \bigskip, \medskip, and \smallskip for spacing but they don't do anything. So I tried to use \vspace{bigskipamount}, and I got 2 errors: 1) ! Missing number, treated as zero. 2) ! ...
0
votes
0answers
15 views

customize vertical space of entries in nomenclature

How to customize the vertical space between entries and vertical space between Subgroup name and its first entry? Many thanks. I have added the \setlength{\nomitemsep}{-\parsep} in the preamble, but ...
3
votes
3answers
67 views

Stop LaTeX adjusting vertical spacing when fitting more text onto a page

I need to place two pieces of paper side-by-side. Each piece of paper is a printout of a compiled LaTeX document. The second document starts in an identical way to the first, but has more text ...
0
votes
0answers
35 views

Titles not vertically aligned

I am writing a text using a class file designed by my university. This class file, however, does not allow for lists of symbols, so I am trying to modify it slightly in order to insert one. The class ...
2
votes
1answer
65 views

LaTeX: The Space Between Words [duplicate]

I read the book The Not So Short Introduction to LaTeX, and found this line: LaTeX: Tilde '~' generates a space that cannot be enlarged and... It seems that the tilde make the space smaller when ...
3
votes
2answers
51 views

Spurious space on moderncv \cventry using \if

I am trying to display some information in a \cventry conditionally using a defined \ifdetails switch. However, for some reason that is beyond my knowledge, an spurious space (or new line) is created. ...
2
votes
2answers
149 views

How can I insert a special character at the end of each sentence?

I tend to write very long sentences. To easily detect sentences that are too long, I would like to make individual sentences stand out more clearly in my compiled latex document. I know that latex has ...
2
votes
1answer
18 views

string of non-breaking spaces spilling into margin

I have a string of expressions that should not be split across lines, so I have placed non-breaking spaces between them. However, they spill over into the margin. How do I fix this? Here is my MWE: ...
2
votes
2answers
69 views

Listings: add vertical padding without abusing frame

I have the following setup for my displayed listings: \documentclass[a4paper]{article} \pagestyle{empty} \usepackage{listings,xcolor,lipsum} \lstset{ backgroundcolor = \color{yellow}, ...
105
votes
7answers
120k views

Column and row padding in tables

How do you guys go about controlling column padding in tables? Update To clarify, I'm looking for a way to control both vertical and horizontal padding. So, if I had a simple table like in the ...
2
votes
1answer
43 views

Distinguishing a symbol from a character around it while typesetting

When typesetting the LaTeX in Math mode is it safe to create a space (one carriage return) around a LaTeX symbol to isolate it from the surrounding character instead of enclosing the surrounding ...
2
votes
2answers
37 views

Enforce strict margin boundaries

I submitted my dissertation (> 200 pages), and was told by an editor that there are several pages where a long word (eg. an organic molecule name) or a citation actually extends beyond the right ...
1
vote
1answer
26 views

Change spacing before chapter title within frontmatter

I am using the report class for my dissertation, which requires 2 inch margin beginning at each chapter. I am using the following command: \titlespacing*{\chapter}{0pt}{2in}{1in} This works fine ...
3
votes
1answer
48 views

Longtable and automatic spacing

I am using the longtable environment in combination with the siunitx package for 3 of my 10 columns. Unfortunately, when compiling the spacing of those three columns is not automatically adjusted. ...
4
votes
3answers
60 views

local application of \addfontfeature and WordSpace=x

I wanted to reduce the inter-word space for some passages in a written text with the rest of the text remaining unchanged. So I tried to use \addfontfeature locally which I execute with the command ...
0
votes
3answers
75 views

Page setup in memoir class

I have been using the memoir class based template for sometime. All this while I have been having a problem with the top margin of the document. Following is the pagestyle code ...
0
votes
3answers
25 views

Table rows | single line | double line | of text not lining up

I have a table with two columns, the width of each column is set. There are cases where the left hand text is one line and the right hand text is two lines. As a result the left hand text is aligned ...
1
vote
1answer
21 views

Spacing in listoffigures with alphabetic chapter

At the end of my document I need a last chapter with seperate numbering for additional data. To do this I changed the chapter number to display an A via \setcounter{chapter}{0} ...
4
votes
2answers
77 views

Odd ToC spacing between item and page number

I'm facing a very odd issue with spacing in my table of contents. For the first 25-30 entries, there is a space between the entry and corresponding page number. Thereafter, the space disappears! ...
2
votes
1answer
113 views

How to create additional space below Section headings followed by Subsections in the Table of Contents

I am preparing my thesis using the apa6 document class. I'm using the tocloft package to format my Table of Contents and List of Figures. In the TOC, I can't figure out how to add space BELOW section ...
1
vote
1answer
61 views

How do I fix vertical spacing between tables?

I have a document with about 50 tables in it. If one of the tables goes over the page, LaTeX automatically sends that table to the next page. The issue is that LaTeX increases the spacing between ...
2
votes
1answer
34 views

Adding Blank Space in the List of Figures, List of Tables, and Table of Contents

I'm learning LaTeX to typeset some documents. I hope someone here could help me. How do I go on adding a space in the List of Figures and List of Tables. I'm using \listoffigures and \listoftables ...
1
vote
0answers
8 views

Apacite with natbitapa - bibliography spacing

I am using a LaTeX template for my thesis \documentclass[a4paper,11pt,leqno,openbib]{memoir} Apacite is working fine for the in-text citations but the bibliography has strange spacing - each ...
4
votes
2answers
75 views

An align environment question

Currently i have something like this: \[ A = B \] \begin{alignat*}{2} AAA = BBBB &= CCCCCCCC &&= DDDD \\ AAA = BBBB &= \qquad CCC &&= DDDD \\ \end{alignat*} In ...
2
votes
2answers
30 views

Errors in arguments when renewing \mod with \mathchoice

Currently I am using the \mod command that comes with amsmath, and while I'm in general satisfied with it, I didn't like the way it handles spacing in text style. I tried to renew the \mod command as ...
0
votes
0answers
22 views

Changing spacing in chapter titles and sections.

As stated, I need to change the spacing between the top of the page, the chapter name and title. I'm currently using \allsectionfont{\centering \fontsize{15}{15}\selectfont} to control the size and ...
2
votes
0answers
20 views

Setting an \abnormalparskip with memoir and babel french [closed]

I'm experiencing an issue trying to set a non-zero \abnormalparskip using the memoir class with chapterstyle ell and the french (or francais, or frenchb) babel package. Doing so moves chapter titles ...
1
vote
1answer
22 views

Why is this tabulary narrower than the specified width? [duplicate]

Why is this tabulary narrower than the specified width? \documentclass{article} \usepackage{tabulary} \newcommand{\mytable}{% \begin{tabulary}{0.5\textwidth}{@{}L@{}} Text\\ Text\\[2ex] ...
2
votes
0answers
29 views

How to eat / gobble only whitespace or (implicit) \par?

I created a command that prints material in an aux file and that's all. I can reasonably expect it to (also) be used in the following ways: \precis{Some text} The section goes on. \precis{Some text} ...
15
votes
1answer
486 views

Make sin the same width as cos

I am trying to typeset a two-line formula, where the top and the bottom are almost identical. The differences are the signs (plus to minus) and the trig-functions (\sin to \cos). I want most of the ...
1
vote
4answers
55 views

How to give double line spacing between paragraphs?

I am preparing my thesis with single line spaced, but it needs double line spacing between paragraphs. I am using \\ at the end of paragraph to achieve this. How to do this by using \parskip package ...
4
votes
1answer
47 views

how to delete the space if argument is empty

I made a \newcommand for my glossed examples using ExPex package, that looks like this : \newcommand{\exgl}[6]{\ex\label{#1}\begingl\glpreamble \tt #2// \gla #3// \glb #4// \glft #5 // \endgl ...
0
votes
0answers
55 views

Spacing before and after headings

EDIT: I've adjusted this question after experimenting with the titlesec package. I removed the following code to prevent conflicts as suggested by @Bernard & @cfr. \makeatletter ...
8
votes
1answer
82 views

How can I add space before my unit vectors?

This is how I'm currently typesetting vectors: \documentclass{article} \newcommand{\ih}{\mathbf{i}} \newcommand{\jh}{\mathbf{j}} \newcommand{\kh}{\mathbf{k}} \begin{document} $1/z \ih + \jh - ...
4
votes
1answer
36 views

Bad word spacing in TikZ using `text width` and `\fontsize`

\documentclass{article} \usepackage{fontspec} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node[text width=20em]{This is}; \end{tikzpicture} \begin{tikzpicture} ...
4
votes
1answer
37 views

Consistent Line Spacing

I find when I produce titles I get line spacing that depends on whether I have a hanging character ie qypg which dip below the usual base line vs wertuioasdfhklzxcvbnm which don't. This is ...
2
votes
1answer
44 views

Force the title to be single-spaced

My title takes up two lines. However, for some reason it gets double spaced. How can I force single-spacing in the title? Thank you!
3
votes
1answer
56 views

spacing in math equation latex+tikz

I am trying to control the size of math operators and at the same time the spacing between operators and operands using the following code. \setlength{\thinmuskip}{10mu} \setlength{\medmuskip}{2mu} ...
2
votes
1answer
82 views

How can I remove white margins from a pdf file?

I create a diagram in Visio and save as a pdf file. There is a large space between the text and the figure, as shown the following: If I understand well, the problem can be boiled down: how to save ...