{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
2answers
2k views

How to align text within an algorithm environment?

I wish to duplicate an effect I've seen elsewhere (image below) in which text not necessarily at the beginning of a line is aligned with text elsewhere. I don't know which environment is suitable, ...
3
votes
1answer
107 views

Questions about chapter section and their formation

Hello, everyone, I want to arrange the chapter and section as the picture shown and The font should be Times New Roman, 12 point, could anyone give me some tips.
3
votes
1answer
467 views

How to customize a brief table of contents generated from tocloft and shorttoc into one page?

I am writing a book with over 20 chapters using LaTex. I generated the detailed Table of Contents with the package tocloft, and a brief TOC with shorttoc. Right now, the brief TOC has two pages but I ...
5
votes
2answers
3k views

How to reduce Program-Listing line spacing in LyX

Using LyX 2.06. I have a standard document with 1.5 line spacing, but I want my program listings to use 1.0 line spacing. Is there a simple way to do this?
4
votes
1answer
342 views

No spaces in a font created with Metafont

Finally I got my font created with Metafont, to appear on a PDF using LaTeX. Using the example in this answer. The problem is that I have no space between words. How can I get spacing between ...
1
vote
0answers
80 views

marginfix package interferes with title element vertical placement in memoir

Possibly in other classes as well. Typeset the below and everything is bunched up at the top of the page: \documentclass{memoir} \usepackage{marginfix} ...
3
votes
2answers
376 views

Q: How to globally add space before subsubsection* headings in Lyx?

How do I set the document to add extra space above each subsubsection*? Does one redefine the subsection command in the preamble, like the following? Formatting section titles I am using KOMA ...
7
votes
2answers
3k views

Copy-pasting leading whitespace and blank lines in listings package (pdf) [duplicate]

I'm trying to use the listings package to typeset some code in a PDF document, in a way that allows me to copy-paste the resulting code. This mostly works well, if ...
4
votes
2answers
190 views

How do I remove unnecessary spacing before and after a table?

Example: Let A = \{$\alpha$,$\beta$,$\psi$\} be a set operates on $\star$ then \begin{table} \centering \begin{tabular}{l|lll} \textbf{$\star$} & \textbf{$\alpha$} & \textbf{$\beta$} ...
2
votes
1answer
194 views

Non-uniform spacing in table of contents (XeLaTex book, tocloft, Indic script)

I am typesetting a book in XeLaTex (TexLive 2012 on Windows) in Sanskrit. I am using the tocloft package for table of contents. I want the font size to be bigger in the TOC, for which I use the ...
3
votes
1answer
521 views

form field alignment with a table cell

Is there any way to horizontally centre the checkboxes in the following MWE? Also is there any way to adjust the size of the checkboxes so that (i) they do not touch the cell border, and (ii) they are ...
3
votes
2answers
284 views

Verbatim has different margins than BVerbatim

I am changing some Verbatim blocks to BVerbatim to avoid page breaks in the middle of some short source code examples: \documentclass[a4paper]{book} \usepackage[T1]{fontenc} \usepackage{fancyvrb} ...
2
votes
0answers
111 views

Change spacing for lists in LyX through template

I want to change the vertical spacing of a list in my resume. I am using the moderncv style file through LyX in Ubuntu 12.04. One of the list environments defined in the moderncv is Computer ...
1
vote
0answers
153 views

Configure CV in LyX [closed]

I would like to ask help in configuring my CV in LyX. I am using moderncv style with LyX in Ubuntu 12.04. I shall say that I have found a close solution to my problem in this post on blank spaces, ...
23
votes
1answer
750 views

microtype and the French way of typing text

In French, we put spaces before characters : ! ; ? when we type the text. For instance, we will type Que fait-on ? On met un espace avant les deux points : comme cela. If I do so and use microtype, ...
3
votes
2answers
127 views

Determining spacing by a number that is a multiple of a counter

I have \hspace and I have a stepcounter xyz \documentclass[12pt]{article} \usepackage[top = 1in, bottom = 1in, left = 1in, right = 1in]{geometry} \usepackage[T1]{fontenc} ...
4
votes
1answer
243 views

longtable package: Stretch height of last row on page

Consider the following code \documentclass[a4paper]{article} \usepackage{longtable} \usepackage{lipsum} \begin{document} \begin{longtable}{|p{5cm}|} \hline \lipsum[5] \\\hline ...
3
votes
0answers
29 views

Restore standard horizontal spacing for colored symbols in mathmode [duplicate]

I have to highlight some symbols in red, something like this: \documentclass{article} \begin{document} $2+2+2=6 \textcolor{red}{\to} 4+2=6$ \end{document} However the colored formula horizontal ...
3
votes
2answers
195 views

Mysterious whitespace around table

I've been trying to remove the whitespace around my table 1 but without any luck. I have attached the MWE, can someone please help me to take a look, thanks! \documentclass[11pt]{amsart} ...
2
votes
2answers
719 views

How to create a double underscore with no space in between?

I want to add a link to my link of citations, and in the link there are several places where there are two consecutive underscores. Using the usual _ for an underscore, I did this: \_\_ ...
4
votes
1answer
171 views

Making integrals look prettier with negative spacing for publication

How should I write definite integrals for publication? Examples: or or I am not sure about how to write the limits correctly. How should I write definite integrals for publication?
16
votes
2answers
689 views

Strike through text without affecting text box size

I want to strike through text with a simple line. Unfortunately, in the solution(s) I found, the text always has a larger distance to the next line (see example). How can I strike through text ...
5
votes
1answer
876 views

Combine single and double space

I need to write a bibligraphy with single space for each entry, but double space between entries, before inserting the bibliography I write \begin{singlespace} which makes the whole thing single ...
6
votes
4answers
533 views

How to repeat text

I get interesting errors with the following macro. Mostly it works, but I get extra spaces after \noindent (but not after \newline). I tried using \loop or \whiledo (from ifthen) but get stack ...
5
votes
3answers
2k views

Configuring footnote position and spacing

(A) How do I shift the footnote vertically down 1 mm or so? (B) I want to introduce some additional space in between one foot note and the next one, and between the first footnote and the line that ...
6
votes
1answer
163 views

Alignment of Part and Chapter headings text

Following this question of mine, I try to make the start of part and chapter title headings "vertically parallel" (right term?). Example of what I get: ("." not visible only to show space ...
3
votes
1answer
85 views

How can I use \vfill in a lstlistings environment?

I'd like to do something like this: \begin{lstlisting} public do(int whatever} { \vfill } \end{lstlisting} So basically, I want a method definition and then add spaces in the body of the method ...
4
votes
1answer
138 views

Using binary operator in a sentence

\documentclass{article} \usepackage{graphicx} \begin{document} \title{GROUP THEORY} \maketitle \section{Algebraic System} It defines on binary operator \star over a set A such that A \star A ...
6
votes
2answers
6k views

Add space before and after tabular environment

The tabular environment does not add any vertical space before or after it. This looks odd, in my view. What is the "correct" or "best" way to add some space? Also, why is there more space after the ...
1
vote
0answers
127 views

Spacing within a box, relative to the page

I am attempting to place a textbox precisely 75mm from the top edge of a page (to correspond with a cut-out on the cover). On printing this out, I noticed I was getting positioning problems, so got ...
2
votes
1answer
100 views

Spacing rows in a table

I am having a very difficult time typesetting this Cayley table. When I use this code, it gives me an error and tells me that I am using an illegal unit of measure. I know I do not have the correct ...
10
votes
3answers
238 views

How to provide more horizontal space between cases in a system?

I have the following ugly system: This is my LaTeX code: \newcommand{\Aaa}{\begin{bmatrix} 1 & 0 \\ 0 & -1\end{bmatrix}} \newcommand{\Ba}{\begin{bmatrix} 0 & 1 \\ -1 & ...
3
votes
1answer
127 views

Vertically stack parboxes in a cell of a table

I need to insert an enumerate environment in a table. Following hints from this page: itemize in a tabular environment, I used \parbox to prevent error (Putting itemize environment in a tabular ...
5
votes
3answers
5k views

Removing extra space after itemize environment in longtable in memoir

I have a macro that creates itemize environment in it. The issue is that I have extra space after the itemize environment when used in longtable. How to remove the space? \documentclass{memoir} ...
4
votes
1answer
476 views

Removing space in itemize environments

I have a macro that has itemize environment in it. I'm trying to remove the spaces between items, preceding, and following texts with control commands, but I still have spaces. How can I remove them? ...
2
votes
1answer
1k views

scrartcl and fancyhdr: Strange spacing behaviour

Consider the following piece of code: \documentclass{scrartcl} \usepackage{ifthen} \usepackage{fancyhdr} \pagestyle{fancy} \lhead{} \chead{ \ifthenelse{\equal{\thepage}{1}}{}{ ...
3
votes
2answers
116 views

Stacking floats vertically

How do I stack say three floats on top of each other vertically such that the height of each plot is approximately the third of the text height of the page? (i.e. so they all fit including captions ...
4
votes
3answers
117 views

When using nested enumerates, how do I have longer labels start at the same place, after the label of the first environment?

I would like to be able to use long labels in a nested enumerate environments without having them overlap with the previous level. I don't really know how to properly explain this, so here is a MWE ...
12
votes
1answer
120 views

Tight connection of \vbox es

I don't understand why TeX put a thin whitespace between my two vertical boxes: \documentclass{article} \begin{document} \vbox to 1cm {\rule{1cm}{1cm}} \vbox to 1cm {\rule{1cm}{1cm}} ...
5
votes
3answers
142 views

How do I remove the added space with default labels on nested enumerate environments

I would like to remove the added space before nested enumerate environments, when using the default labelling system. Note that I would like to make this change globally, rather than having to do it ...
0
votes
1answer
152 views

How to use two parskips?

I'll go straight to the point. I'm using the parskip package, in particular with this option \setlength{\parskip}{0.3\baselineskip plus2pt minus2pt}. This code: Lorem ipsum dolor sit amet, ...
3
votes
1answer
115 views

Margin of Titles

I'm learning LaTeX and there is a problem i encountered: On the top of a new page a huge margin appears, though I declared a top margin of 2 cm. How can I fix this?
3
votes
0answers
251 views

Color Gradient between block and blocktitle leave a white line [closed]

![The color gradient between the block title and block body in beamer leaves a small white line to the far left of where the color-gradient bar used to be I used these four lines at the beginning of ...
2
votes
2answers
1k views

Moderncv package with multicols set vertical space

I am currently finishing my CV using the moderncv package. To save space I decided to fit all my interests in a multicol environment with 4 columns nested inside an itemize environment. Unfortunately, ...
5
votes
1answer
166 views

How to control the spaces before and after itemize(listing) environment inserted in a table?

I have a macro that inserts itemize environment in a longtable. The issue is that I have big spaces between top and bottom of the itemize environment. How can I control the spaces? ...
5
votes
1answer
563 views

Why won't \hspace work?

I'm trying to get a block of text to be aligned 2.55cm from the left of the page. I'm sure there's a better way of doing this, but it would be nice to get an answer anyway. When I type: ...
3
votes
3answers
115 views

How to shorten the space of the entry in a table?

My code is as follows, \documentclass{article} \usepackage{amsmath, amssymb} \usepackage{setspace} \usepackage{ulem} \usepackage{float} % fix the table \usepackage{bold-extra} ...
6
votes
1answer
377 views

How to remove the space between “pp.” and the page numbers

I'm trying to create a preamble that matches the "interesting" form of Harvard that my University insists on using. I'm almost there but need a method to remove the space between pp. and the page ...
0
votes
0answers
63 views

Footnote horizontal spacing of text within footnotes [duplicate]

I'm having a problem with some of my footnotes. Many of them which span multiple lines have this odd spacing between words. I've attached a screenshot of a PDF for a better explanation. In this you ...
2
votes
1answer
133 views

About the distance between the caption and the main body

I found that there is too much space between the caption of the figure and the main body. (The caption is below the figure). I don't know how to reduce the distance among them? the code I use now is ...