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

4
votes
2answers
103 views

keep alignment under enumerate

I would like to keep the indentation for my fraction that appears below my first item however i don't know how to align it if itself is not an item. source code: \documentclass{article} ...
2
votes
0answers
43 views

First line in beamer block ignores abovedisplayskip?

If I use an an align environment within the a beamer block, the \abovedisplayskip is ignored. How can I force that setting? My MWE is \documentclass[t]{beamer} \usecolortheme{rose} ...
6
votes
4answers
288 views

Reduce line height in p type table cells

I need to set a big table and want to compress it in a way that it fits on one page. The table contains a column of type p with text breaking over multiple lines. Now I want to reduce the overall line ...
6
votes
3answers
115 views

Vertical Spacing in Tabular with bmatrix

I am unable to manually add vertical space between the second and third row. It should be controlled by the second parameter to \MyTable but that parameter seems to be have no effect: Notes: The ...
3
votes
2answers
107 views

An .eps image, whose caption is too separated from the image.

I am writing a thesis in a large .tex file in Vim. I have an .eps image, whose caption is too separated from the image. I have extensively read similar posts, tried almost everything, but the ...
0
votes
1answer
51 views

Centering a text properly

I want to center a set with contains words as follows { x in A : x is suppose to be centered}. I tried the following: $$\{x\in A : x is suppose to be centered}$$ which outputs {x in A : ...
1
vote
1answer
66 views

How can I modify vertical space between multiple sub-figures [closed]

I'd like to reduce the vertical space between graphics included in my figure. It looks like that: \begin{figure}[H] \centering \includegraphics[height=3.in,width=6in]{pics3/LCCohResEW.pdf} ...
0
votes
2answers
109 views

vertical spacing between enumerate and multicol increase

I would like to slightly increase the vertical space between the fraction answers as currently it looks wrong (ie the spacing between and a b, c and d, and e and f: any suggestions on formatting or ...
6
votes
1answer
53 views

Spacing issue in new environment from a theorem

I'm trying to create a theorem environment that I can use to repeat a theorem that has been previously stated in a book but number it the same as the 1st instance. I found some sort of solution: ...
2
votes
1answer
54 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
67 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
59 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
160 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
162 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
47 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
67 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
130 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
156 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
335 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
102 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
142 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
144 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
76 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
86 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
52 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
98 views

want to remove space above figure [closed]

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
79 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
83 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
81 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
39 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
69 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
94 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
61 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
136 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
52 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
49 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
43 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
55 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
91 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
292 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
125 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
51 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
55 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
42 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
137 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
42 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
58 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
96 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
79 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 ...