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

4
votes
3answers
5k views

Simple list of abbreviations manually

I have written my whole document without using any packages like nomencl or acronym because it wasn't necessary in my case, that means I only have a few abbreviations which should fit on one page ...
6
votes
1answer
152 views

Spacing around inline equations

What is the parameter determining spacing and stretchability around inline equations? I want to tweak spacing exactly but cannot find where the parameters are.
7
votes
2answers
132 views

Uneven vertical alignment with $\in$

Here's a simple example: \documentclass{article} \usepackage{amsmath} \usepackage{amsthm} \usepackage{amssymb} \usepackage{commath} \newcommand{\st}{\text{ s.t. }} \begin{document} \[ (x_n) ...
3
votes
1answer
3k views

Linebreak at itemize

My MWE is the following: \documentclass{article} \begin{document} \begin{itemize} \item[about] Foo\\ Lorem ipsum dolor sit amet, consectetur, adipisci velit \item[about] sort rules(...) ...
7
votes
3answers
636 views

How to get more space in piecewise function on LaTeX?

I'm writing a paper and I have inserted a piecewise function into my tex-code. My problem is that the piecewise function is very tightly packed. How could I stretch the bracket and get more space ...
10
votes
2answers
233 views

Use 'space' glyph from a font

Is there a way to globally (or in an environment) set the 'space' glyph as the interword space? I'm importing the OpenType font via fontspec which has a specially designed 'space' glyph that I want to ...
6
votes
1answer
259 views

\LaTeX logo too compressed with microtype and defined \SetExtraKerning

I have, perhaps, a slightly odd problem. I have used microtype to define some special spacing rules. This is the relevant bit of the preamble (and I will have hopefully not forgotten anything --- if I ...
3
votes
1answer
149 views

how to xshift tikzmark and preserve interrow spacing in matrix

I am trying to use the \tikzmark command to overlay a right brace with a label next to a pmatrix. Unfortunately, there are two problems with the current output: My code has introduced extra vertical ...
8
votes
2answers
219 views

Why does the non-breaking space produce a double space with babel and \og and how to use both \og and non-breaking space?

I am wondering if this is a normal situation or a bug! \documentclass{article} \usepackage[french]{babel} \begin{document} Ceci est \og entre guillemets \fg. Ceci est aussi \og~entre ...
1
vote
0answers
53 views

Increase the gap before and after the dots in inline list [duplicate]

How to increase the gap before and after the dot? Here's a MWE: \documentclass[a4paper]{article} \usepackage[inline]{enumitem} \begin{document} \begin{itemize*} \item[] First point \item ...
9
votes
1answer
332 views

Microtype and word spacing

I'm trying to change the default word spacing for some font. I know 2 ways to do it: setting \fontdimens or \spaceskip. With these approaches and microtype's \textls I get two different results, ...
2
votes
0answers
182 views

How can I customise the table of contents like so?

I face a problem of spacing between items in my table of contents. This is what I have at the moment: I would like to change a few things: I want to put table of content in center I want to put ...
2
votes
2answers
354 views

Fill a table cell with empty lines

This is a follow-up question of Set table background hatched and shaded using tikz. I want to specify the height of the orange cell as "number of lines" like it is done for the \ShadeCell[5] command ...
0
votes
1answer
524 views

how to change spacing between align environments and equation environments?

I am using align and environment for various equations. There is some space that comes before and after the equations that I would like to minimize. Is there a single command that could be used to ...
3
votes
1answer
111 views

Vertical space only after every second row in a table

I have several tables in the following custom format, to which I would like to add vertical space (e.g. 6 pt) after every second row. I know this can be done manually. I am only wondering, if there is ...
3
votes
1answer
149 views

multi-line proof using proof package

I have been using the infer from the proof package. I am wondering if there is a way to add line breaks in the proofs? For instance I would like to set: A B C ----- D But I couldn't find a ...
3
votes
1answer
65 views

Using multiple newlines (\\) within LARGE block

I am trying to typeset a long title using a {\LARGE ...}-Block. Here is a minimal example: \documentclass{scrbook} \begin{document} {\LARGE Very \\ Long \\ Title} \end{document} And the ...
0
votes
0answers
96 views

Mysterious white space between abstract and section

When I use the following code, it generates a huge white space between 1.1 Dataset and my abstract. \documentclass[12pt,twoside,a4paper,openright]{report} \usepackage{amsthm} \usepackage{qutthesis} ...
5
votes
2answers
152 views

Array spacing in multiple line environment

Consider the following MWE \documentclass{article} \usepackage{amsmath} \begin{document} \begin{gather*} \renewcommand{\arraystretch}{1.2} \begin{pmatrix} \frac{1}{2} \\ \frac{1}{2} \end{pmatrix} ...
1
vote
0answers
84 views

Too much space in the section [closed]

My problem is the next, I have too much space to finish a \section and start the other section the code is: ...ropagaci\'on, as\'i solamente la luz que sea paralela al eje de polarizaci\'on ...
3
votes
1answer
787 views

Titlesec problem, defining space before section with \titlespacing

I am using the article document class and have trouble with the \titlespacing command of the titlesec package (explicit). I want to have more space before the \section. MWE: ...
2
votes
1answer
993 views

How to automatically remove space before punctuation and adding after sign?

Sometimes when I write some text, I mistakingly put space before dot/comma or I forget to put space after dot/comma. I would like LaTeX to remove all space before dots and add space after punctuation. ...
3
votes
2answers
3k views

How to remove space before enumerate?

How can i remove space before enumerate? % before \begin{document} \usepackage{enumerate} This is first line and i need to remove space between this line and item list below it. % after ...
2
votes
2answers
616 views

Reduce space below a figure?

Due to the page limit, I now wish to reduce the blank space right after a figure (a TikZ drawing). I personally find it too big. Below is my MWE. How may I fix it? \documentclass[a4paper]{article} ...
9
votes
2answers
216 views

Simplest way to typeset a double space

I have a very simple question. Sometimes I need to put two spaces between letters or words, like this: a a %this is a single space a a %this is a double space I want the double space to be ...
5
votes
2answers
145 views

How to get more space underneath a block in beamer?

I'm creating a beamer presentation. This is my code: \documentclass{beamer} \usetheme{Berlin} \useoutertheme{miniframes} %Titelbalken \setbeamertemplate{blocks}[rounded][shadow=true] %Packages ...
6
votes
1answer
168 views

How to change spacing before subsections?

I can't seem to remove the space that appears before my subsections. I know this is discussed in other posted by it's not working for me for some reason. Any help appreciated. ...
27
votes
1answer
2k views

How do I ask beamer to exactly fill up a slide?

Inspired by a recent question with a very similar sounding title, I would actually love to implement auto-magic vertical stretch for beamer slides (where, maybe unlike full documents, I think makes a ...
3
votes
1answer
364 views

Remove space below section in memoir

I'm growing tired of the extra space below \section and \subsection in the memoir class - it's way too big. How can I remove it - like one use \vspace{-20pt}$. This must be done for all \section and ...
1
vote
0answers
210 views

Vertical spaces around display math [duplicate]

(First of all, I know that \[ \] should be used instead of $$ $$ and I do it.) I'd like to know about the vertical spacing around math display blocks. According to texdef -t latex \[ we have \[: ...
5
votes
1answer
95 views

Strange behavior of subsubsection

I create a questionnaire (Question-Answer). For this purpose I use the pdfcolparallel package. When I type \subsubsection in the first column, a strange vertical line appears before subsubsection and ...
5
votes
2answers
147 views

Is there a punctuation mark that does not take up any space?

I'm typesetting a text from a 17th century Chinese woodblock print. The original text is printed vertically, and I'm printing it horizontally. The text has the same number of Chinese characters per ...
0
votes
2answers
165 views

Making a space before and after a word in LaTeX

I have the following in LaTeX: v_{i}=\frac{ 1}{ n}\sum_{j=1}^{n}\left(\mu_{ij} \right)^{m}x_{j}\hspace where\hspace n_{i}=\sum_{j=1}^{n}\left(\mu_{ij}\right)^{m} How can I make a space before and ...
0
votes
1answer
88 views

How to reduce or make the space equal of linespacing before and after the $$ something $$ [duplicate]

How to reduce or make the space equal of linespacing before and after the $$ something $$ ?
7
votes
1answer
199 views

Equal spacing for figures and listings

I want to include figures and listings in my document and I want them to have the same spacings to text and captions. \documentclass[a4paper,12pt,openany,parskip,oneside,ngerman,headsepline]{scrbook} ...
38
votes
2answers
820 views

Viewer-independent copyable spaces at the beginning of a line?

I need to include a couple of Python code listings, where the indentation of the lines (using some number of spaces) is significant. I would like for the code listings to be copyable, so the spaces at ...
6
votes
3answers
137 views

A version of \smash that interpolates between the true height/depth and the text-height/depth of the current line

I have a paragraph of text that includes a "deep" math symbol, one that dips below the ordinary bottom of the text a little. Originally I had nothing below that symbol; it was near the end of the ...
7
votes
2answers
533 views

KOMA script: How to reduce vertical space below caption

The vertical space below figure caption is large how to reduce it. \documentclass[a5paper]{scrbook} \usepackage[demo]{graphicx} \begin{document} \chapter{Sample chapter} \section{Sample section} ...
3
votes
1answer
199 views

How to change all caption to single spacing and not have reference turn up after every chapter

I've two questions when using LyX: How to change all caption to single spacing? I've tried to insert these into the LaTeX preample but they don't work due to some error message. ...
3
votes
1answer
308 views

Produce 2 side-by-side tables from tables as external files (source: xtable in R)

Is it possible to put two tables next to each other, which are in separate .tex files, and added to the document via \input? If it's not, I could also create just the 'raw' contents of the tables, ...
4
votes
2answers
1k views

Chords & lyrics, songbook

I'd like to make something like a songbook - just chords and lyrics. I have found several packages, but I also wanted to improve my TeXing skills by making my own commands/environmnets etc. Now I am ...
3
votes
2answers
227 views

How to make the bracket smaller?

The two big brackets are the same big, I dislike that. I want to keep the second one smaller, and let the space between the equation a little bit smaller. How could I do that? Thanks! ...
4
votes
1answer
563 views

Reduce space between header and headrule

Problem I'm trying to create fancy headers for my documents using fancyhdr. I want the headrule to be dotted, which can be achieved using \renewcommand{\headrule}{\vbox to 0pt{\hbox ...
8
votes
1answer
192 views

Why is there no space behind closing quotation mark in enumeration?

I'm using the following code: \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage[dutch]{babel} \newcommand{\add}{$\oplus$\space} \newcommand{\ent}{\textit} \begin{document} ...
2
votes
1answer
280 views

Vertical space between Chapter # and Chapter title

How we give a vertical gap of 25 mm between the Chapter number (#) and chapter title lines and between chapter title line and the first paragraph.
28
votes
4answers
5k views

How do I ask LaTeX to exactly fill up a page?

I understand that I can control interline spacing in LaTeX in a number of ways. The commands like \baselineskip, \baselinestretch, \linespread come in handy in controlling the interline spacing. Each ...
1
vote
1answer
290 views

Big algorithm causing big mess

I am writing a document in which I needed to include the description of the Number Field Sieve (NFS) algorithm as mentioned in the book by Crandall and Pomerance. The algorithm's pseudo code is ...
5
votes
2answers
7k views

Maximise vertical space between subfigures with \subcaption

I have 2 subfigures vertically arranged using the subcaption package. I can set the vertical space between the 2 to something specific (using \bigskip or \vspace), but I would like to put as much ...
1
vote
1answer
374 views

Remove whitespace in plot in Matlab textstring where 'DefaultTextInterpreter' is 'Latex'

With MWE: set(0,'DefaultTextInterpreter','Latex'); x = linspace(0,10,1e2); fx = sin(x); Xpos = 0.1; Ypos = 0.83; plot(x,fx); hTag = text(Xpos,Ypos,'(a)'); set(hTag,'FontSize',23); I get (too much) ...
3
votes
2answers
2k views

Top padding inside tabular when using parbox

I need to fake a caption under an image, since you can't use figure/caption inside tabular/longtable environments (afaik). The data inside the table are generated dynamically so I don't know the ...