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

9
votes
2answers
6k views

Length of \vfill

Is there a way to get the size of \vfill? I want to do some math with the spacing, and I already tried to do: \newlength{\newtest} \settowidth{\newtest}{\vfill} I got an error. Any sugestions?
11
votes
3answers
873 views

No indentation after empty line

Indentation can be selectively suppressed using \noindent or completely with the option parindent=full to the KOMA document classes. Books (fiction) are usually structured using paragraphs, indented ...
5
votes
1answer
262 views

badness messages when changing from report to book class

When I change the documentclass from report to book I suddenly get a lot of messages like this: Underfull \vbox (badness 10000) has occurred while \output is active [] Does anyone have an ...
1
vote
1answer
264 views

Removing Leading Space

I would like to remove the leading space that appears on the left before the equation on the latex below. \documentclass[preview]{standalone} \usepackage{amsmath} \usepackage{bm} ...
6
votes
2answers
3k views

Extra vertical space after \hline causes a gap in the right border of an array

I wanted to put a bit of space after an \hline in an array; the main suggestion floating round the Internet seems to be to use \hline \\ [-1.5ex] Unfortunately, this causes a gap in the line on the ...
4
votes
2answers
4k views

Eliminate space after section heading

I have set the spacing after subsubsection to 1sp, but there is still an appreciable space between the heading and the text (approx 1ex). Obviously, I can't set a negative value, and I don't want to ...
6
votes
2answers
2k views

Spacing of \multline inside align (i.e. \multlined)

Related with How can I use multline within an align environment?. Consider this document: \documentclass{minimal} \usepackage{amsmath,mathtools} \begin{document} \begin{align*} & ...
18
votes
1answer
1k views

Why is \parskip zero inside a minipage?

This question was originally entitled "inconsistent paragraph spacing with \parskip inside minipage" as the MWE below shows. But I found the answer at How to preserve the same parskip in minipage, ...
3
votes
1answer
806 views

LaTeX - How do I prevent extra whitespace when an equation falls at top of page

I am a newbie to LaTeX, so if this question is simple to answer please forgive me. I wish to keep the content in my document flush with the top margin. However, when an equation falls at the top of ...
7
votes
3answers
4k views

Add “just a little more” padding to my table?

I have a table resembling a matrix with a extra lines for emphasis. This table may also contain frac{} items which do fit into the cell but sort of "hit" the boundaries. Trouble is, that I have quite ...
28
votes
1answer
2k views

What is glue stretching?

I had a question about dynamic vspaces (Dynamic vspace depending on text height) and there was a hint I should use a stretchable glue. Searching with Google didn't give me a helpful answer. I would ...
14
votes
2answers
386 views

Automatically adding space before punctuation in old-style English texts

I'm typesetting an English text in an 18th century style (based on a 1725 edition of Alexander Pope's "Dunciad"). Is there a LaTeX package I can use to automatically add the correct space before (and ...
3
votes
1answer
288 views

How to set the Top Margin for a custom Verbatim environment (fancyvrb)

From the fancyvrb documentation, it looks like I can set left and right margins (paragraph 4.1.13) only. How can I set the top margin for my environment? More specifically, given that I have a frame ...
10
votes
2answers
961 views

Exchange meaning of : and \colon

I usually use the colon symbol : to denote maps. For set syntax there is the braket package. So as the spacing of : is not appropriate, I want it to behave like \colon. I tried ...
1
vote
1answer
469 views

Dynamic vspace depending on text height

I have a fixed layout with some text and vspace s and so on. Sometimes one of the text passages is too long for one line, so it uses two or more lines. Is there any possibility to get the used height ...
4
votes
1answer
243 views

Incoherent spacing with Libertine and math-mode

My problem when using math in a beamer presentation: The space between a $f$ and the following questionmark is way too small (the glyphs intersect). When switching the code (MWE) to an article, the ...
2
votes
1answer
637 views

vertical space around horizontal rules between tabu rows while maintaining color

I would like to increase the vertical space before and after a horizontal rule in a tabu table but want the color that is in the cells below and above the rule to not be broken but continue right ...
5
votes
1answer
542 views

tabucline with a break

In the following the first two columns are different in nature from the last two and I wanted to emphasize this by having a break in the horizontal line. I drew lines across columns 1 and 2 and then ...
11
votes
2answers
235 views

leaders and evaluation order

I made this simple latex file : \documentclass{minimal} \usepackage{tikz} \newcommand\randdot{% \tikz{\pgfmathsetmacro{\r}{0.01+0.05*random()}\fill (0,0) circle (\r);}\ } \begin{document} ...
11
votes
1answer
4k views

Question about spacing \hspace and \vspace

I have been using \hspace and \vspace in my latex documents lately. I was surprised when \hspace{1em} didn't work and found out that I needed to use \hspace*{1em} to force latex to put the space ...
3
votes
1answer
820 views

vertical align and color in table with multirow

I have the following table: \documentclass[a4paper]{report} \usepackage{booktabs} \usepackage{multirow} \usepackage[table]{xcolor} \begin{document} \begin{table}[htbp] \centering ...
17
votes
1answer
25k views

Inserting a specific number of blank lines

I'm new to LaTeX and trying to format my Honors Thesis, which has very specific formatting rules to prepare the manuscript for publication. For instance, on the Abstract page, I am required to place 3 ...
2
votes
1answer
114 views

Two margin woes

I have two problems with my margins. One is that when I print the margins, I can't seem to get them to come out properly. I have \usepackage[top = 1in, bottom = 1in, left = 1.5in, right = ...
4
votes
0answers
261 views

Balance package messes up vertical space between lines in second column [closed]

I am writing an article with the ACM Sigplan class and want to balance the two columns on the last page of my text (before the bibliography section, which is on a separate page). I usually use the ...
10
votes
3answers
558 views

Space after command with \write

I did not see this question yet, correct me if there is. It's not the usual problem of adding a space after a command. It's more specifically when writing to a file. For some reason the same method ...
0
votes
1answer
235 views

How to put white spaces in JLaTeXMath

We are using JLatexMath library in java project to export some expression into JLatexMath. Code: texCode="\\mathrm {let} {x}" It shows Letx. What I need is Let x, space between Let and x. Does ...
1
vote
0answers
224 views

Ignore stretch/shrink when using vspace [closed]

Please forgive me. I am quite the novice when it comes to LaTeX. I've been learning "on the fly" by downloading documents from the web and referring to sites like these to answer my questions. I'm at ...
4
votes
2answers
2k views

Customized log notation

In my country, the base of logarithm is written in superscript before the log sign, i.e. $^a\log b$ means log base a of b. This doesn't look nice on LaTeX, because there is a gap between ^a and \log. ...
5
votes
1answer
563 views

Problematic space between S and its subscript

Though I have solved this problem, I still want to hear the LaTeX community on this point. I also need to know if I have misunderstood anything, or if my fix is wrong. I have the following ...
12
votes
1answer
6k views

How to decrease spacing before chapter title?

I want to decrease the vertical space between the top of the page and the chapter heading. I have tried to follow the instructions for titlesec but I am not successful. I have tried the following two ...
0
votes
2answers
334 views

Weird gaps in bibliography, list of figures, etc

I have a very strange problem with my list of figures, list of tables and bibliography which I can't figure out. There are unnecessary gaps between the lines. Any idea what could be wrong here? ...
3
votes
1answer
788 views

How to remove extra space between \vspace*{0em} and \section?

I want to add an exact amount of space between type area and a section: \documentclass{scrbook} \KOMAoptions{fontsize=10pt, paper=14cm:21cm, DIV=calc, pagesize=auto, BCOR=5mm, twoside=true, ...
1
vote
1answer
674 views

Force newline, but collapse vertical space

I'm trying to create a block of subfigures with no space between them, The above is the desired result, but the way I did it feels hacky. I used a newline forcer followed by negative vertical ...
3
votes
2answers
2k views

beamer: how to increase space between bullet and text in itemize environment?

I am using \documentclass[final, hyperref={pdfpagelabels=false}, xcolor=svgnames, mathserif]{beamer} and \usepackage[orientation=portrait,size=a0,scale=1.4,debug]{beamerposter} In an itemize ...
13
votes
2answers
622 views

The revenge of the vboxes

Yes, they're back. With a vengeance. Those pesky little buggers we call \vboxes which I've fought against previously. (And Bruno, too.) \parskip=0pt \def\unquo{\unvbox0\smallskip} ...
2
votes
1answer
107 views

Raisebox appears to inset 4pt of space to left of object raised?

So, I have been working on writing a package for typesetting "fregean Begriffsschrift". While working on the universal quantifier, I tried raising the semi circular depression in the content stroke, ...
11
votes
2answers
230 views

What is a good way to typeset dot-separated acronyms?

I am trying to find a good appearance for typesetting "C.A.T.A.P.U.L.T.". When I type it as is, it appears to me that P.U.L. are bunched up together while the other letters are well apart. Perhaps ...
8
votes
1answer
341 views

Kerning for arabic digits?

In most fonts, arabic digits have nonproportional width, meaning that 1 and 8 have exactly the same width even if the former has a smaller natural width. This is good for typesetting tables, but in ...
3
votes
1answer
209 views

Headers and footers for listing environment?

What I need to be able to do is apply a header and footer when I use the listings environment. I have a few requirements: The header and footer should be outside the listing itself, i.e. they are ...
0
votes
0answers
39 views

(Badge printing) Why is there a margin in my framebox? [duplicate]

Possible Duplicate: Where are the necessary places to be appended with % to remove unwanted spaces? I am trying to create a LaTeX template for badge printing (for a conference), based on ...
0
votes
2answers
264 views

Using hfill to prevent expansion of text in table environment

I am using inline lists (from the enumitem package) within a table (see Comma-separated list environment) Originally, I had an issue where the inline list would expand horizontally to the width of the ...
6
votes
1answer
3k views

vertical space after algorithm

I am using the usual algorithm package for a paper. However, LaTeX puts too much vspace below algorithms. I have already reduced \floatsep, \textfloatsep and \intextsep but it does not seem to help. ...
0
votes
1answer
151 views

Why have my itemize environments been corrupted and how can I fix the issue? [closed]

I am using the ut-thesis template, and this is what stock bulleted lists look like: \usepackage{enumitem} %... \begin{itemize} \item{I like margin} \item{I like margarine} \end{itemize} ...
9
votes
3answers
2k views

The gap between two double-spaced footnotes is too large. How can I fix

I have to have footnotes double-spaced, but if I use \begin{doublespace} and \end{doublespace} within footnotes, then the gap between two footnotes becomes too wide. Could anybody fix it? ...
5
votes
1answer
685 views

twoside introduces incorrect linespacing at end of section

I have: \documentclass[a4paper,11pt]{report} with no special customisation. In one page, at the end of a section, I have a big figure with two paragraphs of text below it, and these two paragraphs ...
1
vote
1answer
1k views

Adjusting bottom margin

I added the preamble: \usepackage[inner=2.5cm,outer=3cm,bottom=2cm,top=2cm]{geometry} But it produces weird spacings like this: It seems the problem occurs because the bottom margin is forced to ...
9
votes
2answers
10k views

Remove vertical space at start of latex document

I have this test file which is supposed to put Hello there. near the top of the page but it does not work in so far as there is still tons of vertical space at top. How can I fix this? ...
3
votes
1answer
100 views

Flush stacked rotated images

I have a series of images that I would like to line up horizontialy, all scaled to a given height, rotated 90 degrees and exactly flush with respect to each other. For example: ...
6
votes
1answer
174 views

Suggestions for tweaking wide root index

I don't like how the wide mn index of the roots is being displayed and am looking to see how others have handled this problem. I am using the closed square root from the references listed below which ...
2
votes
0answers
551 views

How can I remove the blank space before and after a command [closed]

I create a command, \newcommand{\cmd}{b} but when I use this command a\cmd{}c What I get is a b c but what I want is abc How can I remove two blanks?