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

9
votes
1answer
184 views

How can I cleanly/efficiently insert *half* of an inter-word skip?

The title question is plainly posed—is there a simpler way of doing this (or at least one that actually works? When dealing with em-dashes (—), I've read that it's important to keep a small ...
2
votes
2answers
300 views

What is the reason to put a tilde between “p.”/“page” and the number?

When citing a page, the Biblatex manual puts a tilde between "p."/"page" and the number: \footcite[Cp.][p.~23]{Smith-2013} Why? I actually have never really googled for this and now that I have, I ...
6
votes
1answer
201 views

How do I remove the space before the first item and after the last item of an enumerate list inside a longtable?

I have several longtables in one document and they all have a fairly big gap before the first item and after the last item of every enumerate-list. Does anyone know how to get rid of that? \...
8
votes
1answer
356 views

Space generated by theorem labels (XeTeX)

With the thmtools package, combining \begin{foo}[name=bar,label=x] with the line \newtheorem{foo}{Foo} in the preamble typesets to Foo xxx (bar), where xxx is a number. After the (bar) there is an ...
4
votes
1answer
399 views

What causes this large horizontal space between two sentences?

I have a large document based on the book documentclass with text and images, and sometimes I encounter a new sentence that has a huge space after a period. It looks like this: I have attempted to ...
8
votes
1answer
414 views

\cee command (from mhchem package) doesn't allow \\[10pt]

when using \cee command (from mhchem package) within align environment, \\[10pt] doesn't work. It works in align environment without \cee. Is there a workaround? here is a MWE: \documentclass{...
13
votes
1answer
557 views

Tabs vs spaces in listings: what's the difference and should I care?

This is a follow-up question to Problem with Listings package concerning line breaking and wrong alignment. Why do I experience problems when I copy and paste code inside the lstlisting environment? ...
10
votes
2answers
541 views

Automatic non-breaking spaces in proper name initials

I need to use non-breaking spaces in proper name initials, e.g. J.~W.~Bush Any way to make LaTeX replace regular spaces with non-breaking ones for such cases? Or would I better preprocess my tex ...
4
votes
2answers
126 views

Blocks in combination with bullets spacing

I have been trying to create my second Tikz model based on TikZ: Diagram of a perceptron. I have manage to modify it based on my beginners knowledge and experimentation but the part that I am missing ...
9
votes
1answer
133 views

How to find out where additional lines fit in?

I am often confronted with the need of fitting in more content into an already quite crammed document. Given that LaTeX automatically stretches spaces to beautifully and optimally fill the pages, I ...
2
votes
2answers
74 views

Vertical Justification of Elements of Enumerate Environment?

How do I automatically vertically justify (evenly vertically space in a page) the \items of an enumerate environment? Is adding \vfill after each \item the only way to do this?
6
votes
1answer
342 views

removing extra white space between columns in a multi page, landscaped, longtable

Hi I am trying to make a table that is landscape and takes up multiple pages. I am using a longtable in landscape mode to do this. Everything compiles fine but for some reason there is a large white ...
4
votes
2answers
119 views

Beamer, philex and \hfill

I'm using the package philex for linguistic examples, and I try to put a textual element at the end of the line (right centered). I tried to use the \hfillcommand, but as the MWE will show you, it ...
3
votes
2answers
3k views

How to reduce space after authors block? (ieeetran)

I'm using \documentclass[10pt, conference, compsocconf, letterpaper]{IEEEtran}. How can I reduce the space between the authors block (with their affiliations) and the text? Right now I have: Paper ...
0
votes
1answer
175 views

Vertical spacing between sections

I would like to know how I can define the vertical space between: a previous section and the new section title; the new section title and the following text. Now it looks like both space measure ...
17
votes
2answers
381 views

Why is unskip not working here?

I'm trying to define a macro to be used as follows: \usepackage[normalem]{ulem} \newcommand{\thesis}[1]{\uline{\ignorespaces #1\unskip}} % underlining required by school - I know, I know % later... ...
3
votes
0answers
54 views

Incorrect spacing for > and < when using newtxmath and bigdelims option [closed]

I am using the newtxmath package with the bigdelims option recommended by the package documentation. Curiously, this combination appears to produce no spacing around < and > (but correct ...
2
votes
1answer
99 views

weird interpretation of vertical spacing macros in contents of lrbox / minipage / colorbox

I know I have seen this typesetting problem before, but I cannot find a solution. latex can be quite counterintuitive. All I am trying to do is to create a \panel{} header-type macro that works ...
6
votes
2answers
396 views

Fixing overfull hbox in table of contents removes too many dots

This question on the memoir table of contents has an answer that works well, however, the dots end too soon (in my opinion). Is there a way to make the dots more like the default without triggering ...
5
votes
1answer
299 views

First paragraph in environment without indent or space

I'm trying to create an environment that does not indent the very first paragraph of the text inside the environment. My latest attempt and the corresponding output are shown below. As you can see, ...
0
votes
1answer
81 views

I do not know how I change `cls` unconsciously

I use 'cls' of a conference. Two adjacent pages, one flushes right, the other flushes left. I mean the blank space of right is smaller than the blank space of left in one page. Then, the following ...
2
votes
1answer
338 views

How to preserve space when using an Overlay command in Beamer?

Into Beamer, I want to preserve the space when I replace an expression by another in a mathematics formula with the help of an Overlay command. For example, if we have in slide number 1 this formula: ...
7
votes
3answers
323 views

Removing spaces placed by \Set command around curly braces

The \Set command (from the braket package) is useful for set builder notation, but it adds spaces before and after the brackets. Compare \Set{1, 2, 3}: To \{1, 2, 3\}: Looking through the ...
5
votes
2answers
176 views

Bump right-aligned text to next line iff no room within a \savebox

This is a follow up to my earlier question Bump right-aligned text to next line iff no room. The difference now is that I need to place this formatted text within a \savebox. In my actual use case, ...
9
votes
1answer
258 views

Is it possible to make siunitx typeset exponents in “cramped” style?

I'm using siunitx to typeset physical quantities. The result is not always ideal with many exponents in my eyes, because the exponents increase the line to line distance. At least this is my ...
6
votes
1answer
770 views

Typesetting longitude or latitude followed by a comma

How do you typeset a latitude followed by a comma? Using siunitx it looks like there's too much space: \documentclass[12pt]{memoir} \usepackage{siunitx} \begin{document} At the latitude \ang{30;30;...
4
votes
2answers
115 views

Including a Table in a Figure Environment

In order to close the vertical space between this figure and table, I'd like to place the table inside the figure environment. Is that possible? %!TEX TS-program = xelatex %!TEX encoding = UTF-8 ...
9
votes
2answers
3k views

Typesetting sequence notation

I attempted to create a sequence both of the following ways: \documentclass[12pt]{article} \usepackage[english]{babel} \usepackage{amsmath,amsthm} \usepackage{amsfonts} \begin{document} $(x_j)\...
4
votes
2answers
190 views

leave blank space where author information will appear

Consider a snippet of text, the author information, that needs to be hidden for review. To allow organizing the space I would like to have a placeholder which uses up as much space as the author ...
1
vote
1answer
187 views

Formatting my basic tex report with specific spacing and font settings

Ok so I am configuring the settings of my tex file before starting my (mathematical) report and am going through my basic template and removing all packages I don't need and believe I have the very ...
11
votes
1answer
2k views

How do you remove a space before a citation in LaTeX?

I have something like \documentclass{article} \usepackage{cite} \begin{document} Blah Blah (\cite{All14}) \bibliography{Ref} \bibliographystyle{alpha} \end{document} But LaTeX keeps placing a ...
2
votes
1answer
50 views

Centering causes change in spacing

For some reason when I center the text on my page the spacing to go from single to double. Using the latest LyX I have the following text written in standard. Line 1 Line 2 Line 3 Line 4 When I ...
3
votes
2answers
534 views

Vertical space between matrices

I am writing some lecture notes in Econometrics and I want your advice on how to insert some vertical space between two matrices so the result will be easier to follow. Here is the minimal example: \...
3
votes
1answer
302 views

Latex text on both sides

I don't wanna use 64x \space to achieve my goal. I was tryin to \begin{flushleft} and \begin{flushright} bo it attempts with new line. I wanna make something like this, where arrows shows distance ...
1
vote
2answers
166 views

How to make the space under footnotes disappear?

How do I make the space under footnotes disappear? And to space over the footnote's bar? Code: \documentclass[12pt,french]{report} \usepackage{mathptmx} \usepackage{helvet} \usepackage{courier} \...
2
votes
1answer
128 views

Minitoc numeration overlaps with subsection titles

I have long minitoc numeration depth \setcounter{minitocdepth}{3}. I have a problem with it: \documentclass{report} \usepackage{newcent} \usepackage{minitoc} \setcounter{tocdepth}{1} \setcounter{...
9
votes
1answer
193 views

How to float something right even if it wraps down a line?

I have a situation where I have some data in section headings (and sometimes normal paragraphs} that needs to be: floated right not split across lines I was able to accomplish this for most cases ...
4
votes
1answer
970 views

Subfigure space adjustment — \subfigcapskip and \subfigtopskip

I want to adjust the space in a subfigure environment. Specifically, using \subfigcapskip to increase the space between the subfigure and subcaption, and using \subfigtopskip to reduce the space on ...
2
votes
1answer
102 views

Extra space (or missing) after a ref with a second digit in a bibitem

I create my bibliography as follows but after the 10nth Ref i have an extra space on the first line or a missing space on the following lines. Any idea on how to fix this? Thank you! \begin{...
1
vote
1answer
596 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
16 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
505 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 ...
5
votes
1answer
8k views

How to modify line spacing per entry of bibliography?

I am using Easy-Thesis template to write my thesis. I downloaded this template from writelatex website. I am using natbib to format my bibliography style. This generate nice layout for the ...
0
votes
0answers
30 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
84 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 \xpretocmd{\todo}{\@bsphack}{...
5
votes
2answers
252 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
2k 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
369 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 ...
6
votes
2answers
1k 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, ...
9
votes
1answer
124 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 ...