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

16
votes
4answers
618 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
1k 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 ...
5
votes
1answer
385 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 ...
4
votes
1answer
1k 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
662 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
855 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
vote
2answers
501 views

\usepackage{parskip} and \tabular

As I had issue with line breaks, How should I do manual line breaks?, I used \usepackage{parskip}. This worked fine. But, when I have a tabular environment, there is a lot of vertical spacing before ...
5
votes
1answer
802 views

Symbol for chapter endings?

Is there an accepted way of marking a chapter ending? Right now I have new chapters start on new pages, but that leaves the last page of the previous chaater looking rather unfinished. I know that ...
2
votes
1answer
566 views

ModernCV creates a blank page

I have created a text, but as an example I created this simple text \documentclass[a4paper,12pt,danish]{moderncv} \moderncvtheme{classic} \usepackage{babel} \usepackage{lipsum} \pagestyle{empty} ...
2
votes
1answer
160 views

pgfplots - x unit, space between label and parantheses

Can I specify the space between the label and the parantheses when using x unit in pgfplots? In my example image, I want less space (\,) between the E and the [eV].
2
votes
2answers
297 views

Missing paragraphs in glossary

After each abbreviation there is a paragraph in my glossary except in one row. (see screenshot). There is no separation between the "W3C" and "WHATWG" abbreviation. Does anyone know what I can do? ...
17
votes
1answer
301 views

What is the ConTeXt equivalent of LaTeX “\@.”

In English text, TeX follows the convention of putting extra space after a period by default, which I like. However, in the case of abbreviations it causes a problem. To suppress the extra space, ...
11
votes
1answer
333 views

Consistent cover design regardless of inner pages

This is a series of books, the margins, page sizes are all identical. Depends on the content, the design of inner pages are slightly different, i.e. different type sizes, leading, etc. The question ...
4
votes
1answer
399 views

Spacing issue when using tocloft and fontspec together

I'm using tocloft for creating a List of Equations and I think there's no other way to avoid using this package. However, everytime when tocloft and fontspec from XeLaTeX are used together the ...
3
votes
1answer
3k views

ModernCV classic style, change space below title

I found this post in the forums, and I want to do exactly the same but for moderncv's "classic" style. I am pretty new to LaTeX and all the maketitle thing makes me dizzy, I tried to understand it a ...
5
votes
1answer
672 views

Seeking advice for my clumsy math homework template [closed]

I typed my math homework with LaTeX. This was my first try on making some document with LaTeX. I can Google for math symbols, so it's okay, but the overall structure is really clumsy; especially ...
10
votes
2answers
549 views

hyphenation next to a parenthesis

I have some very special hyphenation puzzles involving optional hyphens next to parentheses. (semi)group should be hyphenated as (semi-)/group di[rected ]graph should be hyphenated as di-/[rected ...
15
votes
2answers
499 views

How to remove an unwanted white space at the last end of a horizontal curly brace?

You can see there is an unwanted white space at the last term below. \documentclass[border=12pt]{standalone} \usepackage{amsmath} \begin{document} $ ...
2
votes
2answers
391 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
201 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
528 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
191 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
259 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
51 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
2k 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
395 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 ...
8
votes
2answers
436 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
844 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 ...
14
votes
1answer
182 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
49 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
105 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 ...
12
votes
2answers
2k 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
65 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
1k 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
106 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 ...
7
votes
2answers
292 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
322 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
116 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
231 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: ...
3
votes
1answer
382 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
193 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
107 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
3k 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
85 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
268 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
75 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
204 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
402 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 ...