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

6
votes
4answers
4k views

Adding vertical space in a multi-line equation while using IEEEeqnarray

how can I add vertical space between lines in an equation while using IEEEeqnarray?
3
votes
1answer
372 views

Spaces between Hebrew letters

I am writing in Hebrew, but my output doesn't look so good because the spaces between thew Hebrew words are too big. They are somehow bigger than usual, and also the font itself, just doesn't look ...
6
votes
3answers
943 views

multiletter names in lambda calculus

First, I am new to TeX and use it only for mathematical expressions. IMHO the most striking feature is that TeX does not respect whitespaces. In lambda calculus, application is denoted by ...
30
votes
2answers
1k views

Ensure minimal length of last line

This question led to a new feature in a package: impnattypo One rule in French typography is that the last line of a paragraph should not be shorter than the double of the indentation of the ...
3
votes
2answers
574 views

Adjust vspace between multiple align environments

I am using some independant align environments directly one after the other one and it produces some nasty space between them. Is there any workaround to shrink the size of the space a little bit? ...
16
votes
2answers
9k views

Too much space at the top of a beamer block when using multilined math environment

I would like to place two math lines in a beamer block, as two separately centered lines. I know that I could do this using two distinct equation environments, but it would be nicer to use a single ...
1
vote
1answer
183 views

Is there a “proper” way to fix alignment of text in a \framebox?

The \framebox command aligns its contents vertically centered, but this has a tendency to produce results that are extremely visually displeasing. Case in point: \documentclass{article} ...
6
votes
2answers
336 views

Spacing of brackets with unicode-math

Consider this example: \documentclass{article} \usepackage{unicode-math} \setmainfont{Linux Libertine O} \setmathfont{XITS Math} \setmathfont[range=\mathit/{latin,Latin,greek,Greek,num}]{Linux ...
4
votes
1answer
2k views

amsthm: how to reduce the vertical spacing between theorem and proof?

I'm using the amsthm package to layout theorems and their proofs. How can I reduce the vertical spacing between the last line of the theorem statement and the first line of the proof? BTW, I tried ...
6
votes
5answers
6k views

Aligning pseudocode in LaTeX

My algorithms class is following strict guidelines for pseudocode. Let's say I have something like the following: y = 0 for i = n downto 0 y = a_i + x * y I want this to appear left-aligned on ...
0
votes
1answer
985 views

How to change columns distance? [duplicate]

Possible Duplicate: Setting the column gap in a twocolumn document How can I change the distance of two columns in a two-column document?
4
votes
3answers
4k views

How can I change the distance between abstract and section 1?

My LaTeX format is as follows: Abstract: Abstract goes here. Section 1: It should be noted that my abstract is one column and sections are two-column. Abstract and Section 1 are very close ...
7
votes
1answer
4k views

Problem copying text from pdf - spaces being stripped

I have the following minimal working example: \documentclass{book} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \begin{document} é canção \end{document} I need to use the utf8 argument ...
5
votes
2answers
683 views

Spaces in memoir's section headings

I need chapter and section headings without numbers and with any leading spaces ignored (the document is generated by a program - dblatex). Here is an example: \documentclass[12pt]{memoir} ...
1
vote
2answers
503 views

baseline of custom marks in pgfplots

I'm trying to plot some intervals with pgfplots and wanted to use a custom mark for upper and lower bound. I planned doing this by using a "V" for the upper bound and a "^" for the lower bound ...
3
votes
2answers
999 views

Package Acronym - margin problem with long abbreviations in glossary

Is there a way to increase the margin between abbreviation and explanation in the acronym glossary? I've got some long abbreviations that are bigger than the standard margin and mess up the layout. ...
1
vote
3answers
4k views

Margins in \framebox

I have the following code: \documentclass{article} \usepackage{tikz} \begin{document} \framebox{\begin{tikzpicture}[color=black, line width=0.4mm] \draw (0,0) rectangle (5mm,5mm); ...
6
votes
1answer
3k views

Extra intervals before and after flushright environment

I am preparing questionnaire template in LaTeX. I have the following code (simplified): \documentclass{article} \begin{document} \framebox{\parbox{4cm}{ \textbf{3. How often do you have a ...
3
votes
2answers
2k views

Different \marginparsep for odd and even pages?

What is the most robust way of increase the effective \marginparsep on even pages only? I have been playing with outdented lists, section heads etc. which leads to an issue with margin notes: I need ...
4
votes
1answer
651 views

\addcontentsline adds an unwanted indent

Prologue I'm using the exercise package and trying to harmonize its layout with memoir. This question is quite involved to illustrate, so I'll break it up into several Acts. I'll present the ...
1
vote
1answer
4k views

subfloats vspace between its subcaption

How can I decrease the vspace between a subfloat and its caption? I have already tried this: \documentclass[fleqn,10pt,twoside,a4paper]{report} \usepackage[small,sc,bf,nooneline,skip=5pt]{caption} % ...
2
votes
0answers
292 views

How do I remove the occasional vertical space at the top of the page? [closed]

I have a one-inch top margin, which works fine. BUT, if I have a page that's particularly empty (because LaTeX decides not to start a new section toward the bottom of the page), all the text on the ...
3
votes
3answers
2k views

Too much space between full paragraph and subequations env

I have a document using subequations and the parskip package. If the paragraph before a subequations environment is completely filled up to the last line, then additional vertical whitespace is ...
12
votes
3answers
2k views

Implementing a sort of “tightened frenchspacing”

By default, (La)TeX adds extra space between sentences. The exact rules are in the TeXbook, a summary by TH. can be found here. What follows is is my "executive summary": After any period (or ...
4
votes
1answer
185 views

How do I create a table that meets the following specifications?

Following this question: I want to create an environment for a table with the following specifications: The left column is a vertically centered rotated text, saying Övning. The right column contains ...
4
votes
1answer
1k views

Table paragraph spacing

In the preamble of my document, I'm using \usepackage[parfill]{parskip} to make a new line between each paragraph. But when I try to write paragraphs inside a table: ...
1
vote
2answers
327 views

Misaligned paragraph (after subsubsection)

I'm new to LaTeX & LyX. I find that in LyX, when I have a "subsubsection" then "standard" block of text, it looks like where the immediate line after the subsubsection is aligned with the ...
51
votes
1answer
51k views

How to add extra spaces between rows in tabular environment?

I couldn't find any option that lets me expand the vertical space between rows in tabular environment. For example, \begin{tabular}{c c} $f^{(n)}(x)$ & $f^{(n)}(0)$ \\ ...
2
votes
1answer
615 views

Local \theorempreskipamount and \theorempostskipamount of ntheorem

It seems that \theorempreskipamount and \theorempostskipamount cannot be set locally meaning that they will keep the same value for all the defined environments even though the user may wish different ...
44
votes
1answer
40k views

How to change the spacing between figures/tables and text?

I was wondering if there is any way to lessen the spaces between figures and text. In my paper I have a lot of figures (graphics) and it is inconvenient for me to have default (large) spaces between ...
4
votes
2answers
921 views

\index causing spurious whitespace

I'm having a problem with the \index command causing unwanted whitespace: \documentclass[a4paper,11pt,oneside]{book} \usepackage{makeidx} \makeindex \def \nothing #1{} \begin{document} \noindent ...
11
votes
2answers
2k views

How to change paragraph separation to indent within blockquote (csquotes)

I am using the package csquotes to generate a blockquote. csquotes inserts what looks like half a blank line between the paragraphs within the quote. I would prefer to have no vertical space but an ...
8
votes
1answer
531 views

Spurious horizontal space in the aligned environment

If you compile what's below, you'll observe a slight horizontal misalignment between the equations of aligned versus align. Is there a way to avoid that? \documentclass[fleqn]{book} ...
4
votes
2answers
662 views

Math mode spacing (or glyph bounds) with mathspec

With mathspec, when you change the math font to an OpenType font, the spacing within equations is not fine: it is the same than the text mode spacing. For example in the equation $e^j$, the 'j' will ...
5
votes
2answers
7k views

How do I prevent LaTeX from showing a whitespace following a quote when in an lstlistings environment? [closed]

When I am inside the lstlistings environment, it seems that using a quote such as (') or (") will toggle on the showing of whitespace indicators (small little half rectangles). Am I doing something ...
13
votes
3answers
23k views

Control spacing around table caption

I want to put several tables in the same table float like this: \documentclass[a4paper, 12pt]{article} \usepackage[T1]{fontenc} \usepackage{subfig} \begin{document} \begin{table} \caption{Internal ...
1
vote
1answer
634 views

Second figure on page is covering text in the bottom of the paragraph above

I'm trying to create a page which will have three figures on it as well as some text. However in my output the top of the second figure is obscuring the bottom of the text above it. I've tried using ...
3
votes
2answers
5k views

Squeezing space around algorithm construct

I am using algorithm2e for developing algorithm constructs in my LaTeX document. However, if I want to use [!t] or [!b] to place the algorithm construct in an appropriate place, sometimes the ...
3
votes
1answer
1k views

Spacing problem with \phantom in array

Using $\begin{array}{ccc} x & := & \phantom{ a + } b + c\\ y & := & a \phantom{ + b } + c\\ z & := & a + b \phantom{ + c } \end{array}$ I get which is not quite what I ...
6
votes
2answers
1k views

Spacing in headline between number and text

How do I change the spacing between the number and the title of a section? I would like to have the following: 1.(1cm space)Section name
2
votes
2answers
290 views

Should I leave LaTeX decide the vertical height of the space above a text paragraph?

In my document, above a text paragraph, there are objects of many possibilities: \end{figure}, \end{align*}, $$, \end{itemize}, end{enumerate}, etc... It seems that visually on the final pdf, it does ...
2
votes
1answer
305 views

Lowering second accent in mathmode

I've come to a situation where I must put a tilde/hat over the vector sign in math mode: \begin{document} % The start of the document $\tilde{\vec{\beta}}$ \end{document} I find the resulting ...
3
votes
1answer
608 views

\fullcite without indent in biblatex

I'm using \fullcite to produce in-margin-note citations as per my older question. I've almost got the behavior I want, but biblatex's \fullcite command inserts a leading indent before the citation ...
6
votes
2answers
3k views

Reduce Spacing In $<a>$

In math, one often needs to put a letter inside the symbols <>, e.g. to denote a cyclic group <x> generated by some element x. However, plain text displays the symbols < and > as an ...
27
votes
3answers
3k views

Canonical way to typeset spacing in abbreviations

In a comment to When one should use spacing line \quad or \, Herbert claims that e.\,g. is the canonical way to typeset spacing in abbreviations (this is not about spacing before or after ...
8
votes
2answers
12k views

How to remove/change the vertical spacing before and after an \algorithm environment?

I saw a question that tells me how to change the spacing in an algorithm environment, but I don't know how to do remove/change the space before and after an algorithm environment like: % remove the ...
26
votes
8answers
3k views

No space following macro without argument

With a macro such as: \def\naive{na\"{\i}ve} I find that the space which I would hope to follow it, is absent. So, with the \naive approach I get the naïveapproach in the output. How do I ...
50
votes
4answers
32k views

When one should use spacing line \quad or \,

In general, in most places, it is said that using TeX defaults is the best. However, TeX does provide things like \, and \quad etc. When one should use them? Both in general and in math mode in ...
10
votes
3answers
8k views

Avoiding vertical spaces between bibitems while using IEEEtran

I'm using IEEEtran class and bibliography style and I see that the references section that it generates leaves empty lines between bibitems when the compsocconf option is used. Is there a way to avoid ...
13
votes
1answer
2k views

“etc.” abbreviation macro gives error when used in caption

I've been using the abbreviation macros for i.e., e.g., and etc. that are provided in this post. However, I just discovered that the etc. macro, and a similar one I made for et al. both cause errors ...