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}.
8,256 questions
0
votes
0
answers
50
views
A macro about \quad works differently in beamer
I have a tex file
\documentclass{beamer}
\usepackage{zref-clever}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Create modification of align environments
% https://tex.stackexchange.com/a/751147/161639
% https://...
0
votes
1
answer
78
views
How to make a space character?
In the encoding tables I can't find the code for spaces, all characters are there but no space. How does LaTeX internally represent spaces?
6
votes
2
answers
261
views
How to avoid \big having more space than \left?
When using \big instead of \left \right I get some unwanted extra space.
Example:
\documentclass{article}
\usepackage{amsmath}
\usepackage{stix}
\begin{document}
\begin{align*}
\big\langle \star \...
3
votes
2
answers
131
views
Why does \begin{figure}[H] disrupt line spacing?
Referring to the method described in https://tex.stackexchange.com/a/8633/307309, I have encountered an issue when forcing the position of a figure. Specifically, using \begin{figure}[H] results in ...
3
votes
2
answers
101
views
What is the correct way to adjust section heading spacing in a tagged pdf?
I'm trying to adapt an old style file for accessibility and I've run into an issue where some manual indentation on redefined section commands breaks tagging.
Here's a MWE:
\DocumentMetadata{tagging-...
0
votes
2
answers
67
views
operators/functions with paired parentheses - getting the spacing right
I subscribe to the school of insisting on parenthesizing arguments of functions when describing their application, i.e. never $\sin \myarg$, but rather $\sin (\myarg)$. But actually, that's generally $...
0
votes
1
answer
43
views
How to Reduce Spacing Between Items and Tasks in a Custom choices Environment with tasks Package?
I am using the tasks package to create a custom choices environment for a multiple-choice exam in Arabic, with right-to-left alignment and Arabic labels. However, I am experiencing excessive vertical ...
4
votes
1
answer
72
views
reledmac: forcing critical notes to the bottom of the page
I am making a critical edition with reledmac. I would like my two series of critical notes to always appear at the bottom of the relevant page: that is, I would like the last line of the notes always ...
1
vote
1
answer
58
views
How to code for a text string of unknown length to end at a specific point on the line?
I am coding a monograph template with 1-inch margins on the left and right of each page. The page header contains the title of the monograph. The header on lefthand, even-numbered pages (LE) and the ...
2
votes
2
answers
88
views
How to reduce space before and after an inputminted
How to reduce space before and after an inputminted?
I'm trying this, but it doesn't work. How do I do it right?
MWE:
\documentclass{article}
\usepackage[newfloat]{minted}
\usepackage{xpatch}
\...
1
vote
1
answer
71
views
Interfilling space in math mode for matrices [closed]
I wrote inside a row in a matrix using \pmatrix a fraction using \frac, then I changed to
the next row to enter the entries and also I wrote other fractions with same command and
in the preview they ...
2
votes
0
answers
157
views
tcolorbox: what is the exact length needed for the line numbers to be centered on my overlay?
Here is a summary of the lengths I newly minted (wink):
What is the value of leftupper (the dimension \g__listings_Leftupper_dim in the upcoming MWE) that is needed to make the line number (red) lie ...
3
votes
0
answers
71
views
Redefining the spacing of subscripts and superscripts
The function in the attached document has the form
\RedefineMathLetter{a}{subscript skip}{superscript skip}{previous skip}.
So far, I’ve identified two issues with this function:
It converts ...
5
votes
1
answer
112
views
Subscript - superscript shifting
I want to make some default adjustments to the positions of certain letters in subscripts and superscripts within math mode (kerning). For example, I wrote the following code for the letter j. But ...
8
votes
2
answers
245
views
marginalia causes a blank line before theorem
The following code:
\documentclass{article}
\usepackage{marginalia,showframe}
\newtheorem{theorem}{Theorem}
\begin{document}
\marginalia{margin}
\begin{theorem}
content
\end{theorem}
\end{document}
...
2
votes
1
answer
48
views
shortintertext too low after pagebreak
Normally, it seems that \shortintertext triest to avoid appearing after a pagebreak. However, if I force it to happen, for example like this:
\documentclass{article}
\usepackage{amsmath}
\usepackage{...
7
votes
1
answer
121
views
Why does docstrip plus memoization insert a newline/paragraph between two items?
Ref.: https://github.com/sasozivanovic/memoize/issues/50#issue-3370785926
Two MWEs ...
First MWE:
% \iffalse
%<*driver>
\documentclass[10pt,a4paper]{ltxdoc}
\usepackage[extract=python]{memoize}
...
3
votes
1
answer
89
views
ConTeXt: Avoid gobbling spaces while replacing strings
Background
Markdown, having been converted to XHTML, is to have certain words stylized using ConTeXt. Consider:
1. Say, "ConTeXt is good."
1. Tap [Space]{.kbd} to continue (or quit with [Q]{....
3
votes
1
answer
122
views
Remaining line length suddenly not working anymore
So for quite a while I worked with the tikz solution of Martin Scharrer posted here.
But since some time (not sure how long), some behaviour changed and I'm not sure what is going on.
Update: What is ...
9
votes
2
answers
401
views
What are the exact rules about spaces surrounding macro parameters/arguments?
To my surprise, the TeXbook (page 203) mentions that the first argument in
\cs AB {\Look}C${And\$ }{look}\$ 5.
where \cs is defined as
\def\cs AB#1#2C$#3\$ {#3{ab#1}#1 c##\x #2}
is \Look, and not [...
4
votes
2
answers
184
views
How to define paired-delimiter macros with an optional, symmetrical, horizontal spacing argument using the mathtools package?
With the mathtools package I want to define \parens for parenthesis delimiters with \DeclarePairedDelimiter in the usual manner but with an additional optional argument for adjusting the horizontal ...
9
votes
1
answer
317
views
Spacing issues with parentheses in Libertinus
I am using the Libertinus Math font in its latest OpenType version (7.051) with LuaLaTeX, but I noticed that the spacing around parentheses does not look quite right — characters outside the ...
6
votes
1
answer
255
views
What spacing does \left. actually insert?
It is said in multiple answers here, that \right. and the corresponding \left., while not adding a delimiter, inserts a \nulldelimiterspace, see
https://tex.stackexchange.com/a/217486
https://tex....
9
votes
2
answers
327
views
Improving a correspondence
I have the following code
\documentclass[a4paper]{book}
\usepackage{amsmath}
\usepackage{amssymb}
\begin{document}
\begin{center}
\begin{tabular}{ccccc}
$z$ & $\prec$ & $\underbrace{...
2
votes
0
answers
96
views
How to balance vertical spacing across columns when using tcolorbox inside multicols?
I've been having trouble with balancing the vertical space across columns between tcolorboxes.
I'm using the multicols environment along with tcolorbox to display definitions in two columns. Here's a ...