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

5
votes
2answers
155 views

How can I cancel the effect of {} in untouchable macros?

Assuming that we cannot change the implementation of \blackbox that is \def\blackbox#1{{}#1} What should we pass to \blackbox such that $\blackbox{<something we need to pass>}$ produces the ...
12
votes
2answers
310 views

Better automatic spacing of differential d?

This question was basically about whether the differential d should be upright or italicized, not about how to achieve that in tex. However, this useful answer did suggest something like the following ...
2
votes
1answer
88 views

Strange hyphenation behaviour with babel's italian option

As an odd recurrence with many previous documents (and by subsequent trials and errors), I noticed that with this default, reduced MWE: \documentclass[a4paper]{article} % \usepackage[OT1]{fontenc} ...
6
votes
2answers
109 views

tcolorbox spacing with \center environment and \centering switch

In LaTeX, the way \begin{center}....\end{center} spaces the tcolorbox is different from how \centering does it. The center environment, provides enough space but the vertical spacing done with ...
8
votes
2answers
118 views

Tcolorbox in footer with nobeforeafter adds space to other elements in footer

EDIT: \documentclass[10pt]{article} \usepackage{geometry} \usepackage[skins]{tcolorbox} \usepackage{fancyhdr} \renewcommand{\footrule}{\hbox to\headwidth{\color{blue}\leaders\hrule height ...
4
votes
2answers
70 views

Question on spacing in the book document class

I have 2 questions regrading the spacing is concerned. 1. How to reduce the space between the heading of the paragraph in the paragraph command and the content? Usually, the space provided is far ...
5
votes
1answer
75 views

leave gap before and after \hrule

I'm using \hrule to draw a line that has the width of the text. Is there a safe way to leave a gap before and after the line? The plain code is: blablabla \hrule blabla And produces: Coming ...
6
votes
1answer
49 views

Spacing preceding a subscript?

In a document I'm writing, I have a line \documentclass{article} \usepackage{amsmath,amssymb} \begin{document} \operatorname{Tor}_1(\mathbb{Z}/(r),B)= _rB\simeq\cdots \end{document} However, the ...
3
votes
1answer
25 views

How can I change the horizontal spacing in a figure environment?

I want to put two figures, one at the top and one at the bottom, into one figure environment. I only want one common label and caption. How can I adjust the horizontal positioning of each of the ...
2
votes
0answers
69 views

want to remove space above figure

I am using this code \RequirePackage[demo]{graphicx} % to deal with non-available graphics files \documentclass{beamer} \begin{document} \begin{frame} \frametitle{Title } \begin{columns} ...
1
vote
1answer
75 views

Processing a command as having no horizontal or vertical space

Is there a way to tell LaTeX to process \marginpar{<arguments>} as taking up no space in the body text? Right now I end up with a really ugly white line. I am aware of the marginnote package, ...
4
votes
2answers
75 views

How can I write an 1,4 glycosidic bond in Latex text?

I want to write \documentclass[12pt, a4paper, openright, twoside]{report} \usepackage[english]{babel} \usepackage{textgreek} \usepackage[utf8x]{inputenc} %ÄÖÜß und griechische Buchstaben ...
1
vote
1answer
72 views

Best practice of spacing [closed]

What would be the best configuration of spacing of elements (lines, paragraphs, section titles, lists, list items, ...) in document (such as official report, thesis)? The criteria are: Perception ...
2
votes
1answer
33 views

Running command on new page

I have a special letterhead command called \newpageheader which adds a decorative figure and sets spacing for new pages: \newcommand{\newpageheader}{\newpage \thispagestyle{plain} \hspace{-1in} ...
4
votes
1answer
46 views

Controlling the white space: distance between headrule, text and footrule inconsistent

How to control the distance of white space between the rules and the body text? \documentclass{article} \usepackage{fancyhdr} \usepackage{lipsum} \fancypagestyle{plain}{ ...
4
votes
3answers
76 views

Automatically add List of Abbreviations (totcount and acronym)

I would like to have a list of abbreviations automatically added if there are abbreviations. I am using acronym for the abbreviations and am currently trying to count the \ac commands using totcount. ...
2
votes
1answer
54 views

Remove Spacing above Heading with removed Chapter-Text

I've a problem with removing the space above the Chapter text, when I've removed the "chapter". My minimal example is down below. In the image I show which space I'd like to reduce. I tried a lot with ...
3
votes
2answers
87 views

LaTeX table of contents header spacing

Here is my issue. The code below, which I found on a pdf devoted to memoir class title pages, compiles to form this: Unfortunately, the Table of Contents is a bit too low for my liking. I'm hoping ...
2
votes
0answers
50 views

Setting a default horizontal spacing value for math mode

Is there a way to set a default value for the horizontal spacing in LaTeX math mode? I'm constantly writing $foo \; bar \; baz$ Where the \; macro sets the space that I am happy with. Is there a ...
0
votes
1answer
46 views

Add vertical space in aligned environment and explanation of the unequal space between two gather/align environments

I want to leave some space between the aligned environments and some below the texts in the environments so to have a nicer output. How can I do that? \documentclass[12pt]{article} ...
0
votes
0answers
40 views

Formatting is changing spacing

I'm currently working on my thesis, and have come across little problem. If you take a look at the attached images below: Here you can see, that there is clearly a problem in the first one, with ...
0
votes
2answers
54 views

Is there a way to know what is the vertical space that LaTeX is leaving before and after a theorem?

I would like to know if there's some code I can enter in order to find what is the vertical space (in cm or pt) that LaTeX is leaving before and after a theorem. I'm using ...
4
votes
1answer
74 views

Removing a half-blank line and precisely calculating a space

Consider the following MWE: Some text, Some text, Some text, Some text, Some text, Some text, Some text, Some text, Some text, Some text, Some text, Some text \begin{enumerate} \item This is a line ...
2
votes
1answer
168 views

newlfm package missing documented \greettoskipbefore command

While writing a letter using newlfm, I tried using the \greettoskipbefore command from page 8 of the manual and I received an "undefined control sequence" error. Looking at the source, it looks like ...
3
votes
1answer
100 views

How can I delete spacing?

How can I delete the spacing shown in the following image: And here is my code: \documentclass[11pt,a4paper,sans]{moderncv} % Font sizes: 10, 11, or 12; paper sizes: a4paper, letterpaper, a5paper, ...
2
votes
2answers
47 views

How to add white space before an item?

How to add white space before an item ? \documentclass[12pt,english]{report} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{babel} \begin{document} Dqfnqsdf qsdfjdqs qsdjqsd ...
3
votes
0answers
54 views

Controlling the space in section numbers

I want to control the space around the dots of the section numbers (and subsection and so on). I think the space sometimes is too small like the one with IV . sometimes to wide, eg when it involves a ...
1
vote
1answer
40 views

Stretching text within a certain size box

I would like to stretch some text within a certain size box, say two inches (I'm not sure yet how large I want the box to be). I came across this example to stretch text across the entire page: ...
9
votes
1answer
129 views

Equation alignment

I'm a little new at this so bear with me. What I intend to get is this: I used the following code to obtain it: \begin{flalign*} \quad f(x) &= e^{x} - x - 1 ...
4
votes
1answer
36 views

Adjust indentation of the subsequent lines in description environment

How do I control the indentation of subsequent lines without affecting the other settings? That is, I want the spacing of the first three components to remain as is, but when the content of the line ...
2
votes
1answer
56 views

Automatically add a vertical spacing in formula numbering [duplicate]

I have a document with several equations that fit the text width, so the tag is below the equation in those long formulas. I don't want to use splitting enviroments but in some cases, specially in ...
2
votes
1answer
94 views

How can I insert a thin space (\,) in a listing?

Is it possible to create small space in listing? I tried / and \, but it doesn't work in listing environment \begin{lstlisting}[caption={Inicializace ELM327.}, label={lst:initELM},captionpos=b] ...
2
votes
0answers
64 views

Emulate tabular vertical spacing with parskip package

I would like to emulate the vertical spacing of tabular without using tabular. When the \parskip package is used, using \par leaves too much vertical space, so I thought I'd emulate it with use of a ...
0
votes
1answer
43 views

Strange spacing when using lstlisting

I am trying to use the lstlisting package in order to show some code in my document. However, it aligns it to the right of the page, as opposed to left as expected. \begin{lstlisting}[frame=single] ...
0
votes
1answer
49 views

Latex mirror margins

I need to have my document binded after being being printed, and so I need a 3.75 margin on every page on the side that will be binded. Is there any way of doing this?
0
votes
0answers
26 views

Adding space after paragraphs affects references

I am using the following command in order to have an empty line after each paragraph. \setlength{\parskip}{\baselineskip} \setlength{\parindent}{0pt}% However, by doing so, the references generated ...
2
votes
0answers
82 views

Identical space around \[ \] and the amsmath environments set to a personnal value

I wish to have the same spaces around the brackets \[ ... \] as the space around the environments align and equation (above and below, short or not) from amsmath, ideally (I set \parskip=1ex), ...
2
votes
1answer
77 views

tikz spacing between circles

How to reduce distance between circles ? and how to colorize each circle ? \documentclass{article} \usepackage[paperheight=30cm,paperwidth=35cm,margin=1in,heightrounded]{geometry} \usepackage{tikz} ...
5
votes
2answers
85 views

Problem with spaces in listings package and hyphenation

I use the listings package and there is a space that is inserted when the line breaks and the code goes to that new line. Why is this space inserted in the new line? How can I remove it? ...
6
votes
1answer
85 views

Using whitespace in TeX informatively to typeset predicate calculus

I am using this set of macros to write up some predicate calculus notes. The issue I am having is that in the math environment of LaTeX, things are automatically spaced in ways that are not most ...
9
votes
3answers
222 views

A phantom-like command that instead replaces the text with a horizontal line?

I'm trying to find a way of replacing part of text with a horizontal line. I'd like it to behave like the phantom command which replaces the text with an empty box of the correct width (and height), ...
2
votes
0answers
58 views

Spacing in list of algorithms within classicthesis template

Consider the following screenshot: Differently than \listoffigures, \listoftables or \lstlistoflistings, the \listofalgorithmes command is adding an extra white space between chapters in the ...
3
votes
2answers
224 views

TikZ + scalebox: Vertical text spacing in node

As this issue: TikZ: Text becomes invisible in large PDF could not yet be solved, my constantly growing PDF needs to become even smaller to stay out of invisibility range. As a consequence, \tiny is ...
1
vote
1answer
41 views

How to force single word spacing in section headings for two-column articles

I do not know how to force a single space between the words "Discussion" and "and" in the section heading below. \documentclass[12pt,twocolumn]{article} \begin{document} \hyphenation{Conclusion} ...
1
vote
0answers
25 views

Curious behaviour of vertical space in one and two column document

When I use the first code (in a two-column document) the vertical space between the text and the gather environment is small. When I use the starred version or a one-column document then the space ...
1
vote
0answers
42 views

How to change the default top margin for an invoice?

Here is what I've got: \documentclass{letter} \newcommand*{\BottomLeftX}{1.0in+\hoffset+\oddsidemargin}% ...
7
votes
1answer
75 views

Eliminating extra vertical space around quotes in letters

Eliminating vertical space around a quote, as described here, succeeds when the documentclass is article \documentclass[11pt]{article} \usepackage{quoting} \quotingsetup{vskip=0pt} \begin{document} ...
1
vote
0answers
21 views

Which macros define spaces around table and float environments? [duplicate]

I am trying to define the length of vertical space between tables and text globally in my document. So far, I have been using \setlength{\intextsep}{0cm} \setlength{\floatsep}{0cm} ...
0
votes
0answers
27 views

References alignment problem in IEEtrans

I just wanted to ask if anyone has an idea on how to fix an alignment problem I am getting when using the IEEE template. In my references, the first 10 entries are aligned and rest are misaligned. I ...
17
votes
4answers
700 views

Which commands consisting of a non-letter eat spaces afterwards?

Command names consist of a sequence of letters (until and excluding the first non-letter) or of a single non-letter. Command names ending in a letter (including of course those consisting of a single ...