{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
47 views

putting 2 f beside each other makes a space on pdf file

In any words when 2 f are beside each other (like different), on pdf file it makes a space between those fs specially inside equations. Any idea please? like: diffusion, i get dif fusion
4
votes
1answer
49 views

Extra space below customized theorems in beamer

I'm trying to customize beamer theorems, putting theorem name and theorem body in the same box. But my customization causes extra space below theorems. A MWE is as follows: \documentclass{beamer} ...
5
votes
1answer
56 views

No hyperlink for server name part of multi email text

I am trying to have something like {name1, name2}@server.com where name1 and name2 have hyperlinks of name1@server.com and name2@server.com. This is my code: \usepackage{hyperref} ...
9
votes
4answers
140 views

Configurable spacing after \dots

LaTeX adds some space after the ellipsis \textellipsis. This is enhanced by ellipsis package, which only adds space before certain characters (and also gives the option to configure “easily” the ...
2
votes
1answer
145 views

Is it possible to alt+space instead of ~ to produce a non-breaking space in LaTeX on osx?

I learnt recently that alt+space produces a non-breakable space on macs, and I would like to be able to use it with LaTeX, if possible. Here is the error I get so far: Package inputenc Error: ...
2
votes
1answer
40 views

Numbered paragraphs with optional titles

I am trying to define numbered paragraphs \mypar which can admit an optional <title>. I did the following: \newcounter{paranum}[section] \renewcommand{\theparanum}{\thesection.\arabic{paranum}} ...
2
votes
2answers
50 views

Tabular with linespacing

Moin, I want the rowspacing behavior to be default. So this: \usepackage{longtable} % ... MAGIC ... % \begin{longtable}{ccc} entry1 & entry2 & entry3 \tabularnewline entry4 & ...
9
votes
1answer
76 views

Ignore spaces and \par's after an environment

In defining an environment, I could use \ignorespacesafterend to ignore all spaces after the environment. But how could I also ignore all \pars and empty lines after the environment? In other word, ...
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
292 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
79 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
95 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
97 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
60 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
65 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
47 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
53 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
69 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
67 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
60 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
29 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
39 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
65 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
50 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 ...
2
votes
2answers
41 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
44 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
39 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
38 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
51 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
67 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
108 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
92 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
43 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
49 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
38 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
123 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
33 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
52 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
93 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
52 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
41 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
40 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
73 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
78 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
82 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
213 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
35 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 ...