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
4
votes
3answers
409 views

Tikz: Curved Label for arc

I'm trying to reproduce the following picture with tikz: And i have my Problems with the curved Label Text 'x-f(x)' My code looks like this: \documentclass{article} \usepackage{tikz} \begin{...
3
votes
3answers
83 views

A command for arbitrary constants

When proving theorem, I sometimes define arbitrary constants that I then reference. These constants are not really important and they do not need to be memorable beyond the proof. This is why I ...
2
votes
1answer
154 views

alpha style citation in embedded system

Is it possible to have alpha style like citations, without a .bib file? Writing See \cite{AB18}. \begin{thebibliography}{9} \bibitem{AB18} Alice, Bob. \emph{Our paper}. 2018. \end{thebibliography} ...
0
votes
1answer
82 views

Texstudio suggestions from inside new figure command

because of some ugly corporate design I needed to create the following figure environment/design with the caption on the right side. Problem is, that I don't get suggestions from the label inside the ...
5
votes
1answer
297 views

Tikz, graphdrawing: How to use \foreach variables to set edge node labels?

I wanna create and label edges using a \foreach loop to avoid having to write every single node/edge when creating large graphs. It works fine when I use it to create nodes, but when I try to label ...
6
votes
2answers
148 views

Mysterious horizontal space when using \label after beginning a user-defined environment

Here is my MWE: \documentclass{article} \RequirePackage{expl3} \RequirePackage{xparse} \ExplSyntaxOn \newcounter{exercise} \NewDocumentEnvironment{exercise}{} { \refstepcounter{exercise} \par\...
2
votes
2answers
86 views

Cross reference to any counter

I guess \ref{Label} returns the last counter found where the \label{Label} appeared? Is it possible to get any value of another counter at that point? \pageref returns the page number, how to get one ...
0
votes
1answer
333 views

Positioning of Node Labels

\documentclass{minimal} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node[circle,draw=black] (t) at (0,0) {}; \foreach \i in {0,1,...,359}{ \node[label={\i:$\circ$}] at (...
2
votes
2answers
381 views

Tikz picture shifting the position of an arrow label

I've got the following code: \begin{tikzpicture}[node distance=2cm, auto] \node (0) {\Large$0$}; \node (1) [right of=0] {\Large$1$}; \node (2) [right of=1] {\Large$2$}; \node (3) [...
5
votes
1answer
694 views

subfloat: how to position label to the left?

How can I make \subfloat put the labels to the left of the images? It seems it only supports "top" and "bottom". I am searching for a solution without using \tabular. Thanks and regards, Jorge. ...
2
votes
2answers
127 views

How can I auto label nodes in a forest?

I have tried searching for a solution everywhere however I either haven't been able to see it or it is not there. I have a forest, I would like to add a label to each node such that 'Deadbeef' would ...
3
votes
0answers
116 views

One label for each open contour line

I'm trying to set only one label for each contour line, but all the solution for closed contour line failed for open contour lines, like the option label distance=10000pt. How can I do this? \...
3
votes
2answers
178 views

LaTeX Tikz Arrows overlays node's labels

Could you help me to solve this problem, please ? Where "Kalman filter" is the label of the node below I want the arrows like in red ones. Thank you in advanced. \begin{tikzpicture} \node[draw,fill=...
1
vote
1answer
38 views

amsmath messing up labels inside tikzpicture

Here is my code. \documentclass[12pt,a4paper]{article} \usepackage{tikz} \usepackage{enumitem} \usepackage{amsmath} \newcounter{theorem}[section] \renewcommand\thetheorem{\thesection.\arabic{...
6
votes
2answers
106 views

Trying to align the equations and labelling

I am trying to align the equations, but the alignment has done something wrong to the spacing. The equation in the first line has moved to the right. \documentclass[12pt,letterpaper]{article} \...
3
votes
1answer
72 views

Labelling and Referencing Multiple Custom Counters Together

This is what I have. \documentclass[12pt,a4paper]{article} \newcounter{theorem}[section] \newcommand\theorem{\stepcounter{theorem}\framebox{\textbf{Theorem \thesection.\thetheorem}}} \begin{document}...
0
votes
2answers
234 views

How to prevent reference to enumeration inside new environment?

I defined a guidancebox envirenment, which is similar to the longtable environment, only with a different counter/ caption tag and reference label. This works fine, except if I use enumerate inside ...
1
vote
2answers
93 views

How to define reference label and caption name in 'duplicated' environment?

I want to define a new environment that is very similar to the longtable environment, therefore I tried the following: \documentclass{report} \usepackage{caption} \usepackage{longtable} \usepackage{...
2
votes
2answers
133 views

Label names not with leading number

I am currently working on a a documentation for some benchmark libraries for MIP solvers. This includes a description for every problem type. e.g. for binpacking I have \section{Bin Packing Problem}\...
0
votes
2answers
262 views

Equation label of split environment inside align environment not centered

\documentclass{article} \usepackage{amsmath,amssymb,physics} \begin{document} \begin{align} \mel{Q,t}{\rho_{S}(t)}{Q',t}&= Tr_{B}\mel{Q,X,t}{\rho_{SB}(t)}{Q',X',t}\\ \begin{split} &=\int \...
1
vote
1answer
35 views

Including labels in a macro for a questionnaire

I'm writing a questionnaire in LaTeX, and want to make a macro for questions. One feature I want is to cross-reference questions using labels (e.g. in case you want to skip a question. Here's a MWE of ...
0
votes
0answers
121 views

texstudio cref completion for labels in macros

Is there a way to have completion for cref references for labels defined in a command macro? \newcommand{\midpict}[4]{ \begin{center} \begin{figure}[H] \begin{center} ...
4
votes
2answers
54 views

eqnarray: redefinition of underscore conflicts with labels containing underscores!

The underscore redefinition I use for having roman subscripts (see example) is preventing me from defining labels within eqnarray environments. How can I solve this? (This problem doesn't appear when ...
0
votes
2answers
626 views

How to cross-reference text with a custom label/reference text?

How can we give a name to a label so that when we do the cross-reference, instead of displaying the number of the section, we have the name of the label? For example, \underline{homogeneity in ...
1
vote
1answer
45 views

Specify the page where a specific endnote is

I would like to systematically specify the page where an endnote is. I could not find anything useful in the documentation. The expected result should look like that: So far, I have built a ...
2
votes
3answers
319 views

Tikzcd sloped label on a vertical arrow: how do I separate the label from the arrow?

I'm trying to use the sloped option for arrow labels in the tikzcd package. With this option, the label winds up adjacent to the arrow most of the time, except when the arrow is vertical: \...
0
votes
1answer
47 views

How to reference the section and part number of an object using the label of the object

Essentially, what I wish to do is fully reference the numbers of an object's part, chapter and section using only the label of the object itself (and not the labels of the part, and section). I have ...
2
votes
0answers
113 views

Adding a legend or caption to a chess diagram

Below is a typical code for a chess diagram that you see around here: \documentclass[border=12pt]{standalone} \usepackage{skak} \usepackage{chessboard} \def\mainlinestyle{\bfseries} \def\...
2
votes
1answer
443 views

Create labels for headings with pandoc

How can I create labels for headings with Pandoc? I thought I was able to use latex macros directly in pandoc, however, for creating labels it doesn't seem to work. This is the pandoc command: ...
1
vote
2answers
138 views

Align equation number with any line within an `equation` environment?

Is there an environment / modification that: Works within a display math environment begin{equation} Allows for alignment of lines. Allows equation number to be aligned with any specific line, e.g. ...
2
votes
1answer
116 views

Alternative equation numbers

Suppose I have equations that I consider "assumptions" and I want those particular equations to be labelled separately from the others. Specifically, I would like the first assumption to be labelled (...
1
vote
1answer
262 views

circuitikz: Bipole label position depends on drawing direction

I've stumbled over something I consider strange behavior in circuitikz. The label distance for a bipole (in this case a lamp) seems to depend on whether the component is drawn from left to right (R) ...
0
votes
0answers
18 views

How can I display the Short Title from \caption[Short Title]{Long description} below the Figure? [duplicate]

I am aware that when using \caption[Short Title]{Longer Description} Short Title is usually used for the List of Figures. Now I would like it to also be displayed below the figure, and in bold if ...
0
votes
1answer
211 views

subfigures using subfloat- how to change the size of numbering

I am using the following code to create subfigures. \documentclass{article} \usepackage{scrextend} \usepackage{floatrow} \usepackage{graphicx} \usepackage[label font=bf]{subfig} \floatsetup[...
1
vote
0answers
39 views

Referencing an item within an algorithm box

At the moment I am using a reference to an enumeration within an algorithm box. However, the reference only shows the number of the enumeration but nothing of the algorithm. How can I put the number ...
0
votes
1answer
203 views

Table with multiple figures in cells showing ?? as table number when \autoref and \ref in text

I created a table that represented a 5x5 confusion matrix, and gave it the label tab:shape_confusion. The table is different than a regular table because it uses 10 figures to represent the ...
0
votes
1answer
297 views

Figure label caption different for figure and figure index

I have a problem with a figure description. I already found how to put a legend part into a figure index, but below the figure the legend is in two row. How can I fix it in the same row but whiteout ...
0
votes
3answers
2k views

How to label a multi-line equation?

I have a a multi-line equation, e_1 = e_2 = ... = e_n. Each of the expressions e_i is quite long. So long, in fact, that using the align environment results in some of the equations intruding into the ...
1
vote
1answer
36 views

Generate a list of paragraph and page number for specific labels

I was wondering if anyone could help me with this: I've got this report for which I show the paragraph numbers. The paragraph number is then used as part of the label so I can extract it later on, ...
1
vote
1answer
119 views

Lyx: add space before figure title in list of figures

How to add space before figure titles in list of figures ? I'm using LyX Version 2.3.0 Adding the following code to the preamble yields the following error \usepackage{tocloft} \setlength{\...
1
vote
3answers
206 views

Reference a section with a macro generated name

I have a lot of subsections with the name "Example X.Y" in my thesis and want to use a macro which generates the names and labels for the subsections. The goal is to be able to reference examples ...
2
votes
1answer
94 views

How do I get curved text with tikz-cd?

I try to make a diagram for an math skript which should show some implications. I want to write the premises for some of the implications curved like the arrows next to them. So far i got the right ...
0
votes
2answers
68 views

generating frame labels automatically

may i seek your help again? i was wondering if you can help me modify a little bit your \makeatletter ... \makeatother macro in "Commands in frame labels, generating frame labels automatically" so ...
2
votes
1answer
83 views

Commands in frame labels, generating frame labels automatically

beamer experts, I would kindly like to know if there is a way to add "commands" in the label option of frames and in \includeonlyframes and get the expected results, where you are expecting that the "...
0
votes
0answers
38 views

Equation number primed [duplicate]

Many times in mathematics one has an assumption (call it Assumption A) that has an interesting variant (call it Assumption A'). I often see in textbooks Assumption A will be written with an equation ...
2
votes
2answers
2k views

Problem with label and references and subfig/subcaption

Dear stackexchange users, I want to use subfigures in my document but the solution I got so far scrambles my ability to use labels and references in my documents. \documentclass{scrartcl} \...
1
vote
1answer
57 views

Reference to wrong appendix

In my report I have quite a lot of appendices (pdf's). I want to refer to them as A.1, A.2.....and so on It all works fine for A , B and C, but when i refer to any appendix under C, the refrence in ...
5
votes
1answer
245 views

Nested arabic enumeration without last dot

I like to change the labeling of an enumeration to the following structure: 1 First Item 1.1 First Sub-Item 1.1.1 First Subsub-Item 1.1.2 Second Subsub-Item 1.2 Second Sub-Item 2 ...
6
votes
2answers
614 views

How to draw a labeled triple arrow (\Rrightarrow)

There exists the ams-symbol \Rrightarrow which gives a triple arrow like . Now I want to endow the arrow with a label, which for example in the case of double arrows works with \xRightarrow{f}. But ...
0
votes
2answers
95 views

Rotate dimline label to horizontal

I want to rotate a label for my dimline to always be horizontal without having to calculate the rotation angle since they are numerous. MWE: \documentclass{article} \usepackage[demo]{graphicx} \...