Skip to main content

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
44 views

Is it possible to back-reference the labels?

The backref option in hyperref package is useful to display where the references are cited. But this only works for \cite. Is it possible to do something similar for \label? A desirable realization is ...
MMM's user avatar
  • 123
0 votes
1 answer
46 views

Problem with labels when there are multiple tex files

I have a TeX document that combines multiple subfiles, each with uniquely named labels. However, I'm encountering an issue with the \ref command. For instance, an equation labeled aaa in the first ...
eeerase's user avatar
0 votes
0 answers
19 views

Label align environment by a name not a number [duplicate]

I'm interested in giving an equation a name and not a number. E.g. I want equation to label the equation in the following align environment by "(Pythagoras)" instead of a number given by the ...
user99432's user avatar
  • 137
1 vote
0 answers
50 views

Automatic creations of labels for dictionary entries

I'm working on a dictionary and I'm using this solution provided by @cabohah in this post: \nopagebreak has no effect in \newcommand environment What I need is to add a label to each entry of my ...
Dieter's user avatar
  • 117
0 votes
0 answers
25 views

Unable to prevent touching ticklabels in 3D plot

To prevent touching ticklabels, I want to raise the first zticklabel in my 3D plot. Despite I am successfully using this approach in 2D plots, it does not seem to work in 3D plots. For illustration ...
albert's user avatar
  • 1,017
1 vote
0 answers
55 views

Refer to first and last page of each included PDF – Blank page on top

I am referring to this question. I would like to do the same, but adding a blank page before beginning the inclusion of PDFs in the document. I use the following command in the preamble to insert a ...
Francesco B's user avatar
1 vote
0 answers
35 views

Printing diagram numbers for Feynman diagrams

I have the following code to print Feynman diagrams generated by some program. file is \documentclass[11pt]{article} \usepackage{graphicx} % Allows for eps images \usepackage{multicol} % Allows for ...
Tanmoy Pati's user avatar
2 votes
1 answer
23 views

Adding labels inside tikz picture

I want to add labels inside each of the three cycles formed by arcs in the graph. The label should say $b_1$,$b_2$, and $b_3$. The size can be smaller but preferably the same as the size of the labels ...
Vika's user avatar
  • 457
3 votes
1 answer
61 views

Refer to first and last page of each included PDF

I would like to refer to the first and last pages for each of the several PDF documents I am including in a manuscript using \includepdf. Does anyone have suggestions on how to do that? I tried the ...
Francesco B's user avatar
0 votes
1 answer
99 views

usepackage xr not working despite aux files generating fine

my document class is \documentclass[% reprint, amsmath,amssymb, aps,prl, ]{revtex4-2} There is a MAIN.tex and a SuppInfo.tex in the overleaf project, and i want to cross reference figures from ...
smh's user avatar
  • 3
1 vote
1 answer
27 views

Redefining cleverefs multirangeformat for line numbers of listings

I would like to redefine cleverefs \crefrangeformat and probably also \crefmultirangeformat for the line numbers of a listings package. Consider e.g. the MWE below \documentclass{article} \usepackage{...
LaTeChiMan's user avatar
3 votes
1 answer
30 views

axes titles not displaying on pgfplot

i'm new to latex, and was recently using pgfplots, but wanted to label everything so i went back and used x label style, y label style, xlabel, and ylabel to display labels. the code for my labels ...
vice 11's user avatar
  • 31
0 votes
0 answers
26 views

Label defined in my preambule are not listed in \ref Overleaf

For my maths studies, I use a way to create theorems boxes, definitions etc... %Theorem \newcounter{theo}[part] \setcounter{theo}{0} \renewcommand{\thetheo}{\arabic{part}.\arabic{theo}} \...
Raphael 's user avatar
0 votes
0 answers
21 views

Wrong numbering of figures and figures+subfigures with tcolorbox

I have 3 new environments based on tcolorbox, Figure, SFigure and Subfigure. When I use environment Figure, the first 2 boxes are numbered 1.1 and 1.2. Then when I use SFigure with Subfigure, the next ...
Fuji San's user avatar
  • 225
0 votes
0 answers
13 views

Unable to fill autocompletion (TexShop)

I have the following problem when I use TexShop. In this simple text I have an equation with a label When I want to add a reference to it I start typing \eqref{eq: and then I press fn+F5 to get ...
Marco Parrinello's user avatar
3 votes
1 answer
96 views

Problem with multiple \label

When I compile my code, I get an error "Package amsmath Error: Multiple \label's: label 'eq:melangeAFAf_avtVefaible' will be lost I don't understand it because I only have this label once in my ...
Nicolas's user avatar
  • 1,297
1 vote
1 answer
29 views

label inside a newcommand doesn't work

I am defining a \newcommand to shorten a notation I use frequently. To comment reasonings during computations I put daggers over the equal sign where such reasoning is done and hyperref it to a ...
Freestyla's user avatar
  • 117
1 vote
1 answer
80 views

Graph hardly readable - pgfplots options difficult

I am trying to create a plot representing the number of articles about resilience over a period of time. The data comes from a txt file, looking like this: Publication Years Record Count % of 141519 ...
Orsu's user avatar
  • 113
2 votes
1 answer
83 views

Print macro in \addplot node label

I use a foreach loop to plot multiple curves via the \addplot command. The values that are necessary to define the relevant curve in each iteration are defined through some macros with the command \...
Laura Roich's user avatar
1 vote
1 answer
20 views

How to make labels work with parts in KOMA-script?

My document is using KOMA-script and unnumbered parts are added via \addpart. However, using standard \label{} following the part does create a link to the part. How can I do this? Here is an MWE: \...
mapf's user avatar
  • 253
2 votes
3 answers
75 views

Customized equation referencing

I am trying to cobble together a decent solution for referencing multiple equations on a single line. First, my MWE and then I will ask my question(s). \documentclass[]{article} \usepackage{amsmath} ...
Mike Pugh's user avatar
  • 329
1 vote
2 answers
44 views

How to make 3x3 images with single caption under each row with citation in LATEX?

I have nine different images that I want to show as 3x3 in latex. I want to use the entire full page of the paper, which I can achieve via the figure* option. I want a single caption for each set of ...
RON's user avatar
  • 11
0 votes
0 answers
37 views

Changing label counter from 7 to 1 in an appendix

I am trying to change the label counter in my appendix from 7 to 1, so I can refefence to the first Appendix. As I have used enumerate multiple times earlier in the report, this is the 7'th list. I ...
Hansy's user avatar
  • 1
4 votes
1 answer
70 views

Strange behaviour with tikz[babel] with pdfLaTeX

I noticed a strange behaviour of label processing in tikz when used with the tikzlibrary babel and with pdfLaTeX. Here is the code \documentclass[frenchb]{article} \usepackage{tikz} \usepackage{babel} ...
paulbou's user avatar
  • 103
4 votes
1 answer
54 views

The numbering of an equation does not show up

I have a tex file % \documentclass[11pt]{article} \usepackage{mathtools,amssymb,amsthm,enumitem,tcolorbox,fullpage,microtype,multirow} \usepackage{showkeys} \usepackage[utf8]{inputenc} \usepackage[T1]{...
Akira's user avatar
  • 1,441
1 vote
1 answer
50 views

How to force `reftex-label` function to insert a more environment-dependent label?

By invoking reftex-label or by the hotkey C-c ( a label is automatically inserted in the document. For the section environment, the label is fine. But for an environment like theorem or thm a label ...
Name's user avatar
  • 2,858
0 votes
2 answers
45 views

Customized output when referencing autonumbered paragraph

I have a customized paragraph that I use to define skills and autonumber them. When referencing the paragraphs, the output should be custom text plus counter number (e.g., S1, S2 etc). But currently, ...
mike's user avatar
  • 335
3 votes
1 answer
61 views

How to have restatable tcolorbox theorem environments, while avoiding labels being multiply defined

I have a document where I would like to define a theorem early on, and then restate the same theorem later on when it comes time to prove it. Normally this could be done using the thm-restate package. ...
Naysh's user avatar
  • 187
1 vote
0 answers
19 views

Include section number when referencing subsection in another section, but not within the same [duplicate]

I'm modifying the numbering of sections and subsection (see MWE below), which somewhat messed up the referencing. What I'd like ideally is to have the section number (or letter in this case) included ...
VY_CMa's user avatar
  • 11
0 votes
0 answers
34 views

How to add letter to equation label

I want to have a letter with my equation number, like is done in the picture I have attached. I have done something similar in lists with \begin{enumerate}[label=(\subscript{S}{{\arabic*}})] I was ...
Dylan Dijk's user avatar
0 votes
1 answer
49 views

Adding text with reference to yticklabel in polar plot

I have a polar plot with a not very clever dB label under yticklabel. In this case everything is fine, but I want to change many such charts but with a different y-range, so I need to add a label with ...
Chey's user avatar
  • 85
1 vote
1 answer
74 views

Making a lot of slightly different versions of a PDF with LaTeX

I need to create a large number (say 20) of versions of PDF documents that are slightly different, that come from one LaTeX document. What I envisage is some kind of custom labels that are interpreted ...
dnh37's user avatar
  • 181
0 votes
1 answer
137 views

Manually formatting date tick labels using pgfplots

I want to make the plots in PGF/TikZ for my publications. I need to format the date ticks manually (see example from Matplotlib documentation). I define a start date (xmin) and an end date (xmax); in ...
lastdigitalfish's user avatar
0 votes
1 answer
55 views

One label only for align in empheq [duplicate]

I am using the empheq package and use align environement insied of it. For instance, \begin{empheq}[left=\empheqlbrace]{align} a&=b \\ E&=mc^2 + \int_a^a x\, dx \end{empheq} or \begin{empheq}[...
Guuk's user avatar
  • 1,495
1 vote
1 answer
28 views

beamer frame label option prevents longtable table to split and shows only the first frame of the longtable

I am using longtable in beamer. I also need to \ref the frame where the longtable starts (to split on the successive frames). I used the label={} optional argument for the frame environment. ...
Arne's user avatar
  • 1,390
2 votes
1 answer
25 views

Tikz picture: labels next to the nodes to be in a specific format

I need the labels next to the nodes to be smaller and green color. I wasn't able to modify it. \documentclass[tikz,border=3.14mm]{standalone} \usetikzlibrary{shapes.multipart} \tikzset{block/.style={ ...
Vika's user avatar
  • 457
1 vote
1 answer
47 views

suppress Listing: # in code blocks with tcolorbox

Hi there I've been recently experimenting with code blocks in LaTex and I had the need to have my code blocks with captions and a label to catch them once clicked on the appropriate link in the ...
Matteo's user avatar
  • 333
0 votes
0 answers
51 views

What will happen if we use the same label for different object

In LaTeX, what will happen if we use the same label for different object? I have tested the example: \documentclass[]{article} \usepackage{amsthm} \newtheorem{theorem}{Theorem} \begin{document} \...
Asigan's user avatar
  • 209
4 votes
1 answer
50 views

Referencing with Enumerate and Cleveref

I'm struggling to set up correct references using the cleveref package. I'm able to get references for the second sub-hierarchy, however, I don't get the reference correctly setup for the first level. ...
Aline's user avatar
  • 53
0 votes
1 answer
32 views

Place tick scale label on top of plot contents

I came up with a pretty neat way to avoid overlap between tick scale labels and axis bounds for stacked plots by moving the tick scale labels into the axis windows, but unfortunately the lines are ...
mcmuffin6o's user avatar
0 votes
1 answer
35 views

Label in align environment

In my project, I make a chapter, a section in a chapter and subsection in a section. Then I write the equations using align environtment, but the label goes just kind of "(1..1)", I mean ...
PermQi's user avatar
  • 187
0 votes
0 answers
32 views

Getting "`refsection:1' multiply defined" - which didn't use to happen

Consider the following document: \documentclass{minimal} \usepackage{biblatex} \newsavebox{\foobox} \newcommand{\doofoo}[1]{ \ifdefined\donewithfoo \else \begin{lrbox}{\foobox} \begin{...
einpoklum's user avatar
  • 12.4k
0 votes
1 answer
51 views

How do I display "R_1" INSIDE the resistor-'block', AND showing the value outside the resistor? (circuitikz)

How do I display "R_1" INSIDE the resistor, AND showing the value outside the resistor? \documentclass[]{standalone} \usepackage{circuitikz, siunitx} \begin{document} \begin{circuitikz}[...
Alex Madsen's user avatar
0 votes
1 answer
58 views

How to label vertices of a simplicial complex in LaTex?

I have the following code. My question is how one can label its vertices from 0 to 4? Thanks. \newcommand\size{1} \begin{tikzpicture} \draw[thick] (18:\size) \foreach \a in {90,162,234,306} { -- (...
Ayse Borat's user avatar
0 votes
2 answers
48 views

`\item[0.]\label{fst}` then `\ref{fst}` gives `1.2` rather than `0`; how do I label an `enumerate` block item properly?

\begin{enumerate} \item[0.] \label{fst} Foo \item In \ref{fst} I said \end{enumerate} Want: In 0 I said Got: In 1.2 I said (happy to have extra full-stop; i.e., 0.)
Samuel Marks's user avatar
0 votes
2 answers
64 views

Changing referencing style depending on context

One style of referencing substatements of theorems/lemmas/corollaries/etc. is the following. Suppose we have the following text (my translation of the first part of SGA 1). CHAPTER I: ÉTALE MORPHISMS ...
Gargantuar's user avatar
  • 1,241
0 votes
1 answer
56 views

Make reference to a figure

I'm working on Overleaf and I searched how to make a reference to a figure but it's not working, can you tell me what I'm doing wrong? \documentclass{article} \usepackage{tikz} \begin{document} \...
gaby8gaby's user avatar
0 votes
1 answer
57 views

Cross-Referencing Label Affects Vertical Spacing

Consider the code with \label{L} (immediately above the second tikzpicture) commented out: \documentclass[12pt]{book} \usepackage[paperwidth=5.5in,paperheight=8.25in]{geometry} \textwidth=4in \...
DDS's user avatar
  • 9,768
2 votes
0 answers
38 views

Spacing between tcolorboxes

I would like to make labels for printing but I would like to have bigger spacing (vertical and horizontal) between the labels. I'm working with tcolorboxes and here's my code : \documentclass[a4paper, ...
TexDuinoCpp's user avatar
1 vote
1 answer
32 views

How to label the points of a plotted function with the "only marks" property?

I am trying to draw a function in tikzpicture, that shows only specific points and to label these points. My code looks like the following: \documentclass[12pt,a4paper]{article} \usepackage{tikz} \...
Kruemel's user avatar
  • 13

1
2 3 4 5
35