Skip to main content

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
2 votes
1 answer
30 views

Changing color after a sublist changes vertical spacing

Edit: related to \color inserts unwanted vertical space in itemize I'm working with lists using itemize and I need to put the lists side by side. No need for help so far. I also want to use color to ...
Jander's user avatar
  • 1,160
0 votes
0 answers
27 views

line spacing is slightly varying before a tblr

I have two questions here. First, why does the space between the baseline of the line with \rule {...} {1ex} (kind of custom section) and the top of the tblr is changing when the line contains letters ...
user1850133's user avatar
  • 1,028
11 votes
3 answers
2k views

Is "double-lowercase-L" a ligature (Computer Modern Italic)?

Consider the following MWE: \documentclass{minimal} \begin{document} Which kerning do you prefer? \bigskip \emph{well willow wallow wellington} % \verb+ <--- Version 1, default kerning+ \...
mathmandan's user avatar
0 votes
0 answers
13 views

Spacing problem (underfull box)

I have the following problem: I have a theorem environment where I nested an enumerate environment. This environment is at the end of a page, and in the subsequent page, LaTeX starts producing ...
Matteo Bulgarelli's user avatar
1 vote
0 answers
25 views

Reducing the spaces before-after subsections and a table/figure environment

Working on a conference paper that limits number of pages to 10 on an LNCS template. Run out of the limit my about 3 pages. I am working to reduces content, but being careful not to eliminate ...
arilwan's user avatar
  • 399
4 votes
1 answer
59 views

The tensor package doesn't space indices well with some characters

I am using the tensor package to write tensors in my documents and I found that the indices aren't spaced well with some characters such as T or \mathcal{T}: \documentclass{article} % \usepackage[...
Shai Avr's user avatar
  • 909
2 votes
2 answers
50 views

Spacing and indexing in quantikz

Can somebody explain how I can add space in the following picture and code? \documentclass{article} \usepackage{quantikz} \begin{document} \begin{quantikz} \lstick{A} &&& \\ \lstick[2]{\...
David's user avatar
  • 21
1 vote
1 answer
48 views

Change line spacing in a ToC

I would like to customize the spacing in a titletoc-generated mini-ToC, by reducing the baseline within a given subsection title when it has to be spread over several lines, and/or slightly increasing ...
Piotr's user avatar
  • 25
0 votes
0 answers
22 views

How to remove automatically added empty line after environment [duplicate]

MWE: \documentclass{article} \usepackage [ top=20mm, bottom=20mm, left=30mm, right=10mm, nohead, nomarginpar, showframe, ] {geometry} \begin{document} \begin{center} ...
Intolighter's user avatar
4 votes
1 answer
106 views

How to increase the size of \bigskip?

I'd like to increase the size of \bigskip. How could I do that? This is a MWE: \documentclass[11pt]{article} \usepackage{lipsum} \begin{document} \lipsum \bigskip \lipsum \end{document}
domi's user avatar
  • 1,525
4 votes
1 answer
119 views

Superfluous space at start of aligned inside multlined

In the following LaTeX document, which uses the aligned environment inside multlined, there is an superfluous space after the opening { compared to when multlined is replaced by split: \documentclass{...
usertcl's user avatar
  • 85
1 vote
2 answers
41 views

Left-aligned and centered text on same line (not equations)

In the style which I'm sort of copying, dates are printed against the left margin and the entry's heading (which doesn't need to conform to LaTeX sectioning commands) is centered. I have borrowed code ...
DomMocquereau's user avatar
5 votes
1 answer
140 views

Automatically balance list across two columns

I'm trying to write a command to display a list of ingredients in a cookbook. What I currently have is a command that generates a 4 column tabularx where an input \ingredients{ \ing{1 1/2}{pounds ...
corndog's user avatar
  • 97
2 votes
2 answers
49 views

Text outside of the cell

How can i fix the issue shown in this image, the text 'Controler' spawns outside the cell. Here is my code : \documentclass[a4paper,10pt]{report} \usepackage[utf8]{inputenc} \usepackage{amsfonts} \...
SpikeSp's user avatar
  • 23
3 votes
2 answers
89 views

Missing vertical space at section end due to lstinputlisting

I have discovered that if a section contains an \lstinputlisting, the following section title will be typeset without the usual vertical skip (even if the listing is not the last vbox)... but only if ...
amonakov's user avatar
  • 1,012
0 votes
0 answers
22 views

How to get rid of indentation with trivlist continuing in a new page [duplicate]

Newbie to LaTeX. I've used \trivlist to list out my items, but as the list expands to a new page, there is some indentation which throws off the entire format of the list. Can someone please help me ...
user766320's user avatar
0 votes
1 answer
52 views

How can I fully justify spaces inside enumitem description labels?

I will start with a picture that says more than a thousand words: \documentclass{article} \usepackage{enumitem} \usepackage{blindtext} \begin{document} What I currently see is this: \begin{...
Christoph Thiede's user avatar
2 votes
1 answer
95 views

How to make Tikz-cd diagram symmetric

I'm drawing a young lattice in tikz-cd, trying to copy this image: My current code is this: \documentclass{standalone} \usepackage{tikz-cd} \usepackage{amssymb} \usepackage[aligntableaux = center, ...
Apollonius's user avatar
1 vote
1 answer
31 views

Overprint messing with block environment

Is there a reason that the text in the block inside the overprint environment moves up and is there a way to globally correct this? MWE: \documentclass[10pt]{beamer} \usetheme[block=fill]{metropolis} \...
Sahiba Arora's user avatar
1 vote
2 answers
51 views

Reducing the gap in the Lemma environment with enumerate

\documentclass{article} \usepackage{amsthm} \newtheorem{lemma}{Lemma} \begin{document} \begin{lemma} \begin{enumerate} \item $(a + b)^2 = a^2 + 2ab + b^2$. \item $(a - b)^2 = a^2 - 2ab + ...
RFZ's user avatar
  • 395
0 votes
0 answers
65 views

Too much space before and after \[\] [duplicate]

Whenever I use \[ ... \] in my LaTeX document, there is too much space before and after the equation. How can I fix this?
fluffy's user avatar
  • 1
0 votes
0 answers
62 views

Something "in between" \[ \] and begin-end-center

This question is perhaps stupid or rather a finicky question for finicky people. I have noticed that in ambient like "enumerate" (but even in general) using \[ ... \] or \begin{center} \( ......
Henry's user avatar
  • 402
1 vote
1 answer
51 views

Adding a blank space after the end of an item in ConTeXt

How do you define an equivalent of an item in ConTeXt and then add specific vertical space after typing it? In general how to apply a commmand after \item ,\sym etc? For example i have this MWE: \def\...
seyal's user avatar
  • 67
0 votes
0 answers
10 views

List of figures, appendices, spacing

How can I add spacing between figures of different chapters in my list of figures of the appendices? I tried several things which I found on this website, but nothing works. Code: \usepackage[titles]{...
Lea Steinbusch's user avatar
0 votes
1 answer
65 views

How to tell TeX to avoid overfull hboxes by breaking a line?

Is there a way to tell TeX that, whenever a paragraph cannot be typeset properly, it should never produce an Overfull hbox, and break some line in the paragraph instead? I do know about all I should ...
sparusaurata's user avatar
2 votes
2 answers
85 views

Extraneous indentation on the line following double-dollar display math with \eqno or \leqno

MWE: \documentclass{article} \begin{document} $$x\eqno (1)$$ N\\N $$y\leqno (2)$$ N\\N \end{document} The lines following display equations $$...$$ with \eqno or \leqno are slightly indented. ...
Alexey's user avatar
  • 2,161
0 votes
0 answers
40 views

Math MCQs, arranging the given choices, the space between them, and some other (automatic) formatting

I am a new user of Latex, I only can write equations like in MSE, and never made a document in latex before. I wanted to create MCQs, but MicrosoftWord is not better than Latex for this purpose, where ...
Hussain-Alqatari's user avatar
2 votes
1 answer
85 views

how to stabilise the distance between each subsubsection?

This is the problem: the "distance" between every subsubsection changes, according to how I end the previous subsubsection. If I end it with a text line, then it's ok. If I end it with a ...
Henry's user avatar
  • 402
1 vote
2 answers
50 views

Printing values with trailing spaces

I am using keys to store a name. And would like that any trailing spaces will also be printed. Currently, trailing spaces are being removed when printed using the table. For instance the command \...
Bulldrive's user avatar
  • 161
1 vote
2 answers
22 views

How to define a fixed space between dot and the next word of the following sentence?

The spacing between . and the next word in line differs between the lines. In this example it is the case for: . Gustav and . Carl. \documentclass[11pt]{report} \usepackage[utf8]{inputenc} \...
PeterDonut's user avatar
0 votes
3 answers
36 views

Move quote / text further to the middle of the page

I am trying to move a quote more to the middle of the page, but I don't seem to get it right. Here is my code: \thispagestyle{plain} \renewcommand{\baselinestretch}{2}\selectfont % Set the line ...
George X.'s user avatar
2 votes
1 answer
64 views

Reduce gap around \cdot and parentheses

This is basically a follow-up on this question: How can I reduce the gap between left and right of \cdot with a macro? The aim is to reduce spacing around \cdot. The accepted answer proposes to define ...
mranvick's user avatar
  • 400
0 votes
1 answer
16 views

Inconsistent vertical spacing of column headings in table when using \multicolumn

I have a standard table with two multicolumns in the column headings, but this causes odd vertical spacing shown in the diagram by the orange arrows. What am I doing wrong? \begin{table}[!ht] \...
Barmy Fotheringay-Phipps's user avatar
0 votes
1 answer
35 views

Is there a command to point out everywhere the default line spacing is being changed by math formulas?

I would like to ensure that my default line spacing is not being altered to accommodate math formulas and equations, and instead anything that is so big that it will affect the line spacing is put in ...
pyridoxal_trigeminus's user avatar
3 votes
1 answer
346 views

How to draw this diagram using latex?

How to draw this diagram using latex? Here is my code: \usepackage{tikz} \usetikzlibrary{shapes, arrows.meta, positioning, fit} \begin{document} \begin{figure} \centering \begin{tikzpicture}[ ...
Bruce xing's user avatar
1 vote
0 answers
14 views

Information about surrounding text [duplicate]

I'm trying to define a command which raises an issue about spaces. Basically, I want to have a single command for these two : \documentclass{article} \newcommand{\Cinf}{$C^\infty$ } \newcommand{\...
Louis Lascaud's user avatar
0 votes
1 answer
42 views

(Tabularray) how do i make it so that a \linewidth setup has indentation spacing on both sides?

I have the following code that is tblr code that has tables being indented and causing my desired \linewidth result to not be achieved \documentclass{article} \usepackage[left=1.5cm, right=1.5cm, top=...
Ferrius Undermine's user avatar
1 vote
1 answer
70 views

How to measure the length of the last line? (LuaLaTeX)

I would like to make a command which, like some environments for equations, has a vertical space at the start of it which depends on whether the length of the line in the previous paragraph exceeds a ...
B Legrand's user avatar
  • 433
4 votes
1 answer
185 views

Lengthen tikz-cd Arrow Based on Label

I was wondering if it is possible to automatically lengthen a tikz-cd arrow based on the width of its label (perhaps with some padding)? Typesetting, for example, the commutative diagram \...
Dave's user avatar
  • 317
0 votes
1 answer
16 views

how to reduce the space in gb4e example translations?

I'm writing a linguistics paper and I use gb4e package. For the sentence below, I don't know how to reduce the space between the two consecutive translations. Any other solutions than using \vspace{}. ...
Lee12138's user avatar
2 votes
2 answers
53 views

Equation Padding/Spacing in Table

Having trouble fixing the bottom spacing with these display style equations in the table. What's the best way to fix this without manually entering spaces myself? \documentclass{standalone} \begin{...
tangulo's user avatar
  • 87
3 votes
2 answers
59 views

Adding line in multicols

I would really appresiate it if someone could help me out, I am using the multicols package and have some code something like this \documentclass[12pt]{book} \usepackage{multicol} \begin{document} ...
Sam Street's user avatar
7 votes
2 answers
179 views

Vertical spacing of argmin subscript

In my documents, I define \argmin with the following command. \DeclareMathOperator*{\argmin}{arg\,min} IMO, the subscript (in display mode) is too far from the operator (because of the depth of the &...
inavda's user avatar
  • 251
2 votes
1 answer
93 views

Why does \tikz add vertical space between textparts

I want to add a little logo at the right upper corner of a page. As recommended in some other threads, I want to use the tikz package. But no matter, where I add my \tikz command, it adds some ...
woelfchen42's user avatar
0 votes
1 answer
29 views

How to get singlespacing to only change matrix environments? [duplicate]

This is similar to both this and this post, but I feel like it's different enough to be it's own question. I need to cancel the \doublespacing command, but only for matrix environments (\begin{bmatrix}...
NewViewsMath's user avatar
4 votes
2 answers
65 views

Additional line created when using equations in algorithm2e

Consider the following example, placing equation*s inside of an algorithm environment: \documentclass{standalone} \usepackage{amsmath} \usepackage{algorithm2e} \LinesNumbered \begin{document} \...
hfhc2's user avatar
  • 894
0 votes
0 answers
37 views

Why there is space between the images in subfigures [duplicate]

Why there is space between the images in subfigures? Also, the space is not even. How could I fix that? Notice, that I change the images for privacy. %---------------------------- \begin{figure*}[h]%[...
user836026's user avatar
0 votes
1 answer
85 views

How do i use \raggedbottom in LaTeX [closed]

I'm encountering a lot of answers (to a question about LaTeX forcing fit page) that suggest using \raggedbottom. I've put that code in a line before \begin(document), but it just doesn't do anything ...
CatDescendant's user avatar
2 votes
1 answer
34 views

Problem to put two three letters of the hieroglyph package one over the two others

I have this piece of code. $\begin{tabular}{l}{\pmglyph{n}\\\pmglyph{W}\pmglyph{W}\end{tabular}$ I used a tabular because I didn't succeed in putting the two W hieroglyph letters above the one n ...
Denise Chemla's user avatar
1 vote
2 answers
45 views

Horizontal Alignment Spacing in Cases Environment

I want to typeset some piecewise equations in MathJax and align the inequality symbols in the piecewise conditions. Using the cases environment and adding more ampersands does somewhat align the parts ...
Lawton's user avatar
  • 135

1
2 3 4 5
161