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

2
votes
2answers
321 views

vspace or line space in text of wrap fig

I am using wrap fig and want to insert a line break within the text. However, \vspace or \linebreak or \break don't lead to any change. Here is a sample of my LaTeX code \begin{figwindow}[0,r,% ...
4
votes
1answer
152 views

Is it possible to have a variable chapter header spacing?

I've noticed in my document class that when I have really long chapter titles, the title can end up mixing in with the first line of text on the page. My default spacing is 50pt. If I set it higher, ...
1
vote
1answer
393 views

How reduce the space between title and article

\def\maketitle{\par \begingroup % to make the footnote style local to the title \def\thefootnote{\fnsymbol{footnote}} \def\@makefnmark{$^{\@thefnmark}$} ...
1
vote
1answer
147 views

Table column spacing / headings

I don't seem to be able to reduce the space between columns with \setlength\tabcolsep; it looks like siunitx package does not go along with tabcolsep. Further, I'd like to centre the subheadings of ...
5
votes
2answers
217 views

Centering long sentence causes strange vertical spacing

In the following MWE I have a centred piece of unbreakable text. Problem is that this causes an extra bit of vertical space, so that visually the centred text is not vertically centred between the two ...
0
votes
0answers
48 views

Reducing vertical space between figure and caption [duplicate]

Possible Duplicate: How to reduce space between image and its caption? How do I reduce the space below figures and above their captions, without changing the parameters for tables? For ...
2
votes
0answers
43 views

Add vertical space only if no vertical space was added previously [duplicate]

Perhaps this is the silliest of all the questions, but, let’s suppose that there are two custom commands: \newcommand{\cmdA}[1]{ #1 \vspace{1cm} } \newcommand{\cmdB}[1]{ \vspace{1cm} ...
10
votes
1answer
953 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 ...
6
votes
1answer
315 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 ...
6
votes
2answers
272 views

Aberrant vertical spacing with {align} and friends?

Consider documents with the following preamble: \documentclass[12pt]{article} \usepackage{amsmath} Question #1. Why do we get bad alignment with the following code? \noindent ...
15
votes
1answer
609 views

How to fix the math-spacing when a lot of \phantom, \mathrlap, etc. are used?

This question led to a new package: underoverlap Introduction Based on this question and then this question, I'm trying to perfect the \overunderbrace macro. Right now, I'm trying to get the ...
13
votes
1answer
135 views

Using babel and cleveref causes unnecessary horizontal space in header

Update This bug has been fixed with version 0.18.9 of cleveref, which is currently on ctan. Question Babel and cleveref do not seem to work flawlessy together when they share the same language ...
0
votes
0answers
47 views

Space Above Equations [duplicate]

Possible Duplicate: Vertical spacing before and after equation environment: empty line or not? I am using iPython Notebooks and a utility called nbconvert to translate notebooks into LaTeX. ...
2
votes
2answers
101 views

How do I make multiline headers that don't run into the rest of the document?

I have been trying to figure out how you make headers that are more than 3 lines tall without running into the main body of the document, but have so far been unsuccessful. I know that I could simply ...
11
votes
2answers
1k views

Reduce white space around TikZ picture?

Is there a simple way to reduce the amount of white space around the TikZ in the MWE pasted below (in particular in the x direction)? \documentclass{article} \usepackage{xcolor} \usepackage{tikz} ...
5
votes
1answer
57 views

Table of numbers adaptable to various widths

It's been a while since I asked an embarrassing question, so here is one for your amusement: I want to print a table of numbers that is able to adapt to various column sizes so can't use a tabular ...
6
votes
3answers
763 views

Default article-like classes with compact bibliography

In most academic journal styles, the bibliography is typeset in a much more compact fashion than in the usual classes. Compare for instance these two: The former is obtained with siamltex.cls, ...
2
votes
1answer
100 views

Octavo environment stanza break spacing

In the octavo document-class, there is (as in many others) a verse environment for the setting of poetry; however, breaking stanzas appears to be unimplemented: there's no difference in vertical ...
6
votes
2answers
238 views

tikz/foreach: Protect space after “iteration variable”

I try to draw some nodes in tikz, and as they are very simple I wanted to "shorten" this using a \foreach command: \foreach \xnum in {1,2,3,4,5} { \node at (X\xnum center) {$x_\xnum$}; } You ...
9
votes
6answers
289 views

math shorthand macro: avoid extra space from empty superscript

I find myself writing $\{0,1\}^x$ a whole lot, so I want to define a shorthand macro: \def\zo#1{\{0,1\}^{#1}} However, sometimes I need $\{0,1\}$ with no superscript. If I write \zo{} I get a tiny ...
3
votes
2answers
103 views

How to make a box with a height based on multiples of the current line height

How can I create (in XeLaTeX) a box that has a defined height in multiples of lines that keeps this size 100% without any additional spacings? Please see the following MWE: \documentclass{article} ...
8
votes
1answer
205 views

Spacing changes when using unicode-math range feature. Why?

You can use the range feature of unicode-math to set the math font for a specific unicode slots or the macro accessing the glyph. I tried this with the sum sign & Latin Modern, see my example: ...
2
votes
0answers
315 views

Spacing & sizing with libertine and newtxmath

I'm using the following setup for the Libertine font: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[lining]{libertine} \usepackage[libertine, cmintegrals]{newtxmath} \begin{document} ...
4
votes
1answer
108 views

How do I hang another, right-aligned line in a cases environment?

I've seen these questions, but in my case the equation content is too long to add the text description at the end and it overflows into the margin. \[ d_i(g_n,\ldots,g_0) = \begin{cases} ...
2
votes
0answers
23 views

Unbalanced distribution [duplicate]

Possible Duplicate: Inconsistent line spacing Why is this text distribution unbalanced? As you can see, there is more space between the first line and the second, than between the second ...
2
votes
1answer
100 views

Fine-tuning dimensions/whitespace parameters

I often find I need to adjust whitespace lengths in my own code. Just as an illustration, I'm in the middle of trying to insert an appropriate amount of space before the 'v's in this, to make them ...
3
votes
2answers
2k views

How to reduce space in begining of itemize?

I am writing one list after one text? Following is list items: 1. Pen 2. Hen 3. Ten I need to reduce spacing between text (Following is list items:) and begining of list(Pen). How can i ...
4
votes
2answers
81 views

Mismatched Height in Table Due to Image

I am making a table with a geometry proof that contains an image I need four lines on the in the area of the table across from the image, but the image only takes up one line of code. Because of ...
6
votes
2answers
219 views

Space added after \right

I have a problem regarding the space added by \right.. I have read this answer regarding the topic, where @egreg proposes a macro that deletes this space. However, when using this in my own ...
6
votes
1answer
68 views

Force hardspace in multiple citations

To cite multiple references, I'm using \cite{foo, bar}. Unfortunately, the second citation appears on a new page. Is there a way to force a hardspace between the two citations? This is primarily a ...
5
votes
2answers
170 views

How to avoid text-spacing after inserting figure?

I am trying to insert a little figure(logo) to a document without changing the vertical spacing. I have two lines of text and I want to insert the figure in the align with the second line. I can do ...
4
votes
1answer
295 views

\vfill between items in a list

I want to create a list and have \vfill between all the items. Something like this: \documentclass{article} \begin{document} \begin{itemize} \item One \vfill \item Two \vfill \item Three \vfill ...
5
votes
1answer
55 views

Having formatting problems I can't seem to figure out

As you should be able to see from the image, my enumerate environment seems to work fine up until I typeset the table, and then things shift to the left margin. I'd like the (a) and (b) to line up, ...
9
votes
2answers
312 views

macro that defines a comment

The Wikibooks book on LaTeX mentions the following way of defining a macro for (possibly multi-line) comments: \newcommand{\comment}[2]{#2} with the argument that \newcommand{\comment}[1]{} can ...
3
votes
1answer
2k views

Space between table and caption in Beamer

I am making a slide using Stockton beamer theme. I have added a table to a frame, however as you can see in the screenshot, that space between caption and table is too much. I made some search and ...
4
votes
1answer
2k views

How to make nomenclature entries indent?

The nomenclature entries is left align without indent by default: \printnomenclature[2.5 cm] See e.g. I want to make these symbols indent from left margin for 1 ex or 1 em. But I have just ...
5
votes
1answer
3k views

Formatting multiple equations in one displaymath line?

If I want to write multiple equations in the same line in displaymath mode, I would do something like this: \[ a + b = c \qquad\text{and}\qquad a^2 + b^2 = c^2 \] But I know it's not good to rely ...
10
votes
1answer
2k views

Adjusting space before and after a latex beamer block

I wanted to ask you if there is a better way to adjust the spacing between two beamer blocks: \documentclass[slidestop]{beamer} \usetheme{Madrid} \begin{document} \addtobeamertemplate{block ...
10
votes
1answer
1k views

Easily change behavior of \DeclarePairedDelimiter

After seeing the answer to this question I realized that I preferred the way of working of Juan A. Navarro's answer: I.e., \DeclarePairedDelimiter{\parens}{\lparen}{\rparen} from mathtools is a ...
7
votes
1answer
90 views

newenvironment with displaymath causes strange extra space/indent on following line [duplicate]

Possible Duplicate: Spacing issue for newenvironment wrapper of equation environment I have \newenvironment{mymath}{\begin{displaymath}\begin{array}{l}}{\end{array}\end{displaymath}} ...
8
votes
1answer
137 views

What does the font size documentclass option actually do?

When using e.g. the [12pt] option for a document class like \documentclass[12pt]{article} what does (Xe)LaTeX actually do/set? I noticed that for example a multicols environment behaves different ...
3
votes
1answer
137 views

How do these two \vspace implementations differ?

I'm building my resume in LaTeX and the template I'm using some ideas from defined an environment like such: \newenvironment{body} { \vspace*{-16pt} \begin{changemargin}{-0.25in}{-0.5in} } ...
2
votes
2answers
463 views

Itemized list in table, creates an unwanted gap

I'm trying to add an itemized list in a tabular environment, it does work however it adds an unwanted space above the list... Here's the code... \documentclass[10pt]{article} % packages ...
9
votes
2answers
128 views

spurious whitespace in \index with fixme package

Consider the following example: \documentclass{article} \usepackage{fixme} \makeindex \begin{document} Ignorance is strength\index{strength}. \end{document} Then there will be a white space ...
1
vote
1answer
58 views

Avoid skipping before environment

I'm having trouble handling vertical space with my custom environments. I noticed that using \unskip after the environment eliminates that space, but I have found now solution for the space before ...
8
votes
1answer
640 views

Unable to Remove Vertical Space Before and After Lists within longtable

All the tricks to remove vertical space before and after itemize lists (using enumitem) seem to work well in table/tabular environments, but not in longtable. The following MWE illustrates the ...
6
votes
2answers
1k views

Increase white space between title and subtitle in scrartcl

As the title says, how do I increase the space between the title and the subtitle in the scrartcl document class?
4
votes
2answers
197 views

How to modify itemize vertical spacing within blocks in beamer?

I have noticed that when I have "itemize" environments defined within blocks in beamer, that they introduce more vertical spacing between the top and the bottom of the blocks, than vertical text. ...
1
vote
2answers
2k views

How to remove space between table and caption? [duplicate]

Possible Duplicate: How to reduce space between image and its caption? I am working on one example in which i need to draw one table and its caption. How can i control the space between ...
5
votes
1answer
280 views

Strange microtype behaviour

I am trying to use the microtype package as illustrated in this page: http://texblog.net/latex-archive/layout/pdflatex-microtype/. But I am getting this output instead: So any ideas why this is ...