Questions tagged [labels]
{labels} is about customizing the labels of {diagrams} and mathematical constructs like {matrices}. For questions about \label or similar commands, use {cross-referencing} instead.
1,783 questions
3
votes
1
answer
59
views
Create an alias to a label
This is probably an unusual way of using labels, but I would be happy if there was a way for me to create an alias to a label without just writing another \label at the target environment.
I imagine ...
4
votes
2
answers
145
views
Oversetting a symbol without disrupting horizontal spacing
I have a question regarding oversets (and undersets) in LaTeX. The idea is to overset a specific character but not disrupt the spacing between characters. For instance, here is this minimum working ...
3
votes
1
answer
132
views
latex/tikz loop issue
I have a foreach loop which includes labels in a .tex document:
\documentclass[tikz,border=5mm]{standalone}
\begin{document}
\begin{tikzpicture}
\foreach \x/\y/\col/\lab in {
2.5/1.2/blue/(0,0),
...
1
vote
1
answer
80
views
Label sub-equations inside dcases envrionment [duplicate]
I have a tex file
\documentclass[reqno]{amsart}
\usepackage{amsthm,mathtools}
\begin{document}
We have
\begin{equation} \label{eq1}
\begin{dcases}
A & = B , \\
C & = D .
\end{dcases}
\end{...
0
votes
1
answer
39
views
Label and cross-reference a dialogue
I am using the dialogue package to write numbered dialogues. I have created a command with counters to automatically increment the numbers of the dialogue. I want to know whether there is any way to ...
0
votes
3
answers
119
views
Create a sequence of all labels found in the .aux file [closed]
The closest thing I have found is this: David Carlisle’s answer in which a macro \lablist is used to typeset all labels found in the .aux file. Unfortunately, I can’t really wrap my head around the ...
5
votes
2
answers
162
views
ConTeXt: label of theorem environment not correct
I use ConTeXt ver: 2025.08.21 23:32 LMTX fmt: 2025.9.18 and have a tex file (modified from this answer):
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\startluacode
local labels = languages.data.labels.texts
...
0
votes
0
answers
37
views
Why is my LyX local layout not exporting to pdf?
I'm currently pulling together the rules for a boardgame and its expansion modules using Lyx. To be consistent with the actual rule documentation, I've made a local layout to change the font and ...
3
votes
1
answer
60
views
Tcolorbox - How to label theorems correctly using the tcolorbox and hyperref packages?
This is my code:
\documentclass{standalone}
\usepackage[most]{tcolorbox}
\usepackage{hyperref}
\tcbuselibrary{theorems}
\NewTcbTheorem[number within=section]{Definition}{Definition}%
{label type=...
6
votes
1
answer
118
views
Has \subnode broken or am I doing something daft?
The following code compiles without error but gives unexpected (to me) results. In particular, the labels never 'settle'. As far as I can tell, LaTeX perpetually reports that the labels may have ...
3
votes
1
answer
100
views
\MakeLowercase inside \label
I am trying to make some text lowercase and use it inside a label:
\begin{document}
\documentclass[a4paper,11pt]{article}
\label{\MakeLowercase{ABC}}
\end{document}
But I get the following error:
...
2
votes
1
answer
112
views
How to use counter in labels with expl3 syntax?
I am writing a expl3 package, and I have to re-create the behavior \refstepcounter, in particular my goals are to:
create a counter,
increment the counter and print his value,
create an automatic ...
0
votes
1
answer
84
views
How to add hypertarget entries in the table of contents
Can the text of the table of contents be edited ? I would like to add hyperref's \hypertarget entries -- that is: text and label references -- to it.
Consider a common table of contents like
Chapter 1 ...
0
votes
1
answer
87
views
Aligning the labels from enumerate and task
I've been learning LaTex for a while and have come to a bit of a roadblock.
I've been trying to use both enumerate and tasks to make lists, and have faced some trouble aligning their labels.
Below is ...
1
vote
1
answer
82
views
Problem using hyperref with label in tex4ht. It displays label different than pdf
Did something change in tex4ht? I am using TL 2025, installed fresh one week ago on new Linux.
When doing \hyperref[1]{1} then later \subsection{Problem 1}\label{1} , I expected the link to point and ...