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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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

0
votes
1answer
27 views

Is there a way to have a constant space between the (sub)section number and the heading in the ToC

I have a document which unfortunately has a section 10.13 and a subsection 10.13.1 and I'm sure there will be many other such examples. Unfortunately, this makes for an extremely ugly table of ...
0
votes
0answers
18 views

Paragraph spacing in \documentclass{article} with Figure and Listings

I have a problem with the paragraph spacing in my \documentclass{article}. I am using \lstset{} function (Code Listings), LOF and TOF. I want to have a 1em spacing between my paragraph text and the ...
7
votes
3answers
86 views

Change table spacing

I would like to create a table that looks like the one from Excel (First picture). But the top row is creating weird spacing in LaTeX (Second picture.) \usepackage{amsmath} ...
0
votes
1answer
44 views

Unexplainable change of line spacing

I am currently writing my bachelor's thesis and have encountered some very peculiar behavior in LaTeX which I frankly cannot explain. I am using the setspace package and have \onehalfspacing set at ...
0
votes
1answer
23 views

Why are there two identical headwords in an index where there should only be one?

In an index generated by Latex there are the two headwords: abhainn, 52 and abhainn, 53. But there should only be one, abhainn 52, 53. Both of the instances of abhainn are marked identically in the ...
4
votes
1answer
67 views

What is the best way to space an equation?

Recently I have chosen to change the typical way of writing in math mode for one in which before certain operators or symbols there is a space in between (think about arrows, =, :, etc.). Consider ...
2
votes
1answer
44 views

Stop jumping in itemize (beamer)

Context Within my latest presentation I probably encountered a bug within the beamer package. Since todays screen sizes are mostly 16:9 or 16:10 I changed my setup to 16:10 ratio. While doing this I ...
2
votes
2answers
38 views

tocloft change font size of “List of Figures”

I am using tocloft for the first time, and I want to make the "List of Figures" and "List of Tables" font smaller and appear on the same page, directly after the table of contents. I want list titles ...
4
votes
2answers
51 views

ConTeXt: Avoid extra line from figure in itemize

Constructing exams I often want to put figures close to the problem text. Perhaps I am doing something in a bad way, but the naive way adding a right-aligned figure does give an extra, unwanted, line. ...
0
votes
0answers
24 views

How to reduce spacing between list when used in columns?

I am not able to write code here so I am attaching a link to code ShareLatex .cls and .tex file In last bullets when it goes to next line, the spacing is more than rest of bullet points. How can I set ...
2
votes
1answer
79 views

$x_1, \dotsc, x_n$ vs. $x_1$, $\dots$, $x_n$

For example, if I want to say something like Let x_1, ..., x_n be real numbers. should I use Let $x_1, \dotsc, x_n$ be real numbers. or Let $x_1$, $\dots$, $x_n$ be real numbers. Note that if ...
0
votes
1answer
28 views

filbreak adds extra vertical space

I'm writing a book with a long list of questions. Most questions come in parts. At the bottom of a page it breaks after printing the number of the problem but before printing the parts, which is ...
3
votes
1answer
46 views

Spacing issue with literate in listings

I answered this question and OP showed me a problem with the answer. The code: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{listings} \lstset{ % keepspaces, % Apparently this ...
2
votes
2answers
49 views

How to set the chapter title in center of the page?

I want to set (Chapter 1 Introduction) and (Chapter 2 Protective Relay) only in the center of the page, I try to use \vspace*{} and \vfill but unfortuntly It isn't work, My code is: \documentclass{...
0
votes
1answer
23 views

Glossary page list spacing

I am compiling a document with a glossary using \RequirePackage[xindy]{glossaries-extra} as well as a personalised glossary style. %% Glossary \newglossarystyle{myGlossStyle}{ \setglossarystyle{...
0
votes
1answer
55 views

Making an equation sheet for a 3'' x 5'' index card

As the title says I am trying to make a small cheat sheet for a 3"x5" index card in LaTeX. I'm using LaTeX so I can get a really small font and fit as much as possible. I've seen the flashcards ...
2
votes
3answers
26 views

Vertical spacing with \cmidrule with datatool table

I would like to insert a cmidrule when I have an empty line in a table produced by the datatool package and also use \bottomrule. Both of these yield excess vertical space above the line: How do I ...
0
votes
0answers
27 views

Why create space between text when adding a figure with H [duplicate]

I have created a section and added a figure below it. When I change the scale of the figure it has the effect on the space between this section and the previous section. I used this code for figure: \...
0
votes
1answer
39 views

Command like \vspace*{} but applied to current line

So within a paragraph putting \vspace*{-2pt} in a line raises the next line (and the following ones) by 2 pt. Is there a way of having it apply to the current line instead? For now, what I've got is \...
1
vote
1answer
46 views

beamer: content next to overprint environment

I'd like to put some text (actually a figure) right next to an overprint environment (e.g., containing a listing). To that end, I have set the optional argument of the environment to use less space ...
0
votes
0answers
25 views

svmono + newfloat - caption: how to adjust spacing separating the caption and the float contents

Consider the following code \documentclass{svmono}% Version 5.5, available from https://www.springer.com/gp/authors-editors/book-authors-editors/manuscript-preparation/5636 \usepackage{newfloat} \...
1
vote
2answers
30 views

Spacing in cell with \makecell command

I'm having a problem with deleting the extra space in the cell. I think it may have something to do with using \makecell in a \mulitcolumn. I'm trying to have empty space on the 1st line in the second ...
6
votes
2answers
109 views

Mysterious horizontal space when using \label after beginning a user-defined environment

Here is my MWE: \documentclass{article} \RequirePackage{expl3} \RequirePackage{xparse} \ExplSyntaxOn \newcounter{exercise} \NewDocumentEnvironment{exercise}{} { \refstepcounter{exercise} \par\...
1
vote
0answers
33 views

How to produce a more condensed document using ieeetran class? [duplicate]

I am revising a document based on the referee's comments. They wanted a list of things to add to a paper otherwise full of mathematical and textual material in just 14 pages using the ieeetran class. ...
1
vote
1answer
53 views

Align title vertically on page [closed]

\documentclass{article} \title{Title} \author{Name} \date{} \begin{document} \begin{titlepage} \maketitle \end{titlepage} \end{document} Hi, how can I write a title in a centre?
0
votes
1answer
34 views

Adding more space between words in tcolorbox

Here is the code: % Preview source code %% LyX 2.3.0 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[a4paper,...
2
votes
1answer
56 views

Variable space between numbers and errors/uncertainties in mathmode?

I am relatively new to Latex and did not find an answer to the following problem: I am writing a thesis using the book class. The text contains many numbers including their plus/minus uncertainties. I ...
1
vote
1answer
20 views

1ex in tabular breaks tex4ht ODT conversion

I included the [1ex] spacing command in a tabular and attempted to convert to ODT using tex4ht (make4ht -f odt file). It doesn't work. \documentclass{article} \begin{document} \begin{tabular}{lll} ...
0
votes
0answers
21 views

Full line on twentysecond.cls

I am new to LaTex and using twentysecond.cls to create a resume. In the email section,my email id is big but can be contained in single but the template doesn't allow full line on /cvemail. Here's ...
2
votes
1answer
46 views

Tikzposter theme creates a blank space

I'm making a poster using tikzposter with the basic theme. Here's an example: \documentclass[25pt, a0paper, portrait, margin=0mm, innermargin=15mm, blockverticalspace=15mm, colspace=15mm, subcolspace=...
2
votes
3answers
60 views

Equation number is not on the same line because not enough space?

How can I format this equation better so that the equation number isn't forced onto the next line like this? \documentclass[12pt]{report} \usepackage[a4paper,left=2.5cm,right=2.5cm]{geometry} \...
2
votes
1answer
47 views

LaTeX won't hyphenate a word in sectioning header

I have a long subsection title, and it is resulting in the warning Overfull \hbox because LaTeX does not hyphenate the word "recherche" : \documentclass[12pt]{article} \usepackage[french]{babel} \...
0
votes
1answer
45 views

Spacing problems when using align equation [closed]

I am writing a report, and when I use in my subsection the \begin{align}, there is a great gap created between the subsection title and the first paragraph, when I remove it, the gap is removed. So I ...
1
vote
2answers
57 views

Delete blanks/tabs between \url and normal text

\footnote{Quelle: \url{https://www.khronos.org/webgl/wiki_1_15/index.php/BlacklistsAndWhitelists} am 27.07.2018 20:03} generates this footnote: How do I remove the tab or the blanks/spaces between "...
1
vote
0answers
41 views

Added vertical space on first page if starting with an equation [duplicate]

Consider this simple MWE: \documentclass{article} \usepackage[a6paper,showframe]{geometry} \setlength{\parindent}{0pt} \begin{document} Hello world \end{document} This is all fine. But if I start ...
2
votes
2answers
47 views

Custom space in regression output table (i do not want to use default \\)

I want to present results of a regression and I have the following code: \documentclass[article]{abntex2} \usepackage{cmap} \usepackage{lmodern} \usepackage[T1]{fontenc} ...
1
vote
0answers
21 views

Vertical space before sections using titlesec package

I am writing my thesis and each section must begin at a new page. I need to have 6 spacing before the sections and 4 spacing after the sections. My font size is 12 in article format and I am using \...
4
votes
1answer
79 views

How to align lines in a two-column layout?

I am trying to use a two-column layout in plain TeX (pdftex, to be precise), where the lines of text in the two columns are vertically aligned. Here is what I've got so far (code is below): Normal ...
3
votes
2answers
72 views

Reliably detect space left on the last page

I would like to reliably detect how much space is left on the last page of the document. Preferably, this should be accessible in a \AtEndDocument or similar hook, so that I can write this information ...
2
votes
1answer
40 views

Preserve label spacing dimensions when using mailmerge

I am making a sheet of address labels. Here is my first iteration: \documentclass[letterpaper,12pt]{article} \usepackage[newdimens]{labels} \LabelCols=4 \LabelRows=6 \LeftPageMargin=20mm \...
1
vote
2answers
52 views

Using \ifdefined to show/hidden content

I'm using \newcommand and \ifdefined in the following way: \documentclass[12pt]{article} \usepackage{color} \newcommand{\showcomment}{} \newcommand{\scomment}[1]{\ifdefined\showcomment\textcolor{blue}...
1
vote
1answer
31 views

Biblatex - remove extra spacing in citation range

I am using a biblatex-gost package with a gost-numeric style. Here is a MWE: \documentclass[12pt,a4paper]{article} \begin{filecontents}{\jobname.bib} @book{halanay, langid = {english}, title =...
0
votes
1answer
41 views

How can I remove the gap that's appearing between a graphic and a rule?

I am trying to put together a title page with a graphic taking up the upper portion, and a block of colour immediately below it. The code in question currently looks as follows: \newgeometry{margin=...
1
vote
1answer
88 views

If TeX / LaTeX modifies the spacing between individual letters

Wondering if there is any compression / expansion of the between-letter spacing done in TeX / LaTeX. In looking at the font specs, I noticed they only have 2 horizontal properties: advance width and ...
6
votes
1answer
72 views

How to make some character “unreadable” as text in the pdf output but still visible?

This question might be seen is a follow up/complement to this question and answer. I'm actually taking the example from there: \documentclass{article} \usepackage{xcolor} \usepackage{transparent} \...
1
vote
1answer
30 views

KOMA: Spacing between Page Number and Leaders in ToC

This is a follow-up question to KOMA-Script: Pagenumber immediately after heading in table of contents. If I use the suggestion in the answer, that is \RedeclareSectionCommands[ toclinefill=\quad$\...
0
votes
0answers
33 views

How to remove indent characters when copying from PDF document using listings package

I am pretty sure I read something about this before, but I can not find it. Mark it as a duplicate if so please. I am coding inside lstlisting environment using SPACEBAR for separate words and TAB ...
0
votes
0answers
26 views

Problem with spacing after Easylist

Creator of macro Easylist is @ereg (Easylist inside adjustwidth) My MWE: \documentclass{article} \usepackage{amssymb} \usepackage[ampersand]{easylist} \usepackage{changepage} \usepackage{lipsum} \...
0
votes
0answers
34 views

Way too much spaced between a table and a paragraph [duplicate]

I'm new to LaTex so I don't how to correct this problem. The right part of the image shows the pdf and the left one shows the code. As you can see, there is nothing more than words but the space in ...
0
votes
0answers
42 views

Set the space between the subsubsection title and its number

I would like to decrease the space between the subsubsection title and its number only. Space between chapters\sections\subsections name and their number should not be changed. I have tried to follow ...