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

27
votes
4answers
16k views

Shift title and author text up?

What is the best way to shift the title text 'up' in a LaTeX document compiled with pdftex? When I do this: \documentclass[12pt,letterpaper, onecolumn]{article} \setlength{\topmargin}{0in} ...
4
votes
1answer
82 views

Issues With Tabular And Left-Side Spacing

I'm having an issue where my "Course Work" section, which is tabular, is offset by a space or two - whereas ever other section lines up perfectly. I've read up on the tabular environment but could ...
5
votes
2answers
72 views

Fixing overfull hbox in table of contents removes too many dots

This question on the memoir table of contents has an answer that works well, however, the dots end too soon (in my opinion). Is there a way to make the dots more like the default without triggering ...
4
votes
1answer
759 views

Overfull \hbox warning for TOC entries when using memoir documentclass

I get Overfull warning for TOC entries when using memoir documentclass. They seem to occur when the page number for chapter title entries (highlighted in bold text) exceeds 2-digits or section page ...
2
votes
2answers
93 views

Vertical space between matrices

I am writing some lecture notes in Econometrics and I want your advice on how to insert some vertical space between two matrices so the result will be easier to follow. Here is the minimal example: ...
5
votes
1answer
117 views

First paragraph in environment without indent or space

I'm trying to create an environment that does not indent the very first paragraph of the text inside the environment. My latest attempt and the corresponding output are shown below. As you can see, ...
0
votes
1answer
70 views

I do not know how I change `cls` unconsciously

I use 'cls' of a conference. Two adjacent pages, one flushes right, the other flushes left. I mean the blank space of right is smaller than the blank space of left in one page. Then, the following ...
2
votes
1answer
63 views

How to preserve space when using an Overlay command in Beamer?

Into Beamer, I want to preserve the space when I replace an expression by another in a mathematics formula with the help of an Overlay command. For example, if we have in slide number 1 this formula: ...
6
votes
1answer
127 views

Is it possible to make siunitx typeset exponents in “cramped” style?

I'm using siunitx to typeset physical quantities. The result is not always ideal with many exponents in my eyes, because the exponents increase the line to line distance. At least this is my ...
7
votes
3answers
117 views

Removing spaces placed by \Set command around curly braces

The \Set command (from the braket package) is useful for set builder notation, but it adds spaces before and after the brackets. Compare \Set{1, 2, 3}: To \{1, 2, 3\}: Looking through the ...
5
votes
2answers
78 views

Bump right-aligned text to next line iff no room within a \savebox

This is a follow up to my earlier question Bump right-aligned text to next line iff no room. The difference now is that I need to place this formatted text within a \savebox. In my actual use case, ...
8
votes
2answers
190 views

Typesetting sequence notation

I attempted to create a sequence both of the following ways: \documentclass[12pt]{article} \usepackage[english]{babel} \usepackage{amsmath,amsthm} \usepackage{amsfonts} \begin{document} ...
6
votes
1answer
49 views

Typesetting longitude or latitude followed by a comma

How do you typeset a latitude followed by a comma? Using siunitx it looks like there's too much space: \documentclass[12pt]{memoir} \usepackage{siunitx} \begin{document} At the latitude ...
4
votes
2answers
46 views

Including a Table in a Figure Environment

In order to close the vertical space between this figure and table, I'd like to place the table inside the figure environment. Is that possible? %!TEX TS-program = xelatex %!TEX encoding = UTF-8 ...
6
votes
1answer
290 views

Redefining \and spacing in \author [duplicate]

How can one redefine the spacing that the \and command puts between authors in \author within the standard article class? I have a document with three authors whose names are just too long to fit on ...
1
vote
1answer
45 views

Formatting my basic tex report with specific spacing and font settings

Ok so I am configuring the settings of my tex file before starting my (mathematical) report and am going through my basic template and removing all packages I don't need and believe I have the very ...
7
votes
1answer
113 views

How do you remove a space before a citation in LaTeX?

I have something like \documentclass{article} \usepackage{cite} \begin{document} Blah Blah (\cite{All14}) \bibliography{Ref} \bibliographystyle{alpha} \end{document} But LaTeX keeps placing a ...
3
votes
1answer
42 views

leave blank space where author information will appear

Consider a snippet of text, the author information, that needs to be hidden for review. To allow organizing the space I would like to have a placeholder which uses up as much space as the author ...
1
vote
1answer
28 views

Centering causes change in spacing

For some reason when I center the text on my page the spacing to go from single to double. Using the latest LyX I have the following text written in standard. Line 1 Line 2 Line 3 Line 4 When I ...
3
votes
1answer
38 views

Latex text on both sides

I don't wanna use 64x \space to achieve my goal. I was tryin to \begin{flushleft} and \begin{flushright} bo it attempts with new line. I wanna make something like this, where arrows shows distance ...
6
votes
1answer
434 views

Writing a letter in ConTeXt, formatting issues

I'm writing a letter to someone, using ConTeXt. I'm running into some formatting issues. The following is the code I have, and the PDF output. There are two things that I'd like to fix. ...
1
vote
2answers
55 views

How to make the space under footnotes disappear?

How do I make the space under footnotes disappear? And to space over the footnote's bar? Code: \documentclass[12pt,french]{report} \usepackage{mathptmx} \usepackage{helvet} \usepackage{courier} ...
4
votes
1answer
78 views

Subfigure space adjustment — \subfigcapskip and \subfigtopskip

I want to adjust the space in a subfigure environment. Specifically, using \subfigcapskip to increase the space between the subfigure and subcaption, and using \subfigtopskip to reduce the space on ...
0
votes
0answers
31 views

Spacing around thm environments when parskip is changed

I am a beginner with LaTeX and have this probably tyro problem - when I use asmthmpackage environments in combination with \parskip, the (vertical) spacing above and below theorems, definitions, etc ...
11
votes
1answer
202 views

Declare acronyms and abbreviations to automatically correct spaces after periods?

If I understand correctly, (La)TeX assumes that a period after a lower-case letter ends a sentence while a period after an upper-case letter does not. Unfortunately, my documents usually contain ...
2
votes
1answer
43 views

Minitoc numeration overlaps with subsection titles

I have long minitoc numeration depth \setcounter{minitocdepth}{3}. I have a problem with it: \documentclass{report} \usepackage{newcent} \usepackage{minitoc} \setcounter{tocdepth}{1} ...
9
votes
1answer
124 views

How to float something right even if it wraps down a line?

I have a situation where I have some data in section headings (and sometimes normal paragraphs} that needs to be: floated right not split across lines I was able to accomplish this for most cases ...
10
votes
1answer
5k views

Relative padding of a minipage's paragraph

Background Created a custom command for rendering quotations (epigraphs). Problem The text in the following image has no space at the border: The word "and" is flush with the right margin. Code ...
10
votes
4answers
2k views

Spread bullet points across block in slide using beamer

I'm using beamer to create some slides for a presentation. I've got a block containing a bulleted list. The list only has three items, and all three items are bunched up in a small block at the top of ...
2
votes
1answer
22 views

Extra space (or missing) after a ref with a second digit in a bibitem

I create my bibliography as follows but after the 10nth Ref i have an extra space on the first line or a missing space on the following lines. Any idea on how to fix this? Thank you! ...
10
votes
1answer
767 views

right description list LaTeX beamer

How to do right align a description list using beamer? Name | Joel Spolsky Address | Some address Using the enumitem package as suggested in Description list with right alignment of ...
1
vote
1answer
42 views

Wrong vertical spaces using bibentry within beamer

I would like to give some references using the bibentry package in a beamer presentation. But sometimes, e.g. if the list of authors spans over multiple lines, there is a wrong vertical space in the ...
9
votes
1answer
106 views

Why does amsmath define \mspace? \mskip seems fine and simple enough

amsmath.sty defines \mspace as follows: \newcommand{\mspace}[1]{\mskip#1\relax} What is the purpose of this definition? amsmath.pdf says that \mspace is the "equivalent of \hspace for math mode ...
3
votes
2answers
271 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 ...
0
votes
0answers
15 views

how to use special letters in bib file properly? [duplicate]

Some author's name contains special characters like "ł" in Szałowski. The latex code for "ł" is \l. But if I write the name in bib file as Sza\l owski, the the name contained in the output pdf's ...
5
votes
3answers
101 views

Proper vertical spacing and pagebreaks in custom environment

I would like to design a simple environment which displays examples. This is what I got so far: \documentclass{article} \usepackage{xcolor} \usepackage{parskip} \usepackage{lipsum} \makeatletter ...
0
votes
0answers
27 views

Write $ in latex in the final pdf file [duplicate]

Dear i'm writing a code on latex with codes retrieved from R. As you may know, the symbol $ is inserte in R statistical software. At the same time it is used to represent equations in $. This is the ...
2
votes
2answers
210 views

Vertical space between align and alignat environments

I have a problem with the vertical space between align (1) and alignat (2). How can I reduce this space to the same vertical space as before (1)? How can I completely erase the vertical space? I know ...
3
votes
1answer
58 views

How can I ignore spaces after todo items?

Consider the following (xpatch-fu from http://tex.stackexchange.com/a/68741/17423) \documentclass{article} \usepackage[marginpar]{todo} \usepackage{xpatch} \makeatletter ...
7
votes
1answer
495 views

Choice between asparaitem, compactitem, and itemize

I am writing a conference paper (in lncs). I see people using different itemization styles: asparaitem, compactitem, and itemize. Because the spacing of these environments is somewhat different, I am ...
9
votes
3answers
66k views

How to add indentation

I am writing my Thesis report using LaTeX, I need to add indentation because every thing is right but only thing is every new paragraph is starting at initial stage but I need to add some indentation. ...
5
votes
2answers
82 views

Best way to deal with overfull inline listings

I am typesetting inline code listings using the listings package. Since I'm using C# syntax, oftentimes listings contain long words (type names/variable names). Since words in listings won't be ...
1
vote
2answers
127 views

How to remove white space above and below Tikz figure

I used GMS package to write a maths book, and used Tikz code genrated by Geogebra to draw the image. The problem is there are too much white space above and below Tikz figure, as in the following ...
4
votes
2answers
66 views

Underfull \hbox severe issues

I relaize this has been posted before but I just can't understand the nature of the problem, I hope some of you can help me with this. This is my code from line 99-174. Compiler errors are below the ...
4
votes
1answer
878 views

TikZ: remove margin, padding, border around nodes containing images

I want to create a simple figure where images are connected with arrows. Here is what I did: \begin{tikzpicture} \node[](A) {\includegraphics[width=0.2\textwidth]{a}}; \node[right=1mm of A](B) ...
18
votes
1answer
288 views

Drawbacks of redefining math accents with extra leading {}?

As I discovered through the non-bug latex/4253, TeX has a (mis)feature whereby it ignores braces around a \mathaccent construction: ${a_b}_c$ works, but ${\tilde a_b}_c$ fails with a "Double ...
5
votes
2answers
116 views

Manually break lines like auto-breaking in lstlisting

I would like to decide where the long line should break, but with actions pre-/postbreak and without advancing in line numbering. I've tried that one: \documentclass{article} \usepackage{color, ...
10
votes
1answer
83 views

How to automatically put a space after the first parenthesis in f(x) g(y)?

When I write \documentclass{article} \usepackage{mathtools} \DeclarePairedDelimiter\p{\lparen}{\rparen} \begin{document} \[ w = \int f\p*{x} g\p*{\frac{y}{2}} h\p*{z}\ dx \] ...
0
votes
1answer
69 views

Changing vertical spacing between equations

I'd like to reduce vertical spacing between dmath equations. I don't know how spacing works here. I tried changing line spacing with setspace but to no effect. This is meant to be a formula sheet with ...
5
votes
0answers
46 views

Hightlight specfic digits within siunix's \num

I would like to highlight specific digits in a number. Since the number is large I would like to use \num{} from the siunitx package. Of course I can do it manually as in the MWE below, but was ...