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
2
votes
1answer
64 views

Labeling a loop on a node in tikz with specified “out” and “in” angles

I'm using \draw with parameters "out" and "in" to make loops on a node. I'd like to label these loops, but I'm having a difficult time figuring out how to do this. None of the examples of labeled ...
2
votes
1answer
115 views

Hashtag label with tikzpicture

I'm trying to compile the tree below and its working. The problem is that whenever I change the label of DP or LP to \#P (i.e. \node(\#P) {\#P}; \#), I get the following error message: ! Missing \...
0
votes
0answers
33 views

Can I refer to specific align line numeration, in similar way how I can refer to \bibitem with \cite?

If I make bibliography, then I can make unique name for any position, for example by \bibitem{tutor}, then refer to it in the text with \cite{tutor}. Now, let's say that I am writing some bigger text,...
1
vote
0answers
44 views

Is there a way to insert right braces and text to the right of a matrix using LYX? [duplicate]

Is there a way to typeset this in LYX without using ERT? If not, how do I code it in Lyx?
6
votes
1answer
1k views

How to add a math expression in the label outside of a node?

Adding a math expression as a label inside a node works fine: \begin{figure} \begin{tikzpicture}[] \node[circle, draw] (c1) [label=left: text] {}; \node[block, draw, right = of c1] (e1) {$1*1=...
1
vote
1answer
33 views

How to fix the labels properly for a clean look in my tikzpicture?

How can I put the nodes in rectangular/circular shape and place the labels inside the middle of the arrows (looking like disconnected arrows at the text labels)? Any help to reduce the length of the ...
0
votes
2answers
108 views

Uppercase for reference to a itemize

I want to write in uppercase the value of a \ref. \documentclass{article} \usepackage[inline]{enumitem} \usepackage{textcase} \begin{document} \begin{enumerate}[label=\alph*] \item \label{i:...
2
votes
2answers
533 views

Labels and nesting gather and align

I have nested gather and align according to \begin{gather} \sum\limits_{i=1}^n i + \text{expression} = \dfrac{n(n-1)}{2} \label{l1}\\ \begin{align} a+\text{expression}&=...
2
votes
1answer
488 views

Labels on a grouped and stacked bar chart

I'm struggling to get the labelling correct on a complex stacked and grouped bar chart. I want to label each group of bars with an ethnic group, and within each group of bars, I want to label the ...
1
vote
1answer
50 views

Preserving hyperlinked questions with a modified exam gradetable

A few months ago egreg gave a wonderful answer to a question I had about a modified gradetable using the exam document class. More recently, after loading the hyperref package, I realized the ...
0
votes
0answers
22 views

How to change the text Bibliography to References in scrreprt [duplicate]

\documentclass{scrreprt} . . . \addcontentsline{toc}{chapter}{References} \begin{thebibliography}{ZZ} \end{thebibliography} What should I add to these lines?
2
votes
1answer
197 views

Popup list of labels in WinEdt

I am using WinEdt 7.0. In certain circumstances I would like to popup the window of labels. How can I do it without typing "\ref{}"? If I would like to assign a shortcut to popping-up the window of ...
0
votes
0answers
47 views

Auto relabel all labels in a tex file

I have a standard .tex file and I use Kile on Ubuntu 16.04. My question is the following: I would like to find all strings with \label{***} and replace them automatically with \label{***_B}. How ...
6
votes
1answer
1k views

How to label sets in Venn diagram using venndiagram package

How do I have the labels (A and B) outside the circles? I would like a solution that uses the venndiagram package. Code: \documentclass{article} \usepackage{venndiagram} \begin{document} \begin{...
1
vote
1answer
324 views

Position of label in a subfigure

I try to have three images in a subfigure. The first and second next to each other, the third image should be below the first. I read to use the package \usepackage[export]{adjustbox} which puts my ...
2
votes
2answers
746 views

TikZ: Box alignment and label position

I created following figure with a script as pasted below: \documentclass[tikz,border=2mm]{standalone} \usepackage{tikz} \usetikzlibrary{positioning, shapes.multipart, arrows, shadows, backgrounds, ...
1
vote
1answer
76 views

Struggling with Line Labels in Tikz

I am trying to put a label midway on the vertical line in the arrow looping back in the example below. My latex reads \tikzstyle{block} = [rectangle, draw, text centered, rounded corners, text ...
2
votes
1answer
480 views

removing subfigure captions without removing labels

I tried using subfigure along with a caption for these four images according to the code shown below. \begin{figure}[H] %\centering \begin{subfigure}[t]{0.49\textwidth} %\centering \...
0
votes
1answer
76 views

amsbook subfigure numberings are always upper case

Consider the following MWE: \documentclass{amsbook} \usepackage{subcaption} \usepackage{tikz-cd} \renewcommand{\thesubfigure}{\alph{subfigure}} \begin{document} \begin{figure}[h!tb] \centering ...
4
votes
1answer
895 views

Pie chart labels

I want to create a pie chart with labels (one blank an one with percentage for the teacher, the mwe is the teachers version) so that my students have to fill the percentage in by themselves. So far I ...
-3
votes
1answer
260 views

How to manually reference figure so that fonts are consistent [closed]

I have a pdf figure that includes subplots (e.g. a,b,c, etc) but these subplots are not part of latex, they are in the actual pdf. I have actual latex subplots later in my paper. When I reference ...
1
vote
1answer
188 views

Label points in tikz within a loop

I have a set of points to be shown on a 2-dimensional plot and have written a part of code for. First, How can I label the points (from 1 to 20 for example) within a loop and represent them by ...
1
vote
2answers
257 views

It is possible to put a table as part of a figure with separate labels and captions?

Is it possible to put a graph and a table together in one figure? \usepackage{subcaption} \begin{figure}[b] \centering \includegraphics[width=0.4\linewidth]{Fit3Dir_30min/...
3
votes
1answer
329 views

call / repeat / duplicate equation based on label

So I have a long equation and I give it a label, what I want to do is call that entire equation in another page without retype the same equation. e.g \begin{equation} \label{eq1} a + b = c \...
2
votes
2answers
49 views

Labeling successive equations with the same number and different superscripts

This question is related to this thread but is not a duplicate of it. I'd like to label my first equation as (1^+) and my third equation as (1^-). The first part is easy, but if I \label that ...
3
votes
0answers
118 views

Issues with node labels using quotes on referenced nodes in graphs

The following: \documentclass[12pt]{article} \usepackage{tikz} \usetikzlibrary{graphs, graphs.standard, quotes} \begin{document} \begin{tikzpicture} \graph[grid placement, n = 4, chain shift = {(2,0)}...
1
vote
1answer
240 views

\mathbb plot label in PyX

I am making plot in PyX. To get (in LaTex language) \mathrm{a} you use \rm{a} (in PyX language). I wanna get (in LaTex language) \mathbb{a}. How to do it in PyX language? Attempt of \bb{a} ...
1
vote
0answers
98 views

Metapost: define <label suffix⟩> in vardef

In label.top("foo", origin), top is label suffix. Can I pass label suffix by function call? Given suffix qqaa: vardef (suffix qqaa)foo (expr ...) label.qqaa("whatever", origin); enddef; I don't ...
1
vote
0answers
39 views

How to put the order of subfigures labeling by column instead of rowwise?

I have a code here: \documentclass[letterpaper, doublespacing, 12pt]{article} \usepackage[margin=1in]{geometry} % set page parameters appropriately \usepackage{subcaption} \captionsetup{font={bf,...
5
votes
2answers
815 views

How to affect the position of equation labels when using “aligned” environments inside an “align” environment

\begin{align}\label{abc} &f(x,y,z) = \begin{aligned}[t] & aaaaaaaaaaaaaaaaaaaaaaaaaaa\\ & + aaaaaaaaaaaaaaaaaaaaaaaaaaa\\ & - aaaaaaaaaaaaaaaaaaaaaaaaaaa, ...
5
votes
2answers
467 views

How to add different labels below nodes?

I have the following code and I want to make the count like 1,2,3 then 12 (the total number of neurons). \documentclass{standalone} \usepackage{tikz} \begin{document} \pagestyle{empty}...
0
votes
1answer
284 views

Labeled box within equation environment

I wish to create a box within an equation environment, which I can then label. The idea is to emphasize certain portions of the equation and interpret what these parts are doing for me. Ideally, I'll ...
3
votes
2answers
164 views

How do I change the numbering in inner \item?

\documentclass[a4paper,11pt]{report} \usepackage{enumitem} \renewcommand{\labelenumi}{\bf Matter \arabic{enumi}.} \renewcommand{\labelenumii}{\bf Matter \arabic{enumi}.\arabic{enumii}.} \begin{...
4
votes
2answers
739 views

Is it possible to include “Eq.” in equation numbering? [duplicate]

Personally, I wanted to have "Eq." in front of the equation numbering. Also, I wanted to have the section numbering in front of the equation, so that the equations are numbered as (Eq. 3.1) instead of ...
1
vote
1answer
344 views

Label and use custom reference for a colorbox

I am trying to reference a tcolorbox that I have created within my latex document. Ideally the in-text reference will have the form BOX 1.1, BOX 1.3, BOX, 3.1 etc. based on the section. To create my ...
3
votes
1answer
1k views

pgfgantt: How to create bars with “extra” label and specify position of extra label?

Based on a previous approach from Gonzalo Medina, I want to modify a simple gantt-chart to add the responsibilities of project workers to the belonging \ganttbar. Screenshot of the current state: ...
0
votes
1answer
255 views

Right Aligned labels lists of non-math text

I'm trying to produce a labelled list of axioms like so: \documentclass{article} \usepackage{amsmath, amsthm, amssymb} \begin{document} \begin{itemize} \item[(Reflexivity)] For all $a \in P$ we ...
4
votes
1answer
442 views

How to name the vertices

I wrote the code in LaTeX: \begin{tikzpicture} \draw (-1.81,-1.81) rectangle (1.81,1.81); \draw[rotate around={134:(0,0)}] (-1.5,1.06) rectangle (1.5,-1.06); \end{tikzpicture} How to write the names ...
1
vote
1answer
2k views

How to make the subcaption labeling appear on top left corner?

Currently, I am using this code \documentclass[letterpaper,12pt]{article} \usepackage[margin=1in]{geometry} % set page parameters appropriately \usepackage{subcaption} \captionsetup{font={bf,small},...
2
votes
0answers
83 views

How to give a specific name to equation [duplicate]

I want to call my equation $NS_\alpha$ in such a manner that rather than (1.1) the equation shows up with ($NS_\alpha$)
1
vote
2answers
186 views

How do I make the numbering label bigger size?

Currently, I am using this code. I used scriptsize command so that some fractions does not overfull the page.. \documentclass[letterpaper,12pt]{article} \begin{document} \begin{scriptsize} \begin{...
2
votes
1answer
206 views

Label and draw arrows next to the vertices of a cube in TIKZ

I have the following cube: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \pgfmathsetmacro{\cubex}{2} \pgfmathsetmacro{\cubey}{1} \pgfmathsetmacro{\cubez}{1} \draw[red,...
1
vote
1answer
129 views

How can I have figure caption at bottom and yet create a reference to the top of the figure?

How can I draw a floating figure such that the following conditions are satisfied: The figure caption appears below the figure. When I add a \ref to the figure in another page, clicking the reference ...
1
vote
1answer
246 views

Can I use author-year citation with multi-bib

I want to have a bibliography that is referenced using author-year style. There should be no labels. However, I cannot figure out, how to do this with multi-bib. I tried to use \usepackage[round]{...
2
votes
2answers
782 views

Customise label in align environment

I'd like to slightly customise the label in the align environment. The need arises when I have two equations on the same line, and I would like to label them (1a,b) or similar. The example below works ...
0
votes
1answer
60 views

Translate equation without changing label

I would like to know how I can translate the equation without changing the label's position. Using \hspace{2cm} occurs what is in the image below. The code I used is: \documentclass[10pt,leqno, ...
6
votes
1answer
230 views

Treatment applied in parallel to `LaTeX3`'s integers and `LaTeX2e`'s counter gives differents results

I'm in the process to try to give an expl3 flavor of my answer of my question: Add a marginal note when a page break occurs in the middle of a multi-line equation. During this process, I noticed a ...
2
votes
2answers
51 views

Append item label only for a specific question

Here is the MWE: \documentclass{article} \usepackage[shortlabels]{enumitem} \begin{document} \begin{enumerate}[label={Q.\arabic*.}] \item This is 1 \item This is 2 \item This is 3A \item This ...
0
votes
1answer
15 views

Use different tags for different terms of the same unlabeled equation [duplicate]

I have a long equation (but that fits in just one line), with three terms: \begin{equation*}\label{eq:threeterms} A = \underbrace{A_1}_{(1)} + \underbrace{A_2}_{(2)} + \underbrace{A_3}_{(3)}. \end{...
0
votes
0answers
202 views

How to annotate a figure with latex? [duplicate]

I would like to annotate a figure with subfigures using latex such that the columns are labelled 'models' 1 -3 and rows labelled 'parameter 1 - 5'. Here is an example of desired output: The only ...