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

3
votes
1answer
119 views

chessboard: how to fit 4 pairs of diagrams in one A4 page?

I'm knew to TeX. Searching on the Internet, I was able to put the following code together, but the last pair of diagrams keeps generating a second page. How can I reduce the padding between minipages ...
0
votes
1answer
20 views

Contents section number and name clashing. Want to increase spacing [duplicate]

I am using Roman Numerals for the contents page however this is clashing with the section title as shown in the image. Is it possible to increase the spacing between these two? Many thanks in ...
4
votes
2answers
79 views

Remove whitespace above section title with image formatted with leftmargin

I am trying to remove the whitespace above a title that is formatted with leftmargin and that also has an image as part of it. The problem is very similar to this question, but the solution there does ...
0
votes
2answers
40 views

How to mix lhs2TeX code and spec lines in a single block?

Suppose I have an incomplete code block like: \documentclass{article} %include polycode.fmt \begin{document} \begin{code} somefunction :: a -> a \end{code} \begin{spec} somefunction x = undefined ...
1
vote
1answer
40 views

Remove padding at top of page

I am writing a paper using a collection of mandated styles. They add vertical spacing above things like equations and tables. However, if the item with padding is the very first item on a page, I am ...
4
votes
0answers
46 views

Why does a linebreak in minipage flow this to the next page?

I am using zwpagelayout (see this question) but if I put a minipage with a line or paragraph break, I get weird two-page output. \documentclass{article} ...
2
votes
1answer
56 views

How to center spine text with zwpagelayout

I am trying to use zwpagelayout to create a cover that I can use with CreateSpace. So far, I have almost everything working, but there is one problem. \documentclass{article} ...
5
votes
2answers
131 views

Extra vertical space inside mdframed theorem environment

I have seen several similar questions on TeX.SE of a similar nature, but none of them seem to address my precise issue. I have been working with mdframed environments for a while. I read that there ...
5
votes
1answer
124 views

Problem with spacing after \[…\] environment when using the \textcolor{} command

I'm getting odd spacing/indentation behavior when the \textcolor command is combined with the \[ ... \] environment. I did find a fix by putting % in a couple places, as outlined below, but I'd like ...
7
votes
2answers
133 views

How do I get consistent spacing around an mbox?

I am trying to typeset a formula in LaTeX with a rule name beneath it, such as the following: The code for the rule an automatically-generated mess (not necessarily using maths mode), output from ...
2
votes
1answer
80 views

Package to load in Lyx to use \quad?

I'm using Lyx software to typeset an algorithm. I'm trying to use the \quad command to indent in a loop I'm writing, yet the \quad command is not being recognized when I compile the page. I'm assuming ...
1
vote
1answer
139 views

How to make a new line without indenting?

How can I make a new line without it being indented? Here is what I have so far: \documentclass[11pt, oneside, reqno]{article} \usepackage{amssymb, amsthm, amsmath, amsfonts} \usepackage{bardmacros} ...
3
votes
1answer
62 views

Control the dots separation in math and text

I know how to control the spacing of the \textellipsis command. But I can't figure it out how to do so globally in all the versions of mathtools' \*dots. My idea is to use a global symbol … to use ...
4
votes
1answer
127 views

Adjusting spacing before and after subparagraph with sectsty

I am helping a friend that is using sectsty to format the titles in his document. How can I adjust the spacing before and after the titles, in particular the subparagraph one? (I know that titlesec ...
3
votes
1answer
81 views

Basic question on spaces

I'm trying to learn LaTeX in my spare time using "Learning LaTeX" by Griffiths and Hingham. I copied down the example code on page 6 and when I compile it there's no paragraphs. Could someone point ...
4
votes
1answer
71 views

\phantom with always correct spacing (taking into account its surroundings)

I regularly use \phantom to visually align things in my documents, and often have to manually fill in the spaces that are cut off by removing the atoms (which I don't fully understand) between the ...
3
votes
1answer
59 views

How to achieve the indentation/spacing in this document?

I have been trying for some hours to achieve the kind of arrangement of this document. http://home.uchicago.edu/klecha/klecha_cv.pdf For instance, it seems like it has two columns, one with dates ...
0
votes
0answers
45 views

How to change the spacing in algorithmcode

How could I change the default spacing in the algpseudocode environment to single spacing? Thanks for the help. (Updates: Thanks for information. I was not able to provide a MWE because I was using ...
5
votes
2answers
115 views

Typesetting a small function with Big parameters

I have a small function that needs to take big parameters. Right now I think that the function part looks too small and implicitly suggests it might be some kind of multiplication instead of an ...
0
votes
1answer
334 views

Overfull hbox too wide

Overfull \hbox (13.50009pt too wide) in paragraph at lines 149-157. 149 \begin{tabular}{rl} 151 Basic Knowledge:& \textsc{C}, \textsc{Python}, \textsc{html}, ubuntu, \\& 152 {\fb ...
0
votes
1answer
93 views

Vertical space in TOC (references entry)

The references entry has a vertical space in the TOC page, something like that How could I remove this space and make the references section just like a chapter in the TOC?? I'm using the memoir ...
2
votes
2answers
139 views

Paragraph separation with “article” document class

I'm writing a text but it seems the document class "article" doesn't allow for paragraph separation. Is there any way to force the paragraphs to have an space between (even in the abstract)? ...
11
votes
1answer
110 views

Use \index before or after punctuation?

It seems to me that you get different kerning if you use say\index{say}. than if you use say.\index{say} The following silly example is where I can see it: \documentclass[12pt]{memoir} ...
9
votes
1answer
227 views

How do I get rid of the extra blank line at the end of my listing?

I have the problem that I use a lstlisting inside an itemize. This leads to the problem of an extra line in my source code block which I'm not able to delete. I already tried nearly every parameter ...
3
votes
4answers
177 views

Remove the spaces between \times in mathmode

My problem seems rather simple but I can't manage it. I want to describe bytes in this way 0000 xxxx 0010 1xxx I tried by writing 0000 \times\times\times\times 0010 1\times\times\times but this ...
1
vote
0answers
63 views

Why is my paper shorter in LaTeX than in Libreoffice? [closed]

I typeset the same paper in Libreoffice and in LaTex. Both were in the same font and used the same (MLA) format. Why is the LaTeX version produce a PDF that is a few lines shorter?
0
votes
1answer
63 views

Too much space around quote environment

Sometimes, LaTeXput extra white lines around my \begin{quote}. I use just the basic memoir class without any customization. Any hint?
9
votes
1answer
102 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
157 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
108 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
161 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
238 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
137 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: ...
13
votes
1answer
190 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? ...
9
votes
2answers
244 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
72 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
96 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 ...
0
votes
0answers
45 views

Irrelevant spacing for equations

I have some problem with spacing. In the right column there are so many irrelevant space before and after my equations, and also after my picture. \documentclass{article} ...
2
votes
2answers
51 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
106 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 ...
1
vote
0answers
40 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 ...
1
vote
2answers
228 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
71 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 ...
16
votes
2answers
173 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
34 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
32 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 ...
5
votes
2answers
108 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
173 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
75 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
103 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: ...