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

Filter by
Sorted by
Tagged with
0
votes
0answers
8 views

Add space above algorithm2e

I'm trying to figure out how to add space above an algorithm2e algorithm. The algorithm is exceeding the margin, and I can't get it to move down with vspace. Its just the top bar that is exceeding the ...
0
votes
0answers
42 views

Why does \setlength\**sep{**} in itemize environment not work as will?

I want to use itemize in my paper. Since I have found the separation in itemize is too loose, I want to make the items more tight to each other as well as to the the text. The original look is like ...
0
votes
1answer
30 views

Spacing between header and text

I have a pretty simple report document that I made myself (I usually use templates) \documentclass[11pt, a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{titling} \usepackage{graphicx} \...
1
vote
1answer
26 views

Align equations with others in a nested aligned environment

I am trying to align the following set of equations \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \begin{document} \begin{align*} [J_i,J_j] &= i\hbar\epsilon_{...
0
votes
2answers
28 views

Spacing between horizontal lines in a title and spacing in general

I am trying to create a custom title for my document, but the space between my horizontal lines, or the spacing in general doesn't work properly. Here is a minimal-working-example, which - I hope - ...
4
votes
1answer
49 views

How do I set the font size and spacing of list items globally using the enumitem package in LaTeX?

Using the enumerate environment and the \enumitem package in LaTeX, I tried to create a list where the text of the individual items has a smaller font and is single-spaced. I would like to do this ...
0
votes
1answer
21 views

Uneven blocks in beamer columns

I made some slides for finding roommates/housing in Beamer; however, upon closer inspection, I noticed that two exact same blocks have different spacing - one of them has a larger header bar but the ...
2
votes
1answer
36 views

PdfLaTeX: How to Add Space between Different Rows in a Table

I'm confused about this problem, I want to add a space between different rows in a table, may I know if there is anyone who can solve it, thanks all in advance! \begin{table*}[htbp] \caption{This ...
3
votes
1answer
45 views

New Environment with spacing issues for equations

Preety often i write equations with evenly spaced objects to be centered, like \begin{equation*} \hphantom{ \hspace{1cm} {(x\in X)} } f(x) = Ax + B \hspace{1cm} {(x\in X)} \end{equation*} which ...
0
votes
0answers
22 views

Flipping the text labelled on an arrow and reducing arrow size?

Consider the MWE by Zarko: \documentclass[12pt, a4paper]{report} \usepackage{amsmath} \usepackage{tikz} \usetikzlibrary{arrows.meta, positioning, quotes} \begin{...
0
votes
2answers
37 views

Cryptocode/falign: spacing between lines

I'm using cryptocode to display some crypto-related things in a memoir document, but I'd like to decrease the default spacing, which is huge (especially when using one half spacing in the rest of the ...
3
votes
2answers
63 views

Conditional title in tcolorbox: not equivalent to an untitled box when empty

Consider the following code : \documentclass[10pt]{article} \usepackage{ifmtarg} \usepackage{xcolor-material} \usepackage[most]{tcolorbox} \makeatletter \newcommand{\makeboxtitle}[1]{\@ifmtarg{#1}{}{\...
0
votes
0answers
16 views

How to increase letter spacing when using unicode-math range feature?

Using the package unicode-math and compiling with xelatex, one may use \setmathfont[range= ... ,Scale=MatchLowercase]{ ... } to change the italic and upright math letters. However, there are usually ...
1
vote
1answer
54 views

Remove space before and after proof environment

I'd like to wrap the proof environment to add bars on the left (the \tcolorbox package does not handle foot notes properly). However, when I do the wrapping I get unwanted space before and after the ...
1
vote
1answer
40 views

How can I reduce the "Underfull \vbox badness" warning if I have a tcolorbox box that almost takes up an entire page?

I want to create a box using the tcolorbox package that almost takes up an entire page and here's my MWE of a document that I compiled using LuaLaTeX in a scrbook class. % !TeX program = lualatex % ...
2
votes
1answer
32 views

How do I increase the spacing before and after the empheq environment (with tcolorbox)?

I want to ask a question on how to properly increase the spacing before and after the boxes set inside an empheq environment. Here's my MWE that I compiled using LuaLaTeX. \documentclass{scrbook}[DIV=...
0
votes
1answer
26 views

longtable + multicol: How to simulate \endhead using texts at fixed positions on each page?

I'm using the problematic combination of packages longtable and multicol, but so far after two runs I had perfect results. There is only one thing that doesn't work: repeating column titles on each ...
0
votes
0answers
16 views

Removing some space between consecutive mdframed boxes

Below is an MWE. In short I would like to change the spacing between consecutive boxes without affecting the spacing between box and text. \documentclass[11pt]{report} \usepackage{parskip} \usepackage{...
0
votes
1answer
25 views

How to prevent completely empty rows when using \dotfill?

In the code below, I'm using multicol with longtable and it works quite good. There is one thing I don't like: when a column has minimal overfill but the overfill is not problematic like the column ...
2
votes
1answer
36 views

macros avoid space if macro expands to nothing

(preface: this lua stuff is just the motivation the real issue is with pure LaTeX) I'm currently in some package writing in particular with LuaLaTeX. Since I'm often having a/some commands which ...
5
votes
3answers
277 views

How can I have spaces in text within a formula?

I have a series of TeX formulas where the author has put in spaces in the text, for example: {\rm{Maximum credit}} = {{\mathop {{\rm{Net income from sources}}}\limits_{{\rm{without the United States}}}...
3
votes
3answers
74 views

Change spacing under \lim

I would like to increase the spacing of the lower limit of \lim command, such as: The default (first) does not have enough space between the $x$ and the $c$, the second is what I would like it to ...
1
vote
0answers
17 views

Multiline \institute has no spacing in Beamerposter footline [duplicate]

I've implemented a custom theme to provide institute information in the footline of my poster. It works fine in practice, but the spacing between lines is way off if the lines don't include characters ...
-1
votes
0answers
30 views

How to make space after headers

I need to make one space after the headers + I want to make the header always start on the left side
1
vote
2answers
35 views

Align vertical beginning of text after chapters [memoir]

I have a memoir document, and want that beginning of text block after chapters headings are on the same height. Independent of chapter title length, or section title. MWE: \documentclass{memoir} \...
1
vote
0answers
22 views

Wrong vertical distance between last paragraph of a letter and the closing with setspace

I'm using the letter class together with the setspace package with doublespacing option. Also, I set a 2 em paragraph indent an a 0 pt paragraph skip. The matter is that I don't get double-spacing ...
0
votes
1answer
28 views

Remove extra space around single-spaced equations within a double-spaced document

I would like to use single-spaced equations with equation numbers in a double-spaced document. I found a solution to this problem: Single-spaced equations in double-spaced documents, but this solution ...
0
votes
2answers
49 views

default value of \tabcolsep

Consider this example: \documentclass[varwidth]{standalone} \begin{document} \begin{tabular}{lc} A11 & A12\\ A21 & A22 \end{tabular} \setlength{\tabcolsep}{0pt} \begin{tabular}{lc} B11 ...
3
votes
2answers
42 views

Shrink vertical space eqnarray

How to globally shrink the vertical space between lines in eqnarray? I understand eqnarray is not preferable but it is a legacy file for reprint. \begin{eqnarray} 1 + 1 &=& 2 \\ 1 + 1 &=&...
0
votes
0answers
12 views

Remove blank space following a part (\part) [duplicate]

I'm having trouble removing the blank space after starting a new part. What I ideally want is for my text to appear straight after my part heading, i.e.: Introduction TextTextText However Latex is ...
1
vote
1answer
34 views

Adjusting the Spacing Between Headings, Entries, and Subentries with Idxlayout

Consider the code \RequirePackage{filecontents} \begin{filecontents*}{\jobname.mst} %delim_0 "\\IndexDotfill " %delim_1 "\\IndexDotfill " headings_flag 1 heading_prefix " \\...
0
votes
0answers
48 views

How to remove extra space of one line

I am not much familiar with Latex, and I am struggling with one extra line that is left behind after the Project title, as shown in the figure after the Face Mask title. How shall I get rid of it? ...
3
votes
2answers
52 views

Spurious space after automatic line break before \index in math mode

Feeding \documentclass{article} \pagestyle{empty} \usepackage{makeidx} \makeindex \begin{document}% \newlength{\myLen}\setlength{\myLen}{33em}% \noindent 1st line. Plain \(B\), no index:\\ \hspace*{\...
0
votes
1answer
16 views

Remove emphasized spaces on lstlisting with bash

I have the following code that prints my bash code on the document \begin{lstlisting}[language=bash, caption=Comandi per l'installazione dell'engine di Docker,captionpos=b] $ sudo apt-get update $ ...
2
votes
3answers
61 views

Spacing of rows in a table [duplicate]

I am using package tabular but encounter a problem with the spacing of rows, I would like to have more space at the top and at the bottom of each formula. I already looked at older posts dealing with ...
1
vote
1answer
43 views

Change table font size to fit into PDF output

I have a table that I am trying to display in the PDF output. \begin{center} \begin{tabular}{ |c|c|c|c|c|c|c|c|c| } \hline Day & $\mu(R)$ & $\sigma(R)$ & $\lvert R\textsuperscript{-} \...
4
votes
3answers
160 views

Spacing problem with \usepackage{siunitx}

im currently working on my Master's Thesis and i need siunitx for my SI units. The problem hereby is, that somehow my code doesnt generate the normally installed spaces between the number and the unit....
0
votes
1answer
30 views

removing huge spaces between sections

I am currently using a template from latex and I am trying to remove these spaces (image in the link below as the image is very large). I tried to use \vspace{-30cm} and \\ but it seems like it has ...
2
votes
2answers
71 views

Identical spacing of inference lines with Bussproofs

I'd like every derivation in my document to meet these two requirements: The distance between two consecutive inference lines should always be the same (the red arrows in the figure should have equal ...
1
vote
1answer
37 views

Set double spacing between the list figure captions

I am using a PhD thesis template define list of figures as following: %---------------------------------------------------------------------------------------- % CLASS OPTIONS %----------------------...
0
votes
0answers
122 views

Problem With Xtocinc.sty With Latest Miktex v4.4 Not Displaying Correctly Tableofcontents

Problem With Package Xtocinc.sty or Something Else Hello everyone here I have compiled a thesis file successfully in latex with latest Miktex console 4.4 but still not getting correct formatting in ...
0
votes
1answer
42 views

How to reduce space between Chapter Name and Chapter Title in fncychap

I am using the \documentclass[12pt]{report} with \usepackage[Lenny]{fncychap}. How can I reduce the space between the line which says "Chapter 1" and the title for that chapter, say "...
3
votes
1answer
67 views

Is there a way to customize automatic spacing between in-line math equations?

Is there a way that I can automatically fix the spacing between all the math characters for in line equations aside from using negative spaces? In the example, the spacing in "x \in U", &...
2
votes
3answers
176 views

Align 2 lines horizontally starting from a dash symbol , with the first previous one without subscript and the second previous one with subscript

I try to align horizontally 2 lines after 2 words, the first one not containing a subscript in text (see below with "WL") and the second one with a subscript (see GC_{sp}). I used for this ...
1
vote
1answer
32 views

Horizontal space between math mode and punctuation

In the following minimal example, the first version is what I would normally type. However, for my taste the space between the T and the comma is too large. The other three versions look better to ...
1
vote
2answers
27 views

Set vertical spacing of custom new environments

I defined a code environment in which minted environments are put in order to span in multiple pages. The problem is that captions are too close to the text next to the code frames. How can I increase ...
1
vote
1answer
36 views

Line spacing and \enumerate with different list levels

I have a list like this one: I do not want to have spacing between lines (2) and (a), but I would like to keep spacing between (1) and (2) and between (b) and (3) (as on the photo). I tried to solve ...
0
votes
1answer
67 views

Title custom blocks

how can I make the custom blocks for my title section inside the .tex file? I mean except \author \date. For example I need the UDC (universal decimal code) numbers right before the title of my ...
1
vote
0answers
31 views

Roots and spacing: symmetrical brackets [closed]

I have this simple MWE, \documentclass[a4paper,12pt]{article} \usepackage[italian]{babel} \usepackage[utf8]{inputenc} \usepackage{mathtools,amssymb} \usepackage{geometry} \begin{document} \begin{...
1
vote
1answer
30 views

Skip to absolute horizontal position in math mode

I tried to use the tabto package in math mode in order to skip to an absolute position, but it doesn't work. Is there a simple way to do it? \documentclass{article} \usepackage{tabto} \begin{document}...

1
2 3 4 5
143