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

How can I reduce top margin in scrlttr2?

i'm having problems searching for the solution. I'm writing a simple letter and I see that top margin is too large. I tried \setlength\topmargin{-50pt} recommended in this answer, but nothing ...
1
vote
1answer
45 views

Remove space below numbers/bullets in itemize/enumerate environments

I am using itemize and enumerate environments and while I have removed the indentation using the enumitem package I also want to remove the space below the numbers/bullets. ...
1
vote
1answer
26 views

spacing in list of figures

I would like to fix the spacing between the figure number and the name of the figure as shown in the following image: The list is auto-generated. you can find my LaTeX files in the following link: ...
5
votes
2answers
35 views

get rid of whitespace after postheadhook thmtools

I want to get rid of the stupid white space after the postheadhook \newline (see before asdasd) in the following example: %!TEX TS-program = XeLaTeX %!TEX encoding = UTF-8 Unicode % ...
1
vote
0answers
38 views

Soul package and spacing problems

Similar problems with soul package can be found here and here. But since my problem is simpler than those (even related with spacing) I guess that it could have a simpler solution. The problem ...
3
votes
2answers
48 views

color environments influence spacing

I would like to mark revised parts of a large document in color, and up to now always used \usepackage{xcolor} \newcommand\rev[1]{\textcolor{red}{#1}} to then do Lorem ipsum dolor \rev{git} amet, ...
1
vote
1answer
40 views

Vertical space before list environment

I use list environments for short text. In myitem environment I define new space between items. How I can reduce vertical space before first item? This space is bigger than between paragraphs. ...
4
votes
1answer
38 views

how to flush right in same line?

In the following MWE, how can I have Spring 1985-86 flush right but in the same line as ABC with Bolton 808 flush left but in the following line? Would there also be a way using tables or tabular? ...
1
vote
1answer
199 views

Micro-Typography with Luatex

Since I wanted to use Opentype with Latex, I had to go with Luatex and consequently am now missing some features of Microtype (spacing, kerning). (I tried converting my openfonts but failed) Here is ...
3
votes
2answers
116 views

Move array in array down

I have the following code \begin{array}{rl} \textbf{fetcher} : \mathcal{T} &\to \mathcal{T} \\ (P_{\star}, w) &\mapsto \bigcup \limits_{p \in P_{\star}} \left( {\setstretch{1.25} ...
4
votes
1answer
108 views

very bad underfull hbox

I would like to include a progress bar in my presentation and, when in draft mode, a page number below the progress bar. I have the code to do this, and it looks great, but I get one instance of this ...
4
votes
1answer
68 views

Parcolumns: Unbalanced Columns

I'm using parcolumns to help design a resume but it's giving me some trouble by adding lots of extra space in the left and right columns. Code (compile with XeLaTeX): \documentclass[10pt]{article} ...
3
votes
0answers
51 views

Question about seemingly random indentations after compiling [closed]

So I have been working on a large, 360+ page document, and after working on a few pages of tables, the tables have begun to indent with no apparent reason. Now I don't consider myself a nooby here, ...
4
votes
3answers
102 views

Control line spacing of section headings

I use macro and titlesec package to create custom \section heading. \documentclass[final]{book} \usepackage{lipsum} \usepackage{titlesec} \titlespacing*{\section}{0pt}{1em}{0.3em} \def ...
3
votes
1answer
69 views

Is there any horizontal skip after which the space character `\ ` is removed automatically?

Let's consider the following TeX macro: \def\theorem#1{Theorem (#1).\enspace} Try to use it: \theorem{Dirac} A simple graph with $n$ vertices\dots Then TeX produces two spaces after "Theorem ...
3
votes
2answers
72 views

Equation incl. number on the same line as theorem environment

I have this: \begin{lemma} \begin{equation} L_b \circ L_a = L_{L_b(a)} \circ L_b. \end{equation} \end{lemma} and I would like the equation to be on the same line as the lemma, with a number ...
4
votes
3answers
164 views

Chapters with long descriptive titles

I have document which require me that chapter headings consist of two parts: (1) Chapter number (Chapter 1, Chapter One etc.) or any other text with similar function and (2) descriptive title below ...
4
votes
1answer
74 views

IEEEtran: IEEEParstart overlapping letters

I'm creating a IEEEtran document, I noted that if I use: \documentclass[twoside]{IEEEtran} \begin{document} \IEEEPARstart{?`}{Qu\'e} es lo que es tan inusual en la microelectr\'onica?. La respuesta ...
0
votes
0answers
25 views

Subscript and underbraces [duplicate]

I'm trying to draw an under brace below some subscripts. The thing is that, if I do it the normal way, displays just fine, but with the subscripts letter a little big for a subscript. However, if I ...
2
votes
1answer
40 views

Not wanted space before marginpar

At the moment I'm working on a little report. Therefore I had to redefine the \marginpar{} command new because I wanted it in a smaller font-size compared to the 'normal text'. The code I've written ...
0
votes
0answers
49 views

How can I make the space between figures and text triple space when the space already is double for writing thesis?

How can I make the space between figures and text triple space when the space already is double for writing thesis ? is there anyone can help me? Minimal working example: \documentclass{article} ...
9
votes
1answer
142 views

Acceptable use cases for xspace; When will it fail?

I have used xspace for a long time to take care of adding space after usage of some macros. Usually, it is with a macro to format a word consistently, as in: \documentclass[]{article} ...
2
votes
2answers
50 views

Removing space after section heading after using baselineskip

Basically after setting a large \baselineskip there is now a huge space under my section heading: source: \documentclass[14pt,extrafontsizes]{memoir} \usepackage[margin=10pt,paperwidth=496pt, ...
0
votes
2answers
49 views

increase vertical space between lines

I want to increase the vertical space between each of the lines. I know you can use \arraystretch but i am struggling with the package. here is my source: \documentclass{article} ...
1
vote
3answers
102 views

Spacing problem between equation and surrounding text

I want to insert formula in text and I used equation as shown: \documentclass{article} \usepackage{amsmath} \begin{document} So, $\rho : G \rightarrow GL(n,\mathbb{F})$ is representation if and ...
1
vote
3answers
56 views

Use hfill in array

I want to have two equations, in two lines, the first the most at left, the second, the most at right: equation 1 equation 2 So, the newbie in me try to do \documentclass{article} ...
0
votes
1answer
42 views

How to remove space in math mode inside a tabular environment

I'm using some semantics formula that contains both math symbols and text inside a p{} column in a tabular environment. The formula is too long to fit in the column, then LaTeX has to create new lines ...
2
votes
2answers
110 views

How to add spacing before and after a cdot?

I'm having the following code: \documentclass[11pt]{article} \usepackage{amssymb,amsthm,amsmath} \newcommand{\norm}[1]{\lVert #1 \rVert_2} \begin{document} \begin{displaymath} \norm{\cdot}=... ...
4
votes
2answers
88 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
35 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
195 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
98 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
98 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
58 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
69 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
50 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
52 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
58 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
58 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
148 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
152 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
43 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
61 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
93 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
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
116 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 ...