The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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

Labeling a line in a flalign* enviroment

I would like to label the last line of this computation (and several longer ones), so I may use them as equations, like so: \begin{flalign*} \Gamma^{l}_{js}P^{j}Q^{s} &= \frac{1}{2}(\Gamma^{l}_{...
1
vote
1answer
25 views

Figure labels and references with \adjustimage

I am wondering why this command works: \noindent\adjustimage{width=1.2\textwidth,center,caption={mycaption},label={mylabel},figure}{mylabel} and I got references working correctly, and instead with ...
0
votes
0answers
20 views

Label equations with numbers with optidef

This might be a dumb question but I am writing my model with optidef. Using such a environment \documentclass[a4paper]{article} \usepackage{remreset} \usepackage [short]{optidef} \usepackage{...
2
votes
2answers
57 views

Label equations with braces and line breaks

I have never used this before, so please bear with me. I am trying to label parts of the flow conservation equation for momentum with braces, which I have done before. However, I can't figure out how ...
2
votes
1answer
37 views

Wrong interpretation of - - in the enumerate enviroment

Why the following code right before --\hgnum{\theenumi}] doesn't yield dash but rather two -- For easy compilation mypackage.sty is included below the code. \documentclass{article} \...
0
votes
1answer
21 views

Tagging and referencing

I am working in my final degree project and I have to reference some parts of the document (just a few paragraphs) where I don't understand something for my tutor to help me with. I want to create a ...
1
vote
0answers
26 views

Remove exponential factor when using custom x-axis labels [duplicate]

I set the xtick-labels to π/2, π and so on. Now because my x-values are small an exponential factor is still drawn under the x-axis. One workaround is to multiply all my values by hand with 1000. I ...
0
votes
0answers
33 views

Locally changing what \ref displays

I want to write as will be shown in chapter 3 section 4.3, where the hyperlink on ``4.3'' is generated by \ref{sec: titleOfSec4.3}. But this \ref of course gives me as will be shown in ...
1
vote
0answers
66 views

Which characters are safe to use in labels?

To my dismay, I've learned that it is unsafe to use the colon (:) in labels if you are using babel-french together with at least one other package, namely, crossreftool, which operates upon labels. ...
0
votes
0answers
29 views

Macro similar to section with label/reference and custom format

I am trying to write a macro (\exhibitTitle) that would behave similar to section/chapter, but with its own counter that increases by 1. Its important that it supports label (doesn't have to be ...
0
votes
0answers
24 views

Cross referencing to any reference counter without adding labels

This answer provided a great solution for creating a new reference counter. I have a further idea to refer to a particular point without putting label or ref manually. This is done in package linguex ...
1
vote
1answer
33 views

How do I rotate labels in a tree diagram drawn with forest?

I am in the process of drawing a huge tree diagram that I want to fit on a single page (at the moment it does not fit on an A1 page). A simple way to do this would be to rotate the labels. I know this ...
3
votes
1answer
62 views

How can I define a command like `\copypaste{ref-label}`?

How can I have a command like \copypaste{ref-label} such that it copy the corresponding environment to label \label{ref-label} and paste it where the command \copypaste{ref-label} is? or at least (if ...
0
votes
1answer
35 views

How can I write an equation in the label section?

Code: \begin{figure}[ht] \centering \includegraphics[width=0.8\textwidth]{Images/Co2EOR.JPG} \caption{.....} } \label{Cross-section $$\textrm{CO}_{2}$$ EOR} \end{figure} Error Message: "Missing ...
0
votes
1answer
13 views

3D Box with labels using LateX

I am new to TikZ in LateX. I want to produce the figyre below. This is what I have tried: \documentclass[]{article} \usepackage{tikz} \usetikzlibrary{3d} \begin{document} \begin{tikzpicture} \...
1
vote
1answer
35 views

Pgfplots axis labels misplaced (half page away from the grid)

\documentclass[letter,12pt]{article} \usepackage{pgfplots} \pgfplotsset{tyyli/.append style={axis x line=middle, axis y line= middle, xlabel={$x$}, ylabel={$y$}, axis equal }} \pgfplotsset{every x ...
2
votes
2answers
39 views

How to label geometric figures

I want to encode in LateX the figure below. So far this is what I've tried. \documentclass{article} \usepackage[english]{babel} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[thin](...
1
vote
1answer
11 views

How to reference a tcbh theorem

I created a customised theorem environment via "\newtcbtheorem", however the referencing does not work properly. For example: \documentclass[a4paper, 11pt]{article} \usepackage[a4paper,left=3cm,right=...
4
votes
1answer
30 views

Tikz set label position using pgfkey

I'm trying to define a tikz style for nodes that (among other things) includes a label. Since the label position relative to the main node needs to be manually controllable I want to set the position ...
2
votes
1answer
20 views

How to use \psxlabel and \psylabel to change label size in pstricks plots?

I am trying to get larger numbers on my axes in a pstricks plot. The user's guide only says that The labels are set in the current font (ome of the examples above were preceded by \small so that the ...
2
votes
1answer
17 views

Label with counter

I have a counter called Sols. I want to create a label as follows: \label{Sol:\arabic{Sols}} From some reason I get errors. What is the solution to that? Thank you!
0
votes
0answers
44 views

LaTeX: different labels for figure caption and figure reference

I have to follow a special template for captioning figures. For a figure caption's label I should have the following format (2.5cm indention from the most left where the text begins): For this format,...
0
votes
0answers
18 views

Getting a correct reference after being labeled with a command inside \label

If I label something with a command like this: \label{lst:\mycommand} Because \mycommand changes for everything I'm labelling in a particular repetitive section. When I'm using \ref{lst:abcd} for ...
0
votes
0answers
22 views

Creating a bracket [] macro for \ref when using hyperref

I've been trying to add brackets around cross-references in a more automatic manner in my recent report, but haven't been able to do so just yet. A simple \newcommand-macro does not seem to work. I've ...
1
vote
3answers
50 views

Use split environment multiple times in align

I got a big fan of the split environment to share forumula numberings over multiple lines. However I can't figure out how to use it multiple times inside an align environment. I have an equation that ...
2
votes
1answer
46 views

Have reference in section with custom counter

I have some "items" that I want to count and reference throughout the document. These items are usually equations. I also have different types of "items" that I want to differentiate via a prefix on ...
6
votes
4answers
131 views

How do I reference a custom counter that shows the section number?

I am trying to use the proof environment that comes with the amsthm package. And I would like the proof environment to be numbered, such as the theorem environment for the sake of adding a label, so I ...
2
votes
1answer
29 views

Help with single left label for multiple items with a single left brace

I have a list in the itemize environment and I would like to have it all grouped with a left curly brace that points to a symbol like (*) that works as a label that I can reference later. Currently, ...
0
votes
1answer
24 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
35 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
24 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
36 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
170 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
139 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
59 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
35 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{...
3
votes
0answers
43 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
57 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
48 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
70 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
33 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
30 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
38 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
39 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
61 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
52 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
130 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)...