{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
0answers
231 views

Vertical alignment for tables [duplicate]

Possible Duplicate: Set table position to top How to place a float at the top of a floats-only page? I've got this problem... I tried with the search but I couldn't figure out! I've got ...
5
votes
2answers
3k views

How can I hide the chapter headings number on LaTeX and change the spacing?

I'm writing my Thesis but I have run into some layout troubles, I'm using the standard book document class, which results in my Chapters headings in the form of: Chapter # Name of my chapter ...
2
votes
1answer
7k views

Reduce space before and after tabular environment

I have a document with many occurrences of \begin{tabular} ... \end{tabular} I have been unable to find a global command that will reduce the vertical space before and after this environment. ...
5
votes
2answers
1k views

breaking lines in a matrix/array environment

I have a matrix whose entries are quite long and must be broken up across multiple lines. The desired break-points are the + operators separating terms in each matrix element. The following code is ...
4
votes
2answers
65 views

Can one create a two-part spacing command?

I would like to create a two-part spacing command. Specifically, I'd like two commands: \mySpaceOne and \mySpaceTwo. If \mySpaceOne is followed by a \mySpaceTwo, then it generates a certain amount ...
13
votes
2answers
2k views

How can I change the whitespace above and below math displays?

I'm looking to squeeze an article written in LaTeX with amsmath to a set number of pages. In the text, I have a number of numbered math displays which I refer to throughout. However, they take up ...
4
votes
1answer
73 views

Is it possible to create an assertion of minimum spacing in a command? [duplicate]

Possible Duplicate: Horizontal Spacing: double \hspace removal? I'm trying to keep my document as abstract as possible since I'm likely to change representation of the terms I'm using on a ...
1
vote
1answer
269 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 ...
8
votes
1answer
4k 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
297 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
546 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 ...
10
votes
1answer
2k 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
367 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 ...
3
votes
1answer
498 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.
7
votes
1answer
323 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
370 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
215 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
277 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 ...
13
votes
2answers
410 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
1k 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} ...
5
votes
2answers
11k 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 ...
9
votes
1answer
11k 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 ...
11
votes
1answer
3k 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
352 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
326 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 ...
6
votes
2answers
795 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 ...
11
votes
2answers
1k 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 ...
9
votes
2answers
2k 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
2k 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 ...
4
votes
1answer
5k 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 ...
22
votes
1answer
11k 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 ...
17
votes
2answers
16k 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
251 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
213 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
536 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
272 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: ...
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. ...
6
votes
3answers
4k 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
194 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 ...
6
votes
2answers
748 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
435 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
553 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
979 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 ...
12
votes
2answers
6k 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 ...
15
votes
5answers
2k 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 ...
8
votes
1answer
5k 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
396 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 ...
7
votes
2answers
770 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 ...