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

Why does cite influence the spacing after colons in the IEEEtran \markboth header?

Update: This has been solved in cite v5.5. I noticed that loading (or not) the cite package changes the spacing after colons in \markboth headings of IEEEtran \documentclass{IEEEtran} ...
2
votes
1answer
31 views

Uniform spacing around headings with special case of `\usepackage{enumitem}’ and `\baselineskip`

This question is a follow-up question to my question here. @karlkoeller's answer fully answered my question. However in my document I have some places where the itemized list is placed directly after ...
2
votes
1answer
98 views

How do I do a blank slot in a functor

I want to TeX a blank in the input of a function, to mean that any input can go in there. Specifically, I want to have a tensor product symbol followed by a hyphen -. I have been typing $\otimes -$ ...
2
votes
1answer
54 views

vertical space between paragraphs and `topsep` in \usepackage{enumitem} cancel each other out

I'm using \setlength{\parskip}{\baselineskip} to insert vertical space between the paragraphs in my document. However this create a conflict with my list environments. To solve that I am using the ...
5
votes
1answer
100 views

Remove space in reference in “et al. ,”

I'm using Sharelatex to work on my thesis, and I want to use the natbib package and authordate3 style for my bibliography. For some reason, when referencing a bibliography entry with multiple authors, ...
3
votes
1answer
121 views

Horizontal spacing between subfloats using floatrow and subfig (with fr-subfig support)

I am trying to arrange two rows of sub-figures using subfig and floatrow. The captions are aligned as I wish and the vertical alignment of the objects is also fine. However, I cannot figure out how to ...
2
votes
1answer
21 views

Spacing and embedded calls to \DTLifnullorempty

It seems that embedding calls to \DTLifnullorempty inside one another leads to an extra space for each call to \DTLifnullorempty. Is there a way to prevent this behavior? In particular, I would like ...
2
votes
1answer
51 views

Cant justify text

Let's say we have following code: \documentclass[a4paper,14pt,final,draft]{extreport} \usepackage[left=3cm,top=2.0cm,right=1.5cm,bottom=2.7cm]{geometry} \usepackage{changepage} ...
5
votes
1answer
345 views

How to avoid “space” between each bullets

I am getting an empty row after each bullet and I am looking for a way to avoid an empty row between each line, or at least make the height of that space-row smaller. Here is what I do: ...
3
votes
1answer
53 views

Improving readability of a big table (vertically-centering rows and using space)

This is the first time I make a table with chemistry formulae inside cells. I'm having trouble improving its readability. Questions How do I make all rows vertically centered? How do I remove ...
5
votes
3answers
112 views

I would like bigger parentheses in \pmod

I would like to say a congruence holds modulo a fairly large expression, THING, to be enclosed parenthetically. \left( \mod{THING}\right) seems to result in a large space between the open paren ...
2
votes
1answer
36 views

minipage 15.0pt too wide

Sometimes I have two (or more) figure environments which I want to layout on one page, and put a horizontal rule in the center. To acomplish this, I put a \vfill\hrule\vfill between the two ...
4
votes
1answer
39 views

List Parsing the ascii space character

I have been using the list parsing functionality from etoolbox and I have a weird use case in which I want a space separated list. \usepackage{etoolbox} ...
6
votes
2answers
237 views

How to create a bracket-ing √-Operator?

In formulas involving square roots, I consider the overline rather irritating and would like to create an operator that turns \sqrt{x} into √[x], i.e. the argument is bracket-delimited instead of the ...
2
votes
1answer
39 views

Add empty space

I have the following code \listfiles \documentclass[oneside,12pt]{scrartcl} \usepackage[ngerman]{babel} %\usepackage{amsmath} \usepackage[fixamsmath,disallowspaces]{mathtools} \begin{document} ...
5
votes
1answer
74 views

Odd/even page wrongly detected if there is not enough space on the current page

I'd like to put: some text on the outer side of the page, some another text on the inner side of the page. For this, I make use of the (\checkoddpage) \ifoddpage test provided by the changepage ...
0
votes
0answers
25 views

Modify/Remove italic correction in math [duplicate]

Is there any way to modify or remove the italic correction in all math environments globally? I don't like the uneven spacing it causes when there are multiple variables multiplied together or ...
5
votes
1answer
92 views

Reduce horizontal width of miniframe in beamer

I have a beamer presentation with only three sections. Right now they are spaced at equal distances across the slide, but I would like to compress them so that they are spaced evenly in the left hand ...
4
votes
2answers
87 views

How to space before and after a `minted` code block with bgcolor?

I'm using minted to format code samples in my document, and I have set a bgcolor option to make them stand out. By default (as in Harish's answer below) the code block will naturally have some ...
0
votes
0answers
47 views

LaTeX Chapter start on same page, spacing error

I'm trying to use this code for no use of \clearpage for chapters in a report. \makeatletter \patchcmd{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi}{\par}{}{} \makeatother The command ...
3
votes
2answers
62 views

Moving a colorbox down and right not working with vspace and hspace

I have trouble positioning a box and am not sure why this is happening. First, the expected behavior. I want the box to appear 1cm left and 1cm down from my text, like this: \documentclass{article} ...
9
votes
2answers
211 views

What's the difference between ~ and {\mbox{$~$}}

I'm looking at the source code of a book where I found: D.{\mbox{$~$}}Knuth What's the purpose of this?
6
votes
2answers
216 views

Spaces added to occurrences of “{}” in the TeX code

Can anyone explain how to get rid of spaces that are automatically added around arguments provided in curly braces in the main part of a text? Here's a minimal example: \documentclass{article} ...
2
votes
1answer
57 views

Autoscale to fit images between paragraphs

Does anyone know to to place an image to fill up a space between paragraphs? My situation is that I have two minipages that must fall on the same page, but they dont take up all the space. Right now ...
2
votes
1answer
51 views

Reduce space after title in two-column article

I have a standard article in two-column format without author or date, only a title. I would like to reduce the vertical space after the title. I tried using \vspace*{-1cm} after \maketitle, but the ...
2
votes
1answer
71 views

List of Todos item whitespace

How can you remove the whitespace between items in \listoftodos from the todonotes package? Update: MWE with correct spacing: \documentclass[twoside,a4paper]{article} \usepackage[dutch]{todonotes} ...
3
votes
1answer
68 views

Changing frame size in mdframed

I am trying to place a box around a definition. Using the package mdframed, I have managed to do so. However, the box is too large, in particular too tall, and it is covering up text appearing above ...
3
votes
1answer
78 views

Space above quote in moderncv banking style

How can I decrease the space above the quote using moderncv banking style, as in the following image: Mock code: \documentclass[11pt,a4paper,sans]{moderncv} \moderncvstyle{banking} ...
9
votes
1answer
76 views

Automate correct spacing after ! in math mode

$(2n)!/\bigl(n!\,(n+1)!\bigr)$ $${52!\over13!\,13!\,26!} + 33!! - y$$ $(2n)!/\bigl(n!(n+1)!\bigr)$ $${52!\over13!13!26!} + 33!! - y$$\bye How could we automate the spacing after !? As explained in ...
3
votes
2answers
132 views

Split the title of a table into more than one row

Suppose I had the following; \begin{table} \centering \begin{tabular}{|c|c|} \hline \multicolumn{2}{|c|}{Table1} \\ \hline A very long equation with k as input & Answer \\ \hline 1 & ...
5
votes
1answer
47 views

Vanishing spaces between words inside a QRcode

When the text of a QRcode comes from a \newcommand{\TextInsideQRcode}, the spaces between the words vanish. Is there a way to maintain the spaces between the words ? \documentclass[]{article} ...
2
votes
3answers
109 views

Eliminating whitespace around characters within TikZ nodes

I want to "glue together" single characters in TikZ by putting each character in a node and placing them next to each other. However even with inner sep=0 and outer sep=0 there remains a space. The ...
4
votes
1answer
86 views

how to add blank space before colon in figure caption

my thesis template is using caption package for figure captions and when i added figure like this \begin{figure}[h] \centering ...
4
votes
2answers
187 views

Too high footer on (custom) title page in scrartcl

I wanna have custom title page in my document created with scrartcl class. I'm using titlepage environment (which I believe sets thispagestyle=empty). Still I have rather high footer: just as in ...
1
vote
1answer
38 views

Avoid table overlaying with another column in IEEEtran

I am trying to create a table which is occupying end to end in the IEEEtran paper. If the table comes in the first column, then the text on the right column overwrite the remaining columns of the ...
3
votes
2answers
120 views

How to save space displaying “max x \in [a,b]”?

I just create a summary for usage in my exam and there are a lot of information worth to be on this summary page. k=1,...,n below max is a waste of space (I have more than 10 of these wasted lines ...
2
votes
3answers
71 views

How to control space after a \makebox

This MWE is part of an exam. Before each question I put a box in the left margin that includes the question number and the max score. For this MWE only, I changed the \makebox into a \framebox to ...
5
votes
1answer
255 views

How to allow for some space between introduced Programming Code and text

I'm using the following ( the latex code is not from my authorship, I just used one from a question I asked here a long time ago.) \documentclass[12pt,a4paper]{book} \usepackage{graphicx} ...
6
votes
1answer
259 views

French spacing for semicolon in math mode

When writting mathematics in a french document, you should use the semicolon instead of the comma to separate the coordinate of a vector or a point (for example). The problem is that in math mode, ...
1
vote
3answers
108 views

How do I add a space at the beginning of each line

I am a beginner with TeX. I am trying to put a few spaces at the beginning of the line. Or a tab, whatever would work. But whatever I try it just puts space on the first line. My questions: How do I ...
1
vote
1answer
57 views

I want vertical space between my picture and paragraph, both horizontal and vertical spaces needed

{get rid of the graphics if needed] Can anyone show me how this can properly be written? How should I use paragraph? I'm honestly lost \documentclass[12pt]{article} ...
0
votes
1answer
53 views

Make `enumerate` start from a new line [duplicate]

I'd like to put enumerate on a new line, but cannot use \newline because there is no line to end! Here is the code: \newtheorem*{quoz}{Teoremi del quoziente} \begin{quoz} % \newline here does not ...
0
votes
0answers
17 views

Impact of enclosing lines with curly brackets [duplicate]

When I compile the following (almost identical) two pieces of code, there is much more vertical space between both words in the first example than in the second example: % Much space between the ...
2
votes
1answer
92 views

Horizontal spacing in “align” mode

I write gamma symbol with indices in normal math mode as follows; \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} $$ \Gamma^{\alpha} \\ _{\mu \nu} $$ \end{document} This is ...
3
votes
1answer
126 views

Spacing rules for operatorname

When does extra space get inserted by \operatorname? In the example below it appears extra spacing is inserted in the second and third case, but not the first. Why? \documentclass{report} ...
5
votes
1answer
119 views

Some extra space in references IEEE

I have write this code (a simple citation): \noindent to an acceptable level of approximation. Alternatively, some authors~\cite{roussas1997course} simply require that: And used this command, for ...
3
votes
1answer
50 views

operatorname and mathbin spacing

It seems like operators (e.g. \sin) don't mix nicely with binary operations (e.g. \circ). An example: \documentclass{article} \usepackage{amsmath} \begin{document} $\sin \circ f$ $\mathrm{sin} ...
13
votes
1answer
309 views

LaTeX Beamer: Define \itemsep globally

In LaTeX Beamer, I'm trying to set \itemsep globally. I've already tried the following, but it doesn't work: \documentclass[14pt]{beamer} \setbeamertemplate{itemize/enumerate body ...
6
votes
1answer
117 views

Undesired spacing before \sqrt[n]{x}, proper way to fix?

This code \documentclass{article} \usepackage{amsmath} \begin{document} \[ J(\sqrt[n]{x}) \] \end{document} compiles into this: The spacing after the opening parentheses is ugly. What's the ...
3
votes
1answer
21 views

Less spacing at the end of equation lines using Split environment

Does anyone know why in the equation produced by the following code, the plus signs at the end of the first and second lines have less space on their left sides compared to the other plus signs? and ...