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

7
votes
2answers
167 views

How to use special characters like the question mark as a variable in a formula?

If i write $t=a$ in LaTex, I get "t = a". If I write $t=?$ I get "t =?" but I want to get "t = ?". The ? shall have the same distance from the equals sign as any other variable or letter. Is there a ...
8
votes
2answers
199 views
+50

Spacing after derivative operator in the commath package

I am using the commath package to typeset the derivative operator "D" with the command \Dif. This work well unless I want to add subscripts or superscripts. In this case, the spacing after operator is ...
5
votes
1answer
108 views

mdframed: splittopskip does not work when the first object after splitting is another mdframed box

Question I would like to add space in an mdframed environment after a splitting (a page break) and in the case where the first object after the splitting (the page break) is another mdframed ...
1
vote
1answer
56 views

svmono array padding

The svmono class (available here) butchers spacing inside arrays; compare \documentclass{svmono} \begin{document} $\begin{array}{|l|} text \end{array}$ \end{document} to the same in the article ...
1
vote
2answers
39 views

Remove extra vertical space in amsmath's align environment [duplicate]

If I use \begin{align*}...\end{align*} and out of it I write a text then there is a big vertical space between the text and the mentioned environment. Why is there that space? And how can I erase it? ...
10
votes
1answer
97 views
+150

mdframed: how to prevent a box from splitting if the remaining content (or the initial content) is too small?

Question I would like to prevent mdframed to split a box too early or too late. By this, I mean that I would like the remaining part of the box to always be greater than a fixed length, given before. ...
8
votes
1answer
64 views

How to find out where additional lines fit in?

I am often confronted with the need of fitting in more content into an already quite crammed document. Given that LaTeX automatically stretches spaces to beautifully and optimally fill the pages, I ...
11
votes
1answer
311 views

Organigram in Latex. Vertical distance between nodes

I want to draw a organizational structure in form of an organigram. I found this solution and tried to adapt it. The code: \documentclass{article} \usepackage{tikz} ...
1
vote
1answer
34 views

Placement of Chapter Number in Makechapterstyle

In this code, I'm not able to move the chapter number, only the title. The chapter number should be at the same height as the chapter title. What command can I use? The chapter title should not be ...
5
votes
1answer
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 ...
5
votes
2answers
74 views

Extra vertical space inside mdframed theorem environment

I have seen several similar questions on TeX.SE of a similar nature, but none of them seem to address my precise issue. I have been working with mdframed environments for a while. I read that there ...
6
votes
3answers
110 views

\mathop in sums and limits

What is the \mathop command meant to be, officially? I see it used in indexes of sums and limits to improve the spacing, e.g. \sum_{n\mathop = 1}^\infty a_n Why doesn't it just format it like ...
8
votes
4answers
184 views

How to merge two tabulars into a single table the width of the column?

I am asking for advice on achieving two separate effects in the table environment. (1) I have two tables with a different number of columns. I need to merge them into a single table. I have this ...
4
votes
1answer
41 views

Label inside mdframed messes up spacing

I have a problem with mdframed in combination with \parskip and \label. Consider the following code, which is a MWE stripped down from a large document. \documentclass{article} ...
-1
votes
0answers
38 views

space between top caption and table

Im have a question concerning the space between table and it's caption. When I use the three part package the caption is nicely placed in the top of the table, but once I added the table environemnt, ...
6
votes
3answers
111 views

Vertical skip between p{…} rows of tabular

I want to increase a bit the vertical spacing in my tabular table. I did something like this: \documentclass{article} \begin{document} \begin{tabular}{p{4cm}p{4cm}} Lorem ipsum dolor sit amet ...
3
votes
1answer
31 views

Streched vertical space between two subfigures

I want to add vertical space between two subfigures so that so that the upper figure is aligned with the top of the page and the last line of this figure caption is aligned with the bottom of the ...
5
votes
1answer
107 views

tabu and space between columns

I have aproblem with column widths in tabu environment. I set dimensions of tables and columns. First columns should have the same width = 5cm, First and second table should have the same width = ...
1
vote
2answers
29 views

Changing paragraph spacing within an item using paralist

I am using compactenum in the paralist package. I wish to have spacing between paragraphs within an item, but no additional spacing between items. The option: \plparsep: Space between paragraphs ...
5
votes
1answer
50 views

Insert Spaces in Command Using Math Mode

I borrowed a predefined command (below), which uses math mode. Within the [[ ]], obviously, it doesn't observe spacing. Is there a way to make the command observe spacing within the [[ ]] ...
2
votes
2answers
56 views

How can I remove an empty caption line

I'm generating LaTex automagically from a lengthy document that is written in the multimarkdown language, compiled by a software package called Scrivener. It's a workflow that works well, but this is ...
3
votes
1answer
47 views

Adding vertical space between two \hline

How can I add vertical space between the double line in the example below? I tried to use \vspace, but that results in a Misplaced \noalign error. \documentclass{article} \begin{document} ...
3
votes
1answer
37 views

3 subfigures in a row, different sizes. How to manually adjust the spaces in beween?

I want three subfigures to be shown next to each other so that the subcaptions of all three subfigures are equally 'wide'. I'm experiencing 2 problems. Since my middle subfigure is a lot smaller, ...
4
votes
3answers
106 views

Spacing after \times

When using \times after some wide symbol, the space following \times becomes smaller than wanted. For example \documentclass{article} \usepackage{mathtools} \begin{document} \begin{align*} > ...
9
votes
2answers
204 views

Automatic non-breaking spaces in proper name initials

I need to use non-breaking spaces in proper name initials, e.g. J.~W.~Bush Any way to make LaTeX replace regular spaces with non-breaking ones for such cases? Or would I better preprocess my tex ...
2
votes
0answers
54 views

Problem with the table of contents

I am writing a work about logarithms and in the table of contents I am confronted with this problem: There is no space between the number of the sub sub-subsection and the title: 2.3.10.1 Função ...
5
votes
2answers
40 views

Spacing Between environment

I want to define an environment to detach text from the document. I would like to have one blank line before and after my quote. I defined the following environment: \newenvironment{myenv}{ ...
6
votes
3answers
161 views

How do I write $\sim$ approximately with the correct spacing using siunitx?

This question is similar to this one, only that I'm using the siunitx package: \documentclass{minimal} \usepackage{siunitx} \begin{document} The temperature is \SI{\sim 200}{\kelvin}. \\ The ...
0
votes
1answer
23 views

Shifting (sub)figure caption in case of merged figures

I have a small piece of code that merges two figures: \begin{figure} \centering \begin{minipage}{.5\textwidth} \hspace*{-1.5cm} \includegraphics[scale=0.45]{images/Figure1.pdf} ...
54
votes
6answers
45k views

Column and row padding in tables

How do you guys go about controlling column padding in tables? UPDATE To clarify, I'm looking for a way to control both vertical and horizontal padding. So, if I had a simple table like this ...
0
votes
0answers
23 views

Titles directly below a float is causing spacings below the float to increase

I'm using \begin{figure}... \end{figure} with memoir class, and if there is a title (\section, \subsection, \subsubsection) right below the figure, the spacing below the figure is greatly increased. ...
3
votes
3answers
70 views

Separation space between tableofcontents items in beamer

In beamer, I guess, the separation space between the items from tableofcontents is stretchable: Can you set it to a fixed value? e.g. to equal the value used in the itemize environment. Partial ...
4
votes
3answers
62 views

Increase vertical space in table

Creating a table using tabulary I am confronted with the problem that the lines of my table are too small, resulting in that the formulas touch the borders of the table. The code I used is given ...
12
votes
2answers
14k views

Remove space after figure and before text

I have a figure in my paper (I am using IEEEtran package). After this figure there exists a space between the figure and the text. How can I reduce the size of this white space. To be specific the ...
14
votes
5answers
4k views

Adjusting vertical space between TOC entries using Beamer

I have a rather lengthy table of contents for a presentation. Beamer is not compressing the vertical space between TOC entries, but instead running the last item off the bottom of the output! Is ...
4
votes
1answer
56 views

Problem with latex box

I defined a new command in order to create an empty box with a title. The code is the following: \newcommand{\mybox}[2]{ \textbf{\emph{#1}} \vspace{2mm} {\centering\fbox{ ...
0
votes
0answers
33 views

Formatting Follow Along Handouts for My Class

I am having issues with the \only<|handout:0> command, specifically with the resizing of blocks on my beamer slides for my students to use as guided notes for my lecture. I want to keep the ...
4
votes
2answers
1k views

Writing mod in congruence problems without leading space

I have been writing $a \equiv r (\mod n)$ but this puts a space between the ( and mod. For example, r ( mod n ) instead of r (mod n). So, how do you write r (\mod n) without that space? What ...
2
votes
1answer
37 views

Remove half part of Page

How can I remove second half part of the page. For example my conclusion is half of page and I want reference list starts at the same page. My reference list starts one page after conclusion, but ...
18
votes
1answer
8k views

Setting the column gap in a twocolumn (or multicol) document

I have a document that uses twocolumn with scrbook. How can I set the width of the space between the two columns?
12
votes
3answers
194 views

Spread letters to a given length?

I have made a fancy title page using titleformat and tikz, but I now face the following problem. The \chaptertitlename command returns \chaptername or \appendixname. I would like to spread the letters ...
3
votes
1answer
92 views

chessboard: how to fit 4 pairs of diagrams in one A4 page?

I'm knew to TeX. Searching on the Internet, I was able to put the following code together, but the last pair of diagrams keeps generating a second page. How can I reduce the padding between minipages ...
3
votes
1answer
40 views

Vdots are taller than the rest of text [duplicate]

When I use \vdots within the align environment, its size is bigger than of the rest of characters. I want to get rid of the gap (purple colour on the picture below) or somehow move \vdots upward ...
6
votes
1answer
97 views

Controlling Spacing after paragraph

I'm sure this is trivial, but I'm new to LaTeX and having trouble getting some formatting correct. I want two columns with bold headings and non bold text after. One of the headings, "experiments" has ...
2
votes
1answer
41 views

Uneven spacing in IEEE bibliography entries!

I am writing a IEEE journal article, the entire reference file is done in JabTex and all the entries seem pretty alright. I am referring to around 200+ papers. However when I build the file the first ...
10
votes
5answers
849 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
2answers
45 views

Remove whitespace above section title with image formatted with leftmargin

I am trying to remove the whitespace above a title that is formatted with leftmargin and that also has an image as part of it. The problem is very similar to this question, but the solution there does ...
0
votes
1answer
16 views

Contents section number and name clashing. Want to increase spacing [duplicate]

I am using Roman Numerals for the contents page however this is clashing with the section title as shown in the image. Is it possible to increase the spacing between these two? Many thanks in ...
0
votes
2answers
30 views

How to mix lhs2TeX code and spec lines in a single block?

Suppose I have an incomplete code block like: \documentclass{article} %include polycode.fmt \begin{document} \begin{code} somefunction :: a -> a \end{code} \begin{spec} somefunction x = undefined ...
0
votes
1answer
49 views

Too much space around quote environment

Sometimes, LaTeXput extra white lines around my \begin{quote}. I use just the basic memoir class without any customization. Any hint?