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

Wrong vertical spaces using bibentry within beamer

I would like to give some references using the bibentry package in a beamer presentation. But sometimes, e.g. if the list of authors spans over multiple lines, there is a wrong vertical space in the ...
0
votes
0answers
15 views

how to use special letters in bib file properly? [duplicate]

Some author's name contains special characters like "ł" in Szałowski. The latex code for "ł" is \l. But if I write the name in bib file as Sza\l owski, the the name contained in the output pdf's ...
9
votes
1answer
106 views

Why does amsmath define \mspace? \mskip seems fine and simple enough

amsmath.sty defines \mspace as follows: \newcommand{\mspace}[1]{\mskip#1\relax} What is the purpose of this definition? amsmath.pdf says that \mspace is the "equivalent of \hspace for math mode ...
0
votes
0answers
27 views

Write $ in latex in the final pdf file [duplicate]

Dear i'm writing a code on latex with codes retrieved from R. As you may know, the symbol $ is inserte in R statistical software. At the same time it is used to represent equations in $. This is the ...
3
votes
1answer
58 views

How can I ignore spaces after todo items?

Consider the following (xpatch-fu from http://tex.stackexchange.com/a/68741/17423) \documentclass{article} \usepackage[marginpar]{todo} \usepackage{xpatch} \makeatletter ...
5
votes
2answers
82 views

Best way to deal with overfull inline listings

I am typesetting inline code listings using the listings package. Since I'm using C# syntax, oftentimes listings contain long words (type names/variable names). Since words in listings won't be ...
1
vote
2answers
127 views

How to remove white space above and below Tikz figure

I used GMS package to write a maths book, and used Tikz code genrated by Geogebra to draw the image. The problem is there are too much white space above and below Tikz figure, as in the following ...
4
votes
2answers
67 views

Underfull \hbox severe issues

I relaize this has been posted before but I just can't understand the nature of the problem, I hope some of you can help me with this. This is my code from line 99-174. Compiler errors are below the ...
5
votes
2answers
116 views

Manually break lines like auto-breaking in lstlisting

I would like to decide where the long line should break, but with actions pre-/postbreak and without advancing in line numbering. I've tried that one: \documentclass{article} \usepackage{color, ...
5
votes
0answers
46 views

Hightlight specfic digits within siunix's \num

I would like to highlight specific digits in a number. Since the number is large I would like to use \num{} from the siunitx package. Of course I can do it manually as in the MWE below, but was ...
5
votes
1answer
57 views

Correcting (removing) adjustwidth's vertical spacing

Consider the following example that uses changepage's adjustwidth to set a single paragraph at 80% of the text width (on the left). Compare this to the use of \parshape (on the right): ...
3
votes
1answer
46 views

Make a command start new line in a list if it is not currently at the end of another list

I am trying to typeset a structured proof as demonstrated by Leslie Lamport in his paper How to Write a 21st Century Proof. In particular, I am trying to typeset Figure 3 (shown below). My code and ...
2
votes
0answers
25 views

TOC: Distance between title and text [duplicate]

Original Question In scrreprt the distance between title and content of a TOC is larger than the distance between a regular chapter title and the text body. Does this make sense in terms of ...
7
votes
1answer
69 views

Fixate document length to n pages

I often find myself squeezing documents to meet ensure the final document is below some set length. I often do this by cutting whitespace, enlarging pages by a line height, etc., and of course by ...
3
votes
2answers
60 views

vertical spacing between subfloat

I am using subfig package. Is it possible to reduce the spacing between two sufloats one below the other? I couldn't find anything in the documentation.
2
votes
2answers
39 views

Regarding groupnotation and spacing [duplicate]

(G, *) is certainly an acceptable notation for a group. However, I prefer the notation . As you can see, the distance between the letters and brackets are uncomfortably long. Is there a way to shorten ...
2
votes
2answers
76 views

Minipage make different space between tables

I have the following problem. I use a minipage to show two table next to each other. As you can see in the figure the first two rows of the tables are okay, but the thrid has a problem with the ...
3
votes
1answer
101 views

Figure overlaps Table

When placing a table then a figure, the figure overlaps half the table.. Here is what the tex looks like: \begin{table}[h] ...
3
votes
2answers
147 views

Getting less space in “$V$,”

If I think there's too much space between the $V$ and the , in $V$,, what's the best way to reduce it? It seems safe to use \kern and not safe to use \hspace, since if you use \hspace the line might ...
7
votes
1answer
113 views

Automatic line breaking and \hfill

I work on a CV and I would like to write some content (e.g. conference information) on the left side of the page and a date on the right side of the page. Because the content on the left side might ...
4
votes
1answer
74 views

Adding Non-breaking space after single character in text mode

Is it possible in LaTeX (2e) to create macro or other processing command that will add non-breaking space after single character in text mode? Example: A new example here will add a "tilde", after ...
0
votes
0answers
91 views

Change paragraph spacing without messing up the rest of the document

If I use \setlength{\parskip}{1cm plus4mm minus3mm} Or change the lengh of parskip in anyway, it not only changes the space between paragraphs, but also the space before and after equations, the ...
3
votes
1answer
39 views

Why does inserting a space with {} only work some of the time?

I was just trying to customize my footnotes and noticed some strange (to me, at least) behavior. Usually, if I'm inserting a one-character white space I'll simply insert a pair of empty curly braces ...
3
votes
0answers
60 views

How can I obtain the same vertical space between the chapter number and the chapter title?

How can I obtain the same vertical space between the chapter number and the chapter title for all chapters? The space between the chapter number and the chapter title reduces when the title goes on ...
8
votes
2answers
108 views

Defining the minimal amount of space around an operator

How do I define the minimal (and possibly maximal) amount of horizontal space around an operator? Something similar to wrapping the operator with \,s. Here's a picture: And a minimal example ...
3
votes
2answers
130 views

Uneven space between bibliography entries using flushend

I'm having problems with uneven spacing between bibliography entries. As seen in the attached screenshot, the space between entry 4 and 5 is much smaller than the rest of the distances. This makes the ...
13
votes
1answer
111 views

How can we detect that we are right after display math mode? (for vertical spacing)

I need a "\smartmedskip" feature/macro in plain TeX which is in usual identical to \medskip, however, if we are right after display math mode, then it should be just "disabled", i.e. it should then ...
5
votes
1answer
124 views

Fixing vertical spacing after \captionof as a custom caption

I'm trying to get a single caption after two columns of code. For two columns, parcolumns is the only method I've found that allows a page break in the middle and is my current favorite. Using ...
10
votes
1answer
83 views

How to automatically put a space after the first parenthesis in f(x) g(y)?

When I write \documentclass{article} \usepackage{mathtools} \DeclarePairedDelimiter\p{\lparen}{\rparen} \begin{document} \[ w = \int f\p*{x} g\p*{\frac{y}{2}} h\p*{z}\ dx \] ...
4
votes
1answer
57 views

Why do the braces in f{\left(x\right)} affect the output? [duplicate]

Why does f\left(x\right) result in more space before the ( than f{\left(x\right)}? i.e. Why does putting extra braces suppress the space?
5
votes
2answers
129 views

Spurious [?] vertical space introduced by multicols

In the example below, you'll notice, in the first box, a slight spurious vertical space before the text actually starts, and probably introduced by multicols. Do you know how to get rid of it? ...
4
votes
1answer
61 views

Double slashes close together with resizing

I basically want this symbol, but I want it to resize properly: While X/\mkern-6mu/H looks good, when I try to resize using \biggl, then the horizontal space between the two slashes becomes very ...
3
votes
1answer
54 views

Unwanted extra lines appearing in bibliography

When I compiled a very lengthy paper with a lengthy bibliography, I noticed that at some places in the bibliography, an extra line had been entered between entries: I tried to cut down the document ...
5
votes
1answer
83 views

ConTeXt: Font change shifts column content

Background I would like to place balanced itemized lists inside a two-column layout. Problem Changing the font affects the balanced layout; the fonts are: Chivo Gentium Basic Code The ...
3
votes
1answer
50 views

Automatic non-breakable spaces?

Very often I have to manually add non-breakable spaces to make things look better. For instance: see~\cite{Bla98} for all~$x$ see Section~\ref{sect:bla} It looks specific enough so that it could ...
5
votes
1answer
37 views

Using \newcommand to format numbers/strings according to a pattern [duplicate]

I'm an aspiring LaTeX user and have so far managed the first steps and created my first few documents. Coming from a programming background I've been wondering how you could use \newcommand to create ...
3
votes
1answer
56 views

Spacing text in table cells

How do I to space these two cells on this way? And not on this way: Code: \begingroup \setlength{\LTleft}{-20cm plus -1fill} \setlength{\LTright}{\LTleft} ...
4
votes
2answers
78 views

Spacing between subfigure and subcaption

Consider the code below. I'm attempting to add space between the subfigures and their respective captions by modifying subfigcapskip (I've also tried skip, aboveskip, and captionskip), but I'm not ...
7
votes
2answers
113 views

Align equations with conditions

I am using the following equation with boundary conditions, I would like to position the equation centrally aligned and would like to keep the boundary condition to the right. But the equation is a ...
5
votes
2answers
61 views

removing space after first hline of tabular

How can I either remove the space after the first hline of the right tabular (the second tabular in the following code) or if that is not possible, what kind of value do I have to pass to the ...
3
votes
3answers
125 views

Fit equations as same size of the text fonts

An inline equation is written with the sentence appears, It can be noticed the line spacing has been locally increased for that particular sentence containing the variable E. How to shrink the ...
4
votes
1answer
39 views

Altering vertical space between lines of one breqn (dmath) equation

The breqn documentation says that It also makes it possible to specify different vertical space values for the space between lines of a long, broken equation and the space between separate ...
3
votes
2answers
66 views

Variable column spacing in a table

I have a relatively complex table with quite a few sub headings. I am trying to adjust the column spacing so that the separate "groups" are more visible. Here is a bit of my current table: ...
5
votes
4answers
105 views

Multiple alignment points in equations and no curly brackets for correcting spacing

Consider the following example: \documentclass{article} \usepackage{amsmath} \usepackage{siunitx} \begin{document} \begin{alignat*}{5} &\text{Honning:}\qquad ...
5
votes
2answers
150 views

Unit spacing with siunitx in an equation

I'm just starting to get to grips with the siunitx package, but I've noticed that there seems to be some issues with regards to unit notation spacing in an equation. With siunitx it is possible to ...
5
votes
2answers
87 views

Removing gap above “Chapter X” introduces problems with the text formatting

I am trying to get the page layout of my thesis sorted out. I am using fancyhdr to give me the page number in the top right and chapter name in the top left with a horizontal rule under, and sectsty ...
4
votes
1answer
72 views

Decrease horizontal space in moderncv's cvdoubleitem

When labels are too small, the \cvdoubleitem macro in moderncv creates way too much space between the first description and the second label: \documentclass[11pt,a4paper]{moderncv} ...
4
votes
1answer
123 views

Moderncv: Extra vertical space after cvitem

Extra vertical space is produced after \cvitem and before the next \section. Is there a better way to fix this than to use \vspace*{-6mm}? The problem is shown below, between the "Skills" and ...
4
votes
1answer
51 views

Too much space below figures [duplicate]

I am trying to use graphicx package to include figures. However it seems to leave too much space between the figure and caption. My LaTeX lines are \begin{center} ...
2
votes
1answer
56 views

How to increase space between two columns in moderncv

I was able to increase width of the column but I want to increase the space between \cventry that is date and the contents.