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,313
questions
1
vote
1answer
36 views
Showkeys and eqref prints undesired labels in equation
The following MWE produces an undesirable result, shown below:
\documentclass[11pt, a4paper, twoside]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage[...
2
votes
2answers
40 views
Add newlines to label-displays in `showkeys` package
I'm using the package showkeys to display labels in my LaTeX file. All my labels are of the form type:name:details. Since my labels tend to get very long (lemma:the_name_of_the_lemma:...) I'd like to ...
1
vote
1answer
23 views
Two equation labels appears in align
Question:
I am writing a long equation inside align which produced two labels ((1) and (2)) actually this is only one equation. How can I label this only one label at center?
MWE:
\documentclass[12pt]{...
0
votes
0answers
43 views
show all equation labels when typing \eqref
I use AUCTeX + RefTeX a lot and really like the convenience. Is there a way of automatically showing all equation labels with I type \eqref{ followed by a TAB in the Emacs window? I know that C-) e ...
0
votes
0answers
32 views
How to allocate separate parts of a LaTex document to several distinct parts in a uniform file?
Hello dear readers and researchers,
I have begun learning La-Tex and I want to divide the main file into several section in separate sub sections of a uniform La-Tex project (pardon me for that I am ...
0
votes
1answer
34 views
After “longtable”, label numbering starts with 2 instead of 1
I am using a longtable because my table exceeds one page. When I want to label the table, numbering starts with 2 (when the label is below the table). When I label the table on top of it, it starts ...
0
votes
1answer
19 views
\label inside \caption throws an error. If after the \caption, references to it point to the section instead of the figure number
I am using the tufte-book document class to compose a document in Overleaf.
I was getting an issue where when I referenced figures. Instead of \ref{} giving me the number for the figure itself, it ...
0
votes
1answer
27 views
`xymatrix` arrow labels compiles incorrectly or does not compile
Update: added detail as per @Christoph Frings comments!
I am trying to draw a commutative-style diagram using xymatrix and could not find a post detailing the same issue I have.
I have used: \...
1
vote
1answer
25 views
Display the title of a section (or subsection) in a reference [duplicate]
I understood how to use \ label {} and \ ref} to get the number of a section or subsection.
I would like to know if it was possible to also obtain the title of a section or sub-section.
For example (...
0
votes
1answer
35 views
Creating a label with value passed as a \newcommand argument?
I made a \newcommand that implement figures into the body of the text to make my file look neat and flow. This is the code implementation.
\documentclass[12pt]{article}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...
1
vote
1answer
100 views
Include “contour” package into matlplotlib and set title using it
I transfer the initial post from stackoverflow since one said it is rather a question for Tex exchange (I am going do delete the initial one). Here is this post :
In a matplotlib script, I try to ...
0
votes
1answer
33 views
How do I add label vertices in graph both inside and outside?
I want to draw graph like the above image.
I've saw how to label inside vertex, and how to label outside vertex, but how do I label both inside and outside?
0
votes
1answer
25 views
How to enter 3 different equations in multiple lines without excessive space in between the equations
I am trying to enter 3 different equations in one line without excessive space in between the equations. I tried the following:
\begin{equation}
C_1(h) = h^2 + 3h + 3
C_2(h) = h^2 + 3h + 3
C_3(h) =...
0
votes
2answers
126 views
Fill region and add a vertical or horizontal strip inside
Question:1 How can i fill region between points A(2,0) and B(2,0) with different colors?
Question:1 How can i add a small size (width approximately 0.25 cm) vertical strip with upper-lower labeling in ...
1
vote
2answers
42 views
Enumeration of equation array with only one reference label
I am trying to create an array of chemical equations with the equations enumerated from (1) - (7) aligned left but only one reference enumeration on the right. The enumeration (1) - (7) should be ...
0
votes
0answers
15 views
How to label multiple paragraph of texts, then \ref it in another document?
As the title said, I want to make some texts (at least 2 paragraphs) labeled (or any way like that), and then, I need to exactly "reproduce" (for now I use \ref) its appearance in the first ...
3
votes
1answer
39 views
tikz and pdf: label rotation leads to overlap
As can be seen in the below example, I'm trying to create a confusion matrix via tikzpicture (haven't found any nice solutions via table that allows for easy color grading). However, due to the ...
1
vote
1answer
43 views
How to \label + \ref arbitrary lines of text?
We are currently working on a document which contains lists of things that are identified by 'semi-numbered' identifiers in a way that is easy for humans to understand but difficult to 1:1 automate ...
2
votes
1answer
37 views
How to adapt the length of edges in a forest to the maximum length of edge labels on each level?
I am facing the following problem: I would like to create a forest style such that the length of the edges in the forest depend on the length of the labels on the edges.
To arrive at space-saving ...
0
votes
0answers
35 views
Change the references of the equations
I have found new ways to optimally create some references to the main equations and therefore to the subequations.
I have so far written about 200 pages of a free student book and I would like to make ...
0
votes
0answers
18 views
Paraphrasing a section reference [duplicate]
I am working on creating reference to help my document looks more fancy, however I would like paraphase the label and reference so that it wouldn't look ugly and terrible. Here below I give the ...
1
vote
2answers
42 views
Label PGFPlot table points with coordinates
I would like to label each plotted point with its x and y coordinate. I am able to label with a single one using the MWE below. I must avoid manually labeling each point since my actual table size is ...
2
votes
1answer
43 views
Different equations with the same tag cause wrong reference
I would like to achieve something quite similar to this question, except that I would also like to reference said equations. Here's a minimal example:
\documentclass[12pt]{article}
\usepackage[...
1
vote
2answers
39 views
Label all figures in tabular [duplicate]
I've found this code here and I need to know if someone knows how can I label all the figures to be able to make a reference to them in the text and to appear for example: "In figure 1A..."
...
0
votes
0answers
36 views
Undefined reference: ref points to section instead of table in Appendix
I'm new to LaTeX and I'm having some troubles getting the correct reference to tables in the Appendix. I have used the \label after \caption and it still doesn't work. But when I remove \appendix, the ...
0
votes
1answer
34 views
Create a label if reference undefined, else reference it (unique label)
I'm trying to label items on a table. In my use, multiple labels may exist, so the initial location of the creation of the label is irrelevant (not trying to hyperlink). I want to use one command that ...
1
vote
1answer
43 views
Reference custom labels of TikZ graphic in text
I have drawn the following diagram using the tikz package. I need to add labels on arrows and reference them back in the text. How can I do that? I would be so grateful if someone could give feedback ...
1
vote
1answer
33 views
Label section from \thesection
How can I put a label on \thesubsection without using \subsection?
MWE:
\documentclass{article}
\usepackage[english]{babel}
\newcommand*{\subsectioncounter}{\stepcounter{subsection}\thesubsection}
\...
0
votes
0answers
31 views
Tikz rotatebox gives blurry output
I wanted to write something slanted on the picture and used rotatebox in the node but it gives me a very weird output. Any solution? Codes and output are attached
\begin{tikzpicture}
\draw[<->,...
0
votes
1answer
26 views
Can Overleaf accommodate pre-fixes for xr-hyper (e.g, \myexternaldocument[ext1-]{path…})
Short version: when using xr or xr-hyper on Overleaf, is it possible to add prefixes to external documents to avoid multiple defined labels (as defined here)?
Longer version: I'm drafting a review ...
0
votes
0answers
77 views
tikz drawing perpendicular line
I copied and pasted some code from another thread on this forum, and it has worked, however I am unsure how to change the length of the line. On the attached image, the line is the one labelled H(X,T)....
0
votes
0answers
14 views
Skip or ignore label for a problem (probsoln package)
I'm using probsoln package to create a long exercise list (about 200 problems). I already have the exercises written in Latex in code and I wrote an external file "topics1.tex" which has the ...
0
votes
1answer
67 views
List all bookmarks added with \hypertarget for named destinations
I add bookmarks to all sections in my project in the following way:
\section{Introduction}
\hypertarget{intro}{}
Some text.
I use these bookmarks later in URL links https://example.com/my-document....
0
votes
1answer
27 views
Changing the size of an angle label
I have the following code:
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows, angles, quotes}
\begin{document}
\begin{tikzpicture}[
axis/.style={densely dashed,gray,font=\small},
...
1
vote
1answer
26 views
Customized figure references in latex?
Reading a paper where authors have labels (red circles) in a figure and they are able to render the labels in the figure reference in the text as well. Thought this was pretty neat. Can someone reveal ...
0
votes
0answers
26 views
Annotating / Labeling an Image with tikz-imagelabels and adding a custom style
I want to use the TikZ package tikz-imagelabels in conjunction with these types of labels I found used in a pie-chart demo but I have absolutely no idea where to start. Im not so good with TikZ to ...
0
votes
1answer
38 views
How to move Equation Number?
I'm trying to write a paper and I can't get some of the equation numbers to fit into a nice place. Here's a minimal working example:
\documentclass[%
reprint,
amsmath,amssymb,
aps,
]{revtex4-1}
\...
1
vote
1answer
36 views
Newline in tikzpicture
How do I get the edge from q5 to qA to break into two lines? I looked at other posts and nothing seemed to work.
Edit: Added macros and formatting
%=====================================================...
4
votes
1answer
53 views
labelling matrices in latex
I am doing this:
\[
\begin{blockarray}{cccc}
basal & prism & \pi_1 & \dots \\
\left(
\begin{array}{cccc}
Q^b\left(\begin{array}{ccc}
h_{1}^b & h_{2}^b & \dots \\
h_{2}^b & h_{1}...
0
votes
1answer
13 views
How could I “adjust” (in authomatic way) the way in which a reference to an appendix result appears? Could that be customized? (A.1 vs 1)
In the following lines of code (a MWE), I intend to have appendix results named like A.1, A.2, etc. (see line "\newtheorem{APP.}{A.}").
\documentclass[12pt,oneside,english]{report}
\...
3
votes
3answers
187 views
Receiving a wrong output from \ref when \ContinuedFloat is involved
I get my custom numbering scheme in captions in the following form:
Figure A.1.5
the "5" is the chapter counter,
the "1" is the figure counter,
and the "A" is the ...
2
votes
2answers
195 views
Graphing correctly a quadratic function
I have the following MWE
\documentclass[tikz,border=2mm]{standalone}
\begin{document}
\begin{tikzpicture}[domain=-1:6]
\draw[very thin, color=green, step=0.2cm](-2,-3) grid (7,11);
\draw[color=cyan](-...
0
votes
0answers
6 views
Package acronym: Other label for Acronym
i made a list of acronyms (Package acronym):
\begin{acronym}
\acro{SAP JCo}{SAP Java Connector}
\acro{RBG}{Regalbediengerät}
\acro{RBG-GEN}{Regalbediengerätes}
\end{acronym}
I used a ...
0
votes
1answer
45 views
Babel multiple language and chapter labels
I am writing a Ph.D. thesis that is written in english but should contain one chapter in french. I tried to add multiple language support, using:
\usepackage[french, english]{babel}
But if I do that, ...
0
votes
1answer
45 views
tikz-plot label and ref in beamer inside only overlay
MWE:
\documentclass{beamer}
\usepackage{pgfplots, pgfplotstable,stackengine}
\begin{document}
\begin{frame}{Frame Title}
\only<1>{}
\only<2>{
\begin{tikzpicture}
\begin{axis}
\...
1
vote
0answers
36 views
Problem with refcheck and eqbackref
I tried to use the \eqbackref package mentioned in this post. It works pretty well until I combine it with the \refcheck package. If I also load the \refcheck package, then the labels <eqbr0> ...
0
votes
1answer
22 views
Package xr prints ref number then label
Here's my MWE.
\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[margin=2.4cm]{geometry}
\usepackage{%
amsmath,
amsfonts,
amsthm,
mathpazo,
tgbonum,
xr,
...
2
votes
3answers
167 views
Tikz: Labeling around a circle and drawing concentring arrows
I have the following code:
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{math,arrows.meta}
\begin{document}
\tikzmath{\radiusarrow = 3;
\radiusmax = 4;}
\centering
...
0
votes
1answer
18 views
Label and reference in inline mode and enumerate environment
I would like to generate the following list:
Here the equations are inline and labelled with numbers for later \ref.
I have tried using \begin{aligned} after \item to create an inline math ...
0
votes
1answer
92 views
matlab2tikz - problem with german letters - ä, ö, ü, \cdot and r_N
I'm using matlab2tikz the first time and get some problems with the first graph. I could seperate the problem. In the moment, I insert german letters like ä, ö, ü or special code like \cdot and r_N in ...