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

color packages change my spacing

I have a problem with loading color packages. I have started my document some time a go and I have around 90 pages. Just now I wanted to add some code listings with colors so I loaded color package. ...
4
votes
1answer
1k views

What are the different kinds of vertical spacing and horizontal spacing commands available?

@egreg gave a very nice and thorough answer to What are the different kinds of boxes in (La)TeX?. It seems it would be nice to have a similarly thorough answer to controlling spacing. I'm not ...
2
votes
1answer
234 views

Negative phantom inside equations

The following code produces a negative phantom (from the comment in this answer): \newcommand{\negphantom}[1]{\settowidth{\dimen0}{#1}\hspace*{-\dimen0}} However, when used inside an equation like ...
0
votes
1answer
23 views

Long limits overhang and cause a symbol to become too wide [duplicate]

Sometimes I need to make a union with a long subscript specifier at the bottom like so: \documentclass{article} \begin{document} \begin{equation*} \bigcup_{a \in \{\text{set that is very wide}\}...
0
votes
1answer
23 views

When I use package floatrow, option skip of package caption doesn't work

Using this piece of code, I define a demo figure and its caption, \documentclass{book} \usepackage{graphicx} \usepackage{caption} \captionsetup{ } \begin{document} \begin{figure} ...
4
votes
2answers
937 views

Change vertical space in overset

How can I decrease the space in overset? I found this solution online, but it doesn't look quite like the original overset (note I know it is difficult to come up with a solution to handle all cases ...
2
votes
0answers
36 views

Define text box so that it consumes the rest of the page

I have several images stacked on top of each other for a title page. An MWE \documentclass{report} \usepackage[paper = letterpaper]{geometry} \usepackage{tikz} \usepackage{pgf} \usepackage{mdframed} ...
1
vote
1answer
26 views

For programming a command: emit \newline iff we are within a paragraph

Short version: I am defining an environment: \newenvironment{myenv}{\begin{trivlist}\item}{HERE something\end{trivlist}} Now at the point marked with "HERE", I need a "conditional newline" doing ...
0
votes
0answers
14 views

I'm creating a bibliography page on latex and it compiles two blank pages in between references. How can I fix it?

This is the code: \nocite{*} \let\cleardoublepage\clearpage \bibliographystyle{abbrv} \bibliography{ref} [![pg 2][2]][2]
1
vote
2answers
49 views

Space between text and its following figure

How can I make some space between the text and its following figure? (Only once and not for the whole document).
29
votes
4answers
47k 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 ...
0
votes
0answers
8 views

Reducing the width between the section space [duplicate]

I came up with a minimum MWE to explain my predicament. I wish to reduce the space in between the sections as demarcated below: \documentstyle[12pt]{article} \setlength{\oddsidemargin}{0in} \...
0
votes
1answer
15 views

Decrease vertical space between cventries

This must be easy for you, but I am quite unable to get it right. Here is my code: \cvsection{Education} \begin{cventries} \cventry {B.S. in Computer Science and Engineering} % Degree {POSTECH(...
19
votes
4answers
39k views

Adjusting space between array rows and columns

\documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{babel} \begin{document} % ... \[ \begin{array}{ccccc} x(1) & = & \frac{x(0)}{1} & = &...
4
votes
2answers
152 views

\vspace* (star) moves text above it

\documentclass{article} \begin{document} aaa \vspace*{100cm} bbb \end{document} I would expect aaa to be placed at page one, then to see 100cm of white space (distributed over many pages) and ...
4
votes
3answers
151 views

How to reduce the spacing in chemical symbols?

Currently, if want to write a chemical symbol, for example, ${}^{239}Np$, this is what I type in: {}^{239}Np. The result: But it looks bad, I feel as if the "N" and "p" should be closer, or a ...
3
votes
1answer
43 views

Spacing for weighted limits

I'm naively trying to typeset a weighted limit using \varprojlim ^W F, but the output I get is the one on the right instead of the one on the left below. How to fix this?
1
vote
1answer
27 views

Reducing vertical space after algorithm2e

My document currently looks like this: As you can see, there is a very large vertical space between my text and the algorithm2e object. How can I reduce the spacing between these?
1
vote
0answers
41 views

Removing the blank space after a definition (or something)?

already I researched a lot about it, but found nothing. Could you help me remove this white space to be between intem 3 and paragraph ("Quando não ....."). I thank you
3
votes
1answer
44 views

Widths of columns do not sum up to totalwidth of the columns environment

On a beamerposter I am embedding a few blocks within columns. My issue now is that their widths do not seem to add up correctly. In particular If I have two columns 10cm wide, the whole thing will be ...
0
votes
1answer
58 views

\nopagebreak in longtable results in undesired negative vertical space

System: XeTeX Version 3.14159265-2.6-0.99992 (TeX Live 2015/W32TeX). MWE (with a grid superimposed to help visualizing the issue): \documentclass[12pt]{book} \usepackage[top=72pt,left=72pt,bottom=...
2
votes
1answer
148 views

Change spacing before chapter title within frontmatter

I am using the report class for my dissertation, which requires 2 inch margin beginning at each chapter. I am using the following command: \titlespacing*{\chapter}{0pt}{2in}{1in} This works fine ...
8
votes
1answer
38 views

Unbalanced spacing with braces in mtpro2

The code $\LEFTRIGHT\{\}{S_n}$ produces whereras the code $\left\{ S_n \right\}$ produces . Is this a bug or feature? As the content in the braces grow larger, the visual effect of the unbalance ...
2
votes
2answers
37 views

Table columns merging when using fixed size

I'm writing a table that's too wide for the page, so I tried using a fixed width for the columns, but when I do that two columns merge into one: And a MWE: \documentclass[a4paper]{abntex2} \...
4
votes
2answers
51 views

How to force vertical space in tex4ht? \bigskip and \vspace have no effect

I am generating lots of tables one after the other, and noticed the tables in HTML generated by tex4ht are touching each others, and wanted to have some vertical white space between them to separate ...
0
votes
1answer
19 views

push contents of top-left cell little downward?

I am going through different tutorials and Q&A, but no luck yet. I am new to Latex, and hence not aware of many packages, and not sure why some change is not coming into effect. Currently, I have ...
1
vote
1answer
38 views

How to modify this distances in moderncv?

\documentclass[10pt,a4paper]{moderncv} \moderncvstyle{classic} \moderncvcolor{blue} \usepackage[utf8]{inputenc} % replace by the encoding you are using \usepackage{geometry} \...
5
votes
2answers
355 views

Three very clearly separated elements on a single line

I have three short bits of text that I want to put on a single line, in a centered way; more precisely: I want the first bit to be "left justified", i.e. to start at the leftmost part of the line. I ...
0
votes
1answer
135 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
39 views

Change Title Spacing

I am currently trying to fulfill the layout requirements of my university, which request vertical spacing of 24pt before and 12pt after section titles. I am using the titlesec package, but every time ...
5
votes
0answers
37 views

Spacing between titles depending existence of subsection

By normative control standarts, spacing between title of a section and one of a subsection (similarly for subsection/subsubsection) must have length 0.8 cm and spacing between any title and a text ...
91
votes
2answers
20k views

Is a period after an abbreviation the same as an end of sentence period?

Does latex do anything special with periods? If so, is there a way to differentiate end-of-sentence periods from periods indicating abbreviation?
1
vote
1answer
25 views

Achieving local `@fptop` within a custom float

I would like the following policy: The top of figure and table page-floats should be 15% down the page (and ideally able to move higher if the figure is more than 85% of text height). A custom ...
1
vote
0answers
29 views

How to make columns start with a space to the header?

I am making a document with two columns. I am trying to make both of the columns start a distance below the header on the first page. Any help will be appreciated. \documentclass{article} \usepackage{...
1
vote
1answer
52 views

newcommand titlespacing

To generate space between \section i am using \titlespacing*{\section}{0cm}{1cm}{0.5cm}, doing the same for subsection. Is it possible to generate titlespacing between own commands? I need three blank ...
3
votes
1answer
60 views

Space between caption and \bottomrule

I have more of a cosmetic sort of problem. Normally the vertical space between the \bottomrule and the caption looks like this: But with the code I use, some tables look like this: I use the ...
1
vote
0answers
59 views

Big blanks in document, why? [duplicate]

The following code uses a command \unit which is defined as: \newcommand{\unit}[1]{\pagebreak \section{Unit: #1}} A unit is therefore just a section that starts on a new page. \unit{How to use a ...
1
vote
1answer
39 views

newcommand defined on multiple lines creates extra white space

When I define a \newcommand over multiple lines, I get unwanted white space in my output. How do I make it so I can write a long command, but still make it readable, without getting the extra white ...
0
votes
0answers
26 views

Tabular Cell Vertical Centering: \hline

I find that \hline skews vertical centering. What can be done such that cells are symmetrical when using hlines between rows.
6
votes
3answers
28k views

Using the \tab Command

I have seen several cases of people using the \tab command to insert a specific amount of space between objects (as opposed to the \hfill command which uses any remaining space). However, I have ...
1
vote
1answer
54 views

baseline seems to change automatically [closed]

I don't have a MWE, since this appeared on the bottom of page 12 of a document I'm working on (by surprise). I'm just wondering if anyone will recognize what's going on. It looks to me as though the ...
4
votes
1answer
52 views

Mysterious blank space appears in text when align evironment followed by figure environment

When using an align environment and subsequently a figure environment in Latex code in the resulting pdf appears suddenly a blank space where in code the figure environment resides. Why does this ...
0
votes
0answers
29 views

Border spacing in fancy header

I am using the 'fancyhdr' package. I have both text and images (one in header one in footer). There seems to be some padding / spacing around the text and images. I cannot see where this is coming ...
3
votes
0answers
62 views

Remove most bottom space of tabular (or tikz-picture?)

I'm trying to add a table-like structure left of a ganttchart. It appeared to me that labeling every bar with its own tabular of fixed column-width would be the easiest and I got quite close to what I ...
1
vote
1answer
57 views

Custom spacing of figure

I'd like to custom place a figure beside some text. I tried two approaches. First, I placed the text with tabbings in one minipage and the figure in a second minipage...and both minipages into a ...
2
votes
1answer
33 views

\newcommand trailing space with tocloft

I have had to add a 'List of Supplementary Materials' to my current document using the tocloft package. I currently have the following code in my preamble: \usepackage[titles]{tocloft} % Create Table ...
2
votes
2answers
38 views

How to ensure that content within a column vector do not touch? [duplicate]

I have some variables defined in a column vector written in mathmode in the usual way $\begin{bmatrix} \dfrac{1}{i} \\ \dfrac{1}{j} \end{bmatrix}$ However, the result shows that they are almost ...
4
votes
1answer
68 views

Spacing between tikz picture and text

In my document I have several tikz pictures (in different sizes) with explanation next to the tikz picture. To put some text at the side of the picture I use a \parbox{}. My document looks like this ...
0
votes
0answers
29 views

I am loosing vertical space befor and after minipage/parbox/vbox within a list

I have a two column list. Some of the items are supposed to be grouped by a huge brace so I am trying to use minipage or parbox or vbox to group them, however I am loosing the vertical space between ...