Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
38 views

Counter expands too late

I want to make clear that I tried my hardest to make the smallest MWE I could that still captures precicely the problem I am facing. To summarize I got help from another answer in defining the ...
2
votes
1answer
33 views

Redefining \label to not default to <1>

According to this question, labels are defined by default on a beamer slide to always be defined at the first slide <1>. Indeed \show\label shows > \label=macro: ->\@ifnextchar <{\...
2
votes
1answer
71 views

Labeled energy level transition pgfplots/Tikz

I'd like to build an energy transition diagram (same as Energy level transition pgfplots/Tikz [code below]). However, I would like to add label on it. \documentclass{standalone} \usepackage{pgfplots,...
0
votes
1answer
35 views

amsmath: How to make inline tags, with and without labels?

I have a follow-up question to @egregs answer: At the command \usepackage{xparse} % \tagx[shown text, optional]{label-name} \makeatletter \NewDocumentCommand{\tagx}{om}{% \IfNoValueTF{#1} {% ...
1
vote
1answer
35 views

Tell pgfplots to put tick labels between tick marks

Is it possible to tell pgfplots to put tick labels between the tick marks instead of at the tick marks? MWE: \documentclass[margin=5pt]{standalone} \usepackage{tikz} \usepackage{pgfplots} \begin{...
2
votes
2answers
110 views

Positioning arrow labels at absolute distance from end or start

I am making arrows using \begin{tikzpicture} \tikzset{ operatorNode/.style={ every node/.style={minimum size=1cm,draw,rectangle} }, variableNode/.style={ every node/.style={...
2
votes
0answers
33 views

Counter for table labelling is wrong [duplicate]

I have a table and am trying to include a caption and label. The caption is printed but with the wrong number. It is my first table in the document, but latex uses the number of my Chapter (3.1) for ...
0
votes
0answers
23 views

label and caption the graphs

Here in the picture has $3$ figures I want to caption them differently and label them differently. Can you please suggest what should I do. \begin{figure} \begin{tikzpicture}[scale=3, every loop/....
0
votes
1answer
37 views

How to add two labels inside one set of a two set venn diagram using venndiagram.sty?

I've managed to include both of the Venn Diagrams that I needed, but now I can't add a "X" letter inside the "B" set, while maintaining its label of "B" This is what I need to do: And this is what I'...
1
vote
1answer
30 views

How would you number/identify/tag different cells of a table to reference them quickly and easily when writing?

This may be more of a design question rather than a technical one, but I need to easily reference different cells of the following table: \begin{table}[!htb] \centering \caption{Karnaugh Map} \begin{...
1
vote
1answer
29 views

Wrong hyperref with repeated counter

I'm having an interesting problem with hyperref. Apparently, when a counter is reset by \setcounter{mycounter}{0} then hyperref always links to the first possible instance of the counter and not the ...
2
votes
2answers
108 views

Subnumcases as a part of align

I am using the following code: \documentclass{article} \usepackage{cases} \usepackage{amsmath,amsfonts} \begin{document} \begin{align*} \underset{\tau \in \mathbb{R}}{\min} \ \tau \end{align*} \...
0
votes
1answer
18 views

Is there a way to find out which markers you have used for labeling figures, tables, equations etc [duplicate]

I've ran into an interesting problem. I normally mark my equations with p1:e1 ,..., pn:en, e.g. \label{p1:e1}. Is there a way for me to view all of the labels I have used previously without the need ...
0
votes
0answers
32 views

Tikz x labels as images creates asymmetrical spacing

I sort of stumbled upon the idea of using pictures as x-axis labels for my graph in a thesis. However, I have run into the problem of the last label being further away (not symmetric) to the other ...
2
votes
1answer
38 views

Fully show a x-label on tikz figure? [duplicate]

I have produced the following code, for a graph I am making: \usepackage{tikz} \begin{document} \begin{figure}[h] \centering \caption{AMD top 10 SBP peers (2016)} \label{FigAMDtop10SBPpeers} \begin{...
0
votes
1answer
34 views

Label alignment with expression

I am trying to add a label to an mathematical expression (under Lyx) but the alignment of it with the expression isn't right (slightly under the line of the expression) as shown in the attached ...
0
votes
0answers
20 views

Reference all pages where specific label occurs [duplicate]

It seems like a simple question, but I cannot find the solution. In the body of the book the same name, say John Smith is mentioned a number of times. I would like to label this name with \label{Smith}...
0
votes
1answer
24 views

No citation in List of Figures with label

Here is my MWE: \newcommand{\munepsfig}[4][scale=1.0]{% \begin{figure}[h] \centering \includegraphics[#1]{Pictures/#2.jpg} \caption[#4]{#3} \label{#1} \end{...
5
votes
2answers
134 views

yticklabels on the right side of yaxis

Good morning! How can I put the yticklabels on the right side of yaxis? (Not in the right side of the picture, like here) This is the code that I use: \documentclass{standalone} \usepackage{...
1
vote
1answer
28 views

pgfplots: How to set xticklabel date year as YY instead of YYYY?

By default, xticklabel = \month/\year, will be displayed as 04/2019. However, I want to display it as 04/19 instead of 04/2019. Minimum Working Example (MWE): \documentclass{standalone} \usepackage{...
3
votes
1answer
41 views

pgfplots: How to set xticklabel as two line?

I want to design xticklabels as two line texts: First line: Date, e.g. \month/\day Second line: Time, e.g. \hour:\minute Minimum Working Example (MWE): \documentclass{standalone} \usepackage{...
1
vote
1answer
24 views

How to change the label format on x-axis of Tikz pgfplot?

I am trying to make a nice looking histogram of my data, and have managed to produce the following so far: \begin{tikzpicture} \centering \begin{axis}[ ymin=0, ymax=8000, minor y tick num = 2,...
0
votes
0answers
26 views

Does pinlabel work with xelatex/lualatex?

Does {pinlabel} work with xelatex or lualatex? The following MWE works fine in pdflatex, but in xelatex/lualatex the figure disappears -- with no errors. \documentclass{report} \usepackage{graphicx}...
1
vote
1answer
34 views

How to automatically label using theorem counter?

Someone please help me! I have some custom environments and I want to label them according to theorem counter. Means, that I get a numbering like Def. 1.1, Thm. 1.2 and so on. Right now, I have to ...
0
votes
0answers
29 views

Number line with labels above and below the horizontal axis

I am trying to generate the number line shown below. My MWE is below, the problem I have is that the size of the diagram is too small, and the tick labels are too congested. I would like it about ...
1
vote
1answer
33 views

How to link to a label at hyperref?

Here is MWE: \documentclass{scrartcl} \usepackage[unicode=true,pdfusetitle, bookmarks=true,bookmarksnumbered=false,bookmarksopen=false, breaklinks=false,pdfborder={0 0 0},pdfborderstyle={},...
1
vote
1answer
26 views

end description item with a dot

Consider this example: \documentclass{report} \begin{document} \begin{description} \item[it 1] description 1 \item[ittt 2] description 2 \end{description} \end{document} which renders: Is there a ...
0
votes
1answer
28 views

format labels of enumerate

Consider this script: \documentclass{report} \usepackage{enumerate} \begin{document} \begin{enumerate}[label=\arabic*)] \item item 1 \end{enumerate} \end{document} I would like the labels to be "1)...
0
votes
1answer
59 views

Disable hyperlinks in the titles of the sections but keep it in the section numbering and pages

basically I would like to ask how to make the hyperlinks in toc look like the picture bellow. Thanks in advance! In this thread the exact opposite was asked and solved. Maybe it helps with the ...
3
votes
2answers
59 views

Label or tag for questions

I am making mini question banks on different chapters of physics. For this, I am using the 'exam' class. what I need is the following: I want to put some information for my own use against each of ...
0
votes
0answers
39 views

Remove numbering in header for certain sections - Fancyhdr

I would like to turn off the chapter number and section number for appearing in my headers from a certain point in my document. I don't want my appendix to have a chapter number and also don't want ...
1
vote
1answer
33 views

Labelling, numbering and referring to a question

I wish to typeset the following questions in latex Q 1 Find the shortest path.... Q 2 Explain... I want to type these questions under \begin{question}......\end{question} in ...
4
votes
2answers
85 views

Multiple labels for a single equation

I have an equation that looks like y=4x \text{ for } x\in \{1,2\} and would like to label it equation (1-2) so that the next equation in the paper is automatically labeled equation (3). How can I ...
2
votes
1answer
26 views

\autoref and subequations

I have an issue with \autoref and the subequations environment. I have added the () around the equation reference of \autoref (as explained here) and it works fine with normal equations. On the other ...
2
votes
1answer
38 views

Hiding an environment but keeping equation labels and their numbers inside

I want to hide some of the proofs of some lecture notes that are given to students. I defined a new proof environment hiddenproof because I want to only hide some of the proofs. I can then hide this ...
0
votes
0answers
35 views

Equation-like references to text?

I love labeling equations and using \eqref{label}. Sometimes I miss ability to do exactly the same (create (N) side-label and reference it afterwards) with text. I mean achieving effect like … ...
2
votes
1answer
21 views

Labelling multiple lines of equations with a single label

I want to latex that equation 14.5. With labelling. But couldn't do it for several hours. So Any help will be appreciated. Thanks
1
vote
1answer
33 views

How to use something like \label outside the table environment?

I would like to ask whether there is any way to use a \label-like command outside a longtable in order to reference this table in latex? It would be also helpful if the label of the table could be ...
2
votes
1answer
46 views

Page numbering issues with sections/subsections in Beamer

I have a beamer doc in which there are a few section and subsection title slides. Those slides do not have a page number footer, and the footer page numbering do not take them into account. In the ...
0
votes
2answers
48 views

Using numcases with cases

I have an equation like so: \[ \begin{cases} Eqn1 &= 0,\\ Eqn2 &= 0, \end{cases} \iff \begin{cases} Eqn3 &= 0,\\ Eqn4 &= 0,\\ ...
4
votes
1answer
41 views

How to label each equation with some text in a series of equations?

I was wondering what's the best way to create series of equalities, each of which is labeled on the right with some text, as in this example: I would prefer a version that works both with numbers ...
2
votes
1answer
76 views

Removing \label from a string

Is there a way to create a command that removes, if present, a \label from some text. It should work like this: \documentclass{article} \newcommand{\removelabel}[1]{} % some code \begin{document} \...
3
votes
2answers
107 views

Consecutive numbering and labels in tcolorbox

Those days I write a book, and I use framed boxes tcolorbox. Have a look: \documentclass[12pt,a4paper]{book} \usepackage[utf8]{inputenc} \usepackage{amsmath,amsthm,amsfonts,amssymb,mathtools} \...
0
votes
0answers
26 views

Reference in latex document to Matplotlib(pgf) generated figure

I have a python script which draws a plot similar to this: fig = plt.figure() ax = plt.axes() x = np.linspace(-2,2,10) y = x**2 ax.plot(x, y, label='$x^2$', color="#07529a", linewidth=2.0) # <--...
1
vote
2answers
49 views

How to align several lists using the enumerate environment?

I'd like to align the left margin of these lists. This is what I get: This is what I want: MWE: \documentclass{article} \usepackage{enumitem} \begin{document} \quad \newline This is a list ...
2
votes
1answer
64 views

Clean solution to move yaxis in polar plot

I want to be able to plot the upper half of the attached polar plot (MWE), by setting xmin=0 and xmax=180. This, however, is non-trivial when I at the same time want to have the yaxis with labels and ...
0
votes
1answer
43 views

Is it bad to have \ref before you have \label and if so what to do about it?

Overleaf issues a lot of warnings about having \ref before I have \label and idk if I should do anything about it.
1
vote
1answer
36 views

Different Positions for Labels and Captions of Subfigures

I have five figures to put in the following layout: So far I have managed to obtain the above layout (using the following script), except for the labels of the sub-figures (a,b,c,d,e) that I want to ...
2
votes
1answer
20 views

Positioning edge label

I'm trying to position two edge labels over and below their respective edges. I'd like them to be center aligned in relation to the edge. This is my current code: \documentclass[tikz,border=9]{...
6
votes
1answer
125 views

width of (\alph*) labels

I made a list using enumitem and \begin{enumerate}[label=(\alph*)] ... \end{enumerate} The resulting labels are, to me, annoyingly uneven. Notice that (b) is much wider than (c) in the image below. ...