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.

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

How can I refer to a single line of source code using minted by React Native code (jsx)

how can I refer to a single line of source code using minted by React Native code (jsx). the solutions here work but don't refer to correct link label Highlight labeled lines of code with minted ...
WGH's user avatar
  • 1
0 votes
1 answer
27 views

Change the label display value

I have a custom command to display pseudocodes using tcolorbox. The \newtcblisting command creates a custom counter to display the boxes. I'm trying to reference the pseudocodes somewhere in the ...
Lucyanno Frota's user avatar
2 votes
2 answers
193 views

Matrices inside a matrix, with only text in the inner matrices

I want to draw a big matrix as an 8 by 8 to represent the combination of two HMMs. How do I go about it?
Cutie's user avatar
  • 45
1 vote
1 answer
58 views

"Automatic Labelling" of (sub)(sub)sections does not work with math

I followed the code in this answer. (sub)(sub)sections. However, if there is any math in the (sub)(sub)section title it fails to work. This is probably expected, but is there a way to overcome this? ...
Number Basher's user avatar
2 votes
1 answer
73 views

Stacking multiple TikZ tree labels?

I have a question related to the labelling of TikZ circles within a forest tree. Is it possible to stack multiple labels below the circle so that they would appear under one another, like this? ...
ally69710's user avatar
0 votes
1 answer
35 views

Remove the table label within "longtblr"

I am trying to figure out how I can remove the table label (i.e. "Table 1.1") within the longtblr environment, that appears automatically even if I do not specify a caption. \documentclass{...
Luca's user avatar
  • 41
1 vote
1 answer
24 views

Extra vertical space in enumerate and itemize when item ends with an equation followed by \label

When using labels in the enumerate and itemize environments, I sometimes get extra vertical space after an item. I've determined that the extra space occurs when the content in the item ends with a ...
Paul Wintz's user avatar
3 votes
1 answer
34 views

How do I cross reference an equation in lstlisting?

Suppose we have the following code: \documentclass[reqno]{amsart} \usepackage{geometry} \geometry{margin=2in,top=3cm} \usepackage{microtype} \usepackage{listings} \usepackage{hyperref} \begin{...
Arbuja's user avatar
  • 209
1 vote
0 answers
34 views

\label{} adds empty line

When I use the command \label{} before a section, it creates a blank line. How can I remove that empty line? MWE: \documentclass{article} \usepackage{amsmath} \begin{document} \section{Test 1} ...
Bahman Mirzakhani's user avatar
0 votes
1 answer
31 views

Multicolumn table broke the labels and captions

After creating this table in my thesis, it broke the labels and captions for everything else in the document. I have searched for answers but cannot seem to find what is causing this to happen. Here ...
jeevesleeves's user avatar
1 vote
1 answer
32 views

Is it possible to renumber the cases in different claims?

In my theorem, there are several claims, such as Claim 1 and Claim 2. They each have one or more cases. However, the case numbering does not take into account the occurrence of claims and is labeled ...
licheng's user avatar
  • 499
0 votes
0 answers
45 views

Is there any conflict here? \subfloat cannot use \label!

I want to put 3 subplots in latex using subfloat, I refer to the example and write as follows, the picture can be displayed normally. \begin{figure*}[!t] \centering \subfloat[caption fig1a]{\...
朱博文's user avatar
0 votes
1 answer
44 views

Latex enumerate overwrites the first item label over the second, so that the a and b are on top of each other

\begin{mdframed}[innertopmargin=6bp, innerbottommargin=4b, innerleftmargin=8bp, backgroundcolor=yellow!10, nobreak= true] \begin{thm} \label{thm:them2} {Assuming that the sizes of the ...
William Yeakel's user avatar
2 votes
2 answers
90 views

Instead of 00, 01... in Karnaugh's map, \overline{B}\overline{C}, \overline{B}C... are needed

The MWE is given below: \documentclass[12pt,a4paper]{letter} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage{karnaugh-map} ...
Kiran K U's user avatar
  • 323
0 votes
0 answers
34 views

Compiled label points towards the wrong label

I am struggling with an issue where I defined several labels that are wrongly compiled by latex. I have several chapters with numerous paragraphs, sections, tables, and equations, for instance, that ...
Mathias's user avatar
0 votes
0 answers
34 views

More labels inside an equation

I am trying to add more labels to an equation. I want to refer to the text in the equation and to the equation separately. The code has to fit the following preamble (I have a solution that has some ...
Luca Benatti's user avatar
1 vote
1 answer
40 views

Stop coordinate labels overlapping on tikzpicture graph

I am plotting a graph on tikz and the labels for each coordinate (the reference in this case) are overlapping as the points are close together. Is there a way for me to define what anchor position ...
Adam Wild's user avatar
0 votes
0 answers
40 views

Using tikzpicture to customize labels in enumerate shifts item text below label level

Here is my MWE \documentclass[12pt,a4paper]{book} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{xcolor} \usepackage{tikz} \usepackage{enumitem} \usepackage{tcolorbox} \usepackage{...
KANYARWANDA Cyprien's user avatar
2 votes
1 answer
50 views

How to cross-reference individual table cells?

I would like to accomplish this using labels that allow cross-referencing of individual cells: The MWE I wrote to mimic this behavior: \documentclass[a4paper,10pt]{article} \usepackage{subcaption} \...
Polizi8's user avatar
  • 191
0 votes
0 answers
32 views

How to add custom equation numbers and text in `align` environment?

I would like to add a custom string just before the equation number in an align environment. In addition, I would like to add some information to the equation number itself (eg. a specific reference ...
Wasserwaage's user avatar
0 votes
1 answer
60 views

How do I add a custom string next to the equation number?

I would like to add a custom string (like the name of an equation) just left of the equation number like so:
Wasserwaage's user avatar
3 votes
2 answers
191 views

Sloped label on arrows in Tikz not parallel to its arrow

I would like to have the sloped label long expression for both arrows on the diagonal of my tikz-picture to be parallel to the arrows' direction. By using a longer sloped argument for the Fourier ...
Ian's user avatar
  • 47
0 votes
1 answer
42 views

Grap the label of each item of an enumerate list

I have a macro called « \addsol » that appends solutions for given exercises to a fixed \solutions macro, in order to list the solution of the exercises at the end of the document. I wish to add to it ...
ladi's user avatar
  • 23
1 vote
1 answer
39 views

Referring to a theorem without numbers

I tried to label a theorem by Theorem A. When I tried to refer it, the label A was not displaying: \newtheorem*{thm*}{Theorem A} \begin{document} \begin{thm*}\label{A} Let H be a group. \end{thm*} ...
Maths Rahul's user avatar
1 vote
2 answers
97 views

Table caption is hidden when I use tabularray

I'm using Springer Nature LaTeX template (https://www.overleaf.com/latex/templates/springer-nature-latex-template/myxmhdsbzkyd). I used https://www.latex-tables.com to generate a simple table: Here ...
Pedro's user avatar
  • 11
0 votes
1 answer
54 views

Create custom entry and reference fields [duplicate]

I am writing a novel and I would like to create a data structure to hold character attributes and be able to reference the values. I looked into creating custom glossaries, bibtex and datatool ...
Rien's user avatar
  • 195
2 votes
1 answer
42 views

How can I add arrows to the side of my tikzpicture with horizontally stacked bar?

The drawn out image is what I want. I already have the horizontal bars, I just need the y-axis labels. Also, how can I add percentages to the x-axis values and to the values inside the bars? This is ...
Cherry's user avatar
  • 41
1 vote
0 answers
43 views

Momentum labels in feynmp package

I'm trying to draw a simple Feynman diagram and momentum labels aren't showing, I don't know why, even when I've checked everything and it seems okay. This is the piece of code where the problem is \...
Davizon's user avatar
  • 45
1 vote
1 answer
24 views

Aligning extra x tick labels horizontally with pgfplots

I am using the following code to plot a graph. \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \begin{document} \begin{tikzpicture} \begin{axis}[ width=\textwidth, ...
Etienne's user avatar
  • 13
1 vote
1 answer
112 views

Help with labels in TikZ

I'm using PlotNeuralNet (with slightly modified Python code) to generate TikZ code for my neural network architecture. Currently, it generates this TikZ code (it is a simplified version of my full ...
StrawberryFieldsForever's user avatar
1 vote
0 answers
19 views

Adding labels and ticks to chronodex

Upon @MS-SPO's suggestion, I've included the refactored code here. I still need to add some ticks, labels indicating time and nodes for hours (12, 3, 6, 9). I did figure out adding nodes but they aren'...
crypto's user avatar
  • 747
10 votes
2 answers
650 views

Replicating a chronodex in TikZ

I've tried to make a chronodex in TikZ and I have a basic skeleton. I need to add a few more things to it (ticks, labels, nodes). Besides, the code itself could be optimised using loops but I'm still ...
crypto's user avatar
  • 747
0 votes
2 answers
58 views

Label above a left arrow in tikz

I need to label a left arrow in tikz, but it labels the left arrow automatically under the arrow, which looks ugly. How do I make it label above? Codes: \begin{tikzcd} X_{\overline{s}} \arrow[...
Yuan Yang's user avatar
  • 103
0 votes
1 answer
41 views

Incorrect positioning node on an arc

I want to positioning a node with label \gamma on an arc, but the way that usually I use produces incorrect positioning: the label is placed too far from the curve that I draw. Here there is my code: \...
Eupho's user avatar
  • 1
3 votes
1 answer
151 views

Labelling a matrix using a brace in latex

Hey, I want to add two braces as labels for a matrix. I am able to add the top brace label "r". But when I add the bottom "m - r" label, it becomes branched. Here's my code in ...
JustAnAveragePerson's user avatar
0 votes
0 answers
26 views

hyperref: Include 'sec.', 'tab.' etc. in links to chapters, tables etc

How can I include variables in a \ref command? Specifically, I'd like my custom command \newcommand{\See}[1]{\ref{#1}, pg. \pageref{#1}} to be able to distinguish between different kinds of things it'...
Cat's user avatar
  • 1
4 votes
3 answers
182 views

Customize Tikz Circle Labels to Flow Along with the Circle Curve

I want to label a circle I drew as a conglomeration of arcs and want it labeled on some nodes that will flow along the circle curves. What I currently have are horizontal labels, which do not flow ...
Daniel James's user avatar
1 vote
1 answer
70 views

Using Latex to draw a Pentagon with a Degree Label

I would like to use Latex to draw a regular pentagon which shows the 72 degree angle between two vertices. It would be nice if it looked something like the image below: I currently have the following ...
Catie's user avatar
  • 11
1 vote
1 answer
43 views

How to refer to table cells using (a), (b), (c) and so on?

I have a table with two columns. The first column is counters of form (a), (b), (c), and so on. The second column is the content. I want to refer to each row with labels (a), (b), (c), and so on, in ...
hengxin's user avatar
  • 2,321
0 votes
1 answer
57 views

x,y graph with labeled point

New to graphing on latex. But I started something based on what I was seeing. Current code: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \begin{document} \begin{tikzpicture}...
Ag_Fort Worth's user avatar
0 votes
0 answers
48 views

Changing the text format of a particular label in pgfplot

In this plot I want to change the color of a label in x-axis. For example I want to change the color of Set1 to orange. It is possible to do it simply by \textcolor{orange}{Set1}, as you see in the ...
Puya's user avatar
  • 45
0 votes
0 answers
32 views

\label does not work with custom textboxes

I am using custom text boxes in a math document (amsart class) using tcolorbox. The essential code for the textbox is as follows. \newtcbtheorem[use counter*=theorem]{theorembox}{Theorem}% { ... ...
Alvaro P.'s user avatar
  • 111
2 votes
1 answer
211 views

Feynman diagrams - How to push labels further?

Here is my code. \documentclass[border = 3mm, varwidth = 141mm]{standalone} \usepackage{tikz-feynman} \begin{document} \begin{tikzpicture}[baseline] \begin{feynman} \node[shape = circle, fill = ...
user avatar
0 votes
0 answers
15 views

Unable to raise zticklabel in 3D plot when using scrbook (working with standalone documentclass)

To add some spacing between touching tick labels, I raise the according box with raisebox{}. Working with 2D graphs until now, this commonly did the trick for me. However, I am unable to raise a ...
albert's user avatar
  • 927
0 votes
0 answers
25 views

Reference Figures in the body differently as from inside the appendix

I want to reference Figures, Tables etc. from the body differently when they are placed in the appendix. However, inside the appendix, they should be referenced as usual. Here is a small working ...
ljjs's user avatar
  • 13
0 votes
1 answer
62 views

Redefining sections, subsections, and subsubsections mess up \ref output

I've redefined my sections as follows: \renewcommand\thesection{\arabic{section}} \renewcommand\thesubsection{\thesection.\arabic{subsection}} \renewcommand\thesubsubsection{\thesubsection.\arabic{...
Tomas Premoli Muniagurria's user avatar
1 vote
1 answer
108 views

Cross-referencing between files on Overleaf using zref-xr

This is asking for a clarification on a package suggested for cross-referencing with hyperlinks using online editors in this question: Cross-referencing between different files . My folder structure ...
GaiusBaltar's user avatar
1 vote
1 answer
52 views

Custom lists with adjustable bullets/item

I attempted creating a custom list as shown in the code below, but I need to know how to create a custom list with different label types (Arabic, Roman, etc.) and change the color of the frame for a ...
aglobalphenomenon's user avatar
1 vote
1 answer
87 views

How to creat a box with label

How can I put "Identification" and "Control" in those boxes shown by arrows? Any thoughts? The code I have is: \tikzstyle{startstop} = [ellipse, minimum width=3cm, minimum height=...
Milito's user avatar
  • 45
1 vote
1 answer
30 views

How can I remove the Labels of the blue dots on the left plot and change the position of label nr16 in the right plot?

\documentclass[11pt]{report} \usepackage{pgfplots, pgfplotstable} \pgfplotsset{width=10cm,compat=1.18} \usepackage{graphicx} \usepackage{caption} \usepackage{subcaption} \begin{document} \begin{...
dan1365's user avatar
  • 11

1
2 3 4 5
34