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

8
votes
4answers
126 views

Using commas in mathematical formulas

I need write some formula, but I don't know how to arrange the comma's place. $p,\ q\in N$, blabla $0<a,\ b<1$ blabla $i,\ j=1,\ 2,\ \dots,\ n$ or $p,\;q\in N$, blabla $0<a,\;b<1$ ...
4
votes
1answer
44 views

How to remove the white space on the top of the following table?

How to remove the white space on the top of the following table? \documentclass[preview,border=0pt,varwidth]{standalone} \usepackage[table]{xcolor} \usepackage{array} \usepackage{longtable} ...
2
votes
1answer
29 views

New table-environment, spaces and enclosing { } in a new environment

It was hard for me to find a proper title (feel free to change it) for my question which I want to introduce with an example: Situation In my document I sometimes use tabus directly in the document ...
27
votes
2answers
305 views

Why is there a \, space at the beginning of the “aligned” environment?

Near the beginning of the definition of the amsmath environments aligned and gathered (and also mathtools' multlined) there's an explicit thin space \,. This often has to be cancelled with \!, as ...
6
votes
1answer
88 views

Wrong spacing in math-mode

Consider the following example. (The code is not my own.) Code \documentclass{article} \usepackage{mathtools} \usepackage{siunitx} % Subscript text directly in math mode. \makeatletter ...
4
votes
2answers
64 views

Unwanted extra spaces are included before and after backslashes in biblatex URL

I have a biblatex reference with a URL field. However, every backslash is surrounded by spaces. I am using \usepackage[sorting=nyt, citestyle=authoryear, bibstyle=authoryear, isbn=false, ...
19
votes
2answers
805 views

Proper use of \mathchoice

I am trying to learn how to use \mathchoice. Before the solution was posted for Non-invasive replacement for \fbox?, I attempted to use mathchoice to adjust the size of the parameter before ...
0
votes
0answers
44 views

Missing $ inserted - did I make something wrong? [duplicate]

Im writing a paper using Latex and I get repeatedly this "! Missing $ inserted. $ l.92 ?" error. Its only in two passages and I don't see any obvious mistake I made. The code is: ...
1
vote
1answer
34 views

Spacing issues with letterhead background

I have a letterhead background that I use on cover letters. I am having spacing issues with some text being obscured by the letterhead image. I have tried using \\, \\*, vspace{5in} etc to no avail. ...
4
votes
2answers
51 views

Uneven spacing around ellipsis in $[A_1;\dotsc;A_n]$

I've noticed that when a \dotsc has a semicolon on each side, there's uneven space around the ellipsis created. With \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} ...
3
votes
1answer
36 views

Space between paragraphs (local)

I would like to increase the space between two paragraphs only, not for the whole document. For example I want to have something like this Paragraph1: One paragraph here Paragraph2: Space between ...
1
vote
0answers
16 views

Different vertical spacing just in header row of table [duplicate]

Does anyone know how to make the header row of a table of a different thickness than the body rows? I can control the standard 'thickness' of the rows via: \renewcommand{\arraystretch}{1.25}, where ...
3
votes
1answer
65 views

How to put two minipages side-by-side, which use 100 % of the text width?

In draft-mode a black marker indicates that the reserved space is too low. This also appears in the following example, but it shouldn't. How can I put two minipages exactly side-by-side? ...
6
votes
2answers
194 views

More than one width of a glyph in LaTeX or LuaLatex

I don't know where I can ask about it. I have font with 2 or 3 versions of letter 'a'. How I can put this information to LuaLaTeX, LaTeX etc.? When the paragraph are breaking/making LaTeX made ...
8
votes
2answers
2k views

Remove vertical space at start of latex document

I have this test file which is supposed to put Hello there. near the top of the page but it does not work in so far as there is still tons of vertical space at top. How can I fix this? ...
7
votes
1answer
61 views

Weird break before English language citation

I'm using LyX to write my thesis I've encountering this weird problem. When in-paragraph citations are formatted as English in my Danish document (which I do to get the spell checker working for ...
2
votes
2answers
502 views

Extra line of vertical separator using itemize in tabular

I'm creating a resume based off of the example tutorial HERE. It's fairly simple, actually -- just a two columned table with dates on the left and job on the right. I prefer bullets vs. a paragraph ...
9
votes
2answers
99 views

Mixing math character classes (e.g. \mathord to the left and \mathrel to the right)

It is possible to have a symbol or group behave to the left as if it had one particular math character class and to the right as if it had another? One typical case where this comes up is when one ...
6
votes
2answers
47 views

Increasing vertical space between two subpictures

I'd like to increase the distance between the upper pictures and the lower ones (a-c and b-d are too close to eachother). I'm new to tikz and I really don't know where to put my hands on. Thank you. ...
4
votes
1answer
54 views

Increase the space between operator in subscript/superscript

I need to increase the space globally between operators in subscripts/superscripts. Example: \sum_{x=4} I need a little more space before and after the = symbol in the subscript. It is required ...
9
votes
2answers
858 views

biblatex/multicol: Incorrect vertical space after bibliography heading

I'm trying to typeset a bibliography inside a multicols environment, but with the heading as a single column (using multicols' optional argument). I've noticed that the vertical space between the ...
3
votes
2answers
65 views

amsthm in clean

I am looking for a good latex template for my phd. I did not like the classicthesis because of the huge margin and the collapsed table of contents. I found the cleanthesis to be just what I was ...
0
votes
0answers
29 views

Left margin for boxed option in algorithm2e

When I am using the boxed option in algorithm2e package, the left margin between the box border and the algorithm is 0. Is there any way to adjust this? The package has been included as following ...
4
votes
1answer
52 views

Same vertical spacing for chapter and chapter*

I use \chapter*{} in the \frontmatter and \chapter{} in the \mainmatter. I use titlesec and the styling of the chapter headings is this: \documentclass[10pt,a4paper,openany,oneside]{book} ... ...
3
votes
1answer
38 views

Testing and modifying white space around an environment

I'm trying to create something similar to marginpar but without the hassle of floats (particularly because I'm going to have a lot of these). First issue These notes always appear at the beginning of ...
2
votes
1answer
60 views

Remove photo padding in moderncv classic

When \photo is used in moderncv, it includes a ~3px padding between the image and the border. How does one remove this? I have found the part of the moderncvstyleclassic.sty that deals with the ...
1
vote
0answers
31 views

Latex float so no stretching appears, but everything is placed on top

It has probably been already answered, but I cannot find it. If I include images as floats, LaTeX places the last one on a single page in the middle. How do I make LaTeX to put in on the top of the ...
2
votes
1answer
64 views

changing spacing of caption

I'm creating a figure using LyX. I would like the spacing of the caption below the figure to be 1.3. Is there an easy way to accomplish this? Setting the spacing to 1.3 for the entire document using ...
1
vote
0answers
36 views

space bibliography [duplicate]

my bibliography looks like Abowd, J.M., F. Kramarz, and D.N. Margolis. 1999. High-wage Workers and High-wage Firms.Econometrica, 67(2): 251333. Abowd, J.M., R.H. Creecy, and F. Kramarz. 2002. ...
6
votes
1answer
267 views

Is there an alternative to LaTeX which isn't whitespace sensitive?

I have been using LaTeX for about a year now, and I quite like it. However, I like to space out my source code. In most languages, this doesn't cause an issue, as extra newlines don't affect meaning. ...
8
votes
1answer
118 views

Too much vertical space before \part when using \marginpar

When I use a \marginpar{...} before \part{...} on a new page, I get a big space on the top of that page. Below is a screenshot, where the left one was typeset with marginpar, the right one without: ...
10
votes
3answers
2k views

Phantom spaces in listings (pdf)

I have a problem with SQL code in a PDF document. For code representation I'm using the listings package. Everything works perfect until I copy-paste that code from the created PDF document. I get ...
11
votes
3answers
130 views

How to generate non-blanks between words?

In an otherwise-vanilla latex doc, I have a long list of strings that I need separated by <space> <cdot> <space>. The output needs to look like: Lorem <cdot> ipsum ...
1
vote
1answer
41 views

Tree with more levels

I'm working with the package qtree and I'd loved to make more levels. My code is: \begin{frame}[t]{\secname} \Tree [.{L} [.{L1} {\textit{Lag}: \\ ${\textstyle x=y$ \\ \small{C}} ] ...
3
votes
3answers
72 views

Reduce tab spacing

How can I reduce the spacing after I have used & in tabular? \documentclass{article} \usepackage{tabularx} \begin{document} \begin{tabularx}{\textwidth}{X X} \textbf{Greetings} & Refer to ...
8
votes
1answer
107 views

Trying to make sense of TeX decisions (stretching, tolerance)

For example, if I don't set stretch parameters (tolerance, badness, emergencystretch, sloppy, etc) I get some overfull boxes (full LaTeX code post at the end). Notice that TeX seems unwilling to ...
6
votes
1answer
106 views

Code improvement and suggestions in template

Consider the following MWE: \documentclass[12pt,twoside,letterpaper]{report} \usepackage[text={4.95in,7.5in},centering,bottom=1.5in,showframe]{geometry} \usepackage[dvipsnames]{xcolor} ...
11
votes
2answers
1k views

Making a LaTeX document appear as though it were typeset in MS Word

I am typesetting a document in LaTeX for which I have been given exact specifications that are intended for an MS Word-processed document (single-sided, single-spaced, 0.75 inch margins, no more than ...
7
votes
1answer
83 views

Extra spacing around restatable theorems

I'm learning how to use the thmtools package, and I came across a strange quirk. A minimal example is as follows: \documentclass{article} \usepackage{amsthm} \usepackage{thmtools} ...
2
votes
1answer
50 views

Latex Section header and figure won't print on same page

I'm trying to print a section that has only figures (no text aside from captions). I have a figure that clearly does not take up a whole page (it takes up half a page at most), but for some reason I ...
8
votes
2answers
80 views

Extra page at beginning of appendix containing big figures

I have an appendix that contains two full-page figures. The first page of the appendix is always blank except for the title -- I suspect this is a common problem with appendices of full page figures. ...
2
votes
2answers
65 views

How can I lower an \xrightarrow

I'm referring to a previous post where I asked how to handle lines that are too tall due to stacked mathematical symbols. In particular, the problem occurs in my texts when using \xrightarrow like in ...
2
votes
1answer
39 views

How to put a vertical space between two functions inside algorithmic environment?

To make the algorithm readable, I would like to put some space between two functions. E.g.: \documentclass{article} \usepackage{algorithm} \usepackage{algpseudocode} \begin{document} ...
7
votes
1answer
83 views

Additional Space after Colon in References

I'm printing the references in my document using: \nocite{*} \bibliographystyle{plainnat} \bibliography{D:/economics/dataset} Here is one example of the generated references. George J. ...
6
votes
2answers
95 views

Custom verbatim that sets all spaces (“ ”) as visible spaces (“␣”) that can line-break

It makes sense to typeset code in a monospaced font. Sometimes such code needs to be embedded in a paragraph context, and then it will be useful to allow it to linebreak. In order to visualize spaces ...
21
votes
1answer
5k views

Remove space around bullet points in itemized or enumerated list

How can I reduce the amount of space around items in an itemized or enumerated list? I would like to reduce the vertical space between items, the space to the left of the bullet, and the space ...
8
votes
2answers
80 views

Dollar sign with txfonts and fontenc

I have a strange problem with the dollar sign ($) and \textbf{} when using the txfonts and fontenc packages. The dollar sign has a space after it. Both packages are required to reproduce the problem. ...
13
votes
3answers
97 views

Difference between \mskip and \mkern

What are the differences between \mskip and \mkern? The TeXbook writes the following (ch. 18): You can insert math glue into any formula just by giving the command ‘\mskip⟨muglue⟩’. [...] ...
5
votes
1answer
44 views

Edit space for overbraces in equation

I would like to use \overbraces and \underbraces in my equation. However, when I make the text for \overbraces too long, the \overbrace doesn't contain the correct part. ...
4
votes
0answers
131 views

Formatting of matrices

I have a document full of matrices, and many of them don't look very good, right now. Hunting for solutions, I found this post from two years ago. I have the same problems mentioned there, and I'd ...

1 2 3 4 5 33