{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
1answer
575 views

Question on top margin in chapter page

In my LaTeX template, there is a page contained the chapter part that is too far from top of the page like the following: My LaTeX file uses amsbook: \documentclass[11pt,a4paper]{amsbook}. This ...
3
votes
1answer
286 views

Overset placement is uneven

I'm using this code to show that one element of the equation is greater than zero and the second element is less than zero. \begin{align} \overset{+}{\pi_{i}} + \overset{-}{w_{g}(S)} > 0 \end{...
2
votes
2answers
277 views

Changing space between atoms in Chemabove

Consider this example: \documentclass{memoir} \usepackage{fontspec} \usepackage{chemfig} \usepackage{unicode-math} \pdfmapline{+arial arial <8r.enc <sAarial.ttf} \begin{document} \...
6
votes
2answers
2k views

Several lines of formulas to the left of one curly brace pointing to equation number

How to make several lines of equations under one curly brace from the left side, such that it point to a reference number. Now I do something like this: \begin{align} \left. \begin{array}{ll} a = b +...
3
votes
1answer
1k views

Text in moderncv’s left column overlaps with right column

I was trying to compile a Resume and I am not able to figure out why only the second line has superimposed text. The below is the code. \documentclass{moderncv} \moderncvtheme[blue]{casual} \...
3
votes
2answers
1k views

Reduced word spacing when wrapping text in a cell

I'm wrapping text in a table, some of the cells have 4 words in, wrapped to have two in the first line and two in the second. LaTeX introduces a large space between the first two words so that the ...
3
votes
1answer
449 views

how to set the \quad space between the equation and equation number with centered

How to set the \quad space between the equation and equation number with centered output i.e equation will be centered the output should be like below A + b (1) A + b (2)
4
votes
1answer
7k views

Adding tabs between two parts of one equation

I need to add a tab between after the semicolon in the equation shown below: \begin{equation} Thr = 4\sigma_n;\sigma_n = median \left(\frac{|x|}{0.6745}\right) \end{equation} How can I do this?
8
votes
1answer
744 views

Add vertical space before and after framed-theorem environments

I want my theorem-like environments to be framed, as it's an effective way of making them stand out from the main text. According to Gonzalo Medina's answer to the question box around theorem ...
4
votes
2answers
356 views

Inserting automatic vertical space between blocks when \obeylines is active

Sometimes as I write a manuscript in LaTeX for speaking, I want to format parts of it as \obeylines and \obeyspaces permit, so that a single coherent thought is expressed compactly on each line, and ...
6
votes
2answers
344 views

Inline math spacing and varying interword spacing

Say I want to reduce the space between two letters in math mode by 2/18 quad. Going all Die Hard 3, I put together 2 -3/18 quad \! and add 4/18 quad with \:. The problem is, though, that apparently ...
1
vote
1answer
376 views

Global typewriter tab stops every 1/2 inch

What is the best method, please, for setting up the equivalent of global (document-wide) typewriter tab stops every 1/2 inch? I'm reluctant to set up a tabular definition \begin{tabbing} at the ...
7
votes
2answers
2k views

Indent Theorem like \hangindent, but for multiple paragraphs

I would like to create a theorem style which indents the theorem exactly like a \hangindent would do, expect that the indention should continue for all paragraphs of the theorem. For example: ...
1
vote
1answer
708 views

Strict \titlespacing without glue

Problem Description TeX seems to adjust the vertical space in a 2-column document, even though I have specified that no stretching or shrinking is to occur using \titlespacing. A short visualization ...
4
votes
1answer
3k views

\titlespacing* defaults using the compact option

Using the titlesec package with the compact option, what are the \titlespacing* defaults (for \section, \subsection, etc.) for the article document class? (I have the standard defaults from the ...
3
votes
2answers
267 views

Changing the vertical spacing before and after the quoting environment when using parskip

I'm working with the quoting environment but I can't figure out how to adjust the vertical space before and after it. I would like the environment to be indented on either side like it is but not have ...
4
votes
2answers
864 views

Table too tall for page

I have a table that is slightly too tall to fit on the same page as the section header. I would like to know the best way to make the table fit, without affecting margin spacing elsewhere in the ...
2
votes
2answers
257 views

The multi-line equation with explanation is too wide

The original question provides a good answer for how to add explanations to the multi-line equations. However, my problem is that the explanations have too long space to the corresponding equations, ...
4
votes
1answer
1k views

Currivita - horizontal distance between bullet and content in cvlist

I am using cvlist to itemize my content as follows: \begin{cvlist}{HEADING} \item[1] blah \item[2] blah blah . . . \end{cvlist} However, the gap between the numbers (such as 1,2 etc) and the ...
3
votes
1answer
136 views

Inter-word spacing issue with long code tags

I'm having an issue with the Sphinx Documentation Generator, you may be asking what this has to do with LaTeX. Well, we were hoping to use it for our specification documentation which needs to be ...
8
votes
1answer
7k views

Adjusting left/right margins of a wrapfig

Is there a (simple) way to adjust the white space to the left or right of a wrapfigure? I'd like to reduce the whitespace on the left side of a right-floated figure. Adding \hspace moves the figure ...
2
votes
1answer
974 views

How can one produce spaces of arbitrary (fixed or relative) width that (do or don't) linebreak?

Adobe InDesign lets me insert a wide variety of spaces: over half a dozen spaces that allow for a line break (let's assume for the purpose of this question that they disappear in case of a line ...
3
votes
1answer
1k views

Spacing between equation and text inconsistent due to large equations

I've read through answers to similar question but I still have the same problem. Essentially, I have some large equations and they are in the form \documentclass{article} \usepackage{amsmath} \begin{...
5
votes
2answers
112 views

How to get autobreaking with sequential tables

So it appears that \hspace is not breakable, but is if it is followed by \allowbreak. Alternatively you can use \hskip1.0em as that is breakable. So, if my understanding is correct, then why do the ...
3
votes
2answers
3k views

Too much vertical space when displaying formulas in LyX

When I display formulas in LyX, it leaves way too much space between the text. The commands I have used are Insert -> Math -> Display Formula and Insert -> Math -> AMS multline Environment. However, ...
0
votes
1answer
6k views

How do you create spaces between Images?

How do you create spaces between Images? I have tried using the commands // after paragraphs that precede images but this only produces a space between the paragraph and the image. I have also used // ...
7
votes
4answers
220 views

Justify long line with no spaces but a lot of hyphens

% !TEX TS-program = xelatex % !TEX encoding = UTF-8 Unicode \documentclass[11pt]{memoir} \usepackage{fontspec} \usepackage{showframe} %%% Book Layout %%% \setstocksize{4in}{5.75in} \settrimmedsize{...
3
votes
1answer
154 views

How to control spacing in ToC?

This refers to my previous question How to put image in table of contents? \documentclass{article} \usepackage{etoolbox,graphicx}% http://ctan.org/pkg/{etoolbox,graphicx} \usepackage{xcolor} \...
3
votes
1answer
121 views

Text inside Math

I tried doing this: \usepackage{amsmath} $x^2 \text{something} y^2$ but that just came out like: x^2somethingy^2 Anyone know how to fix this issue? I need to have text inside my math ...
2
votes
1answer
148 views

Vertical spacing within float

I have a table in which I want to include two tabular elements one below the other (and justified right). Right now I have this code, that displays exactly what I want.. I would like to add some ...
2
votes
2answers
210 views

Unable to reduce top whitespace in a list

I wanted a really compact list, so I have defined a custom environment to achieve the same. However, I am unable to get rid of the whitespace at the top of the list beyond a certain width. I tinkered ...
6
votes
1answer
437 views

Math spacing in TeX Gyre Pagella

The spacing in the following output looks off to me. In particular, the integral symbol has not grown to accommodate the height of the integrand, the spacing in the fraction seems large, and the ...
5
votes
1answer
3k views

How do you remove the vertical distance between references in lyx?

Using LyX, a BibTeX file and the unsrt bibliography style. The program automatically leaves an empty line between each reference, wasting lots of space in the process! Is there any way to force LyX ...
1
vote
0answers
96 views

spacing before scope resolution operator [closed]

I'm new to LaTeX and I have encountered a problem with the listings package, I have a space before the :: operator of C++ . after reading lstlisting with c++: spaces around scope resolution operator ...
2
votes
1answer
323 views

Make a list with uniform spacing regardless of the characters and number of text lines, possibly with minipages or a table

I am trying to make a list with two columns, where I can used different font sizes and have single- or multi-row columns, while adhering to the page margins and aligning the text properly regardless ...
11
votes
1answer
6k views

Small default distance between the caption and the table

By default (in the article class), a table caption (without letters with depth) is very close to a table with two or more rows. Only if the table has one row then the caption and the table will be at ...
3
votes
1answer
1k views

Removing small gaps between lines in LaTeX lstlisting output

Whenever I set a somewhat dark background color in a code listing it becomes obvious that there are small line separations, these of course stay white making the overall appearance not desirable. My ...
2
votes
1answer
201 views

Inline math: Line breaking and stretching only in specified places

Is it possible to have document-wide solution for all inline formulas was breakable and stretchable only in pointed positions? Like $longformula1 \/ longformula2 \/ longformula3$ was able to break ...
3
votes
1answer
591 views

Top-aligned table cells with different font sizes and controlled spacing

I am trying to achieve a table where a few things have to work simultaneously. Several of these things have been discussed before, but I have been unable to make everything work at once (and some ...
0
votes
1answer
367 views

Need help making sure a given thesis template is in line with my uni's style requirements (margin, spacing, font, etc)

I'm still in the process of getting Sunil Patel's Thesis Template.zip primed for writing. I've just overcome the unicode trouble and now need to make sure the template's in line with my university's ...
21
votes
2answers
3k views

When is it good practice to use \unskip

One sees in source2e the command \unskip used in various places. My understanding in general terms is that the macro is the equivalent of \ignorespacesbehind. Where would it be recommended to use \...
2
votes
1answer
153 views

Combining spacebelow with shaded parameter in thmtools package. Bug?

In the following example the spacebelow parameter is ignored. If you comment out the shaded parameter, the space is considered. Is it possible to use both parameters spacebelow / shaded? \...
1
vote
3answers
979 views

Add more space between cells in a table [duplicate]

I'd like to add more space between the cells of the table below. I've tried the command [2ex] after \\ but this changes the vertical alignment, which I'd like to be centered. \documentclass{article} \...
2
votes
1answer
198 views

retain space before \section heading in Memoir class at top of page

I am using xelatex and the Memoir class. By default, the empty vertical space before the section heading does not show after a pagebreak. How do I modify it if I want it to show instead, even if it ...
1
vote
0answers
169 views

Avoiding newline in latex report [closed]

I am writing one auto report in which I need to have some breakline and vertical spacing. I use newline but sometimes it is in horizontal mode. So I have to use \leavevmode before it. \leavevmode \...
4
votes
1answer
237 views

Add \par only if last paragraph did not end with displayed math

Background: I have named "sections" (sections for rest of this question) which are conditionally displayed or suppressed based on parameters. To simplify the test case below, these are controlled by ...
15
votes
1answer
8k views

Size of TikZ ellipse node

When I set the minimum size of an ellipse in a tikzpicture environment, it expands into a circle if the inner content does not grow as large as the ellipse shape itself. Is there any way around it? \...
4
votes
2answers
122 views

Why is the spacing changed through {}?

In the last time I used TikZ and i was a bit surprised in the spacing in some nodes, \documentclass{standalone} \begin{document} $-\alpha \qquad {}-\alpha \qquad \underbrace{\alpha}\cdot \omega ...
19
votes
4answers
41k views

Adjusting space between array rows and columns

\documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{babel} \begin{document} % ... \[ \begin{array}{ccccc} x(1) & = & \frac{x(0)}{1} & = &...
2
votes
1answer
801 views

Glossaries list - no separating lines

I am trying to produce a list of acronyms and definitions in which each entry is at some distance from the previous one. Distance of two lines worked out of the box and I am happy with it, but it is ...