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

7
votes
2answers
609 views

Modify locally the “array” environment for Equation Systems

When I started to use LyX 2.0.6 I noticed that when an Equation System is needed, there are two options available to typeset it: using the appropriate command on the Math Line cases, or ...
1
vote
1answer
64 views

Question about the underbrace in combination with the array

I'm trying to use the \underbrace option, and I kind of managed to make it work with the following code: \begin{equation} \begin{array}{rcl} \left(\Lambda_1 \Lambda_2\right)^T G \left(\Lambda_1 ...
1
vote
1answer
137 views

How to prevent a math symbol to change its type [relation, operator etc.] and modify the space around?

Typically, we take \leq: \documentclass{article} \begin{document} \[ \leq \simeq \leq_A \sim \leq_B \] \[ \leq \simeq {\leq_A} \sim {\leq_B} \] \end{document} and ...
5
votes
2answers
282 views

Inline underset spilling over to next line

The underset of my "xdim" command is touching characters in the line underneath. How to correct? \documentclass[12pt]{minimal} \usepackage{amsmath} ...
7
votes
1answer
171 views

Removing strange vertical space after first (customized) \item

I have a custom environment properties (that is almost ready for release to Github) that works like so: \begin{properties} \item[no max in reals] \forall a \in \Re, \exists b \in \Re : a < b ...
2
votes
2answers
96 views

Not equal spacing on both sides of PSTricks figure

Taking the code of PSTikZ's answer from "PSTricks figure way too big; normal scaling seems not to work" (and putting an \fbox around it to illustrate the problem), I get the following: ...
3
votes
1answer
361 views

No space between vertical rule and image

I want to design a titlepage for a beamer presentation (XeLaTeX, Miktex 2.9-64, Win7-64) and need to reduce the space between a rule and a graphic to 0. My code: \setbeamertemplate{background} ...
3
votes
1answer
219 views

How to leave a space after an em-dash with xspace

I wish to have a space between and after my em-dashes as I do not like the english tradition to collate them to the nearest words. xspace permits to leave spaces for macros but does not handle well ...
2
votes
1answer
1k views

\medskip doesn't seem to work

I've just begun using TeXShop but seem to have come across a problem - I have a centered section that uses a \medskip right after a newline. Like so: \begin{center} Some text \\ Some subheading \#1\\ ...
11
votes
2answers
937 views

Why does \parskip add space after section headings inconsistently?

There are already several questions dealing with the extra vertical space after section headings that result from setting \parskip to a non-zero value. Here, I just want to understand why extra space ...
5
votes
1answer
1k views

How to equalize the two columns in the last page INSIDE the IEEEbiography enviroment

I'd like to make the two columns of the last page of equal length but starting the new column INSIDE the IEEEbiography environment. I have four authors in the last page, the second one has a long ...
4
votes
2answers
260 views

Horizontal alignment of text blocks

I want two text blocks in a horizontal row. In the middle between them, there should be an arrow pointing from left to right. This is what I currently have: As you see, the arrow is not in the ...
0
votes
0answers
22 views

Glue at the top of the page is ignored [duplicate]

I wonder why adding vertical glue at the very top a page has no effect. E.g. the following code produces a 2 inch vertical space before the second paragraph, but no space whatsoever before the first ...
1
vote
1answer
81 views

Spacing in commands for math mode

I would like to define commands with semantics similar to e.g. + in math mode. For instance, $(x+y)$ produces an equation with some spacing around +, whereas $(+)$ produces an equation with less ...
4
votes
2answers
2k views

in Beamer, how to remove left margin/indent of a description list

I have a two column frame with a plot one the left, and a description list on the right \begin{columns} \begin{column}{.4\textwidth} \begin{center} ...
2
votes
1answer
60 views

How to set the equation no with quad space to equation

How to set the equation no with quad space to equation content (centered) like below Sample Text Sample Text Sample Text (1.1) A + b = 20 Sample Text Can anyone suggest how to ...
5
votes
2answers
155 views

How to properly define NOx

I'm writing a document containg NOx a lot. It appears in section titles, regular text and tables, in sans serif, roman, bold and medium. Therefore I defined a command: \newcommand \nox ...
3
votes
2answers
2k views

\vfill and vertical space

In a two-column document, I would like some text to be positioned at the bottom right of the right column. The text is inside tabular and flushright. An MWE is: \documentclass[twocolumn]{article} ...
1
vote
4answers
1k views

Fixed horizontal spacing in itemize environment

How can I put space after Itemmmmmmm: etc. I want to write First Itemmmmmmm: Value Second Itemmmm: Value third Itemmmmmmmmm: Value Currently, I'm getting ...
3
votes
1answer
63 views

Change the spacing around select paragraphs

How would I make only specified paragraphs have a little extra space above and/or below them compared to the default setting (which seems to be no--or very little--extra space between paragraphs)? An ...
5
votes
1answer
210 views

How can I avoid that a functions argument touches the brackets using unicode-math?

Maybe, I am doing something wrong, but please have a look on the alignment in this formula: % arara: lualatex \documentclass{article} \usepackage{mathtools} \usepackage[% ,math-style=ISO ...
1
vote
0answers
31 views

how can i add more space on Table [duplicate]

My code is here. \begin{table}[t] \centering \begin{tabular}{|c|c|c|} \hline Graph $G$ & Graph $H$ & An isomorphism between $G$ and $H$\\ \hline ...
5
votes
1answer
59 views

Change Sectional Skip Conditioned on Text Existing or not Before Sectional Division

I have a simple document layout with a main heading for the title, and the possibility of starting the first sectional unit (with a standard \section command) right after the title -- meaning, with no ...
12
votes
1answer
819 views

Organigram in Latex. Vertical distance between nodes

I want to draw a organizational structure in form of an organigram. I found this solution and tried to adapt it. The code: \documentclass{article} \usepackage{tikz} ...
4
votes
1answer
197 views

Tikz + Verbatim + Sphinx , output drawn twice with slight offset. Works great Tikz + Verbatim

I'm working on a piece of software that outputs IPython Notebooks as tex documents. One of my requirements is to be able to draw code input output blocks that look like the Notebook's UI. ...
3
votes
1answer
79 views

Use of the color package changes the height of the text block

Here is the packages in my documents: \documentclass[12pt,twoside]{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{color} \renewcommand{\baselinestretch}{1} ...
5
votes
1answer
316 views

ToC: controlling spacing between major headings and subheadings

So I am attempting to begin early on my thesis, and I am running into some strange TeX problems. I am using 12pt font - important for the spacing commands below. When formatting the ToC we are ...
3
votes
1answer
191 views

Add space to previous row

I have a table that looks somewhat like this: Group 1 1 2 Sub point 1 3 Subpoint 2 3 Group 2 3 4 Sub point 4 5 Pie! 3 1 Group 3 4 7 Cake? ...
6
votes
2answers
158 views

Formatting inside a table

\documentclass{article} \usepackage{float} \usepackage{mathtools} \newcommand{\unit}[1]{\hat{\mathbf{#1}}} \begin{document} \begin{table}[H] \centering \begin{alignat*}{4} ...
5
votes
1answer
661 views

pgfplots: Changing horizontal spacing in the legend [duplicate]

I'm drawing a simple scatter plot with pgfplots, which also includes a legend as shown in the upper part of the picture next. However, I find the horizontal spacing odd because the distance between ...
2
votes
1answer
137 views

How to reduce space between enumerate [duplicate]

\begin{enumerate} \item item 1 \item item 2 \item item 3 \end{enumerate} How to reduce the space between item 1,2,3?
2
votes
1answer
432 views

How to remove the space after an exclamation point

I am creating a document about a project whose name is "Go for it!" with an exclamation point. I am fairly new to Latex, but I figured that there should be a command to print the project name, with ...
2
votes
1answer
396 views

Vertically center elements in table doesn't work

I am trying to vertical and horizontal align items in a table. I tried to follow what I found on the internet, including on this site, but it seems not to work for the last column. Here is what I ...
1
vote
1answer
229 views

Prevent page break without removing vertical space

I have a single sentence paragraph that introduces a list, and LaTeX is trying to insert a page break between the paragraph and its list, which I find unacceptable. I can prevent that page break with ...
7
votes
1answer
426 views

Too much spacing between subsection and custom itemize

I have a resume I created using resume.cls. I have a custom nitemize environment in order to remove separation between items within the document itself. In the document, under one of my internships, I ...
11
votes
4answers
119 views

A question about macro matching

Consider the following macro definition, and subsequent invocation: \def\foo #1 #2 \bar{stuff with #1 and #2 goes here} \foo arg1 arg2 \bar The \bar simply acts as the terminator for \foo. This all ...
4
votes
1answer
103 views

Huge empty space

I'm a beginner at using LaTeX and I keep getting weird behaviours. For example, on the image below, I get so much empty space. Why is that ? How can I remove it ?
6
votes
1answer
275 views

How to circumvent a late \pagetotal reset to 0pt?

Below example demonstrates at the beginning of each paragraph how \pagetotal is not always reset to 0pt at the beginning of the page. This appears to interfere with my attempt to automatically clear a ...
2
votes
1answer
1k views

Nested itemize environment affects vertical spacing of parent itemize environment

I have two itemize environments, one is nested in the other. Somehow the nested itemize environment affects the vertical spacing of the adjacent item of the parent itemize environment. As you can see ...
4
votes
1answer
132 views

ConTeXt: Wrong mathmatrix spacing between rows in startalign-environment

When using a mathmatrix (e.g. for vectors) in between \startalign and \stopalign, the spacing between rows becomes too large. I'm running Mark IV and the problem exists on live.contextgarden.net as ...
3
votes
1answer
111 views

How to measure the vertical space that was typeset without placing it into an environment?

I would like to achieve automatic clearing of a {floatingfigure} at the beginning of a new \section for texts automatically created by Pandoc. For this to work, I am in need of a way to measure the ...
5
votes
1answer
109 views

Spacing only works in xeCJK for Chinese and Japanses but not Korean

\documentclass{article} \usepackage{xeCJK} \setCJKmainfont{Batang} \CJKspace \begin{document} 一二三四五 一 二 三 四 五 あいうえお あ い う え お 일이삼사오 일 이 삼 사 오 \end{document} I'm trying to write something ...
11
votes
1answer
124 views

Aligning two fractions in the split environment

I have two equations: \begin{equation} \begin{split} d_1 & =\frac{aaaaaaaaaa}{b}\\ d_2 & =\frac{aaaaaa}{b} \end{split} \end{equation} I want the fraction lines to ...
3
votes
1answer
747 views

How to make LaTeX (tabu, hhline) tables keep rowheights?

i want to typeset a long table across several columns / pages and want the table rows to keep register. my code looks basically like this: \documentclass{book} \usepackage{pagegrid} ...
5
votes
1answer
914 views

Remove the space above/below itemizes and descriptions

In the document below an itemize is nested in a description and I want to have no vertical space between the entries. I removed the space above and below of itemizes and descriptions using ...
5
votes
1answer
415 views

tcolorbox: vertical spacing in a tcolorbox

How can I obtain the same vertical spacing above and below the line of text in a tcolorbox? \documentclass{article} \usepackage[most]{tcolorbox} \newtcolorbox{questions}{ colframe = red } ...
3
votes
1answer
131 views

How can I redefine a list item to normal text in order to enable proper wrapping?

Consider the following LaTeX code, the bottom half of which was generated from MarkDown by Pandoc. \documentclass{article} \usepackage{mwe} \makeatletter ...
5
votes
2answers
361 views

Measuring line length, using \hfill to justify text, wrapping and right justifying if space too small

I am a lecturer and have an issue when compiling test and exam questions. The questions will be in an enumerate environment and look something like this, where the marks shown in brackets are right ...
8
votes
1answer
275 views

Suppress \unspace command to force biblatex to add spaces (DIN 1505)

DIN 1505 requires breakable interword spaces in front of punctuation. A bibliography entry is supposed to look like this: Lastname1, Firstname1 ; Lastname2, Firstname2: Title : Subtitle [...] ...
4
votes
2answers
131 views

Different footer position in different pages

I am creating document with headers and footers. The problem that I faced with is that I cannot get nice view of first and the other pages: different spacing is set. See my code and picture. ...