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

3
votes
0answers
36 views

Spacing in labels of a list

I entered the following code in LaTeX: \documentclass{article} \begin{document} \begin{enumerate} \item[[$\Rightarrow$]]necessitiy \item[[$\Leftarrow$]]sufficiency \end{enumerate} \end{document} I ...
3
votes
1answer
61 views

In an avm, can the horizontal space between the brackets be set manually?

I've created a simple attribute-value matrix using a custom style file avm.sty which is explained here. However, it is so narrow that the right bracket overlaps with the text. ...
2
votes
0answers
31 views

lstlistings messes up spacing before subsequent section headings [duplicate]

I'm typesetting a grammar specification for a programming language, which leads to many short snippets of grammar and example code interleaved in the document text. The issue I observe is that an ...
1
vote
1answer
43 views

Pulling up the whole text body

I want to pull up the whole text body nearer to the header so that I can have some spacing below. Please suggest how to do this. I am using the following coding - \pagenumbering{arabic} ...
4
votes
2answers
118 views

tab is not working in latex

I am new in the world of latex . At this time , now I am writing thesis . I want to have tabs in tex document . For this purpose , I have written the following code . \hspace{2cm}$ \mathbf{a_{11}x_1 ...
2
votes
1answer
50 views

Can I use microtype (or something else) to 'amend' a ligature's spacing?

Say I have the following source: \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \NewDocumentCommand \Dash { } { \leavevmode \unskip \nobreak \hspace{\halfspace} \textemdash ...
3
votes
1answer
56 views

Space character: stretch after full stop

Is there a way to define certain instances of the space character to occupy a certain length in justfied text? The consistency of the size of the space after a full stop in a 12pt article (using ...
6
votes
1answer
154 views

Keywords with spaces in Listings

I want spaced keywords in listings (that is, keyword, with spaces in between). Now, there are some questions in this site already answered, like this one, where the official answer is that “it is not ...
4
votes
2answers
116 views

Large image should ocupy all page without blank space around

I'm new to LaTeX and although my supervisor does not use LaTeX, I've decided to do my master thesis in LaTeX. However, I'm having a problem with the images. I have big images generated through R. ...
2
votes
1answer
118 views

Vertical space between caption and main text

I am trying to adjust the vertical space between my captions and the main body of text below it. It is likely to be packages interfering with each other, but I am not sure which. Herbert suggested ...
3
votes
1answer
64 views

gb4e leaves extra space before translation

gb4e leaves extra (unwanted) blank line space between gloss and translation. Same problem as here: Why is the gap between the translation and the last line of the gloss so wide in my interlinear ...
1
vote
0answers
28 views

Setting the space between fixed page header and float text block [duplicate]

I searched for previous answers, but none solves my question about how to set the space between fixed page header and float text block. \headsep changes the position of header, rather than the ...
1
vote
1answer
70 views

Remove whitespace around an enumeration in a table

I've tried using the enumitem suggestion given on http://stackoverflow.com/questions/4968557/latex-very-compact-itemize, but I still see white space around my enumeration: \documentclass{article} ...
4
votes
1answer
66 views

Less whitespace and no indent at the same time using enumerate

I would like to ask the following: I would like to use the theorem environment in my latex code. I also have some definitions and examples and I would like to let these environments look the same. ...
2
votes
1answer
67 views

Big space between subsection, text and graphics

I have a problem with space between subsection, text and image. I have code: \documentclass[12pt, a4paper]{article} \usepackage[demo]{graphicx} \usepackage{caption} \begin{document} \subsection{Some ...
8
votes
3answers
102 views

Spacing for subscripts in mathmode with \textcolor

It is possible to use \textcolor in math-mode; however, it changes the spacing of subscripts. \documentclass{article} \usepackage[usenames]{xcolor} \begin{document} $Y_i$ vs $\textcolor{red}{Y}_i$ vs ...
4
votes
2answers
139 views

Why does horizontal space after ampersand becomes less?

Why does the space after the equals sign becomes less if I use the lower code, i.e., if I put ampersand after equals sign? \begin{align*} A&=B \end{align*} \begin{align*} A=&B \end{align*}
11
votes
2answers
218 views

How to suppress extra vertical space before/after fancy Verbatim environments?

I am using fancyvrb's DefineVerbatimEnvironment to create differently-styled verbatim environments for user input and output. When two or more of these follow each other, there is extra vertical space ...
1
vote
0answers
66 views

how to reduce the space between subfigures with \subfigure

I want to put figures in rows, but the vertical space between sub-images is too large, how can I reduce the space between them? Note: The template uses \usepackage{subfigure}, so it cannot use ...
0
votes
0answers
41 views

how to remove unwanted space between pages [duplicate]

I am writing a thesis in LaTeX with predefined styles which works fine. However, sometimes, when I finish a sub-section and start writing the new sub-section, LaTeX automatically stretches the text ...
2
votes
1answer
123 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
67 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
38 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
42 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
44 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
55 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
67 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
49 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
238 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
128 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
137 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
90 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
52 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
153 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
75 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
77 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
173 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
120 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
26 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
66 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
59 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
148 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
70 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
54 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
113 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
68 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
51 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
120 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
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} ...