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
1answer
26 views

pdfbookmark does not work with special characters

I'm writing a document in English, but I also have some parts in other language. I created my own style to change how the book class behaves, which also includes headings for chapter and chapter* ...
1
vote
1answer
42 views

How to put a label on a recurrent arrow?

I want to draw a recurrent layer of a rnn. Therefore I am using the following code but can't manage to put a label (\nu) on the recurrent arrow. The picture show my desired output, its simply a label ...
0
votes
1answer
29 views

labelling arrays

Sorry if this is stupid but writing $$ \begin{array}{c} \label{cycle LP} \text{min} \ \ \ w^t x \\ \text{s.t.} \sum_{C \in \mathcal{C}} x_v \geq 1 \\ x \geq 0 \end{array} $$ ...
2
votes
2answers
39 views

How can I indent and enumerate text (somehow like what the equation environment produces)

I want to achieve the following output in LaTex: The enumeration should be automatic (so, the next indented text should be labeled by (2)) and the text should be left-aligned. So, I'm looking for ...
1
vote
1answer
191 views

Adding new label/reference command pairs to RefTeX

I would like to add the label commands \pflabel and \pflonglabel, as well as their corresponding reference command \pfref to RefTeX. I would like them to work like \label/\ref do by default, but be ...
0
votes
0answers
23 views

Pgfplots mixes scientific and decimal labels as plot ticks [duplicate]

I am creating a simple plot like this \begin{tikzpicture} \begin{axis}[% width=14cm, ] \addplot table{% -0.02 0.976511902149045 0.02 0.974250140430107 0.06 0.92759014496851 0.10 ...
4
votes
2answers
146 views

How to make cross-references between parts?

MWE \documentclass{book} \begin{document} \part{ONE} \chapter{One} a\label{sec:a} \section{1-One} c \pageref{sec:e} [please see Part II page 3] %< what I'm trying to write d \pageref{sec:a} [...
2
votes
2answers
76 views

2x2 Confusion Matrix

Hello I would like to construct a Confusion Matrix as described here: confusion matrix using only LaTeX code Unfortunately I have failed to adjust the code :( I got as close as this thread, but the ...
1
vote
1answer
45 views

How to nameref multiple labels simultaneously?

On this example, I use \cref{first,second} and cleveref correctly labels them: \documentclass[10pt,a5paper]{memoir} \usepackage[brazil]{babel} \usepackage{hyperref} \usepackage{cleveref} \begin{...
4
votes
1answer
78 views

Add captions and labels to custom tcolorbox listing?

I am using following solution to display code which should look like the code from Jupyter Notebook. I got it from here: IPython Notebook cells with listings The result looks like this: (Source from ...
5
votes
2answers
65 views

Cross-referencing enumerate item

I need to cross-reference the item in enumerate. Here is what I have. \documentclass[12pt]{article} \begin{document} \begin{enumerate} \item Solve $x^2=1$. \item Solve $x^2=4$. \begin{...
2
votes
1answer
50 views

My reference to my `tcolorbox` doesn't work

I'm just trying to reference one of my example in my text but it's always labelled with the upper previous counter (here the section number). My example environment is defined as exmp which are a ...
1
vote
1answer
84 views

How to re size figure and table label font?

I used the \footnotesize command to downsize the label font however the "Figure 2.1" part of the label does not resize. This means I end up with something like: "Figure 2.1:" in a small font plus the ...
0
votes
0answers
36 views

How to change axis tick label font to Arial when using pgfplots to draw a figure?

I can change the main font in the preamble using \usepackage{fontspec} \setmainfont{Arial} but it only works for the legend but not axis tick label, I've installed Arial font. I don't want to use ...
0
votes
1answer
38 views

Using labels with enviroment \tcolorbox and personal titles

I'm a bit stack about using labels in my latex document, first, I have used this command to create a personal title \newcommand {\mytitleTeo}[1]{ \node[fill=red!30, ...
2
votes
1answer
32 views

Change scheme label in chemmacros

I need to change the labelling for my floats (Page numbers/sections/figures/tables/schemes) into Figure S1, Table S1, Scheme S1, ... (for Supporting Infortmation of a journal). For Figures and Tables,...
1
vote
1answer
39 views

Refer to Numbered Section in moderncv Class using \ref

I would like to refer back to a numbered section in the moderncv class using \ref but I am unable to do so. I read the post titled Using \ref in moderncv class and I was able to get the following: \...
3
votes
2answers
41 views

Labels closer to the arrows with xy package

Few hours ago I have added my answer for this question How to make a math diagram on LaTex? \documentclass[12pt]{standalone} \usepackage[all,cmtip]{xy} \usepackage[bb = boondox]{mathalfa} \begin{...
1
vote
1answer
72 views

PGF groupplot ylabel not aligned

I have some multiplot I created via matlab2tikz with multiple ylabels. Those were not aligned. I also tried the solution in [this answer] but still. This is the wrong output using my code (see below)...
3
votes
1answer
69 views

Beamer: Using \label for blocks adds vertical space

When adding a \label to a block in the beamer class, additional vertical space is inserted before the content. This doesn't happen with the default block template, but setting using the rounded ...
3
votes
0answers
133 views

possible (major) bug with pgfplot axis labeling?

I tried compiling a bunch of files today, all of which use tikzpictures and pgfplots. Something truly odd is happening with how the y-axis label is being positioned. I took the MWE from Positioning ...
5
votes
3answers
61 views

Add a $\pm$ to the label in order to distinguish two different cases

I have an equation and I would like to label it in order to refer to it later on in the text, say \begin{equation}\label{eq1} f^\pm(x)=\ldots \end{equation} This labels the equation with, say, (1)...
0
votes
0answers
60 views

Pgfplots labels position is wrong

I can't understand why does label position fail? I use Miktex + Pgfplots. Code: \documentclass[a4paper, 14pt, twoside, unicode, titlepage, final]{extreport} \usepackage[T2A]{fontenc} \usepackage[...
1
vote
1answer
44 views

Labeling Equations in style (A.1), (A.2), … , (B.1), (B.2), … in the appendix in the amsart document class

I am using the amsart document class, which by default continues the equation labeling in the appendix from the main sections. So if the last equation in an ordinary section would be (35), the first ...
3
votes
1answer
99 views

Custom Labels right side of the axis

I am having problems with custom labels and its position, especially with negative values in the coordinates. I do not get the position on the right side of the y axis and its height is shifted if the ...
2
votes
1answer
55 views

Create dashed intersections with labels using pgfplots and tikz

Problem: I have several minor issues that I can not seem to be able to solve. Add and position labels to x/y-axis Add dashed intersections Show x/y-axis numbers for -1 and 1 Minimal Working Example ...
1
vote
1answer
51 views

Problems with label and cref

I am having some (probably) beginner's problems with labeling I use: \newtheorem{myprop}{Proposition}[subsection] \newtheorem{mydef}{Definition}[subsection] \newtheorem{myrmk}{Remark}[subsection] ...
3
votes
1answer
60 views

Alignment of labels in tikz nodes

Please consider the following example. \documentclass[12pt]{standalone} \usepackage{tikz} \usepackage{fontspec} \usetikzlibrary{decorations.text} \usetikzlibrary{positioning,decorations.pathreplacing,...
2
votes
2answers
210 views

Label an edge above and below

I want to be able to label an edge with a part of the label above it and the other part below it like in the following example : For the moment I have this solution: \documentclass{article} \...
0
votes
0answers
99 views

Figure and table numbers are missing a period

I am writing a science dissertation in the memoir class. The numbering system of the figures and tables appears to use the Chapter Figure number in chapter format, but does not include any separator ...
1
vote
0answers
62 views

Xlabel/Ylabel Position for Tikz [closed]

The Tikz code below generates the following picture: \begin{tikzpicture}[font=\sffamily] \begin{axis}[xmin=0,xmax=100,ybar,bar width=2.8mm,ylabel={\textcolor{forestgreen}{\textbf{Number of Policies}...
0
votes
0answers
29 views

Subfigure without caption but with labels for cross reference

I need to have subfigures with proper labels to cross refer, but doesn't need any caption for them. How can this be done? \begin{figure}[h] \centering \begin{subfigure}[t]{0.49\textwidth} ...
0
votes
1answer
40 views

latex error Missing \endcsname inserted. \protect l.49 \newlabel{\mathbb {F}}{{1.2.30}{18}}

I am getting a latex error during thesis writing with the following message. LaTeX Warning: Label `' multiply defined. ! Missing \endcsname inserted. \protect l.49 \newlabel{\mathbb {F}}{{1.2.30}{18}...
1
vote
1answer
36 views

Labelling subfloats in a two-column document

I am writing a two-column document and there are a lot of figures that I need to put in. I had a set of 12 plots and I planned to arrange them in three rows of four. \begin{figure*}[] \subfloat[]{ \...
0
votes
0answers
14 views

Include a listing but set the caption in the enclosing file

I have a document with many large listings. To keep things organised I'd prefer to keep these listings in separate files and using \input in the appropriate location in the text. However, I'd also ...
0
votes
0answers
46 views

whats a vanilla thing I can label?

Like if I don't want to make even a subsubsection how could I label a paragraph or something when I use \paragraph there is no indicator beside the paragraph or anything. I don't want theorem or ...
2
votes
1answer
50 views

Referencing to Subsection

I have document with sections and subsections. Problem is this one. When I use Sec. \ref{x} to reference subsection 1.1, of \label{x}, I get result Sec 1 1.1 Ho to get correct Sec 1.1 ? Coding ...
0
votes
0answers
24 views

Change figure caption font size individualy

Is it possible to change the caption font size of figures? I know i can declare \captionsetup[figure]{font=...,labelfont=...} But is there a way for one particular figure to deviate from this?
3
votes
1answer
51 views

Subeqnarray: adding left aligned text without affecting centering of equations

I have a code which generates two equations on the same line by using the subeqnarray package. I am now interested in adding text in the same line as these equations, but aligned to the left of the ...
1
vote
1answer
27 views

How to assign page number of label to hyperlink [duplicate]

I'm quite new with Overleaf and I have following problem: I want to make clickable table of contents to my thesis. It turned out that package hyperref works only with numbered chapters and sections. I ...
0
votes
1answer
64 views

Label and sublabel for theorem

In my text file, I am using a theorem environment (from the amsthm package), that contains two parts (for two different cases). The theorem is often referenced as a whole, so I need a global label, ...
2
votes
2answers
182 views

Figure subfigure layout with different numbers

I need a layout similar to the following image. However I want only the 3 images on the right side to be subfigures (2a, 2b, 3c), But the big red image on the left should be numbered as Figure 1. ...
3
votes
2answers
47 views

Aligning 4 equations with label

I did the following code : \begin{align} div(\bm{E})=& \frac{\rho}{\epsilon_0} & div(\bm{B})&=0 \\ \bm{curl}(\bm{E})=& -\partial_t \bm{B} & \bm{curl}(\bm{B})&...
0
votes
0answers
11 views

\label command appears within the text? [duplicate]

I have a problem with the \label command, it is supposed only to label your section without appearing withing the text. and in my case I want to label a section but it appears right after the section ...
0
votes
1answer
36 views

How to interrupt sequential numbering for equations once, then continue the sequence after?

I am using TeXstudio with MiKTeX. I am new to LaTeX but have the standard packages like Amsmath. I would like to have the following numbering scheme for my equations eq 1 eq 2 eq 3a eq 3b eq 3c eq 4 ...
1
vote
1answer
48 views

Counter expands too late

I want to make clear that I tried my hardest to make the smallest MWE I could that still captures precicely the problem I am facing. To summarize I got help from another answer in defining the ...
2
votes
1answer
38 views

Redefining \label to not default to <1>

According to this question, labels are defined by default on a beamer slide to always be defined at the first slide <1>. Indeed \show\label shows > \label=macro: ->\@ifnextchar <{\...
2
votes
1answer
119 views

Labeled energy level transition pgfplots/Tikz

I'd like to build an energy transition diagram (same as Energy level transition pgfplots/Tikz [code below]). However, I would like to add label on it. \documentclass{standalone} \usepackage{pgfplots,...
0
votes
1answer
42 views

amsmath: How to make inline tags, with and without labels?

I have a follow-up question to @egregs answer: At the command \usepackage{xparse} % \tagx[shown text, optional]{label-name} \makeatletter \NewDocumentCommand{\tagx}{om}{% \IfNoValueTF{#1} {% ...
1
vote
1answer
74 views

Tell pgfplots to put tick labels between tick marks

Is it possible to tell pgfplots to put tick labels between the tick marks instead of at the tick marks? MWE: \documentclass[margin=5pt]{standalone} \usepackage{tikz} \usepackage{pgfplots} \begin{...