Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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
vote
1answer
19 views

\autoref and subequations

I have an issue with \autoref and the subequations environment. I have added the () around the equation reference of \autoref (as explained here) and it works fine with normal equations. On the other ...
-1
votes
0answers
26 views

Automatic labelling of equations, based on the automatic numbering that some environments has [duplicate]

I have searched the internet for ages but I never found a solution to my problem. So my question is, when you start writing equations in a specific environment, they automatically get a number. ...
2
votes
1answer
34 views

Hiding an environment but keeping equation labels and their numbers inside

I want to hide some of the proofs of some lecture notes that are given to students. I defined a new proof environment hiddenproof because I want to only hide some of the proofs. I can then hide this ...
0
votes
0answers
30 views

Equation-like references to text?

I love labeling equations and using \eqref{label}. Sometimes I miss ability to do exactly the same (create (N) side-label and reference it afterwards) with text. I mean achieving effect like … ...
2
votes
1answer
18 views

Labelling multiple lines of equations with a single label

I want to latex that equation 14.5. With labelling. But couldn't do it for several hours. So Any help will be appreciated. Thanks
1
vote
1answer
28 views

How to use something like \label outside the table environment?

I would like to ask whether there is any way to use a \label-like command outside a longtable in order to reference this table in latex? It would be also helpful if the label of the table could be ...
2
votes
1answer
39 views

Page numbering issues with sections/subsections in Beamer

I have a beamer doc in which there are a few section and subsection title slides. Those slides do not have a page number footer, and the footer page numbering do not take them into account. In the ...
0
votes
2answers
37 views

Using numcases with cases

I have an equation like so: \[ \begin{cases} Eqn1 &= 0,\\ Eqn2 &= 0, \end{cases} \iff \begin{cases} Eqn3 &= 0,\\ Eqn4 &= 0,\\ ...
4
votes
1answer
38 views

How to label each equation with some text in a series of equations?

I was wondering what's the best way to create series of equalities, each of which is labeled on the right with some text, as in this example: I would prefer a version that works both with numbers ...
2
votes
1answer
71 views

Removing \label from a string

Is there a way to create a command that removes, if present, a \label from some text. It should work like this: \documentclass{article} \newcommand{\removelabel}[1]{} % some code \begin{document} \...
3
votes
2answers
87 views

Consecutive numbering and labels in tcolorbox

Those days I write a book, and I use framed boxes tcolorbox. Have a look: \documentclass[12pt,a4paper]{book} \usepackage[utf8]{inputenc} \usepackage{amsmath,amsthm,amsfonts,amssymb,mathtools} \...
0
votes
0answers
17 views

Reference in latex document to Matplotlib(pgf) generated figure

I have a python script which draws a plot similar to this: fig = plt.figure() ax = plt.axes() x = np.linspace(-2,2,10) y = x**2 ax.plot(x, y, label='$x^2$', color="#07529a", linewidth=2.0) # <--...
1
vote
2answers
46 views

How to align several lists using the enumerate environment?

I'd like to align the left margin of these lists. This is what I get: This is what I want: MWE: \documentclass{article} \usepackage{enumitem} \begin{document} \quad \newline This is a list ...
2
votes
1answer
56 views

Clean solution to move yaxis in polar plot

I want to be able to plot the upper half of the attached polar plot (MWE), by setting xmin=0 and xmax=180. This, however, is non-trivial when I at the same time want to have the yaxis with labels and ...
0
votes
1answer
43 views

Is it bad to have \ref before you have \label and if so what to do about it?

Overleaf issues a lot of warnings about having \ref before I have \label and idk if I should do anything about it.
1
vote
1answer
30 views

Different Positions for Labels and Captions of Subfigures

I have five figures to put in the following layout: So far I have managed to obtain the above layout (using the following script), except for the labels of the sub-figures (a,b,c,d,e) that I want to ...
2
votes
1answer
20 views

Positioning edge label

I'm trying to position two edge labels over and below their respective edges. I'd like them to be center aligned in relation to the edge. This is my current code: \documentclass[tikz,border=9]{...
6
votes
1answer
122 views

width of (\alph*) labels

I made a list using enumitem and \begin{enumerate}[label=(\alph*)] ... \end{enumerate} The resulting labels are, to me, annoyingly uneven. Notice that (b) is much wider than (c) in the image below. ...
1
vote
1answer
71 views

Referring to a tikzpicture, but no label shown

I'm trying to refer to a tree in the document. The tree has a label and in the text it is referred to as 2.2, but the label 2.2 is not shown next to the tree. The code including the packages I use is ...
1
vote
0answers
38 views

Bibliography STYLE [label] missing?

Please, I want my bibliography to look like this one: [Wonko and Tsio 99b] Wonko, A. C., Tsio, F.: "Extended Use of Hyperlinks"; J.UCS, 5, 3 (1999), 225-327. I tried "apalike" and "agsm" but the ...
0
votes
1answer
57 views

How to change ticketsize with ticket.sty?

I can't seem to change the ticketsize in LaTeX. %%%% % % ticket.sty example file for a pin for conferences % %%%% % use the corresponding paper size for your ticket definition %\hoffset=-16.2mm %\...
1
vote
2answers
45 views

Trying to use \MakePerPage{footnote} kills the build of my LaTeX doc

The standard LaTeX footnote behavior is to mark footnotes using superscript numbers. I can't use that, since all of my citations are superscript numbers. What I'd like is for my footnotes to be marked ...
3
votes
1answer
65 views

Node label switching on condition

I try to create a dynamic graph where a node move along the axis line. When a condition on x is filled (X>1.8), I need the labels to be translated as i tried to do it in the following MWE \...
4
votes
1answer
91 views

Shading apply to label unexpected in matrix environment

I am trying to add shadow to node. For normal node, the shade will not impact the label. However, for nodes inside a matrix, the labels are shadowed too. MWE below \documentclass[border=5mm, convert]...
8
votes
2answers
169 views

Equation tags with subequations

Consider the following MWE: \documentclass{article} \usepackage{mathtools} \begin{document} \begin{align} \label{system} &\left\{ \begin{aligned} 30^{2} &= h_{C}^{2} + y^{2};\\ ...
1
vote
1answer
52 views

Label an item of a 'randomized enumerate'

I got the following code from Random shuffle itemize. How to label (something like \label{1}, \ref{1}) a specific randomList item to print the corresponding letter at the end of the document? \...
2
votes
1answer
44 views

Gnuplot+LaTeX: two figures side and y-label far away

I read most of answer to similar questions, but they did not help me. I have two problems: these are two graphics that I am trying to place side by side. But: firstly, they turn out to be shifted ...
1
vote
1answer
28 views

Automatically refer to n-th author

I'm writing a paper with many people, and to be honest, at this point I'm not even sure who will be listed as an author in the final version. In the text, I would like to write things like "the forty-...
1
vote
1answer
67 views

Stacked bar chart, nodes near coords remove small values and show sum

I know it is possible to have only the sum shown on top of the bar chart and remove the other values in the stacked bar chart (as shown in picture attached), but I can't figure out what went wrong in ...
3
votes
1answer
54 views

\pgfmathprintnumber label of bar values exceeding axis values

I'm trying to only have the y-value exceeding the axis to be labelled and not the rest (as shown in the picture below). Is there any suggestion how this can be made? my MWE (thanks to @Jake): \...
1
vote
0answers
32 views

Trick/Workaround for cross reference between files without xr

I have a main manuscript and a supplementary materials tex files. These are based on templates by the AGU journals, therefore it is not recommended to add any other packages, than those provided. I ...
6
votes
1answer
124 views

Cyrilic characters in \label and \ref in pdflatex

I want to write \label and \ref with Cyrillic(Russian) characters in pdflatex. \usepackage[russian]{babel} in preamble. I tried \label{\detokenize{}}, but it doesn't work. \documentclass[a4paper,...
2
votes
2answers
49 views

Array Label of each 3 line

I want to label each three line of an array like the picture. Can Anyone help, please?
2
votes
1answer
49 views

Algorithm inside a tcolorbox: how to put a label to the algorithm but the caption as title of tcolorbox?

This question comes after a question about algorithms inside tcolorboxes. Before the question, is better to explain what I have now. I have a file with the algorithm that is q-learning.tex. \...
5
votes
3answers
84 views

Tikz: Zero-padding node labels?

I define an array in the following way: \begin{tikzpicture} \def\n{10} \pgfmathparse{int(\n-1)} \foreach \x in {0,...,\pgfmathresult} { \foreach \y in {0,...,\pgfmathresult} { \...
2
votes
1answer
103 views

Is this possible to use two \label for same equation

Is this possible to use different labels for same equation number, I've tried with the below code: \documentclass{book} \usepackage{amsmath} \begin{document} \begin{align} \label{test} a+b=c\label{...
4
votes
0answers
105 views

Stacked bar chart percentage label not showing

I have a stacked bar chart and surprisingly not all the percentage of the bars are shown. I only allowed values more than 3% to be shown, however some are clearly more than 3% and at the same time not ...
2
votes
1answer
34 views

label shifting behavior in tikz vs tikz-cd

I have a tikz picture that has labels, and the labels are in the correct place. However when I put the {tikzpicture} inside a {tikzcd} environment, the position of the labels shifts noticeably up, and ...
2
votes
1answer
37 views

How to define two labels inside an environment to compute the number of pages the environment spans?

I would like to count the number of pages that a certain environment (named myenv) spans. In principle, I set two labels, one in the beginning and one in the end of the environment. These labels ...
2
votes
2answers
61 views

Manually create `enumerate`-labels

In the statement of a mathematical lemma, I have two similar statements that are supposed to make up statement a) and b) of the lemma. However, since I want to align the similarities properly, after ...
1
vote
1answer
50 views

Axis label is not displayed and adding labels to stacked bar chart

I have made this stacked bar chart but I can't get my x-axis label to be shown even though I have added them in the codes. Also, can anyone tell me how can I add labels to my stacked bar chart like in ...
3
votes
1answer
58 views

showlabels problems with subequations

I would like to resume the post on the \usepackage{showlabels} for a moment working on some things, I found this code very handy, but I saw that when I activate the \usepackage{showlabels}, from ...
1
vote
1answer
61 views

Table of contents of included pdf

How can I do a table of contents, list of figures and list of tables of included pdf \documentclass{memoir} \usepackage{pdfpages} \usepackage{hyperref} \usepackage{cleveref} \begin{document} \...
0
votes
2answers
42 views

Use \showlabel package with newcommand \loadnote

Inside my main.tex I inserted a function called \loadnote which refers to an external file notepie.tex in which are considered the footnotes (with reference to this discussion) . \usepackage{...
1
vote
1answer
45 views

Adding different Greek characters to individual axis tick labels in pgfplots

I've been scouring the web and the pgfplots manual trying to find an example of labelling different x-axis ticks with different Greek characters. The closest i've found is using xticklabel={$\...
4
votes
3answers
60 views

\verb in label or pin of a tikz node

The documentation of tikz gives following example containing the \verb command in the node text (Section 2.21 Adding Text, v3): \begin{tikzpicture} \draw (0,0) rectangle (2,2); \draw (0.5,0.5) node [...
5
votes
2answers
196 views

Convert final appendix to a supplementary material section

I am writing a document where each chapter has an appendix. In addition to the appendices I would like to have a final supplementary files section where I list all the files that accompany the ...
4
votes
1answer
156 views

Is there any way to define the enumerate label in general?

If I define numberenum like following, \newenvironment{numberenum} {\renewcommand{\labelenumi}{(\arabic{enumi})} \renewcommand{\labelenumii}{(\arabic{enumi}.\arabic{enumii})} \renewcommand{\...
3
votes
2answers
42 views

labels package — don't center

I've just started using the labels package to manage labels, business cards, and pretty much anything I plan to print "X-up". The documentation is pretty clear -- The task of this package is to ...
2
votes
1answer
41 views

“Numbering” equations inside array{l}

i have this situation: \begin{equation} \begin{array}{l} A \xrightarrow{T4} \\ \\ B \xrightarrow{S} \\ \\ C \xrightarrow{T5} \\ \\ D \end{array} \end{equation} Here i have reported a minimal example ...