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

1
vote
1answer
60 views

How to set the spacing before and after of section headings to a fixed value of 1.5cm?

In this code, i want the spacing before and after of my section, subsection, and subsubsection headings to be exactly 1.5cm regardless of the font size or my line spacing. How can i do this? I know ...
3
votes
1answer
43 views

Spacing issue in subfigure/tikzpicture when labelling arcs

I have two simple graphs side by side that align perfectly when the arcs are not labeled, but as soon as I add the labels I get a spacing issue where there is a space between the second figure and its ...
1
vote
1answer
64 views

Remove white space from empty nodel label in tikz-qtree?

With empty nodes in tikz-qtree how do I remove the white space where the node label usually appears? In the following example I want to remove the white space for the node under Foot 3. ...
1
vote
0answers
54 views

Zero space between bars of the same interval in pgfplots ybar interval plots

I need a bar plot (containing multiple \addplot) with following requirements: ticks between x labels (and, in this respect, my question differs from Adjusting width of ybar interval separator to ...
2
votes
2answers
49 views

Spacing between equation and text

How do I create a space for this statement: I want to have some space between less than 0 and the for $x^{*} \neq$. This the code that I'm using: Lastly, the comparative static of $x^*$ w.r.t ...
0
votes
2answers
132 views

fixing a diagram in Homework Problem Sheet

could someone make this homework problem looks good-looking here is my code \documentclass[12pt]{article} \usepackage[pass]{geometry}% just to show the page margins \usepackage{tikz} ...
3
votes
2answers
66 views

LaTeX: Text/Parbox at bottom of page

I have a problem similar to this question, but slightly more involved. I need for the parbox in my example to always appear at the bottom of the page, regardless of whether TeX places it on a page by ...
0
votes
0answers
27 views

Undesired space before the section title when a figure is inserted after the section title

After I used a template, Latex gives me a lot of white space before the section title because a figure is inserted after the first paragraph of the section. I used [H] as the floating parameter for ...
12
votes
3answers
244 views

Underbrace changing spacing of operators

I have found that using an \underbrace on a term in an equation causes the spacing of the following terms to be changed, in particular, the + is moved closer to the \dot{m}. This seems to be distinct ...
4
votes
1answer
69 views

xspace leaves space in front of comment

I am confused by the behaviour of \xspace in combination with the \todo command. I didn't expect \xspace to leave a space when I cut off all spaces by a comment sign %. Usually this works as expected, ...
2
votes
1answer
56 views

Arrows to text above and below line

I have been searching for an answer for some time but have not come across a solution. I am taking some notes from a programming course and need to take a line of code and identify each individual ...
4
votes
1answer
42 views

Why the redundant adding and subtracting inside space commands? [duplicate]

Why do some commands like \titlespacing*{\section}{0pt}{5.5mm plus 1mm minus .2mm}{4.3mm plus .2mm} have this strange adding and subtracting for length. I.e. why not write 6.3mm instead of ...
3
votes
0answers
91 views

Changing top margin for second page only? \vspace inserts extra whitespace

I am trying to format a LaTex template for pandoc output from .md to pdf. The document is for lengthy university papers requiring very specific layout. The majority of the paper has 1 in margins all ...
2
votes
1answer
109 views

Adjusting spacing around section/subsection titles with koma-script

With the KOMA-script scrreprt class the vertical spacing before and after chapter titles can be adjusted the following way: \renewcommand*{\chapterheadstartvskip}{\vspace*{0cm}} ...
2
votes
0answers
53 views

Beamer: Extra vertical space with \visible

This is related to How to get rid of height differences in two beamer blocks? I'm curious why overlay commands \visible (and \invisible, \uncover, \onslide) would add an extra vertical space ...
1
vote
1answer
36 views

How to add some extra spacing between two paragraphs in ConTeXt?

I've set up inter-paragraph spacing for a ConTeXt document but in-between two specific paragraphs, I'd like to have some extra spacing. About 1 inch. In LaTeX I'd use \vspace{1in}. What is the command ...
2
votes
1answer
45 views

Can tex4ht support square justified text with different line spacings?

Can tex4ht support square justified text and can I specify different line spacings (1, 1.15, 1.5, 2 etc.)? Sloppypar allows me to square justify my paragraphs in a pdf but the html file in a web ...
3
votes
1answer
38 views

Center 3 text elements on one line in latex

I am new to LaTeX and trying to write my first resume. I want to list my contact info and right now I am doing this by using \hfill. The problem is that \hfill equalizes the spacing but I want the ...
2
votes
2answers
50 views

Spacing our vertical addition

I am trying to type up some linear algebra notes and I am trying to show the vertical addition of 2 equations. Right now I have \begin{flalign*} && \cancel{6u} + v &= 5 && \\ ...
5
votes
2answers
69 views

Brackets spanning multiple lines in a single column inside table

I would like to typeset round brackets so that they span multiple lines inside a tabular environment, but only for a specific column. In the example below, I would like the brackets to appear around ...
0
votes
0answers
29 views

biblography and spacing

i m adding references in notepad++ and sending a call to the notepad++ by referencing it at bottom of my latex doc. my question is i want that references should be displayed in MLA/APA style. kindly ...
1
vote
0answers
45 views

how to reset spacing, using the package of bu_ece_thesis.sty

I am a new user of SWP 5.5 (Scientific Workplace). I am writing thesis. For simplicity, I directly used the template of "Boston University ECE" (File-new-thesis-Boston University ECE). Now I want to ...
0
votes
0answers
20 views

sig-alternate.cls generates too much space at page bottom

I am using the ACM tex template sig-alternate.cls downloaded from this page, Option 2: LaTeX2e - Tighter Alternate style. This page provides the minimum working environment, including files in the ...
0
votes
1answer
49 views

Caption/Space problem in tikz/pgf/subcaptionbox

I plot 4 Graphs with Tikz and use subcaptionbox. Following badnesses occur: (1) There is no space between the caption of the upper figure to the figure below. (2) The second figures (b) caption ...
4
votes
2answers
80 views

Spacing between several superscripts mboxes

I'm getting a small extra space between two superscripts in separate math objects. MVE: \documentclass{article} \begin{document} zz$\mbox{zz}^{\mbox{a,a,}}$$^{\mbox{a,a}}$ \end{document} ...
2
votes
1answer
31 views

Have paragraphs with spacing between them inside “flushleft”

In my LaTeX document, I'd like to have two paragraphs which are separated by some smaller vertical spacing. When I use the following code, this works just as intended, automatically: ...
2
votes
2answers
63 views

How can I format this in lyx?

I'm trying to format a confusion matrix in lyx. I want the data to look like this. a b c d e f g <-- classified as 1 5 10 8 4 2 0 | a = 3 3 ...
1
vote
1answer
99 views

Getting even space around the centered dots in $1,\cdots,n$

In \documentclass{article} \usepackage{amsmath} \begin{document} $1,\cdots,n$ \end{document} There's more space to the right of the centered dots than to the left of them. What's the best way ...
1
vote
1answer
45 views

Manually constructing a dot under accent

In my thesis I would like to have an n with the combining dot under diacritic, but unfortunately my font doesn't have that particular accent, I figured I could try to construct it ad hoc (since I just ...
2
votes
1answer
33 views

Modifying the res class to have less whitespace

I am currently in the process of creating my CV. The res template I found online seems to do the trick. But I am having some troubles. The picture below kind of highlights what I want to do. So ...
2
votes
1answer
39 views

Grouping lines starting at the same position in ModernCV

I would like to list skills in my CV, but using \cvitem looks bad because the second line does not start at the same position as the first... \documentclass[11pt,a4paper,sans]{moderncv} ...
5
votes
1answer
68 views

Defined a new class verbatim from my preamble, but resulting document does not have identical layout

I've designed a poster layout that will most likely be used again, so I decided to define a new document class using all the settings from my preamble. However, when I compile a document using my ...
0
votes
0answers
9 views

Stop elements from being pulled apart one page [duplicate]

I have a very long LaTeX document with many tables, figures, etc. When I have a long table on the following site (which means it doesn't fit on the current site) the elements (paragraphs, tables, ...
7
votes
1answer
187 views

Stretching vertical space to evenly fit a part of the document within minimal number of pages

I typeset a book containing musical pieces using LaTeX and LilyPond (using lilypond-book). Each piece starts in a new page, and can be from less than a single page up to several pages long. I want ...
0
votes
0answers
21 views

Problem with moving thingsbit left in Beamer

I am trying to make two figures closer in the columns environment. I tried using horizontal spacing, and while the first (see mwe below) \hspace* seems working, the second fails. I could not figure ...
2
votes
0answers
71 views

LOF and LOT customization in memoir

I am attempting to add LOF and LOT to my current document using the memoir class. When I try to remove the spacing above the LOF and LOT titles, I get the "Undefined control sequence. ...
0
votes
0answers
17 views

Line spacing not working with \fontsize [duplicate]

Problem: Getting line-spacing to work with \fontsize. Regardless of what value I use in the second parameter, the line-spacing won't change. Package: \usepackage{mathptmx} Code: ...
5
votes
1answer
116 views

KOMA script and amsthm: Space lost before and after theorems

I am having a problem similar to this and this, but without using parskip, and only after a recent package update. The MWE \documentclass{scrartcl} \usepackage{amsmath,amsthm} \theoremstyle{plain} ...
2
votes
4answers
203 views

uniform spacing between words and sentences

I would like to specify a particular global setting in my thesis, so that every time I use the space tab in my keyboard, I get the exact same appearance in my latex document. As of now, that is not ...
4
votes
1answer
65 views

Add vertical space before a line

I have the following code: \documentclass[12pt, a4paper] {article} \usepackage[T1]{fontenc} \usepackage[english]{babel} \begin{document} \vspace*{1cm} \begin{center} \textbf{Text of ...
0
votes
0answers
12 views

LaTeX - Extra Spacing with Text in Wrapped Cells [duplicate]

I am currently making a table with information regarding all of the courses that I am taking. However, in the two columns in which I wrap the text, I notice that a lot of the words are unevenly ...
6
votes
1answer
69 views

\unskip and \hskip in \linebreak

I found the definition of \linebreak macro as follows: \def\linebreak{\@testopt{\@no@lnbk-}4} \def\@no@lnbk #1[#2]{% \ifvmode \@nolnerr \else \@tempskipa\lastskip \unskip ...
1
vote
1answer
46 views

Mysterious horizontal space in newenvironment

The following code defines an environment that offsets text vertically (5pt above and below) and horizontally (2em from the left). When compared to a simple \hspace{2em}, however, you can see that the ...
3
votes
1answer
101 views

tcolorbox and enumerate inside wrapfigure generating unexpected spaces below

I have had a problem of unexpected spacing below the object with tcolorbox inside the wrapfigure environment. You can see the attached snapshot. Below is my MWE. ...
3
votes
2answers
117 views

width of \parbox issue

I am using a template for a CV in LaTeX and I am facing certian difficulties in getting things aligned properly. The code I am referring to is \newcommand{\NewEntry}[3]{% Define a command for each ...
1
vote
2answers
64 views

How to change spacing before and after \paragraph command?

I tried to control the spacing before \paragraph{} using a command such as \setlength{\parskip}{3pt plus 1pt minus 1pt} but that doesn't influence it. (It influences spacing between regular ...
2
votes
1answer
61 views

A lot of unexpected spaces between paragraph after inserting colorbox

I have a problem as shown in the attached picture. I guest that it comes from colorbox inside minipage. My document is a thesis of more than 150 pages. When I test this piece of latex code ...
0
votes
0answers
62 views

How to decrease the vertical spacing between formula and text in beamer?

Too much spacing between formula and text in beamer. When I insert the command \vspace{-0.5cm} before the formula, the spacing decreases. But the command \vspace{-0.5cm} after the formula has no ...
5
votes
2answers
141 views

How to put two (or multiple) QED symbols on one line

Suppose the proof of a theorem contains a claim and its proof, and the proof of the claim completes the proof of the theorem. That is, no further text is required in the proof of the theorem after ...
5
votes
1answer
50 views

Vertical placing of wide accents in superscript

The following code $\widetilde{aaa} \quad L^{\widetilde{aaa}}$ $\tilde{aaa} \quad L^{\tilde{aaa}}$ $\widehat{aaa} \quad L^{\widehat{aaa}}$ $\hat{aaa} \quad L^{\hat{aaa}}$ $\overline{aaa} \quad ...