Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [spacing]

{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}.

4
votes
2answers
123 views

Adjusting the spaces to look better?

The following output looks so dense. Could you make it more loose in both vertical and horizontal? MWE \documentclass[preview,border=12pt,12pt]{standalone} \usepackage{amsmath,xcolor} \let\temp\...
0
votes
0answers
22 views

if statement to remove spacing between lines

i am working on a resume using a latex template. in the template, there is spacing in case you wish to add an additional bullet point. however, if you don't add that bullet point, the spacing stays ...
0
votes
1answer
20 views

How to add a short text in math-mode keeping spaces between words

I am writing the following: $$p(Z_{n+m}=i for some m> 0|Z_{n}=i)=1$$ Compiling, the spaces between the words "i for some m" are removed giving as a result "iforsomem" How can I prevent this? ...
0
votes
1answer
50 views

Spacing randomly appeared inbetween a sentence

I have the following but it looks awful: \documentclass[11pt, a4paper]{article} \usepackage{eurosym} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...
0
votes
0answers
27 views

How to Make Two Different Headers

I wanted to create such a model, but it misconceived. I want one like that. The different headers because the second has a line that splits the text. In the first one besides the logo, the line, the ...
6
votes
1answer
186 views

No spacing after \Sigma?

There seems to be barely any spacing (if at all) after \Sigma, making it hard to read. Is this normal? Is there any way around it? $ \Sigma_{v \in V} \alpha $ Output: Desired output:
0
votes
1answer
22 views

Different spacing after periods

My problem is different spacing after periods. I only hit space one time, however spacing between period and next letter is not constant in entire document. How can I make it constant?
0
votes
0answers
34 views

New page appears indented (moved to the right)

When I begin a new page it seems like page x is normal but the next page x+1 is completely indented, the next page x+2 normal and the next x+3 indented, I don't find the way to solve this My code is ...
1
vote
1answer
55 views

remove spacing from a definition

I am trying to remove the excessive space between a definition. \documentclass[11pt, a4paper]{article} \usepackage{eurosym} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...
0
votes
1answer
27 views

Don't replace new line with space

Is there a way to prevent TeX from replacing new lines with spaces? This example text second example text results in this but what I want this Any help is greatly appreciated.
0
votes
0answers
18 views

Double space bibliography using RevTex4-1

I am using RevTex4-1 and I need to make bibliography double spaced. I found this article which gives this approach. \newlength{\bibitemsep}\setlength{\bibitemsep}{.2\baselineskip plus .05\...
6
votes
2answers
113 views

Why do spaces stop my hrules from all being flush with each other?

I'm trying to make a typeset form using some custom commands that I've built. Part of that effort is making "blanks": macros for blank space where someone can write something in after the document has ...
1
vote
2answers
40 views

Inline list: How to insert a non-stretching but line-breaking thin space?

This is a follow-up to How to insert a non-stretching but line-breaking thin space?, but in reference to an inline list. The MWE below attempts to use each of the solutions mentioned there, but the ...
2
votes
3answers
39 views

Why does \setlist{nosep} doesn't work in a tabular environment?

I want to have nice tight lists with no spacing before, after or in-between the items. I managed to do this according to the answer from this question: How to remove the whitespace BEFORE itemize/...
1
vote
1answer
26 views

How to set particular spacing between first two lines?

I have this code \textbf{An example of description:} \begin{description} \item[enumerate] let you create enumerated lists. \item[itemize] let you create something \item[description] let you create ...
18
votes
1answer
316 views

Spacing difference when using boxes

On the left (obtained from the MWE below), I do not use boxes for the title nor the body text and the title and the text appears to be in the correct spot. However, when I attempt to use \...
4
votes
1answer
33 views

inconsistent space between subfloats in subfloatrow

There is an inconsistent space between the second and third subfloat in subfloatrows. I don't understand where it comes from and how to remove it. (OMFSM, MWEs can take a really long time to assemble!)...
3
votes
0answers
214 views

Simple LaTeX document sticks all consecutive words together (ignoring spaces) both inside and outside of `\text` [on hold]

\listfiles\documentclass[varwidth]{standalone} \usepackage{lmodern} \usepackage{amsmath, amsthm, amssymb} \begin{document}\fontsize{30}{36}\selectfont Let $a$ be a symbol. \end{document} The result ...
1
vote
1answer
20 views

Place subscript below math operator and its following symbols

I'm dealing with equations from statistics that include expectations over quite long expressions. To display those without too many line breaks, I'd like to place the subscript below the operator and ...
1
vote
2answers
34 views

Add spacing at the end of inline mathmode \(…\)

The language I use for certain files look much better if there is a small space \, after each inline equation, like this: \(...\) % BAD spacing \(...\,\) % GOOD spacing But it's not quite ...
1
vote
1answer
59 views

Vertical space before align environment is smaller than before displayed math

The result of the following code is strange: vertical space before align environment is smaller than displayed math. What is the problem with align environment? Edit: I want the same vertical space ...
8
votes
2answers
914 views

Why is the spacing in this itemization so bad and why can it be fixed by adding a percentage sign

In the following LaTeX Beamer MWE, why is the spacing of the itemization so bad and why can it be fixed by adding a percentage sign after (... subitems)? Most importantly: is there a reliable and ...
1
vote
1answer
42 views

Cummulative spacing after runsubsection

I'm new to Latex and I'm adapting Deedy resume template trying to add dots joined by lines to spot dates using Tikz. After each \runsubsection command nodes are placed after vertical spacing that ...
0
votes
1answer
43 views

White horizontal space

I know the possible ways to add white space between two texts, as explained and answered here. What I'm struggling to set is a white space before one word, nothing that I tried worked except this: \...
6
votes
1answer
50 views

Missing space with DeclarePairedDelimiter

I’m trying to define an abs command for absolute values using DeclarePairedDelimiter from the mathtools package, but I’m running into some spacing issues. I’d normall write \sup_n \abs{a_n} defined ...
2
votes
1answer
19 views

Regression in spacing before lstlisting environment with version 2018/09/02 after paragraph break

Anyone else noticed a difference in the spacing before a lstlisting environment since upgrading to version 1.7 2018/09/02? Here's a MWE with output with version 1.7 and version 1.6 for comparison. I ...
1
vote
0answers
19 views

Automatic line feed after paragraphs?

I would like to have more space between the paragraphs, this automatically using usepackage or similar, for the whole document. Would you have an idea how? thank you \documentclass[11pt]{article} \...
0
votes
1answer
34 views

Change line spacing for a table inside a document [duplicate]

I am writing a document using agujournal2018.cls template. The template could be found here. I have a lengthy table inside my document which do not fit A4 page with double spacing. I want minimum ...
2
votes
1answer
25 views

How to create space between chapter in List of Listings

I want space in the List of Algorithm for every chapter that I insert, similar to how it occurs in the List of Figures and List of Tables. This is my code: \documentclass{book} \usepackage{lipsum} \...
1
vote
1answer
21 views

Empty frame due to `allowframebreaks`

The MWE below, after compiling with pdflatex mwe.tex && bibtex mwe.aux && pdflatex mwe.tex generates a PDF with 3 pages. 1. the sigh frame, 2. the first of two bibliography frames, and ...
2
votes
1answer
66 views

Footnote creates unwanted space

In an interlinear translation (Yiddish left side - German right side) I have footnotes, which unfortunately mess up the line spacing. What can I do to make this distance go away? compiling with ...
0
votes
1answer
41 views

Add space in paragraph

I want space in paragraph \documentclass{report} \usepackage{float} \renewcommand\paragraph[1]{$\bullet$ \textbf{#1}} \begin{document} \chapter{ } %if you want a name write it as \chapter{name} init \...
2
votes
1answer
39 views

Missing vertical space around a theorem environment when using enumitem

When a theorem environment (defined via amsthm) is used inside of an enumerate environment, then some vertical space around the theorem environment seems to be missing. \documentclass[a4paper,10pt]{...
1
vote
1answer
41 views

Multiple Line Text Box

Given the many similar questions on TeX.SE, my desired answer may be somewhere else on this site, but I have not been able to find it -- apologies if this is a duplicate! I am writing the following ...
2
votes
1answer
58 views

Drawing grid lines to show vertical position of text [closed]

I have text where I want to adjust the space above the first line. I want to overlay grid lines to show where the vertical position of the text is. The MWE below with the following line commented is ...
1
vote
0answers
38 views

How can I avoid this space in math mode, while using microtype, titlesec and lsstyle?

When I'm compiling the following minimal working example, I get an upleasant space in the "math mode" mode: \documentclass{article} \usepackage[letterspace=400]{microtype} \usepackage{titlesec} \...
13
votes
2answers
285 views

Tikzpicture with remember picture and overlay inserting vertical space

I am trying to insert additional vertical space at the top, but instead this vertical space is inserted after the first title line: However, if I comment out \TikzDecorations[2], I obtain the ...
0
votes
0answers
8 views

Irregular spacing between section titles and text using llncs class, algorithmic and minipages [duplicate]

Following is a MWE of my problem. I am using llncs class file for a conference paper and if I write the paper without the use of algorithmic environment and minipages, the space between section title ...
11
votes
1answer
179 views

Spacing between two relational symbols

I have a relation symbol that I want to define through an equality. The problem is that when I do this, LaTeX puts too little space between the relation symbol and the equality symbol. My guess is ...
1
vote
1answer
27 views

Adding space at the beginning of a line

How can I add some blank characters at the beginning of a line? The point is to align text with the relevant text above, e. g. instead of: (a) text text I would like to have: (a) text ...
2
votes
3answers
34 views

Making \paragraph{} spacing the same as other paragraphs

I am using the ACM proceedings template. I use the \paragraph{} command to highlight a few words at the beginning of the paragraph. However, the paragraph spacing is significantly more when I use the \...
0
votes
1answer
39 views

Consistent spacing between caption and TikZ and EPS figures

The problem I have is that spacing between a TikZ figure and its caption is bigger that between any other type of pictures and their spacing: Obviously, it can be solved by hardcoding \vspace{} or ...
2
votes
1answer
36 views

Spacing issue in table of contents

I'm new here, so I hope I'm adhering to any community rules. I am trying to create a table of contents for some notes I'd like to record on LaTex. Here is my code: \documentclass[12pt]{article}...
0
votes
0answers
23 views

Horizontal spacing in matrix

I have installed and used amsmath package, however row entries in matrix are not separated. I can't use a dollar sign to do it, because the code is not compiled and I don't get printed matrix in pdf. ...
0
votes
2answers
25 views

Reducing space in the Table of Contents

I'm using the following codes \documentclass[12pt,a4paper]{report} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Useful Packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %---------------------math--------...
1
vote
1answer
58 views

How can I divide a page in 4 pieces?

I want to make a page like this? This is done in word, and there's 4 separate text fields you can edit. I don't have a MWE because I don't know where to start.
2
votes
1answer
320 views

Spacing between lines + unable to install package

I need to increase the spacing between lines for my thesis. It seems like "setspace" is what I have to use (\usepackage{setspace}) but i get... The required file tex\latex\setspace\setspace.sty is ...
1
vote
1answer
60 views

Align a set of equations

\documentclass{article} \usepackage{setspace} \usepackage{amsmath} \usepackage{amsfonts} \begin{document \doublespacing{$f(\chi_0)=\frac{1}{5}[f(0)+f(1)+f(2)+f(3)+f(4)]$\\ $f(\chi_1)=\frac{1}{5}[f(0)...
1
vote
1answer
37 views

How to increase spacing for a fraction

so I have the following: \usepackage{amsmath} \usepackage{amsfonts} \setlength{\parindent}{0pt} \newcommand{\forceindent}{\leavevmode{\parindent=3em\indent} \begin{document} \forceindent $f(\chi_i)=\...
6
votes
2answers
209 views

How to have 4 subsections on 2 paragraphs

So I'm trying to have four different subsections on "2 different paragraphs". what I mean is the following: x ¦ x ----¦---- x ¦ x where x denotes the ...