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
1
vote
1answer
74 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
82 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
32 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-...
4
votes
1answer
130 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
63 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
155 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,...
1
vote
2answers
64 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
101 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
139 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
135 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
206 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
61 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
39 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
91 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
80 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
80 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
330 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
58 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
118 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
137 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
950 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
332 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
56 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
44 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 ...
1
vote
1answer
69 views

Latex: is is possible to have a marginnote with a leading line and both in and outside a float environment?

I do not have an example since I want to know if it is possible, here is the one from the wiki slightly modified. \documentclass[a4paper,twoside,english]{article} \usepackage{lmodern} \renewcommand{\...
3
votes
2answers
584 views

Equation numbering not shown

I am writing an equation using the syntax s follows:- { \[ N\!D_{\max} = \begin{cases} \frac{n}{2} &: \text{$n$ even,} \\ \frac{n-1}{2} &: \text{$n$ odd.} \end{cases} \] ...
1
vote
1answer
50 views

How do I insert text in the main body conditional on whether or not a label is defined

I have a set of documents I work with, where I include various files to complete them. So the main document might appear: \section{Section A} \input{SectionText1} \input{SectionText2} \section{...
1
vote
1answer
40 views

Unresolved references label within caption for STATA tables

I am using stata to generate a table. This STATA generated tex table has label defined within \caption{} command. This labeling should work. But it gives me unresolved references (Table ??). When I ...
1
vote
0answers
36 views

System of equations in single line with indices at end [duplicate]

I want to write a system of $n$ equation of similar form in a single equation with indices at the end of the equation, for example the following one: I did this by the following commands \begin{...
3
votes
1answer
93 views

how to label and refer subfigures under tabular environment?

I have two subfigures and I need to refer them in text such as Fig. 1.1(a) and Fig. 1.1(a) using Fig. \ref{fig1.1a:chap1} and Fig. \ref{fig1.1b:chap1}. The output is not coming. Instead, a double ...
0
votes
1answer
624 views

Setting node label's size and color in TiKZ?

I'm drawing AVL trees using the first answer given at AVL Trees in TikZ: draw outside of node as an example. All I want to do is add a style definition which will draw the labels in a small font and ...
0
votes
1answer
59 views

Sticky labels with image and different font sizes

I want to create products labels. For the alignment I am using tabluar. But as soon as I place an image inside the table or change the fonts size everything gets messed up. The image moves out of the ...
1
vote
1answer
109 views

How can I create a nutrition Front of Label image?

I am looking to create a Latex image of the label below which is becoming standard on UK food packets. What would the TikZ code look like for this?
1
vote
2answers
116 views

Equation label is wrong

I am currently trying to cite an equation array, but it is citing me the next equation, weirdly (see figure). Can anyone help me? I am using the following code: Considering a logarithmic ...
0
votes
1answer
754 views

Captions and labels on long table [duplicate]

I've tried everything I can think of but longtable just won't allow me to add a caption and label to the top of the table. My table looks like this: But when I add in a caption and figure, ...
2
votes
2answers
347 views

Main label in a system of equations

I'm trying to create a system of equations with sub-numbering using the \begin{subnumcases} environment. Everything works perfectly but I would need to place a label somewhere in order to ref the ...
1
vote
1answer
170 views

Reference a set of subequations with a single label in Lyx

Using the subequations module, I have created a set of equations labeled 1a, 1b and 1c. I now wish to refer to them collectively as (1) in subsequent text. Here's my code copied from the LyX file: \...
1
vote
1answer
251 views

Three-sets Venn diagram using TikZ with comments/labels inside and outside the circles

I am trying to produce a three-sets Venn diagram illustrating my research agenda and my published work. I am having a hard time including the comments inside the circles, particularly regarding the ...
0
votes
1answer
142 views

Labeling threeparttable footnotes

I want to label footnotes using the threeparttable package, but it does not seem to be able to assign a label without proper caption. In fact if I disable the \caption package it works. But I need the ...
2
votes
1answer
77 views

Saving an image containing labels produced using LaTeX code

For a paper I'm working on, I have a bunch of figures (pdf files) generated using Mathematica which I label using \put commands in LaTeX. However, I want to now save the labeled figures as pdf files. ...
2
votes
2answers
59 views

Control space not expanding in label command

Somehow a control space \ used in \label doesn't expand. \foo gives the following newlabel in the aux file: Anonymous\ 1. Mind the backslash. The log gives: "! Missing \endcsname inserted." \baz does ...
2
votes
1answer
155 views

Add vertical labels on left side of tikzpicture

I have a flowchart using tikz, and I'd like my legend to include a vertical label on the left side of the tikzpicture. Like above text. (Excuse my 10 second Paint MS flowchart)
1
vote
1answer
110 views

Customizing a point label style

There are some points labels that overlap on one another if the points were near an axis or close to one another, because the table is relatively long to be written horizontally. How can I writ a ...
7
votes
1answer
287 views

Symbolic radian coordinates in pgfplots

I want to create a graph like the one shown in the figure (it is done with Geogebra), where on the x-axis there are labels in radians (for example $\pi/6, \pi/4, \pi/2$ etc.) with its relative unit of ...
3
votes
1answer
167 views

Underlined labels in the description environment

How can the description environment be modified so that it uses underlined labels instead of the default bold texts? It would be better if I can do that globally not just for one time.
3
votes
2answers
111 views

Finetuning a pentagon network

I have created a primary version of a pentagon network with the following code: \documentclass{book} \usepackage{tikz} \usetikzlibrary{positioning} \usetikzlibrary{shapes.geometric} \begin{document} ...
1
vote
1answer
82 views

Use counter value from given label

I have defined two new counters and two macros. The first macro \requirement simply increases the counter requirement. The second macro \subrequirement is basically doing the same but using requriment ...
2
votes
1answer
182 views

Aligning text on edge

I cannot figure out why the text on the edge is not entered. What am I doing wrong? \documentclass[margin=1mm]{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{...
1
vote
1answer
53 views

Warning after itemize in theorem

Compiling the following document gives a warning "name{theorem 0.1} has been referenced but does not exist, replaced by a fixed one". \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[...
1
vote
1answer
37 views

Underbracket text with label within bracket?

I'm looking to do something like this: with the underbracket operator, where the label text is inline with the bracket. Is there an easier way rather than fiddling with that operator?