{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
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
50 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
100 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
24 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
80 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 : \...
2
votes
0answers
61 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
92 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
22 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
30 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
65 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
35 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, align=S+...
2
votes
1answer
36 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
149 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
59 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
28 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
56 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}[>= stealth,...
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
50 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
57 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
97 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
62 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} \newcommand{\storelabel}[1]{\...
2
votes
2answers
53 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
49 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 ...
1
vote
0answers
31 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. \documentclass{tufte-...
7
votes
3answers
217 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
59 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
66 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
15 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
15 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
29 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
55 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
27 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 to}...
1
vote
1answer
39 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,\\ ...
2
votes
1answer
52 views

How to tag an equation? [duplicate]

I am typing in texmaker but using \tag{} is not giving me the desired result. It shows an error. Here is sample \textbf{Proof-} It is clear that $Inn(G)\subseteq Aut_U(G)$. So we let $\varphi \in ...
0
votes
1answer
29 views

\setlabelphantom for whole document

I am having a document with several descriptions. Some of the labels are too long for the default length, so I use \setlabelphantom{word} for setting this to a custom length. Does anyone of you know ...
2
votes
2answers
73 views

Knitr: How to make a crossreferences to figures and tables generatrd by code chunks?

I would like to make cross-references to images and tables generated from knitr code chunk in the same way as to standard figures and tables. In a standard figure I use control sequence \label, but i ...
3
votes
1answer
44 views

Change style of individual path labels?

I am working on creating a path diagram using Tikzedt. The problem I'm running into is that the path labels on these lines that are very close to each other are overlapping with the other lines, ...
2
votes
1answer
45 views

How to set tiny font in axis labels with pgfplots

i am doing a plot with pgfplots with data from a file. It takes the values from the file correctly but when i compile the pdf it prints the label with the same dimension of the text with which i'm ...
3
votes
2answers
53 views

Manual Labelling and Cross Referencing in mdframed

Question is asked after the MWE. \documentclass[10pt,a4paper]{article} \usepackage{amsmath,amsfonts} \usepackage[framemethod=tikz]{mdframed} \usepackage[colorlinks=true, linktocpage=false]{hyperref} \...
1
vote
0answers
40 views

How to use bangla number in \label and \ref environment for equation?

I want to use the Bengali numbering system for equation referencing. Can anybody explain with example.
1
vote
1answer
65 views

Force equation numbering to the same line of case equation

It seems that the column is so narrow that it can not bear the whole equation: \begin{equation} R(p_i|G) = \begin{cases} ep_{p_i} + (1- UA(p_i|G))\cdot ({r_G - ep_{p_i}}) ...
4
votes
2answers
43 views

Vertically centering label for three subfigures

Vertically centering label for three subfigures I want to put one label on the left corresponding to 3 images; it's on the bottom left and I'd like it to be vertically centered. This is my code: \...
1
vote
1answer
64 views

Automatic position of variable name in axis with pgfplots

I am looking for a code - probably inside {axis}[options] - that automatically puts the variable name (for example, x, and y) at the end of each axis. I am aware of the method to do this manually, ...
3
votes
1answer
71 views

How to draw a grid with center label and north east label

I would like to implement this picture. The label in the center is arbitrary, but the label in the northeast corner is an ascending integer. My MWE was the best I could do. Here is my MWE. \...
3
votes
1answer
75 views

How do I properly add a label to an appendix with pdf

Quite a specific question, I was looking to add PDF files to an appendix before. Found my solution in this thread: Appendix - Adding PDF, But it also created my next problem. This macro does create ...
3
votes
2answers
38 views

Incremental text markers

I want incremental markers on text that I can reference afterwards. I'm building a index of limitations so something like this would be nice: \limitation{limitationInternalIdentifier} So in its ...
5
votes
1answer
170 views

Tikzpicture: Add slope angles to straight line

I am trying to add some angles between the x-axis and the red and blue line which indicate their slope. \documentclass[15pt,a4paper,headinclude, totoc]{scrartcl} \usepackage[usenames,dvipsnames]{...
1
vote
1answer
140 views

Tikz: flow chart how to write label over a line

I'm using tiKZ to design a flow chart. On that FC, I have, mainly, two principal box: a normal rectangle a diamond box (as a decision) On the decision box, I need to write, over the line that ...
3
votes
1answer
71 views

Picture with four intersecting lines

I have the following picture: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=1.5] \draw [<->,thick] (0,3) node (yaxis) [...