{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
4answers
44 views

Space between caption and table in TeX

I have this code \begin{table}[h] \caption{Numerical example geometry} \label{tab_numerical_geo} \begin{center} \scalebox{0.9}{ \begin{tabular}{|c|c|c|c|c|c|c|} \hline $d^A$ & $d^B$ & ...
2
votes
0answers
16 views

Big space between longtable/longtabu and the preceeding section header

If I add a longtable or longtabu environment directly after a \section command a very big space is set between the header and the table. In case of the second example where some text is in between ...
6
votes
4answers
4k views

Side by Side matrices

How can I get matrices that are side by side? Currently I have the following: \[ \begin{pmatrix}[ccc|c] 1&2&0&0\\ -1&1&2&0\\ 1&0&1&5\\ 0&-2&1&4 ...
0
votes
2answers
42 views

wrapfigure at the bottom - no white space below wrapfigure

I want to place some figures at the left or right side of my book resulting into a reduced column width for the text. So I am using wrapfigure environment with number of narrow lines of 40. By this ...
2
votes
1answer
83 views

How to snap a float to grid

I have a two-column document with some column-spanning floats. The problem is that floats essentially reduce the page size when present, and the remaining page size does not necessarily correspond to ...
5
votes
2answers
65 views

tikz bounding box / cropping: too much space for curves

I have a problem with TikZ's auto-cropping/auto-calculating the bounding box for a tikzpicture. Look at the following example: \documentclass{article} \usepackage{tikz} \begin{document} Lorem ipsum ...
0
votes
1answer
26 views

How to insert flexible float/text separation in two-column mode

To avoid ugly extra white space in the text, i want a flexible glue between the float and the text in two-column mode. In one-column mode, I can add extra glue using \textfloatsep, and I hoped I could ...
2
votes
0answers
25 views

How do I increase the white space between a section's title and the page header?

I would like something like this: I'm using {geometry} and {article} class, but I think I'm missing some definitions for the sections. I'm new at this and would like to write my masters thesis on ...
2
votes
1answer
46 views

dramatist remove spacing between speech items

I'm typesetting a drama script using the dramatist package, which defines the drama environment, which is basically a list environment, and each speech entry is a list item. Since I need to print the ...
5
votes
1answer
147 views

How can I redefine \int to put a negative space after the integral sign, but keep the limits properly set?

I'd like to modify the \int command such that it adds an automatic negative space, e.g. \! after the integral sign. Preferentially, I'd like to be able to not edit any of my code, so cleverly ...
5
votes
1answer
68 views

Inconsistent spacing of \dots and … with amsmath

\documentclass{article} \usepackage[utf8]{inputenc} \DeclareUnicodeCharacter{2026}{\dots}% … \usepackage{amsmath} \begin{document} \[\left\{a \dots \right\}\] \[\left\{a … \right\}\] \end{document} ...
19
votes
3answers
10k views

Define pretty sets in LaTeX; esp., how to do the condition-separator?

E.g., I have this set: \{ \alpha \in \Sigma^\omega | \exists^\omega n : \alpha [0,n] \notin \Sigma^* a_1 \Sigma^* a_2 \dotsb a_n \Sigma^* \} Here, I use | as the separator for the condition part. ...
0
votes
0answers
19 views

Spacing between custom command and subsequent text [duplicate]

I have defined a custom command for the name of my project; e.g. \newcommand{\projectname}{Gizmo}. When I used the command in my document, I've found that I need to place a ~ after the command in ...
3
votes
1answer
58 views

Stretched character spacing with url citation

When printing a citation with a long URL lacking good break points, in a wide text block, the character spacing gets stretched out. \documentclass{article} ...
1
vote
2answers
38 views

Adding some horizontal space to an itemize environment where \tab is used

I would like to add some horizontal space to this itemize environment. (Note that I use \tab). I tried using [itemindent=4cm] and \addtolength{\itemindent}{4cm} but the result is this: How can I ...
0
votes
1answer
355 views

Paragraph Numbering in LaTeX and Space Increase of Indentation

Is there any easy way to do the same thing that this code does: % arara: pdflatex \documentclass[a4paper,12pt]{report} \usepackage[inner=0.75in,outer=0.65in,top=0.75in,bottom=0.75in]{geometry} ...
8
votes
2answers
123 views

makebox with minimum width

I use makebox to create padded texts, however when the text in the box overflows, it overlaps with the following content. To demonstrate, The thing I want is a box that when the text is shorter than ...
5
votes
1answer
37 views

Itemize inside environment gives double space after

Some definitions and theorems end with an itemize. When I use pure amsthm this looks good, but when I use thmtools+amsthm it looks ugly with too much space below the theorem. I do not see what I have ...
1
vote
1answer
56 views

Space between sectioning header and tabular environment

I have this situation on Latex. How can I eliminate this space between the \section{PESTA} and the tabular? \subsection{PEST+A} \begin{tabular}{ |p{5cm}|p{10cm}| } \hline ...
3
votes
2answers
176 views

Abbreviation list align left with space between

Hi, Here is a sample code of my problem: \documentclass[12pt,a4paper]{report} \usepackage[labelfont=bf]{caption} \usepackage{listings} \usepackage{acro} \DeclareAcronym{loT}{ short = IoT , long = ...
4
votes
1answer
32 views

Extra Space Before align* and Not Display Equation

There is an extra space between the section and the align* parts of the page. This does not occur if the equation is simply enclosed in \[...\]. \documentclass{article} \usepackage[fleqn]{amsmath} ...
6
votes
1answer
2k views

Automatic spacing with feynmf/feynmp?

Background When labels are shown with feynmp, they extend beyond the box of the graph. One can use \fmfframe to allocate an invisible frame to accommodate these, but it seems like you need to ...
2
votes
0answers
45 views

How can I customize headings in book-class?

I am writing my master thesis in the book-class in Latex and need some help to format the headings in the document. I have a Word-template from the University which have specific formats of the ...
2
votes
1answer
35 views

Beamer: space between frame title and text

I would like the space between the frame title and the text to be the same in all pages. I tried \addtobeamertemplate{frametitle}{\vspace*{2cm}}{\vspace*{-2cm}} but as you can see in the image below, ...
2
votes
1answer
35 views

Horizontal line without vertical gap

I'm trying to create a underlined heading like this, without space between John Smith and the underline I tried this command, but it adds a vertical gap between the name and the underline ...
0
votes
1answer
29 views

Changing the page number/footnote number font?

I think I've been using this code: \renewcommand{\footnotesize}{\fontfamily{phv}\selectfont\scriptsize} It changes the font of the footnote but not the number of the footnote itself. Any way to ...
4
votes
1answer
43 views

Controlling horizontal spacing in math mode in text

I am using the most recent release of TexLive on my MacBook Air. I am using the packages amsmath, amssymb, scalefnt, graphicx,and subcaption in addition to a journal's package. Like a previous ...
227
votes
6answers
45k views

Space after LaTeX commands

I have a definition: \newcommand{\arnold}{Arnold Schwarzenegger} When I refer to it by: \arnold is a it is rendered as: Arnold Schwarzeneggeris a In order to have a space in front of "is" I ...
26
votes
8answers
3k views

No space following macro without argument

With a macro such as: \def\naive{na\"{\i}ve} I find that the space which I would hope to follow it, is absent. So, with the \naive approach I get the naïveapproach in the output. How do I ...
1
vote
2answers
45 views

I want a double space between my paragraphs

I want double spacing between my lines so I used this: \doublespacing Now I also want a single double space between my paragraphs, what should I do in that case? If I didn't change anything in my ...
3
votes
1answer
28 views

Spurious whitespace with algpseudocode and noend

I'm currently typesetting some pseudocode and was up to now pretty happy with the algorithmicx package and the algpseudocode command set. However, I would now like to use the noend option to omit end ...
7
votes
2answers
201 views

How can I control the minimum number of lines (rows) that should be kept together when a page break is necessary?

What to do when tabular alignment just doesn't cut it? I designed (perhaps not efficiently or with the "right" approach, yet using some helpful LaTeX3 answers from egreg) a way to enter data into an ...
3
votes
1answer
36 views

Using \textstyle with \pmod

If I'm in a displayed equation but I want the \sum symbol to appear as it does in inline formulas, I can just put \textstyle in my equation. I thought that writing \textstyle would also force \pmod to ...
3
votes
2answers
53 views

How to have an empty TikZ picture (with absolutely placed content) be ignored for spacing?

I want to use a TikZ element to place absolutely on the page. Unfortunately, no matter what I do, the TikZ picture is treated like a character, which causes it to be treated like a paragraph when not ...
32
votes
6answers
1k views

Underline just words, not the space between them

I need to typeset a sentence such that just the words are underlined, and not the space between the words. Using the \underline will include the spaces between the words. I could do it with something ...
6
votes
1answer
157 views

Space after semicolon

\documentclass{beamer} \begin{document} \begin{frame}{Mutual Information} \begin{align} I(X;Y)&=H\left( {X} \right) -H\left( {X\mid Y} \right)\\ I(X{;}Y)&=H\left( {X} \right) -H\left( {X\mid ...
1
vote
0answers
21 views

How to change spacing between the section heading and the first line of the body of the setion

I need increase the spacing between the section heading and the first line of the section to 2 double spaces. Please see the picture attached.The marked spacing is what i need to increase. Please ...
0
votes
1answer
100 views

\hbox overflow, Friggeri fancy CV

I'm VERY new to LaTeX so the searches I have done have lead to zero progress in solving my problem. I've been playing around with the entrylist parameters on the .cls file to no avail. My essential ...
0
votes
1answer
62 views

How to reduce the space consumed during the beginning of a chapter?

When I begin a document with some chapter heading a lot of space is consumed at the top how do I reduce this?
6
votes
2answers
62 views

\DeclareMathOperator: wrong space when the operator is followed by a binary operator

In his answer to the question Shortcuts and/or user-defined shortcuts for math symbols in LaTeX?, it is advised to denote the gradient with \DeclareMathOperator{\grad}{grad}. But this is suboptimal ...
0
votes
1answer
60 views

LaTeX vertical spacing after numbered paragraphs

I'm relatively new to this forum and LaTeX in general, so please excuse me if I'm duplicating a question, but I can't find a satisfying solution to my problem. I have introduced numbered paragraphs by ...
4
votes
2answers
31 views

Space around escaped equations in listings?

I am using listings with mathescape=true to include some typeset output. However, I would like a little white space around that output. Currently I have \lstset{language=, keepspaces=true, ...
2
votes
1answer
29 views

How to change space before and after chapter / section etc

I would like to have the following spacing: \titlespacing*{\chapter}{0pt}{50pt}{30pt} \titlespacing*{\section}{0pt}{13.2pt}{*0} \titlespacing*{\subsection}{0pt}{13.2pt}{*0} ...
1
vote
1answer
42 views

Variable separation between items in a list environment

Is it possible to define a list environment where each item has a user-specified amount of space below it? I'm looking for something to the effect of \begin{myitemize} \item[1in] One ...
4
votes
1answer
43 views

How to fixe vertical spacing in multicell text within table / how to insert multicell text in table?

\documentclass{report}[12pt, oneside, a4paper] \usepackage{geometry} \geometry{verbose, tmargin=2.5cm, rmargin=2.5cm, bmargin=2.5cm, lmargin=3.5cm, headsep=0cm} \usepackage{array,booktabs}% ...
5
votes
2answers
122 views

Comment-like environments and spacing

I often need to "turn off" environments. One way I do this is below in my minimal working example: \documentclass{article} \newenvironment{nothing}{\setbox0\vbox\bgroup} {\egroup} \begin{document} ...
1
vote
1answer
57 views

Bad spacing around $\in$ symbol before math calligraphhic letter

I'm using a math calligraphic font for some set U, and when I tried to state that X is an element of U $X\in\mathcal{U}$, I obtained a horrible result. Below is the code, with some other examples for ...
0
votes
0answers
46 views

How to limit the width of \halign?

The glues inside my \halign rows don't get reduced when they should. The contents of \halign behave as if they had infinite horizontal space. This is the source code for the first table (it's very ...
1
vote
1answer
5k views

How to reduce the margins and spacings in this document

I'm using the res.cls to create a one-page CV (I know, res.cls is old, but I prefer its layout). Since the CV is one-page only, I need to squeeze some more space for its content. This is what I have ...
5
votes
1answer
1k views

Leading (vertical space) before and after block quotes

I'm trying to re-define the quote environment (triggered by csquote's \blockquote) to remove the entire (!) additional leading before and after the quote, to make sure the quotes stays in sync with ...