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

1
vote
1answer
481 views

Write command so that commas appear properly [duplicate]

Possible Duplicate: \newcommand and spacing I want to write a command as a shortcut to insert text. \newcommand{\bl}{$blah blah$} When I write the command like this, "blah blah" runs ...
13
votes
2answers
8k views

Remove vertical space around align

I need to display math in my report, but is it possible to remove the vertical space around align*? A little example is the following (where I just want the align* to have the same vertical space as ...
8
votes
2answers
354 views

Different hyphenation pattern when using oldstyle figures?

It appears that there are different hyphenation patters when using oldstyle figures or not. Consider the following MWE: \documentclass[a4paper,10pt]{scrartcl} \areaset[current]{336pt}{600pt} ...
1
vote
2answers
780 views

Extra Space After newcommand

I was trying to write a macro to bold a name. I used: \newcommand{\authorship}[2]{\textbf{#1 #2}} then in the text used \authorship{Dave Bridges} Unfortunately when run through pdflatex I get ...
12
votes
1answer
4k views

comma like \cdot

What is the \cdot alternative for comma, or any other punctuation symbol? I want to raise comma symbol in a list of fractions to the fraction line. Comma is placed below when used next to fraction.
2
votes
1answer
468 views

Spacing before theorem with scrbook

I recently changed from book to scrbook. Because of this there is now no spacing before a theorem enviroment. I now want to change this back, i.e. I want to have an extra spacing before a theorem ...
5
votes
2answers
1k views

Creating a flexible space between a few lines of text on a beamer slide

I think this is a very basic problem but somehow I don't know how to solve it. I am working with the beamer class and want to create slides where there are two columns. One of the two columns contains ...
4
votes
1answer
677 views

Table of Contents, List of Figures, and List of Tables Positions

How do you move the beginning of the table of contents, list of figures, and list of tables further up the page? The default is to start those sections above a third of the way down the page.
9
votes
1answer
563 views

How does changing colour affect spacing?

In the following example, the space after the red equation is much larger than the space after the black one. \documentclass[12pt]{article} \usepackage{xcolor} \begin{document} \[ a = b \] The quick ...
6
votes
1answer
474 views

Count number of lines in a caption

I have a problem formatting my captions for figures/tables. What should happen is the following: I need one line above the image and two lines above and below the caption. To make it look good, I ...
8
votes
2answers
278 views

Practical uses for skips with negative stretch or shrink components

I am currently looking somewhat carefully at how TeX manipulates skips, and I am having trouble finding practical use cases for skips with a negative stretch or shrink component, such as \Askip and ...
3
votes
2answers
400 views

Problem with \specialcomment-command and equation/align-environments

I'm using the specialcomment-command from the comment package around equation and align environments. This leads to an unwanted blank line after the math environment. When just using the simple ...
14
votes
2answers
508 views

Is there way to put hard space after defined words?

In Polish typography, one should avoid putting prepositions at the end of the line. Example: Nie wiedziałem, że nie umieszcza się przyimków na końcu strony. - bad Nie wiedziałem, że nie umieszcza się ...
3
votes
1answer
2k views

Vertical space between section header and text is too big

\documentclass[12pt,a4paper]{mwrep} \usepackage{polski} \usepackage[utf8]{inputenc} \usepackage{amsfonts} \usepackage[draft]{graphicx} \usepackage{amsmath} \usepackage[nodisplayskipstretch]{setspace} ...
6
votes
1answer
14k views

Vertical space between figures

I really want to get rid of some of the whitespace between figures and subfigures, it is completley unecessary and sometimes causes a page of figures with a third landing on page two with text, while ...
10
votes
1answer
18k views

underfull \vbox

What do the following messages mean? LaTeX Font Info: Try loading font information for U+msa on input line 205. ("C:\Program Files (x86)\MiKTeX 2.8\tex\latex\amsfonts\umsa.fd" File: umsa.fd ...
18
votes
1answer
5k views

Remove vertical space before table of contents title

I've been trying to figure out a way to easily reduce the space/gap from the top of the page to the table of contents title, as in to reduce the vertical space before the table of contents begins. ...
3
votes
1answer
419 views

Inconsistent horizontal width of mdframed with only display math content

Update 2012-03-09: With an version of mdframed updated today, this is now fixed in the package and no longer requires the workaround provided below. In Excess vertical space in mdframed ending with ...
1
vote
1answer
480 views

Defining a prefix operator with space before its argument

I want a particular spacing behavior for a custom operator. I can produce the desired spacing by setting math classes (\mathord and so forth), but I have to do it on a case-by-case basis since no ...
7
votes
2answers
1k views

How to suppress vertical space between theorem heads and enumitem environments?

How can I suppress vertical space between a theorem head and an enumitem environment? I would like the output to look like version 3 below, but I hope there is an automatical solution without ~ and ...
15
votes
2answers
3k views

Oversized \underbrace's label causes unwanted spacing

Consider this: \left( x-1 \right) \underbrace{ \left( ? \right) }_{ \text{what is this?} } The label is longer than the braced portion, which causes unwanted space between the parentheses. Is ...
15
votes
2answers
5k views

How to add vertical space struts after hline?

I know the table trick of adding "struts" in the first line after and the last line before a \hline. I use it throughout my document, and it looks good that way. However, now I am working within a ...
3
votes
3answers
3k views

Redefine \arraycolsep for particular environments

How do I change \arraycolsep for a single environment? E.g., I have \arraycolsep set so that the white spacing on either side of "=" in the equation array environment is not excessive. However, this ...
5
votes
2answers
10k views

Reduce vertical space between text and table and remove table indentation

I want to reduce the vertical space between the first line text and the start of the table. I also want to remove the indent on the table, so that all three lines start at exactly the same vertical ...
29
votes
1answer
19k views

How can I modify vertical space between figure and caption?

\documentclass{article} \usepackage[draft]{graphicx} \begin{document} \begin{figure} \centering \setlength\fboxsep{124pt} \setlength\fboxrule{1pt} \fbox{\includegraphics{dummy}} \caption{Dummy ...
24
votes
2answers
38k views

What is the difference between \hspace*{\fill} and \hfill?

In the memoir manual on page 183 ,this example is given: \begin{figure} \centering \hspace*{\fill} {ILLUSTRATION 1} \hfill {ILLUSTRATION 2} \hspace*{\fill} \caption{Example float with two ...
6
votes
1answer
285 views

Remove excess space at end

I realize that one should not have two consecutive display math equations as mentioned in Uneven vertical spacing displaymath. However, in my case, I have a macro that typesets two given macros in a ...
5
votes
1answer
267 views

Spacing between environments

I am trying to define a dialog environment while using the lettrine package. My problem are the spaces between the dialogs. There is no problem when a dialog consists of more than two lines. But ...
5
votes
2answers
628 views

Force LaTeX to obey spaces in math mode

I have experienced a very frustrating feature of LaTeX. I have used bnf.tex to be able to write a BNF grammar definition. As I found the notation <some text> very convenient, I decided to use ...
7
votes
1answer
302 views

Spaces before biblatex-mla shorttitles

I'm using LuaLaTeX with the biblatex-mla style for \autocites* quotes in my text. But before shorttitles like "OED" the spaces are missing. How can they be inserted? Here is a minimal working example: ...
19
votes
3answers
151k 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. ...
10
votes
3answers
7k views

Reducing white space above date in Letter Class

How can I reduce the amount of whitespace at the top of the page in the letter class? I've added some text to serve as a letterhead, and everything is lined up... but starts way too low! Does anyone ...
1
vote
1answer
241 views

Using an insert in smaller type in a paragraph without changing text line spacing [duplicate]

Possible Duplicate: Setting a single equation in a paragraph in a smaller font I want to shrink the size of some typeset material inserted in the middle of a paragraph. The following tex ...
7
votes
2answers
1k views

medskipamount, default value in article class

What is the default value of medskipamount in the article class? I have not been able to locate this information. Is there some database where default values of various parameters can be accessed?
3
votes
1answer
519 views

Strange spacing in inline listings (listings package)

I am using the listings package to typeset some code. I've defined a lstlisting environment, based upon the standard Haskell environment, and added a number of literate replacements, including: ...
1
vote
1answer
795 views

Positioning text both left and right on the same line

I am having a hard time positioning text. Especially if I need to 'float' elements to different sides. Currently, I'm trying to show a header with a 'subheader' that should be to the right of the ...
7
votes
2answers
2k views

Spacing between items containing a parbox

I would like to make a list, each entry of which has two pieces of information: a date range, and a description. If there are two separate date ranges that apply to an item, I would like to be able to ...
13
votes
2answers
10k views

Beamer: Removing headline and its space on a single frame (for plan), but keeping the footline

There is now 4 hours that I'm Googling to found a solution to my problem but it's still impossible! Here is the situation: I have some frames in a presentation using the Warsaw theme, on the first ...
16
votes
5answers
3k views

Proper way to detect empty/blank text

I am attempting to ignore a command if it is passed with empty/blank text. My use case is not as complicated as one Expand away empty macros within ifthenelse where @egreg provides what seems like a ...
10
votes
1answer
8k views

How to do a line break after an itemize?

The question is in the title. I've \begin{itemize} \renewcommand{\labelitemi}{$\bullet$} \item item1 ... \item item2 .... \end{itemize} New ...
10
votes
1answer
2k views

Add space after LaTeX command

I'd like to call a command from LaTeX, which looks like this: bash -c "\myCommand -Tpdf #2.dot > #2.pdf" \myCommand is replaced by string variable, however the space after is also removed so I ...
13
votes
3answers
472 views

Multi-column spacing of many equation-like environments

I suppose I have a pretty simple question. I want to write down a logic inference system. A good example can be found on page 9 in this document: What environment would you advise me to use to get ...
8
votes
2answers
1k views

How do I remove spacing from before the table of contents in memoir class?

I am using memoir class to create a collection of short stories, and the default space before the table of contents and chapter titles is quite large. I have seen several posts on this site that show ...
2
votes
2answers
4k views

Moving Table to Left and Adding Space to Columns

In the following table, the numbers take up too much room. I do not want to landscape the table because there are too many rows. So, I'd like to do both of the following: Create more space between ...
8
votes
1answer
1k views

Alignment/whitespace to compensate for negative sign

I have two equations: \begin{equation} \begin{cases} \begin{aligned} a_x &= - \sin \alpha \cos \beta \\ a_y &= \cos \alpha \cos \beta ...
9
votes
1answer
1k views

Vertical space before and after custom environment

I've created custom environment with these commands: \usepackage{relsize} \newcounter{annotation} \def\theannotation{\arabic{annotation}} \newenvironment{annotation} ...
8
votes
2answers
822 views

latex command has extra space

I'm writing a command to deal with bacteria names. They're written in full the first time, then with just the first name and a period following it. I've managed what I have by cobbling together ...
4
votes
1answer
447 views

Unpredictable Vertical Spaces

I'm writing up a résumé, and I am very particular about making sure that each section is separated by the exact-right-looking amount of spacing. My sections are divided with an \hrule (although in my ...
7
votes
2answers
709 views

Excess vertical space in mdframed ending with display math environment

When the mdframed environment ends with an align there is excess vertical spacing at the bottom. I would like to adjust the MyBoxedEnvironment environment such that the vertical space at the bottom ...
15
votes
2answers
6k views

Remove space after command

To simplify some text I created some commands. One command has no arguments. It uses math mode but is used inside normal text. I would like to remove any trailing space between the command and ...