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

4
votes
2answers
156 views

Recreate the conditions of the document preamble while loading a file in the document body

While in the document body I like to temporary switch back to the mode active in the LaTeX preamble, i.e. spaces between macros should be ignored. I don't mind whether I get the ! LaTeX Error: Missing ...
3
votes
2answers
1k views

title of sub plots with ybar groupplots

I tried to use groupplots to arrange several bar plots but the titles are drawn on top of the axis labels of the plot above. Am I doing something wrong here? \documentclass{article} \usepackage{tikz}...
11
votes
1answer
1k views

Too much space after integral sign with unicode-math and lualatex

(I had a feeling this was a duplicate, but couldn't find an older question about it. Forgive me if I'm just bad at searching.) Consider the minimal example \documentclass{article} \usepackage{...
5
votes
2answers
9k views

How to reduce spacing in equations?

I want to typeset short equations (variable = value) saving space. Is there a global parameter which allows to reduce the space between operators and operands in math mode? I found out, that there ...
3
votes
2answers
791 views

Amsmath, spacing, left alignment

It was recommended that I include amsmath package to use \tag{} (which works). When I do this however, it somehow changes my predefined spacing; I would like everything to be left aligned, no left ...
4
votes
2answers
3k views

Writing in an invisible table

I'd like to list a few phrases in one language, and their meanings in another language. I thought about doing it like that: Sentence 1 ---------- Translation 1 Longer Sentence ----- Longer ...
8
votes
2answers
1k views

Four Language Parallel Column Book

I am trying to format a four column parallel text in four different languages to display on two pages with two columns per page. I have tried using ledpar and parallels but I cannot get it to work. ...
15
votes
3answers
24k views

Random unwanted space between paragraphs

I generate LaTeX code from XML for a book I'm writing, using pdflatex (Version 3.1415926-1.40.10 (Web2C 2009)) and memoir. Very infrequently, there appears to be an extra blank line between two ...
3
votes
1answer
610 views

Set width of LaTeX float # in List of X

Using the LaTeX float package, I've created a new float: \newfloat{schema}{htb}{los}[chapter] \floatname{schema}{{Schema}} The list of schemas at the beginning of my document is created with the ...
13
votes
1answer
2k views

How can I inject the proper amount of vertical space between captions and figures?

In my source document, I have an image and a code listing, separated by some text. When I generate PDF using pdflatex, the image is just above the listing, and it looks like the caption for the image ...
4
votes
1answer
819 views

Align Environment and Spacing [duplicate]

Possible Duplicate: Blank lines in align environment When I put a blank line between a line of text and the align environment, it will add two blank lines instead. It seems that the align ...
8
votes
1answer
1k views

TikZ: vertically aligning text in nodeparts

I can't seem to vertically align text in different nodeparts of the same node. This MWE \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes} \begin{document} \begin{tikzpicture} \...
7
votes
1answer
22k views

argument in \begin{subtable}

I use \begin{subtable}{.5\textwidth}...\end{subtable} to produce two (or more) subtables side by side (from the subcaption package). But I don't understand what {.5\textwidth} means. I tried different ...
5
votes
2answers
2k views

How to format multiple algorithms so that they appear together

How can I have multiple algorithms be tied together so that they all appear next to each other. Currently LaTeX places the algorithms to far from each other.
4
votes
1answer
235 views

Attempting to mimic the spacing from another line using \phantom and \mathrel doesn't work

Here is an example document. \documentclass{amsart} \begin{document} We define two more $B$--symbols, $\zeta_1$ and $\zeta_2$, as follows: for each $x_J \in M(B)$ and each $j \in J$, $\zeta_1(B, J, ...
7
votes
2answers
1k views

list the cases in text

I would like to list some cases which are needed to be consider in text. I didn't find a standard way to do this. There is "case" for math mode, but that is not what I want. Look the following picture:...
4
votes
2answers
1k views

Indentation in list environment

How can I specify explicitly both the indentation of the label and the actual item's text from the left margin in a list environment. I would like to achieve the following:
4
votes
6answers
11k views

How can I auto adjust a equation to appear in the entire page? (Scale to equations, is this exist?)

If I have a document like this: \documentclass[landscape, 12pt]{report} \usepackage[landscape]{geometry} \usepackage[utf8x]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath, amssymb, ...
10
votes
3answers
424 views

Should there ever be a thin space between an operator and an opening delimiter?

For instance, is it correct to use $\sin\lvert x\rvert$, not $\sin|x|$, for the sine of the absolute value of $x$? I think that since the argument of $\sin$ is $|x|$, it makes more sense to have a ...
9
votes
4answers
172 views

Spacing in headline from beginning of line to title (excluding the section number)

How do I change the spacing between the number and the title of a section? I would like to achieve the following: 1. (1 cm space BUT from the very beginning of that line!) Section title In ...
8
votes
3answers
8k views

Table padding in LyX

I'm creating in LyX a table wich has a single character for every cell. Problem is, a lot of space is wasted, because each cell has some padding points which I'd like to reduce. A cell is now big ...
10
votes
1answer
23k views

How can I reduce table row height?

I use the following code to render a table in LaTeX. But the problem is that the default row height is too big for me. I want to be able to specify the row height. How can i do it? \begin{tabular}{|...
2
votes
1answer
4k views

How can I add line feed after itemize?

How can I add line feed after itemize? Some vertical spacing would be even better, I think. My document: \documentclass[12pt,a4paper]{mwrep} \usepackage{enumitem} \setlist[itemize]{label=--} \setlist[...
3
votes
1answer
1k views

How can I change behaviour of enumitem?

Document 1: \documentclass[12pt,a4paper]{mwrep} \usepackage{enumitem} \begin{document} List of items: \begin{itemize} \item Item one, \item Item two, \item Item three \end{itemize} \end{document} ...
2
votes
0answers
92 views

Make all \begin{quote} … \end{quote} blocks single spaced with setspace? [duplicate]

Possible Duplicate: Reduce the space between a quotation and a title I am writing a double-spaced paper using the setspace package. I need quotations to be formatted with single spacing, ...
1
vote
1answer
278 views

Print programs with automatically generated line numbers and tabbing

I have post a question several weeks ago: Print programs with its proper syntax, and I choose to use tabbing package at the moment. Now I really need to keep the tabbing and print a line number ...
5
votes
3answers
156 views

Allowing breaks at a location with no spaces or hyphens

I have two letters: A and B. In most situations, I'd like them to appear together with no space, e.g. ("AB"), however, if TeX feels it needs a linebreak or to split these across two pages, this is ...
6
votes
1answer
932 views

Troubleshooting extra spaces

My document has lots of extra whitespace appearing between various elements. The problems appear around one macro which appears multiple times. After every line in the macro, I've placed %'s, however, ...
7
votes
4answers
1k views

A \boxed alternative with minimal spacing?

The following code comes from this post. The problem is that I would like a way to automate the size of the box so as to be very small with a few of spacing, but the following solution doesn't work ...
5
votes
1answer
417 views

Same distance between chapter head and text / toc

With the following example, I get a different vertical distance between "Contents" and "1 bar 5" and "foo" and "Lorem". How do I get the first entry of the TOC to the same height as "Lorem ipsum", ...
10
votes
6answers
1k views

A \boxed alternative with nicer spacing?

I like using \boxed to emphasize my answers in homework problem sets. However, whenever I use superscripts/exponents inside the box, the box becomes taller than it seems it should. This causes two ...
4
votes
1answer
673 views

Formatting of multiline chapter headings using KOMA

I need (publisher requirement) to format the chapter headings in a document in such a way, that the chapter number is aligned with the text on the page, but if the chapter is longer than one line, the ...
4
votes
1answer
158 views

What's special about \def\\ vs. \def\mksp?

In the following definitions, \\ captures a space token but \mksp does not. \documentclass{article} \begin{document} {\def\\{\global\let\sp= } \\ } {\def\mksp{\global\let\spx= } \mksp } \show\sp \...
15
votes
4answers
1k views

Creating stackoverflow like tags

I'm trying to create stackoverflow like tags. Currently I'm using an \fbox{text} to create the tags, which works, but not all boxes have the same height (it seems that letters like 'p' make a box take ...
10
votes
1answer
1k views

How to reduce the space between two footnotes, making them seem more like two paragraphs?

\documentclass{article} \usepackage{lipsum} \usepackage[doublespacing]{setspace} %\usepackage[onehalfspacing]{setspace} \setlength{\parskip}{0pt} \usepackage[b5paper]{geometry} \begin{document} {\...
3
votes
1answer
1k views

Adjusting vertical and horizonal spacing in \stackrel

I have several \stackrel's in my document. See the e.g.: \documentclass{article} \usepackage{stackrel} \begin{document} $\stackrel[\textrm{sand}]{\textrm{A}}{\textrm{B}}$ $\stackrel[\textrm{...
2
votes
1answer
893 views

Setting up the appendix with memoir [closed]

I need some help setting up the layout for the appendix of a Thesis template I am working with Memoir Class. Before the appendix all the document have the following format Top, right and bottom ...
17
votes
2answers
5k views

How to use tilde or space in includepdf filename?

I'm trying to include a pdf in a document, using pdfpages package, but I'm having troubles when filename contains tilde or space. e.g. \includepdf[pages=-]{C:/Users/MYUSER~1/AppData/Local/Temp/...
7
votes
1answer
214 views

How to space '|'?

I write a lot |, for instance, even numbers = \{ z | z \in Z, z mod 2 = 0 \}. But the space around | does not look enough... I tried \mathbin{|} and \quad | \quad, they do not look great either... ...
0
votes
0answers
2k views

padding for table cells [duplicate]

Possible Duplicate: Column padding in tables I am unable to determine the padding for table cells. Here is my table so far: \begin{center} \begin{tabular}{ m{5cm} m{12cm} } \hline \cellcolor[...
1
vote
0answers
751 views

Problem with continuation of TOC in Memoir Class [closed]

This is basically continuation of earlier questions. I managed to fix (brute force) most issues. This one effects continuation pages of TOC, TOF, and chapters pages after the first. I assume it is the ...
4
votes
2answers
656 views

Reduce the space between a quotation and a title

When I use the quotation environment at the start of a section I get too much space between the title and the start of the quotation. How to modify spacing around quotation environment? has ways to ...
3
votes
1answer
762 views

tocloft conditional spacing

This is my first question on stackexchange! I am using the tocloft package for my thesis and my university requires doublespacing before and after the chapter titles in the ToC, but only if the ...
3
votes
1answer
588 views

Odd problem with spacing using memoir when switching from oneside to twoside

For reasons I won't bore anyone with, I being forced to change my document at the last minute from oneside to twoside using memoir. However, when I do, I suddenly get odd problems with spacing; the ...
8
votes
1answer
4k views

Spacing in pgfplots bar plot

I've been trying to plot an xbar graph using pgfplots within a tikzpicture. I want to be able to only show the yaxis on the left and the x axis on the bottom. When I set axis y line=left and axis x ...
18
votes
1answer
1k views

Spacing around image

Knuth is on record that he incorporated approximately 100 typographical rules in TeX. I am struggling to discover the balance. Consider the figure below, What should be the amount of space around ...
4
votes
5answers
780 views

How do I disregard automatic spacing between characters in math mode?

I realize this is a bit of an odd request. I'd like to typeset some characters in math mode (such as 1 \land \lnot 2 \lor 3), and have them appear equally spaced, rather than with automatic spacing. ...
8
votes
2answers
1k views

Apply \intextsep at top of page

In trying to provide an answer to this question: Two column trouble - positioning of figures and text, I realized that I need to shift the wrapfigure up to account for the extra spacing that the \...
8
votes
4answers
2k views

Brace and text in side margin

Within a text, I would like to emphasize one or two paragraphs by placing a curly brace in the left side margin, and next to it some short text vertically centred around the brace's centre. The ...
7
votes
3answers
926 views

how to eliminate the horizontal spacing of the frame in the framed package?

I'm using the framed package and I found it difficult to adjust the width of a frame to adapt to the current environment, e.g. if I use a shaded environment within the enumerate environment, I will ...