{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
34 views

What are the disandvantages for using a rule to define an \hspace-like command?

In the LaTeX2e source code \hspace and its star version are defined with \hskips. I have defined an alternative version using rules. I cannot see any obvious disantvantages of this approach other than ...
1
vote
0answers
58 views

Space between \hline\hline in `longtable`

I'm trying to use one longtable in my thesis while all others are created with table and tabular environment. I tried to find help visiting this link. But there only one type of table (longtable) is ...
4
votes
1answer
63 views

Typesetting a vertical box with as its top anchor the baseline of the first line in the vertical box

Introduction Since my real use case is obviously somewhat more complex than the problem presented in the MWE, I'll explain the use case first so that you can judge whether my approach is the correct ...
1
vote
0answers
46 views

managing the spaces between the pdf figures in latex document

I was creating a document containing pdf's figures after finishing I have got the following style in my document(((attached picture))), I tried to manage the distance between these figures but when I ...
0
votes
0answers
20 views

' and ^t to the left of a letter [duplicate]

There are times where I want, say, a superscript $t$ to the left of another letter to denote, say, the transpose of a matrix. Or, I might want to decorate a letter on the left with a prime, $'$, ...
2
votes
1answer
58 views

Problem with \vfill within enumerate and multicols

I am trying to make a large list of exercises with multicols and enumerate the thing is that when I just use enumerate and vfill there is no problem vfill does the work but when I use multicols vfill ...
1
vote
1answer
41 views

Automaticaly add paragraph spacing only between two textual paragraphs

I can use: \setlength{\parskip}{\baselineskip} \setlength{\parindent}{0pt} But this messes up the rest of the document as it also increases the spacing after chapters, sections, sub-sections, and ...
2
votes
3answers
52 views

alignat adds extra spacing

I want to achieve the following, except without the weird extra indentation before c. Also, what's with the lack of spacing between = and b, as well as between + and d? Is there a better way to fix ...
2
votes
2answers
76 views

How to space columns evenly in a table with multicolumns?

A hopefully very simple question. Why does the multicolumn in my example below screw up the spacing between the columns below? Obviously I would want columns A, B, and C to be spaced evenly (as they ...
4
votes
2answers
119 views

Align numbers on decimal point in tabular except for the column title

I am trying to align some numbers in a tabular on the decimal point. I have been using the dcolumn option but given that my column title is a year, it aligns also the year on the decimal point, which ...
2
votes
2answers
35 views

How can I reduce the space around alltt environment blocks?

How can I reduce the space around all alltt environment blocks? \documentclass{article} \usepackage{alltt} \begin{document} Test1 \begin{alltt} some code \end{alltt} Test2 \end{document} This ...
6
votes
1answer
84 views

Reflowing marginpars typeset using pdfsavepos

I'm trying to typeset marginpars more accurately on the correct side of the page using a solution based on pdfsavepos by David Carlisle. (The code below is a slight alteration of it.) I got most of ...
4
votes
1answer
151 views

Run a shell script (with parameters) from a PDF generated by LaTeX

I want to have a link in my PDF generated by pdflatex which executes a shell script, and this part works great. The problem I am running into is that I need the link in the PDF to be able to pass ...
11
votes
1answer
209 views

how to display upright letters in math mode without manually creating space?

\documentclass[11pt,a4paper]{article} \title{Title} \author{Author} \begin{document} \maketitle $\{ n \mid n\ \mbox{is\ even} \}$ \end{document} Since it is a relatively rare occasion for me to ...
6
votes
3answers
241 views

Align square root symbols in equation

I have the following equation in my tex document: \documentclass{article} \begin{document} \begin{equation} x_{ij} = \frac{ \sum_{t}{e_i(t)e_j(t)} } { ...
1
vote
1answer
31 views

tightly packed tables in a page

I have many tables that I want to squeeze in one page. The output of my current code shows lot of space between two tables. I want to reduce the space between the tables as small as possible and want ...
4
votes
1answer
35 views

Spurious white space from a page number conditional

In the example below I've introduced a page number conditional \ifnum\c@page=1\relax\else.... The page number conditional (in this case) checks for page number 1 and does nothing if the condition is ...
4
votes
1answer
36 views

mydots and linewrapping,

Can someone help me improve upon this command? \def\mydots{\leavevmode\xleaders\hbox to 0.40em{\hfil.\hfil}\hfill\kern0pt} I have been using his to fill space between raggedright and ragged left ...
1
vote
2answers
88 views

Change space between title and text in \paragraph command

I am wondering if there is a way to remove the space that comes between the title and the text when using the \paragraph command. I am working on my thesis, and have gotten it proof read by someone ...
2
votes
2answers
109 views

Disable \tabulinesep for some rows with tabu package

The \tabulinesep parameter with tabu package provide good paddings for tables with variant heights. But when using it with diagbox package, the paddings cause problem. \documentclass{article} ...
3
votes
3answers
99 views

Is there a cleaner way to get the proper spacing in this alignedat?

Here's an excerpt from an equation that I'm typesetting. The output is correct and looks how I want it to look. Here's the MWE that generates this output: \documentclass{article} ...
6
votes
2answers
72 views

Extra spacing before and after gb4e examples

I am using the gb4e package. When I have a list of examples, there is a large skip after the prose and before the first enumerated item. I do not want that skip there; instead, I want there to be ...
4
votes
1answer
52 views

Aligning two tables side by side and adjusting spacing

I read the similar question here, but I cannot manage to adjust the spacing correctly. Following the answers in the linked question, I wrote this: \documentclass[a4paper]{article} \usepackage{float} ...
1
vote
1answer
63 views

Removing white space in text after the image moves

I'm writing a thesis and have about 80 figures. The text leads up to the figure with a single line space: ....text text text text. \begin{figure}[h] .... \end{figure} More text, and so on... My ...
1
vote
2answers
49 views

Large space between text and equations when I \begin{equation}

When I do this, there is a large space between the text and the equations. I was wondering if there was a way to solve this. I am using amsmath. Thanks a lot \textbf{Solution} \begin{center} ...
1
vote
1answer
59 views

Vertical space on top and bottom of inserted image not being equal with vfill?

I have a title page, which used a \vfill from the middle of the page, to push a line of text to the bottom. I inserted an image in this page, and wanted it place in the middle (vertically) between ...
3
votes
1answer
29 views

How do I adjust the inter footnote space in paragraphed footnotes in memoir class?

I would like to reduce the space between paragraphed footnotes in memoir. Example: \documentclass{memoir} \paragraphfootnotes \begin{document} \footnote{A footnote.}\footnote{How do I get this ...
2
votes
0answers
35 views

What could make align use so much spacing?

Apologies in advance for not creating a compiling example, but when trying to duplicate just the related code to an empty .tex project, the phenomena does not appear. I have the following code: When ...
2
votes
0answers
44 views

Using `\displaybreak` in `\split` environment

I want to use \displaybreak in \split environment. I tried to use it locally and just before the \begin{equation}...\begin{split} block, but they both didn't work. As far as I searched, there is no ...
0
votes
1answer
71 views

Multicols{3} problem - how to reduce space between columns?

I want to reduce the space between columns in multicols I use \setlength{\columnsep}{<space>} but it reduces the space between the 2nd column and the 3rd column only How to make it reduce the ...
4
votes
0answers
40 views

Odd vertical space combining footmisc with hang option and bigfoot

Trying to combine the hang option of footmisc with the bigfoot package (later to be used for more footnote registers) I am getting an odd line inserted between the footnotes. If I comment out the ...
3
votes
3answers
46 views

How to add space around all inline equations, adjusting for punctuation

The answer to this question explains how to add space around inline equations, but it doesn't account for punctuation. You can see what I mean in the picture below. Is there a way to put the space ...
1
vote
1answer
32 views

Large Brackets Make Line Breaks too Small

\documentclass[10pt,letterpaper]{article} \usepackage[utf8]{inputenc} \usepackage{mathtools} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{parskip} ...
3
votes
2answers
57 views

Space before colon in beamer captions

As you can see below, LaTeX is formatting my captions like this: Figure : caption, while I would like them to be Figure: caption, without a space before colon. Here's a MWE: \documentclass{beamer} ...
1
vote
0answers
21 views

Spacing is varying between two mdframed environments with llncs class

Try out the MWE below. If I uncomment the commented line and comment out the previous one, the space between two `mdframed' environments increases drastically. \documentclass{llncs} ...
2
votes
2answers
54 views

Inconsistent vertical spacing using section headers

Last week I read a short paper on LaTeX and now I'm writing my first document. I've googled and fixed most problems but this one I haven't found any working answer to. It's for a math assignment and I ...
3
votes
2answers
48 views

Aligning multiple lines in long equations and arranging the line breaks in `\align` environment

I have the following code sample: \begin{align} \pi^{(1)}_{i j} \enspace & = \enspace -\frac{1}{4}\eta^{\lambda \sigma} \left( \eta^{\mu \alpha}\eta^{\nu \beta} + \eta^{\mu \beta}\eta^{\nu ...
1
vote
2answers
45 views

fncychap: Remove vertical space between heading and first element in toF and toT

I'm trying to remove the vertical spacing that occurs when using the fncychap package, but how to do this? I've already done it in the toc by writing the following: \renewcommand\contentsname{Table ...
0
votes
0answers
35 views

how can I reduce space before and after the title of list of figure?

How can I center, change the fontsize and reduce the space after and before the title of list of figures, list of table and content? Can I change a macros like @makechapterhead?
2
votes
1answer
70 views

How to control spacing in toc for different sections?

I need to have a TOC that has double space between Chapter titles but single space between sections and subsections. I know there are several related questions on this matter, but the difference is ...
8
votes
3answers
195 views

Why does \overline mess up the spacing?

Consider $a \triangleright b$ and $a \overline{\triangleright} b$. They behave completely different in terms of spacing: Why? How do I fix that?
0
votes
0answers
65 views

Manipulating Documentclass thesis in latex

I am writing my thesis in the following documentclass \documentclass[11p, topenright, twoside, openright, plainfootsepline, headsepline, ...
2
votes
1answer
93 views

A math symbol in quotation marks

As to quoting math symbols, we already find nice answers in How to write quotation marks in math environment? But I have a question to a problem that doesn't show up in the examples in the above ...
0
votes
0answers
11 views

How do I change the spacing above/below \begin{align}…\end{align} [duplicate]

Is there a simple way to reduce the spacing above and below \begin{align}...\end{align}? And also for gather, equation, subnumcases etc. I can use \vspace but that's messy and inelegant. I'd like to ...
2
votes
1answer
70 views

Avoiding empty space at the bottom of a scrlttr2 letter

Per How to avoid empty space at the end of a page when using scrlttr2? I tried adding the options suggested to scrlttr2, but at least in the following example, it doesn't seem to work. I get a big ...
3
votes
1answer
48 views

Automatic substitution of spaces in fields with Biber and Biblatex

I have a pretty large .bib file which fields may contain spaces (e.g. the "series" field can be "SIGMOD '99"). When I print the bibliography, some lines are thus broken on these spaces, which is ...
1
vote
1answer
40 views

Setting margins below and above figures does not have any effect in beamer

For the sake of using captions I'd like to put my graphics into a \begin{figure} ... environment. Doing that a white space is added before and after the picture, table or whatever. This answer is ...
7
votes
1answer
269 views

How can I fill vertical spaces with dotted horizontal lines?

I'm sure this must be a duplicate, but I can't find it. I'm preparing a worksheet for students to use when starting to work on an assignment. Here is a (naturally sweetened) version of the code: ...
12
votes
3answers
162 views

Nonstandard analysis: Typesetting `^*` depending on context

In nonstandard analysis, the nonstandard extension operator * is used frequently. Typesetting it is not straightforward, though, because the placement of * depends on the symbol to follow. E.g., the ...
2
votes
1answer
53 views

Detect whether there's space before and after macro

My document has a custom macro called \newcommand{\myparenthetical}[1]{[#1]} However, I want to be sure that in the document I always have a single space before and after the macro. I would like ...