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

0
votes
0answers
6 views

scrlttr2 - onehalfspacing in main body, singlespace in address

I'm writing a letter with scrlttr2 and I want the main body in \onehalfspacing. But even with \begin{onehalfspacing} [TEXT BODY] \end{onehalfspacing} the address is set in one-half spacing as ...
0
votes
1answer
34 views

Remove whitespace around own environment

Does anyone know how to remove the whitespace which is created by TeX everytime I use my own created environment? I tried the tricks with \ignorespaces and \ignorespacesafterend but that doesn't seem ...
5
votes
1answer
37 views

Affect the vertical space in labelling environment for the Acro package in KOMA-Script

I am using the scrreprt class and have defined the way my acronyms are presented with the definition: \usepackage{acro} \newenvironment{acronyms} {\labeling[~\dots]{longestword}} {\endlabeling} ...
4
votes
2answers
108 views

How to automate adding spaces around an ampersand in math mode

Suppose, we are writing a logical expression in math mode: \documentclass{article} \usepackage[a4paper]{geometry} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \begin{document} $a\&b$ ...
4
votes
1answer
33 views

Remove space between characters

How can I remove the space between this \newcommand{\deref}{\ensuremath{\rightarrowtriangle}\xspace} $b\deref\mathbf{r}_S$ such that the arrow is as closest to the two surounding characters as ...
7
votes
5answers
309 views

What's the easiest way of putting a fixed-width space?

I got some Polish text with dialogues throughout it. I just learned that in Polish typography every statement in a dialogue is started by a dash followed by a fixed-width space. Now I have plenty of ...
2
votes
1answer
29 views

Subscript overlap issue with \mathclap

I wanted to use \mathclap (from mathtools) to make more compact the appearance of \documentclass[12pt]{report} \usepackage{mathtools} \begin{document} \[ \lim_{(x,y)\to (0,0)} f(x,y) \] ...
1
vote
1answer
29 views

How to set space in the Title

i want to set the space between the title lines \newcommand{\reporttitle}{ this is a title with a lot of text bla bla bla} i used \usepackage{setspace} \setstretch{2} but nothing happens ...
3
votes
1answer
38 views

margins in \enumerate

In LaTeX, I want to \enumerate some \items which are in fact small paragraphs. I will use \alph, so the labels will read (a), (b), (c) and so forth I want the symbols (a), (b) and so forth to be ...
3
votes
1answer
32 views

Making aligned environment and stacked limits work

I'm trying to typeset something like this: \begin{align*} n^{\frac1n} & = \exp\left(\frac1n\ln(n)\right) \\ & = \exp\left(\frac1n\ln(n)\right) \\ ...
1
vote
2answers
45 views

Remove space between consecutive fbox commands

I type several fbox commands and for some reason the boxes are separated with small spaces: MWE: \documentclass{article} \usepackage{fullpage} \setlength{\oddsidemargin}{-15mm} \raggedright ...
3
votes
1answer
30 views

xspace failing with long hyphen (---)?

The xspace package fails when used together with ---: \documentclass{minimal} \usepackage{xspace} \begin{document} \newcommand{\twosslvbf}{2 SS l (VBF)\xspace} \twosslvbf is OK. \twosslvbf ...
0
votes
0answers
29 views

Vertically centering in Latex Beamer slightly too much up

One MWE of many (w and w/o the plain frame option, w and w/o the vfill, w and w/o the c frame option etc.): \documentclass[10pt]{beamer} \setbeamertemplate{navigation symbols}{} ...
2
votes
1answer
104 views

Should I remove spaces at the beginning of a line containing only a footnote?

I've just stumbled upon chktex, the LaTeX lint. While using it, I've noticed that it keeps giving warnings about needing to remove spaces at the beginning of lines containing only \footnote{Some ...
3
votes
1answer
49 views

Why do \left and \right add so much extra space under the baseline?

When I write \[ \left \lVert \overrightarrow{\nabla} \right \rVert \] I get way too much extra space under the baseline: Why is this happening, and how can I fix it?
2
votes
2answers
48 views

Spacing too large with double subscript [duplicate]

In a document that uses the newtx packages, double subscripts seem to have too much spacing. \documentclass{scrartcl} \usepackage{newtxtext} \usepackage{newtxmath} \pagestyle{empty} ...
0
votes
1answer
24 views

Spacing between Header and Chapter Titles

I have the following template: %Loading in the packages \documentclass[12pt]{report} \usepackage[a4paper, width=150mm, top=25mm, bottom=25mm ,bindingoffset=6mm]{geometry} \usepackage{graphicx} ...
1
vote
0answers
29 views

Random undesired big spaces on my pages

I was rereading my document, when I noticed that I am having random spaces. I studied it closely and noticed again that this happens if for example it is followed by a HUGE equation that can not fit ...
3
votes
1answer
65 views

professional cv spacing issues

I've been trying to figure out how to format this section of Professional CV from ShareLaTeX to make the vertical spacing more tight. The vertical bar between columns tends to leave more space than ...
5
votes
3answers
30 views

Remove vertical space below equations in 2 columns and single numbering for both equations in a column

I had previously asked a question regarding vertical spacing between equations which are in two columns. This was answered but when I use the following code I get a large vertical space between these ...
1
vote
1answer
38 views

\pagebreak affects top of next page

Why does a \pagebreak push the heading at the top of the next page down? To match other pages, I need to add \vspace*{-3\baselineskip} after the page break. \documentclass[a4paper]{article} ...
2
votes
2answers
62 views

How to create uniform horizontal space?

I am creating a set of lists that begin with dates and are then followed by a description. Given that the dates have different horizontal lengths, I would like to insert a command that creates a ...
0
votes
0answers
17 views

Determine equal spacing before and after minted environment

I have some code in a minted-environment that I want to separate from the rest of the text by equal spacing before and after the environment. I successfully used the method described here for an ...
2
votes
1answer
27 views

Remove vertical space between text and equations in column alignment

Is there a way to remove this large vertical space between my text and equations. I think this problem is a result of my aligning the equations into two columns.This is the code that I am using by ...
0
votes
0answers
33 views

How can I remove this huge space in my document? (Image annexed) [duplicate]

The space between my equation is bothering me as it looks unnecessary. I have a feeling it is because of some formatting on latex that wants every page to end specifically at the last line of that ...
1
vote
1answer
37 views

Paragraph that takes into account spaces, indentations, etc

I have a Paragraph. It begins with \begin{gather*} then for every line there is a \text{...} then \end{gather*}. I was wondering if there is an easier way to make a Paragraph that takes into account ...
3
votes
1answer
52 views

how to set label width to widest element using nomencl?

Is it possible to set the \nomlabelwidth of the nomencl package to the widest element automatically? The manual only gives the option of setting it at a fixed width as an argument to the ...
2
votes
2answers
32 views

insert zero height newline

I have the following \documentclass[12pt,a4paper]{article} \begin{document} \begin{align} a_{m,m} &\overset{(\eqref{eq:masssplitAIndex},\eqref{eq:masssplitLinvIndex})}{=} 1 - a \\ ...
1
vote
0answers
25 views

Spacing of one page changed when adding text [closed]

I have encountered a very strange problem. I was working on some text with mathematics in them which had normal line spacing. After adding some text to the third block of text (the line that starts ...
3
votes
1answer
26 views

Table of contents spacing with \addcontentslin{toc} [duplicate]

How do I increase the spacing between the numbering and the text in the table of contents? Note that I am using the article class and use \addcontentsline{toc}. Code: \documentclass[12pt]{article} ...
1
vote
2answers
37 views

Control spacing within

I'm trying to build a small listing of terms with definitions. Below is a MWE. I want the items after the \indents to line up. \documentclass{article} \begin{document} FOV \indent Field of View A ...
1
vote
0answers
32 views

Sudden space below a section

In my document, sometimes I get after piling my document, a sudden space just below the title of the section and other times I don't get this. Why does this happen and how to prevent it?
0
votes
0answers
20 views

Correctly handling spaces that occur after a user defined command [duplicate]

I am using LuaLaTeX for a manual and I am running into a spacing issue I am not sure how to resolve. I defined a new command that is simply used to make some text bold. However, I have found that this ...
8
votes
1answer
231 views

Spacing around \cdot

I'm trying to use \cdotas a dummy for a function argument in the following expression C(\cdot\mid\mathcal{F}_{t-1}) However, the above produces more space to the right of the dot than to the left. ...
1
vote
1answer
55 views

How to control space length between lines of double-underline?

I use \uuline command from ulem package to make double-underlined text. I would like to know if it is possible to control space length between lines? I drew below what I mean. If not, how to make ...
2
votes
2answers
138 views

Move Equations in Book

I asked a question here on how to align tables differently on even and odd pages. Now I need to do the same for equations written in align environment. I tried the same trick proposed for tables. They ...
0
votes
0answers
20 views

Don't eat space after command [duplicate]

I'm writing a Latex document. I'd like to define a synonym for a word that's used throughout the document. For instance, I'll define \newcommand{\productname}{VioletFrog}, so that every place I ...
2
votes
1answer
41 views

sectioning - \@startsection vertical spacing on top of page

In the MWE below, the beforeskip argument to \@startsection (#4) seems to be ignored if \section occurs on top of a page. This is cool – because no big vertical space is needed here. However, what ...
0
votes
2answers
34 views

Undesired space after “\right)” or “\mright” with splitting the equation

As it was suggested in the discussion in this link (How can I remove space after `\right`?) that we maybe can not go around using \right. \left. \mright) \mleft( together. The example was given as: ...
0
votes
0answers
79 views

How can I remove space after `\right`?

Why is it that after \right), the . placed after it is spaced. It looks disturbing. For example: \begin{equation} \left(x+y=z\right). \end{equation} There exists an automatic slight space between ) ...
1
vote
1answer
14 views

line-spacing problem with ledmac

For some reason, I've got two lines which are too close. Is there anything I can do to get the normal space back? The document class is a book and I'm working with the outdated ledmac (I know I should ...
4
votes
1answer
29 views

Spacing between operators in IEEE document algorithms

I use the IEEE format and the algorithmic package. However, the spacing around binary operators in algorithms is too wide. attached screenshot: using this code: \documentclass{IEEEtran} ...
3
votes
1answer
34 views

Height of singlespaced marginnote in a onehalfspaced document

I have a onehalfspaced document in which I want to put marginal notes that again should be singlespaced. See this example: \documentclass[a4paper,oneside,11pt]{article} ...
3
votes
1answer
19 views

How can I eliminate spurious spacing using datetime with a modified .def?

I am trying to construct a corrected version of dt-welsh.def for use with the datetime package. In part, this is because my existing set up depends on datetime and, in part, it is because datetime2 is ...
0
votes
0answers
23 views

Local spacing of tikz-matrix

I use something like the code below in a document with a spacing fixed in the header. Now I locally want to use a different spacing in a calculation containing 4-5 matrices like the one below. These ...
1
vote
0answers
38 views

Is there a way to insert non-breaking space between words automatically?

Is there a way to convince LaTeX to automatically add tildes in front of one- and two-letter words, numbers and such simple things (in normal mode, not in math mode)? I know there are preprocessors ...
2
votes
1answer
31 views

Spurious white space when adding vertical space to start of the page, in redefinition of \section

As a followup question to Fullwidth section heading in twosided layout I'd also like to inquire about vertical spacing on new pages. The idea is that the top element of the section title starts ...
2
votes
0answers
32 views

Spacing after minipage

I have been playing with the code given by egreg here: How to keep a constant baselineskip when using minipages (or \parboxes)?, and I have almost succeeded in creating a two-column environment with ...
3
votes
1answer
39 views

Fullwidth section heading in twosided layout

I've been trying to achieve a full width chapter/section heading in a twosided layout for a while now. In a previous question: Spurious white space from a page number conditional I have inquired about ...
0
votes
0answers
15 views

Controlling spacing and alignment using Qcircuit

I'm trying to typeset a circuit using Qcircuit and running into some spacing and alignment issues. Here is the portion that is giving me trouble (this will be embedded in a larger diagram): ...