{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
3answers
238 views

I want to create a command that will conditionally gobble up trailing whitespace: I want an “\unxspace” command

I have a command that occasionally produces whitespace that I don't want. \def\testa{a} \def\testb{a} \newcommand{\mycommand}[1]{\ifx\testa\testb{#1}\fi} When \testa and \testb are different, I ...
3
votes
1answer
491 views

LaTeX source code listing with less space between characters [duplicate]

I want to write shell Code in my LaTeX document. I'm using the listings package, with a code sample adapted from Tormod Fjeldskår: \documentclass{report} \usepackage{color} \usepackage{xcolor} ...
2
votes
1answer
89 views

How to reduce space in begining but not in end of itemize

This refers to my question. How to reduce space in begining of itemize? [topsep=0] also reduces space between the itemize and text below to itemlist. I just want to reduce space in the begining not ...
10
votes
2answers
212 views

Math Spacing in the presence of a trailing/non-trailing comma

I thought I knew how to use a \hphantom{} but don't know of an easy way to handle this case due to the comma. I want to get the text aligned for the X row. I added the appropriate \hphantom{{}+1} ...
2
votes
1answer
837 views

Auto resize tabular row height

After running following code \documentclass[10pt]{article} \usepackage{multirow} \begin{document} \begin{tabular}{|l|l|l|} \hline \multicolumn{3}{|c|}{Schedulers} \\ \hline \multirow{3}{3cm}{Row 1. ...
4
votes
3answers
231 views

How are space tokens and empty lines processed by long commands (as their potential arguments)?

How are spaces and empty lines processed by long commands (i.e., those that do not accept paragraph breaks inside)? Are there different space tokens aside from " " and an empty line? It appears that ...
5
votes
2answers
7k views

center and \centering both add space above; \centerline does not

The nag package suggests I use the center environment in LaTeX, rather than the TeX \centerline command. When I do that, however, I find that the former inserts a blank line above the line (in my ...
3
votes
1answer
356 views

What are the different kinds of vertical spacing and horizontal spacing commands available?

@egreg gave a very nice and thorough answer to What are the different kinds of boxes in (La)TeX?. It seems it would be nice to have a similarly thorough answer to controlling spacing. I'm not ...
7
votes
2answers
127 views

How to specify RULES in main body

I want to write RULES in main body, how to write the correct TeX code that guarantees a little larger space before and after RULES like this.
2
votes
1answer
709 views

How to increase space between bibliography without using biblatex

Is there a way to increase space between bibliography without using biblatex?
40
votes
2answers
682 views

Why is there a \, space at the beginning of the “aligned” environment?

Near the beginning of the definition of the amsmath environments aligned and gathered (and also mathtools' multlined) there's an explicit thin space \,. This often has to be cancelled with \!, as ...
15
votes
2answers
343 views

How to reduce the space between two slashes when using \url?

This is a follow-up question to Space between two slashes. Bianca Lobo's answer (defining a \twobar command with proper kerning) is nice; however, it doesn't work in the argument of the \url command ...
10
votes
1answer
313 views

Space between the two slashes in “http://” too big

I'm using a lot of links with http:// in my document, but the two slashes are too much separated, I'd like them to be more near each other. How do I do this, in a neat way? I'm using a sans-serif ...
2
votes
1answer
380 views

nomenclature page formatting

I have a list of symbols generated throught the nomencl package. It works fine. The only problem I have is: How can I redefine the margins for the page? by default it is using the margins for ...
4
votes
2answers
160 views

My custom theorem/proof environments aren't playing well together

As can be shown in the following MWE, when I have a theorem environment followed by a proof environment, the proof isn't going into the next line; it's rendering right on top of the text I have for ...
0
votes
1answer
448 views

Spacing in multiline equations

Please help me to figure out how to produce with that: I have the following code: $$ gcd(0,0) = 0 $$ $$ gcd(u,v) = gcd(v,u) $$ $$ gcd(u,v) = gcd(-u,v) $$ $$ gcd(u,0) = |u| $$ $$ 2^{x^3} = ...
5
votes
2answers
190 views

Abbreviations: taking into account spacing AND punctuation [duplicate]

So I'm trying to come up with some good, general definitions for latin abbreviations in my TeX template... What I did up to now is this: \usepackage{xspace} \newcommand{\etc}{etc.\xspace} ..which ...
7
votes
2answers
353 views

A macro for optimization problems

This question is an extension of Using an array environment inside an xparse command. I was advised to make a separate question for the extension. I would like to thank egreg very much for his help. I ...
3
votes
1answer
1k views

Changing properties of epigraphs using “epigraph” package

Please help me to figure out how to produce with that: I have the following code: \epigraph{«Теперь нам ясно, что вся структура теории чисел держится на одном основании, а именно, на алгоритме для ...
6
votes
1answer
604 views

\hfill in in table cells

There are tables in my document. The baselines between the last row of each table and the following text is usually circa 16,25p (see below). Now I wanted to add right-aligned text to some selected ...
1
vote
2answers
122 views

How to display formulas?

I am using the following format for all \begin{math} newP = p + vt + 0.5a(t square) \end{math} How do I from left justified to centrally justified leave one blank line before and after the ...
16
votes
4answers
504 views

Do starred commands eat up space after them?

Do starred commands eat up spaces after them, like unstarred ones do? That is, is \somecommand* nextword equivalent to \somecommand*nextword? And: Does it depend on the particular way a starred ...
2
votes
1answer
836 views

apacite: How can I use \bibitemsep with natbibapa option?

I'm using the apacite package, trying to format my reference list so that it is single-spaced but with a blank line in between each entry. From the documentation for apacite, it seems that the way to ...
5
votes
1answer
288 views

Flexible vspace

I created a macro to insert diary-like right-aligned paragraphs. \newcommand{\diarydate}[1]{\begin{flushright}\textit{#1}\end{flushright}} Example: \diarydate{New York, August 1992} This looks ...
4
votes
1answer
729 views

Is there any way to make two pages per sheet (landscape) and the page numbering appears as if each column was a page?

I want to make a landscape sheet with two pages (like two columns) and I want that the page numbering to be a number per page (a number per column) instead of a number per sheet. I use ...
2
votes
1answer
503 views

How to reduce distance between two columns?

I have 5 columns in my table. So I want to reduce distance between two columns to make it look good. In the following figure, I want to reduce distance between column 1 and 2. I tried ...
3
votes
2answers
594 views

Align (center) header row in table

I use @{\hskip 50pt} to separate columns in my table. The problem which arises is that I add this extra space after a multicolumn. This also moves the header row so that it is no longer centred. Is ...
1
vote
2answers
430 views

\usepackage{parskip} and \tabular

As I had issue with line breaks, How should I do manual line breaks?, I used \usepackage{parskip}. This worked fine. But, when I have a tabular environment, there is a lot of vertical spacing before ...
5
votes
1answer
614 views

Symbol for chapter endings?

Is there an accepted way of marking a chapter ending? Right now I have new chapters start on new pages, but that leaves the last page of the previous chaater looking rather unfinished. I know that ...
2
votes
1answer
440 views

ModernCV creates a blank page

I have created a text, but as an example I created this simple text \documentclass[a4paper,12pt,danish]{moderncv} \moderncvtheme{classic} \usepackage{babel} \usepackage{lipsum} \pagestyle{empty} ...
2
votes
1answer
134 views

pgfplots - x unit, space between label and parantheses

Can I specify the space between the label and the parantheses when using x unit in pgfplots? In my example image, I want less space (\,) between the E and the [eV].
2
votes
2answers
224 views

Missing paragraphs in glossary

After each abbreviation there is a paragraph in my glossary except in one row. (see screenshot). There is no separation between the "W3C" and "WHATWG" abbreviation. Does anyone know what I can do? ...
17
votes
1answer
279 views

What is the ConTeXt equivalent of LaTeX “\@.”

In English text, TeX follows the convention of putting extra space after a period by default, which I like. However, in the case of abbreviations it causes a problem. To suppress the extra space, ...
11
votes
1answer
308 views

Consistent cover design regardless of inner pages

This is a series of books, the margins, page sizes are all identical. Depends on the content, the design of inner pages are slightly different, i.e. different type sizes, leading, etc. The question ...
4
votes
1answer
317 views

Spacing issue when using tocloft and fontspec together

I'm using tocloft for creating a List of Equations and I think there's no other way to avoid using this package. However, everytime when tocloft and fontspec from XeLaTeX are used together the ...
2
votes
1answer
2k views

ModernCV classic style, change space below title

I found this post in the forums, and I want to do exactly the same but for moderncv's "classic" style. I am pretty new to LaTeX and all the maketitle thing makes me dizzy, I tried to understand it a ...
5
votes
1answer
475 views

Seeking advice for my clumsy math homework template [closed]

I typed my math homework with LaTeX. This was my first try on making some document with LaTeX. I can Google for math symbols, so it's okay, but the overall structure is really clumsy; especially ...
9
votes
2answers
376 views

hyphenation next to a parenthesis

I have some very special hyphenation puzzles involving optional hyphens next to parentheses. (semi)group should be hyphenated as (semi-)/group di[rected ]graph should be hyphenated as di-/[rected ...
15
votes
2answers
387 views

How to remove an unwanted white space at the last end of a horizontal curly brace?

You can see there is an unwanted white space at the last term below. \documentclass[border=12pt]{standalone} \usepackage{amsmath} \begin{document} $ ...
2
votes
2answers
327 views

vspace or line space in text of wrap fig

I am using wrap fig and want to insert a line break within the text. However, \vspace or \linebreak or \break don't lead to any change. Here is a sample of my LaTeX code \begin{figwindow}[0,r,% ...
4
votes
1answer
158 views

Is it possible to have a variable chapter header spacing?

I've noticed in my document class that when I have really long chapter titles, the title can end up mixing in with the first line of text on the page. My default spacing is 50pt. If I set it higher, ...
1
vote
1answer
399 views

How reduce the space between title and article

\def\maketitle{\par \begingroup % to make the footnote style local to the title \def\thefootnote{\fnsymbol{footnote}} \def\@makefnmark{$^{\@thefnmark}$} ...
1
vote
1answer
150 views

Table column spacing / headings

I don't seem to be able to reduce the space between columns with \setlength\tabcolsep; it looks like siunitx package does not go along with tabcolsep. Further, I'd like to centre the subheadings of ...
5
votes
2answers
219 views

Centering long sentence causes strange vertical spacing

In the following MWE I have a centred piece of unbreakable text. Problem is that this causes an extra bit of vertical space, so that visually the centred text is not vertically centred between the two ...
0
votes
0answers
49 views

Reducing vertical space between figure and caption [duplicate]

Possible Duplicate: How to reduce space between image and its caption? How do I reduce the space below figures and above their captions, without changing the parameters for tables? For ...
2
votes
0answers
43 views

Add vertical space only if no vertical space was added previously [duplicate]

Perhaps this is the silliest of all the questions, but, let’s suppose that there are two custom commands: \newcommand{\cmdA}[1]{ #1 \vspace{1cm} } \newcommand{\cmdB}[1]{ \vspace{1cm} ...
10
votes
1answer
994 views

right description list LaTeX beamer

How to do right align a description list using beamer? Name | Joel Spolsky Address | Some address Using the enumitem package as suggested in Description list with right alignment of ...
6
votes
1answer
323 views

Redefining \and spacing in \author [duplicate]

How can one redefine the spacing that the \and command puts between authors in \author within the standard article class? I have a document with three authors whose names are just too long to fit on ...
6
votes
2answers
280 views

Aberrant vertical spacing with {align} and friends?

Consider documents with the following preamble: \documentclass[12pt]{article} \usepackage{amsmath} Question #1. Why do we get bad alignment with the following code? \noindent ...
15
votes
1answer
624 views

How to fix the math-spacing when a lot of \phantom, \mathrlap, etc. are used?

This question led to a new package: underoverlap Introduction Based on this question and then this question, I'm trying to perfect the \overunderbrace macro. Right now, I'm trying to get the ...