{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
1answer
29 views

Text in Tikz node not respecting baselineskip

I'm trying to include a few lines of text in a Tikz drawing, using a custom font size. However, when defining a font size, the baselineskip is only respected for the first line. See the minimal ...
2
votes
1answer
38 views

Beginner: Problem with formatting

\documentclass{article} \begin{document} 1.The sequence \{a_n\} verconges to a if for all \epsilon > 0 \end{document}^ Output: 1.The sequence {a n }vercongestoaifforall? > 0 I don't know ...
2
votes
1answer
26 views

Spacing between multiple choice question in examdesign documentclass

Is there a way to control the spacing between multiple choice questions using the examdesign documentclass? So far I've only been able to do it by manually adding space after the last alternative, but ...
3
votes
2answers
41 views

Extra space after self-defined environment [duplicate]

I defined a new environment eq to simplify the equation, \newenvironment{eq}{\begin{equation}}{\end{equation} It works, but it seems that there is a extra space at the end of the environment, which ...
0
votes
0answers
37 views

White space between upper and lower subfigure

I am working on a paper right now. In this paper I have some figures, I am using subfigures for creating a page with two figures beside each other and one (bigger) figure beneath it. It is all clear ...
5
votes
2answers
78 views

Making bibliography \flushbottom in book class

I am using the book class and have a long bibliography (using Biblatex) at the end of each chapter. When there is a long reference around where a page break occurs, the whole reference shifts to the ...
4
votes
1answer
59 views

Vertical spacing between parboxes

I'm using \parbox for creating a flexible table-like structure of paragraphs as in the following minimal working example: \documentclass[a4paper]{scrartcl} \usepackage{polyglossia} % ...
3
votes
1answer
46 views

Spacing of text within a table cell

I am inserting the following text inside the cell of a table \documentclass[a4paper]{book} \usepackage[latin1]{inputenc} \usepackage[pdftex, final]{graphicx} \usepackage[francais]{babel} ...
2
votes
2answers
55 views

new command definition brings extra space

Sorry for my original example code can not relect exactly what I mean. I have made a new one. I am trying to define a new command, but it seems some unwanted extra spaces are generated together. ...
1
vote
1answer
29 views

Custom spacing in aligned environment

How can I add an arbitrary horizontal spacing in an aligned environment? \hspace{} and \qquad don't work. \usepackage[utf8]{inputenc} %\usepackage[latin1]{inputenc} %Zeichencodierung ...
4
votes
1answer
276 views

How Can I Find the Length of a Space in TeX?

I have implemented the horrific document \documentclass{article} \newcommand{\testspace}[1]{\hspace*{\fill}\(\vert\)\hspace*{\fill}\\ \null\space\(\vert\)\hspace*{3.3pt ...
6
votes
1answer
54 views

Command to fill paragraph with repeated text (alignment/spacing problem)

I am trying to define a command \todopar[dummy]{msg} that fills a paragraph with dummy repeated a number of times and msg typeset centered in the paragraph. The end result should look like this ...
6
votes
2answers
60 views

gb4e: vertical alignment when using brackets

\documentclass{article} \usepackage{gb4e} \begin{document} \begin{exe} \ex \gll m-itoetra \lb{PP, ADJC}amin' ilay trano mena] izahay. \\ \textsc{pres-}live \qquad \qquad in that house ...
0
votes
0answers
41 views

Removing vertical space when at the top of a page

I have vertical spaces inserted (due to a new paragraph after some commands). When the new page starts with this vertical space, I want to remove the space. How can I do this?
5
votes
1answer
78 views

Why does \noindent have such an effect on \rlap and \llap.?

Without \noindent, \rlap and \llap seem to move down by \baselineskip every time. Is this deliberate? \documentclass{article} \usepackage{xcolor} \begin{document} \color{red} ...
2
votes
1answer
34 views

How to right-align text in a grammar environment?

Using the grammar environment of the syntax package, I cannot find a way to right-align text in my syntax definition: \documentclass{article} \usepackage{syntax} \begin{document} \begin{grammar} ...
0
votes
0answers
42 views

Big gap after figures before text starts again

After I insert a figure (I'm using overleaf), there are several lines of white space before the next paragraph begins that I didn't insert. Is there a way to manually prevent/delete this white space?
0
votes
0answers
36 views

Problem with \begin{align} [duplicate]

I am using \begin{align} in my paper. Hence unwanted gaps are being created to accomodate the whole \begin{align} content in one page. how to prevent it ?
1
vote
1answer
56 views

Positioning and spacing of tables

I'm new to LaTeX and I already know that my question seems too stupid. Actually I'm writing a text as follows: The exact dimensions of the system are listed in Table……\\ \begin{tabular}{|c|c|} ...
0
votes
0answers
46 views

LaTeX preproceessor

My document is generated from a large sum of data out of a database. The data consists of figures and captions. To generate each page properly I would need to know the height of each figure and ...
3
votes
2answers
21 views

Why does cite influence the spacing after colons in the IEEEtran \markboth header?

I noticed that loading (or not) the cite package changes the spacing after colons in \markboth headings of IEEEtran \documentclass{IEEEtran} %\usepackage{cite} \begin{document} \markboth{: A}{} : A ...
2
votes
1answer
28 views

Uniform spacing around headings with special case of `\usepackage{enumitem}’ and `\baselineskip`

This question is a follow-up question to my question here. @karlkoeller's answer fully answered my question. However in my document I have some places where the itemized list is placed directly after ...
2
votes
1answer
90 views

How do I do a blank slot in a functor

I want to TeX a blank in the input of a function, to mean that any input can go in there. Specifically, I want to have a tensor product symbol followed by a hyphen -. I have been typing $\otimes -$ ...
2
votes
1answer
18 views

vertical space between paragraphs and `topsep` in \usepackage{enumitem} cancel each other out

I'm using \setlength{\parskip}{\baselineskip} to insert vertical space between the paragraphs in my document. However this create a conflict with my list environments. To solve that I am using the ...
5
votes
1answer
79 views

Remove space in reference in “et al. ,”

I'm using Sharelatex to work on my thesis, and I want to use the natbib package and authordate3 style for my bibliography. For some reason, when referencing a bibliography entry with multiple authors, ...
3
votes
1answer
43 views

Horizontal spacing between subfloats using floatrow and subfig (with fr-subfig support)

I am trying to arrange two rows of sub-figures using subfig and floatrow. The captions are aligned as I wish and the vertical alignment of the objects is also fine. However, I cannot figure out how to ...
2
votes
1answer
18 views

Spacing and embedded calls to \DTLifnullorempty

It seems that embedding calls to \DTLifnullorempty inside one another leads to an extra space for each call to \DTLifnullorempty. Is there a way to prevent this behavior? In particular, I would like ...
2
votes
1answer
41 views

Cant justify text

Let's say we have following code: \documentclass[a4paper,14pt,final,draft]{extreport} \usepackage[left=3cm,top=2.0cm,right=1.5cm,bottom=2.7cm]{geometry} \usepackage{changepage} ...
5
votes
1answer
324 views

How to avoid “space” between each bullets

I am getting an empty row after each bullet and I am looking for a way to avoid an empty row between each line, or at least make the height of that space-row smaller. Here is what I do: ...
3
votes
1answer
41 views

Improving readability of a big table (vertically-centering rows and using space)

This is the first time I make a table with chemistry formulae inside cells. I'm having trouble improving its readability. Questions How do I make all rows vertically centered? How do I remove ...
5
votes
3answers
99 views

I would like bigger parentheses in \pmod

I would like to say a congruence holds modulo a fairly large expression, THING, to be enclosed parenthetically. \left( \mod{THING}\right) seems to result in a large space between the open paren ...
2
votes
1answer
28 views

minipage 15.0pt too wide

Sometimes I have two (or more) figure environments which I want to layout on one page, and put a horizontal rule in the center. To acomplish this, I put a \vfill\hrule\vfill between the two ...
4
votes
1answer
30 views

List Parsing the ascii space character

I have been using the list parsing functionality from etoolbox and I have a weird use case in which I want a space separated list. \usepackage{etoolbox} ...
6
votes
2answers
228 views

How to create a bracket-ing √-Operator?

In formulas involving square roots, I consider the overline rather irritating and would like to create an operator that turns \sqrt{x} into √[x], i.e. the argument is bracket-delimited instead of the ...
2
votes
1answer
37 views

Add empty space

I have the following code \listfiles \documentclass[oneside,12pt]{scrartcl} \usepackage[ngerman]{babel} %\usepackage{amsmath} \usepackage[fixamsmath,disallowspaces]{mathtools} \begin{document} ...
5
votes
1answer
55 views

Odd/even page wrongly detected if there is not enough space on the current page

I'd like to put: some text on the outer side of the page, some another text on the inner side of the page. For this, I make use of the (\checkoddpage) \ifoddpage test provided by the changepage ...
0
votes
0answers
25 views

Modify/Remove italic correction in math [duplicate]

Is there any way to modify or remove the italic correction in all math environments globally? I don't like the uneven spacing it causes when there are multiple variables multiplied together or ...
4
votes
1answer
27 views

Reduce horizontal width of miniframe in beamer

I have a beamer presentation with only three sections. Right now they are spaced at equal distances across the slide, but I would like to compress them so that they are spaced evenly in the left hand ...
4
votes
2answers
52 views

How to space before and after a `minted` code block with bgcolor?

I'm using minted to format code samples in my document, and I have set a bgcolor option to make them stand out. By default (as in Harish's answer below) the code block will naturally have some ...
0
votes
0answers
39 views

LaTeX Chapter start on same page, spacing error

I'm trying to use this code for no use of \clearpage for chapters in a report. \makeatletter \patchcmd{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi}{\par}{}{} \makeatother The command ...
3
votes
2answers
40 views

Moving a colorbox down and right not working with vspace and hspace

I have trouble positioning a box and am not sure why this is happening. First, the expected behavior. I want the box to appear 1cm left and 1cm down from my text, like this: \documentclass{article} ...
9
votes
2answers
190 views

What's the difference between ~ and {\mbox{$~$}}

I'm looking at the source code of a book where I found: D.{\mbox{$~$}}Knuth What's the purpose of this?
6
votes
2answers
210 views

Spaces added to occurrences of “{}” in the TeX code

Can anyone explain how to get rid of spaces that are automatically added around arguments provided in curly braces in the main part of a text? Here's a minimal example: \documentclass{article} ...
2
votes
1answer
42 views

Autoscale to fit images between paragraphs

Does anyone know to to place an image to fill up a space between paragraphs? My situation is that I have two minipages that must fall on the same page, but they dont take up all the space. Right now ...
1
vote
1answer
20 views

Reduce space after title in two-column article

I have a standard article in two-column format without author or date, only a title. I would like to reduce the vertical space after the title. I tried using \vspace*{-1cm} after \maketitle, but the ...
2
votes
1answer
61 views

List of Todos item whitespace

How can you remove the whitespace between items in \listoftodos from the todonotes package? Update: MWE with correct spacing: \documentclass[twoside,a4paper]{article} \usepackage[dutch]{todonotes} ...
3
votes
1answer
35 views

Changing frame size in mdframed

I am trying to place a box around a definition. Using the package mdframed, I have managed to do so. However, the box is too large, in particular too tall, and it is covering up text appearing above ...
2
votes
1answer
39 views

Space above quote in moderncv banking style

How can I decrease the space above the quote using moderncv banking style, as in the following image: Mock code: \documentclass[11pt,a4paper,sans]{moderncv} \moderncvstyle{banking} ...
8
votes
1answer
70 views

Automate correct spacing after ! in math mode

$(2n)!/\bigl(n!\,(n+1)!\bigr)$ $${52!\over13!\,13!\,26!} + 33!! - y$$ $(2n)!/\bigl(n!(n+1)!\bigr)$ $${52!\over13!13!26!} + 33!! - y$$\bye How could we automate the spacing after !? As explained in ...
3
votes
2answers
103 views

Split the title of a table into more than one row

Suppose I had the following; \begin{table} \centering \begin{tabular}{|c|c|} \hline \multicolumn{2}{|c|}{Table1} \\ \hline A very long equation with k as input & Answer \\ \hline 1 & ...