{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
210 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
97 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
142 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
566 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
111 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
0answers
177 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
180 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
431 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
146 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
554 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
659 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
412 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
1k 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
147 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
78 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
109 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
4k 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
112 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
93 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
202 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
119 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
3k 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
298 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
866 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
109 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
105 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
104 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
129 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
147 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
110 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
208 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
839 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, ...
4
votes
1answer
141 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
328 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
110 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
244 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
62 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
101 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 ...
5
votes
2answers
237 views

Supress space introduced by drawing borders of nodes with tikz

When borders around a rectangular node is drawn, some space is also added, as can be seen by the example below. \documentclass{article} \usepackage[papersize={70mm,34mm}]{geometry} \usepackage{tikz} ...
3
votes
3answers
149 views

How do I create an align environment without space between cells?

For example, I would like to create a macro to draw a tableau with letters in the cells. First I create a macro to take in a tabular-like data argument, called \tableau, in which I created a \halign ...
4
votes
1answer
154 views

Spacing captions in a subfigure environment

I'm trying to use the subfigure environment to generate side-by-side images with captions, however because the images are different heights the captions come out at different heights. Also, they come ...
3
votes
1answer
353 views

How can I remove extra space after the figure, but keep it above the figure [duplicate]

Code: \documentclass{article} \usepackage[a4paper]{geometry} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \begin{document} text text text text text text text text text text text text text ...
4
votes
1answer
429 views

Adjusting spacing on chapter heading for all sections of a thesis

My university recently changed the formatting standards for thesis/dissertations, and I'm working with a LaTeX style file that has been hacked on by several others. It more or less works, but every ...
10
votes
1answer
371 views

Two letter variables with upright Delta

I'm using newtxmath with the slanted and libertine option in order to get standard slanted greek letters in mathmode as well as the option for upright greek letters. My question concerns a common two ...
4
votes
1answer
252 views

Conditionally remove the space before a one-letter operator

I'm pursuing the Math Expectation operator (\mathbb{E}). As \DeclareMathOperator is not very good for one-letter operators (since it adds some spacing after itself), I use a plain \newcommand. But ...
4
votes
1answer
203 views

Too much spacing in my table rows

My problem is that there appears to be a double-spacing between my rows. The spacing is also too much in between the lines of my column headers. I'm very new to LaTex and I don't know how to rectify ...
5
votes
1answer
112 views

Arranging several items in one or two lines depending on their size

I want to set title pages in a way that is google scholar compliant, that is, the title has to be huge, the author names should be large but smaller then the title. I had a solution where I just ...
5
votes
3answers
141 views

Issue With Spacing/Tabbing

I would like to indent in the "of Embryonic Stem Cells" section, but so far everything I have tried has failed. I first tried to see if there was a tab character, which there does not appear to be, ...
4
votes
1answer
129 views

Adding margin to a custom environment

Is there a way to define a custom environment (for example Propositions) in such a way that the content of that environment will automatically have a given margin at the top and the bottom? I mean ...