{labels} is about customizing the labels of {diagrams} and mathematical constructs like {matrices}. For questions about \label or similar commands, use {cross-referencing} instead.

learn more… | top users | synonyms (1)

3
votes
1answer
52 views

TikZ > Is it possible to use the identifier of coordinates as string?

I am drawing pictures with TikZ using loops, for instance \foreach \point in {(i),(j),(k)} {...}. Is it possible to use the name of the coordinates as string to label a node? I'd like to use \node at ...
2
votes
1answer
47 views

Macro for pictures with generated labels

Good day, I would like to write a macro (using Latex3/expl3) that posts pictures and can take several key-value parameters for generated labels/captions etc. I already found code that can do this, ...
1
vote
1answer
34 views

Dynamically generated label

I would like to generate a label using a command that uses conditions: \newcommand{\paperPrefix}[1][]{\ifthenelse{\equal{#1}{}}{\ifthenelse{\equal{\activePaper}{}}{}{\activePaper\_}}{#1\_}} ...
2
votes
1answer
23 views

\autoref from hyperref not showing correct theorem label

I am writing some lecture notes for a course on overleaf. \documentclass[a4paper,11pt,openany]{book} \usepackage[utf8]{inputenc} \usepackage{amsmath,amssymb,amsthm} ...
-1
votes
0answers
10 views

Estout: indicate() continuous/factorial interaction terms [closed]

I'm trying to indicate whether a regression in STATA includes an interaction term between a factorial and a continuous variable, using the eststout user-written command as below: sysuse auto eststo: ...
2
votes
2answers
167 views

How to fit 3 equations in the page with number 2a, 2b and 2C?

I have the following issue. I am trying to fit 3 equations in one line with the label of 2a, 2b and 2c. Up to now (I am using tabularx)I am only able to get the 3 equations on the same line with ...
3
votes
0answers
27 views

label option in tikz-cd influences distance between column

I want to give one node a label using tikz-cd. But then it seems that when arrange column distance, tikz takes the label node as a part of the main node rather than only considers the size of main ...
3
votes
2answers
37 views

How do I reference the current enumerant label without having to tag each one by hand

I am trying to build functionality similar to the exercise package, but exercise does not quite do what I want. MWE: \documentclass[10pt]{article} \newwrite\myfile ...
0
votes
2answers
45 views

How to avoid confusing/messy label system efficiently?

In scientifical writing, I find that the label system such as \label{eq:eqnum}, \label{eq:eqmeaning}, \label{thm:thmnum}, \label{thm:thmmeaning}, \label{thm:thm_name} is not satisfactory. For the ...
3
votes
2answers
56 views

Best way to create placeholder labels?

I'm trying to reference a number of supplementary material (i.e. videos) which cannot be included directly in the LaTeX document for practical reasons. However, I still would like them to have an ...
2
votes
1answer
77 views

Print nice old drugstore bottle labels with LaTeX

I'd like to print some nice looking old school drugstore bottle labels (they would look great in my kitchen). Here I found some of the labels I had in mind: ...
1
vote
1answer
18 views

labelling entries in a column vector [closed]

I wish to have a square column vector where the entries are labeled. I know I can kind of do this with bordermatrix: \[ \bordermatrix{ & \cr a & 1\cr b & ...
1
vote
1answer
30 views

Label of theorems

Is there an equivalent of \figurename for theorems and lemmas? For instance, given that I've defined \newtheorem{theorem}{Theorem} \newtheorem{lemma}{Lemma} \newtheorem{example}{Example} and in ...
1
vote
1answer
23 views

How to create a box with caption and label like a float?

I want to create a box (in which I put extra information for the reader) that behaves like a float. In other words, it should have a caption (outside of the box that says Box 1: Here is my box ...
2
votes
2answers
62 views

Macro: compatibility of 1) Auto-colorization & 2) Auto-counter-and-title-to-label

This question is about asking to have the following 2 "workflows" (if you permit me to call them as such) to be able to coexist together in 1 Tex document: Workflow Auto-colorization (≅ User ...
3
votes
1answer
59 views

How to \nameref to a certain instance of a counter (used as pseudo-caption), use number in \nameref and add a title/description to the pseudo-caption

In the following MWE, the environment "quoter" is used let's say a little bit as a "pseudo"-caption: it is not a real \caption or \captionof, but still it generates a counter and displays a word such ...
1
vote
1answer
24 views

positioning of label edge (Tikz figure)

I have a problem with the 'sloped' option. See my example below. from s0 to s3 and s3 to s0, the label are too close to the edge. The pos option allows the user to move the label along the path, but ...
6
votes
2answers
92 views

\label-\ref consecutively numbered theorems using varioref

I hope all definitions, lemmas, theorems, propositions and corollaries are numbered consecutively. The code as below. My trouble is: when I reference, like \ref{<lemma 4>}, get 'definition 4'. ...
1
vote
0answers
22 views

Difficulty with generating labeled equations in elsarticle document class [closed]

I have tried writing equations in the normal way ie: \documentclass{elsarticle} \begin{document} \begin{equation}\label{eq:1} x=y+1 \end{equation} \end{document} but this doesn't work for some ...
4
votes
1answer
44 views

beamer, enumitem - enumerate ball label

So, i "need" to use the enumitem package in order to increase the allowed depth for itemize/enumerate. To use the ball like label in those listing environments, I've tried the following code : ...
0
votes
0answers
36 views

Getting error with a dash “-” in \label{}

I want to have a dash symbol in my labels, such as \label{restapi-1}. Up until now that worked fine. However, just now I created another label: \label{diagram:dao-package} and I am getting compilation ...
2
votes
0answers
57 views

Arrows with charts, labels, tkiz and pgf

I would like to draw an arrow from the K in the first chart to the E in the x-label of the second chart. Normal arrows are working but nodes in the axis labels don't seem to work. Do you have any ...
2
votes
1answer
59 views

matlab2tikz, label on right side of colorbar

How to move the label right of the colorbar? Now it is in the plot itself. This is the matlab-code.... clear all close all clc figure surf(peaks(2)) cb = colorbar cb.Label.String = 'Label' ...
1
vote
1answer
20 views

Labeling lines (or columns) of tikzcd diagrams

I would like to be able to label (by number or a symbol) not only a commutative diagram as a whole, but also single lines of the diagram. For example, in a diagram \documentclass{article} ...
1
vote
1answer
29 views

How to change label/reference formats

I have just been using the default label and reference formats, i.e. $\label{eqn:a}$ and \ref{eqn:a} but I was wondering if there's a way to change the format of the references. For example if I am ...
1
vote
1answer
45 views

How can i change the font size of label of node uniformly in tikz

I want to give nodes a label by \node [label=below:$1$] {$X$}. But the size of the label is the same with "X". i want it to be script size. so i can type \node [label=below:$\scriptstyle 1$] {$X$}. ...
1
vote
1answer
29 views

Label bounding box in Asymptote

Here is the code. settings.outformat="pdf"; import graph; size(4cm, 0cm); defaultpen(fontsize(16pt) + linewidth(1)); xaxis("$x$", xmin=-1, xmax=1); yaxis("$y$", ymin=-1, ymax=1); labelx(0, ...
2
votes
1answer
33 views

control line spacing in a label in tikz

i want to control the line spacing in a label of a node in tikz. In my example it's too big (between the two lines), I want to reduce it. I've already read things about line spacing inside a node, but ...
9
votes
2answers
124 views

Putting labels on a cube with perspective

I'm trying to draw a cube where the faces are labeled with full perspective. I saw this question but I was looking for more perspective. Any help is greatly appreciated. Below is my attempt: ...
0
votes
0answers
32 views

Remove label from table and figure

Iam trying to remove the late 6.1 from the bottom of the table without removing the "Πίνακας 6.1:..." I have tried using \label*{Table:12} but it didn't work. Any suggestions? \begin{table}[h] ...
3
votes
1answer
36 views

Show tick labels on both edgess in groupplot

I would like to put quite many small plots in a groupplot environment and provide ticklabels on all adges of the groupplot (no labels at individual plots). In the following example, I've set the ...
4
votes
0answers
22 views

Label not working after \appendix with revtex4-1

I need to use labels in appendices with revtex4-1 but I've got a "LaTeX Warning: There were undefined references" and the references are not placed. It seems that there's a conflict with biblatex ...
2
votes
1answer
53 views

How to add label at center of three nodes and have it pointed to nodes respectively?

In tikz I have three nodes as following: \documentclass{article} \usepackage{pgf, tikz} \usetikzlibrary{arrows, automata} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture}[>= ...
1
vote
0answers
17 views

Change label in align environment [duplicate]

In LaTeX, I'm using the documentclass report with different chapters. Now, when using the align environment for listing formulas with labels, i get labels like (2.1), (2.2), ..., the first number ...
1
vote
1answer
49 views

Renew an already used label

Based on my question here my setup is currently looking like: \newenvironment{A}{\label{env:A}}{} \newenvironment{B}{ %%Pseudocode \if\thepage!=\pageofref{env:A} Pagebreak happened! \fi %% End ...
3
votes
0answers
55 views

Arrows, coordinates and labels

Please, consider the MWE below. \documentclass[border=3mm, tikz, preview]{standalone} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture}[ LM/.style = ...
5
votes
2answers
89 views

combining absolute and relative coordinates for axis label

Consider the following MWE \documentclass{article} \usepackage{pgfplots} \pgfplotsset{ compat=1.12, stdaxis/.style={ ylabel style={at={(ticklabel cs:1.06)},anchor=west,rotate=270}, ...
4
votes
2answers
60 views

Where's the mistake? #1 inside \caption

I am trying to automatically convert \caption{...\label{...}...} to \caption{...}\label{...}. This is what I have tried: \documentclass{article} \usepackage{showlabels} ...
2
votes
2answers
46 views

enumeration label out of margin

I am wring this enumerated list as part of my document. I created labels as Step-I Step-II Step-III However they went out of margin on left side which looks ugly. I have attached the rough picture ...
0
votes
1answer
42 views

How can I label and reference a table without using the table environment

I want to be able to refer to tables that are not enclosed in the table environment. My reason for doing this is that these are statistical tables (yes a relic of times long gone) that I don't want to ...
0
votes
0answers
19 views

tufte: two tables on the same page

I have two tables which are about 40% of the page height. Both are related and should stay on the same page. Therefore I put both tables inside a minipage and made it floating. ...
7
votes
3answers
210 views

Best practices in labeling (giving labels to equations, theorems, items, etc..)

Are there some Latex style guides with part dedicating to labeling? I want to use some persistent labeling scheme, but don't know any (except for uncertain one in my mind). What labeling scheme ...
5
votes
1answer
56 views

Is there any way to extract the values stored in newlabel

Context: I want to store values in the aux file to use them earlier in the file on the next run, rather than creating my own solution I want to use labels (as suggest by this answer). Problem: ...
0
votes
1answer
53 views

Put arrow on elements of a set with tikz

I need to mark some elements of a set with arrow in latex using tikz. I tried tikz-cd but it doesn't seem the right choice.
0
votes
1answer
14 views

How to prevent misalignment of a vertical column when a node label is displayed

I am trying to make a vertical column of various moon phases using a macro that generates circles, but when I add a node label to a circle (to designate that it is a full moon) it shifts the circle ...
1
vote
1answer
14 views

How to prevent an object from moving when adding a node label [duplicate]

I am trying to make a vertical column of various moon phases using a macro that generates circles, but when I add a node label to a circle (to designates that it is a full moon) it shifts the circle ...
0
votes
1answer
20 views

sidewaysfigure wrong numbering

I am writing a document where the second figure must be sideways. I do this by using: \begin{sidewaysfigure} FIG2 \end{sidewaysfigure} But this changes the order of the figures. Now FIG2 comes ...
3
votes
1answer
47 views

Nested enumerate items are missing some periods when cross-referencing

I am writing a rulebook and need to reference clauses and sub-clauses throughout. When I have a nested enumerate item to the level of 5.4.2.3, the cross-reference displays as 5.4.2.23. ...
2
votes
1answer
24 views

problem with align* and labels

I have this code: \begin{align*} \label{eq:svc2} \stackrel{min}{\omega,b,\xi,\rho} \-\hspace{20pt} & \frac{1}{2} \omega^T\omega - \nu \rho + \frac{1}{l} \sum_{i=1}^{l}{\xi_i} \\ \text{subject ...
1
vote
1answer
37 views

Long equation labelled by a symbol

To label a single symbol to long equation, we use \begin{split}...\end{split}: \begin{align}\label{eq1} \begin{split} H=\langle x_1,x_2,\cdots, x_n \colon & [x_i,x_j,x_k]=1,\\ ...