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

2
votes
1answer
170 views

Control interword glue

I know that TeX (and thus LaTeX) uses boxes and glue to lay out text, but I can't find how to control the glue dimensions. Specifically, I have one troublesome paragraph that doesn't justify well ...
4
votes
1answer
284 views

Fill empty vertical space with a single diagonal line

I'm currently writing a document with the book class. At the end of every part, I have a box where I put my name and I can sign. This box fills the whole horizontal space but is only a couple of ...
5
votes
1answer
171 views

LaTeX creating unnecessary space

I'm getting unnecessary white spaces as in the snapshot. It's mainly because of my figures. I'm putting my figures as \begin{figure}[H] \centering \input{figures/,,,,,,.tex} \caption[h]{....} ...
2
votes
1answer
974 views

How to adjust space between columns in longtable environment?

In the regular tabular environment, we can use \setlength{\tabcolsep} to specify the size of the space between the columns, but this doesn't work in longtable. Is there a similar command? ...
7
votes
2answers
2k views

Equations and defining equation variables

I have a main equation that should be numbered and now I want to define the variables of the equations which may contain another set of equations. For example please have a look; code: \begin{align} ...
8
votes
2answers
678 views

Odd vertical gap with multicol, scrreprt and parskip=half

I'm having a weird vertical gap in one of my documents, which only is there when I use multicol together with \documentclass[parskip=half]{scrreprt}. Minimal example ...
2
votes
1answer
186 views

Paragraph Spacing within a Tikz Environment

I am looking to replicate the look of paragraphs within a tikz environment (actually a minipage). \documentclass[letterpaper,12pt]{book} \usepackage{tikz} ...
2
votes
1answer
2k views

Line return/spacing after \hrulefill

I'm new to LaTeX and am trying to make a simple resume. I'd like my left-justified name to appear above an \hrulefill line followed by my right-justified address on the next line. However, when I do ...
4
votes
1answer
625 views

Spacing below section title

The document class acm_proc_article-sp seems to be incompatible with the package titlesec. At least I can not load it. It fails with (/usr/share/texmf-texlive/tex/latex/titlesec/titlesec.sty ! ...
9
votes
1answer
140 views

Where is the trailing space after TikZ node text gone?

I've been fiddling with TikZ nodes to get framed text (part of mdframed boxes, but that's beside the point) when I discovered something that puzzles me. If you run the code below: ...
7
votes
1answer
180 views

How to remove space surrounding a colored theorem box?

This is a follow-up question of Combining spacebelow with shaded parameter in thmtools package. Bug?. How can I get rid of the space above the theorem box? If I comment out the mdframed=... line it ...
5
votes
2answers
89 views

New enumeration

\begin{enumerate} \item \item \item \item \end{enumerate} How to define new numeration: I would like to have bigger spaces between every two points and equal indents for all points. ...
6
votes
1answer
248 views

Formatting a logical (PD) derivation

I'm trying to format a PD derivation but I'm having trouble getting subderivations to display well. Essentially what I'm trying to accomplish is this: 1 | P Assumption 2 | Q ...
6
votes
2answers
294 views

Custom verbatim that sets all spaces (“ ”) as visible spaces (“␣”) that can line-break

It makes sense to typeset code in a monospaced font. Sometimes such code needs to be embedded in a paragraph context, and then it will be useful to allow it to linebreak. In order to visualize spaces ...
3
votes
1answer
2k views

Beamer: Full width image, aligned to top with a frame title

I would like to include a full width image, aligned to the top of a frame with a frame title. The problem is, I cannot get rid of a line of white space between the orange frame title header and the ...
1
vote
1answer
2k views

How to reduce the margins and spacings in this document

I'm using the res.cls to create a one-page CV (I know, res.cls is old, but I prefer its layout). Since the CV is one-page only, I need to squeeze some more space for its content. This is what I have ...
2
votes
1answer
117 views

How to prevent \xspace from adding a full space after a period?

I have a little macro that I use for doing adding an e.g. in my writing: \newcommand{\eg}{\emph{e.g.}\xspace} The problem I have is that LaTeX is treating the g. as the end of a sentence and is ...
2
votes
1answer
362 views

How may I insert white vertical space between subequations?

I have the following MWE \documentclass[11pt]{article} \usepackage{empheq} \newcommand*\widefbox[1]{\fbox{\hspace{2em}#1\hspace{2em}}} \begin{document} \begin{subequations} ...
3
votes
2answers
3k views

\hspace is not working after \newline command

I am currently working on my thesis report and would like to add affirmation to it. Following is the minimal code for the same : \documentclass[]{article} \begin{document} \section*{Affirmation} ...
7
votes
1answer
1k views

How to remove space between back address and address in scrlttr2?

There is a blank line between the back address and the address? How can I remove it? \documentclass{scrlttr2} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage{ngerman, ae} ...
2
votes
2answers
130 views

Kind of spurious space

I'm trying to write a \spaced macro: it takes a string as parameter, decompose that string and then recompose it spreading avery token from the others according to a given \spreadratio. Here are the ...
1
vote
1answer
152 views

How to properly space multirow subfloats

I have 3 subfloats, but they will not all fit on one line, so I have two in the top row and one on the bottom row. My first problem is the floats are all different sizes and they are not being spaced ...
7
votes
2answers
1k views

Is there something between singlespace and onehalfspace?

Perhaps there is a trivial solution for this, but I wonder if there is anything between singlespace and onehalfspace. The reason is that, when I use singlespace it seems to be very compact while ...
3
votes
1answer
182 views

Globally setting the separation length for _subitems_ in Beamer

How can I globally change the item separation length for subitems in Beamer? I need a command such as the below, only working. \setbeamertemplate{itemize/enumerate subbody begin}{\normalsize ...
5
votes
1answer
142 views

Using \@-ified punctuation while using \frenchspacing

After reading this very informative TeX.SE thread about spacing and punctuation, I was left wondering about an issue that didn't seem to be addressed: using \frenchspacing together with the modified ...
2
votes
2answers
854 views

barchart in pgfplots looks really bad

Problems: The bar value "90" is written over a black line, almost impossible to read The value "58" is written over an x tick, hard to ready Bar spacing is bad. There is too much space between the ...
17
votes
1answer
280 views

Is there a method just write `---` to get an em-dash, putting thinspace both before and after it?

Is there a method just write --- to get an em-dash, putting a thinspace both before and after it? The situation about break is similar with the original ---.
2
votes
1answer
402 views

Moving the table caption

I want to move a wrapped table and caption, I'm trying to use vspace but it doesn't move the caption. Any ideas? \documentclass[12pt]{article} \usepackage{wrapfig} \usepackage{floatrow} ...
7
votes
3answers
235 views

Can \left( … \right) be instructed to ignore nonexistent upper or lower limits of summation? [duplicate]

In a formula such as \[ \left( \sum_{n\in\mathbf{N}} \right) \] the left and right delimiters extend not only downwards to cover the lower limit of the sum, but upwards an equal amount as if to ...
2
votes
1answer
396 views

Variable white space between paragraphs

I am having trouble finding out why the white space between my paragraphs is variable. Sorry, I am not allowed to post images but sometimes there is no white space (like it should be), just an indent ...
0
votes
0answers
21 views

How do I change the margin under chapter? [duplicate]

I am using the scrreprt class and the margin between \chapter and the text is too big. I tried to change it with \titlespace but later found out that titlespace does not work for chapters. Is there an ...
2
votes
3answers
256 views

How to define the proper space between elements of a matrix?

I need to draw a simple matrix, with column corresponding to some sets. I tried the following: \[D^{4}_{2}= \left[\begin{array}{cc} \diagdown & {\begin{array}{cccccc} \{1,2\} & ...
1
vote
1answer
788 views

Layout for seminar paper; justified, font, size, spacing

I just started university and decided to graduate from Word for writing my papers, thesises and so on. But I have some problems with probably the most simple things... I got this template: here the ...
3
votes
1answer
103 views

Rubber margins in chapters

I couldn't find a Google hit with what I need (try: LaTeX rubber margins). So, is it possible to stretch left/right margins, within defined acceptable limits, so that pages are filled optimally? I'm ...
7
votes
1answer
192 views

How to automatically add \! in subscripts?

This code \documentclass{article} \usepackage{fouriernc} \begin{document} $a_1$ $a_{\!1}$ \end{document} produces this output: I like the spacing on the lower one much more. Is there a way to ...
4
votes
2answers
15k views

Spacing before and after section titles

I know this subject has been mentioned before, but I'm still having a problem in creating a space under a section title. I used the titlesec package and then tried using the command ...
3
votes
1answer
375 views

Customising list of tables to include “table” word

I am customizing the list of tables and list of figures in a report class document. I am trying to produce lists that start this way: "Table 1: Some info" and so on, instead of the default beginning ...
8
votes
2answers
341 views

Set indentation of choice in exam documentclass

I want to create an multiple choices question with this indenting format 1. ######## A. ### B. ### C. ### 2. ######## ######## A. ### B. ### C. ### The choices have same ...
3
votes
3answers
122 views

Spacing in QM-style integrals (differential first)

I'd like to write integrals with the differential first, the way physicists tend to: $\int dx f(x)$. The problem is that this puts an unsightly (to my eye) gap between the integral sign and the ...
3
votes
1answer
430 views

How to preserve relative spacing when changing paper size in beamerposter. (margins too big)

I recently made a poster in LaTeX using the beamerposter package, it was 48x36 inches, and came out great. I now need to re-print the poster in a smaller size. (36x24 inches) I realize that this ...
3
votes
1answer
142 views

Horizontal spaces to the left and right of theorems

How do I get horizontal spaces to the left and right of theorems? My initial idea was to do the following bad idea: \documentclass{article} \usepackage{lipsum}% http://ctan.org/pkg/lipsum ...
4
votes
1answer
141 views

No space above first \item inside mdframed [closed]

Problem This is what happens: But I want the same vertical spacing before the first list item inside the mdframed environment as outside of it. How can I do this? Code \documentclass{article} ...
4
votes
1answer
946 views

Remove unnecessary horizontal space from amsmath align between two &

How do you remove unnecessary horizontal space in an amsmath align environment between two &? Consider: \documentclass{article} \usepackage{amsmath} \begin{document} Version 1: \begin{align*} ...
1
vote
0answers
33 views

How to reduce space before image? [duplicate]

I m using includegraphics function for image. Some text before image \begin{figure} \includegraphics[width=0.5\linewidth]{ABC.pdf} ...
2
votes
1answer
359 views

Question on top margin in chapter page

In my LaTeX template, there is a page contained the chapter part that is too far from top of the page like the following: My LaTeX file uses amsbook: \documentclass[11pt,a4paper]{amsbook}. This ...
3
votes
1answer
195 views

Overset placement is uneven

I'm using this code to show that one element of the equation is greater than zero and the second element is less than zero. \begin{align} \overset{+}{\pi_{i}} + \overset{-}{w_{g}(S)} > 0 ...
2
votes
2answers
147 views

Changing space between atoms in Chemabove

Consider this example: \documentclass{memoir} \usepackage{fontspec} \usepackage{chemfig} \usepackage{unicode-math} \pdfmapline{+arial arial <8r.enc <sAarial.ttf} \begin{document} ...
6
votes
2answers
619 views

Several lines of formulas to the left of one curly brace pointing to equation number

How to make several lines of equations under one curly brace from the left side, such that it point to a reference number. Now I do something like this: \begin{align} \left. \begin{array}{ll} a = b ...
3
votes
1answer
671 views

Text in moderncv’s left column overlaps with right column

I was trying to compile a Resume and I am not able to figure out why only the second line has superimposed text. The below is the code. \documentclass{moderncv} \moderncvtheme[blue]{casual} ...
1
vote
1answer
540 views

Reduced word spacing when wrapping text in a cell

I'm wrapping text in a table, some of the cells have 4 words in, wrapped to have two in the first line and two in the second. LaTeX introduces a large space between the first two words so that the ...