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,309
questions
0
votes
0answers
8 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
16 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
33 views
Create and label an appendix
I am writing my thesis and want to create more than one appendix. I want to name them Appendix A, B, etc. and want to label all the content the name of the appendix like (Table A.1)
\appendix
\...
0
votes
1answer
24 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
24 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
98 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
65 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
58 views
lyx: how to set the output label of my figures and table
Hy,
I used (in 2011) Lyx to compile my PhD. I have to recompile it today, but I have an issue in style.
My table and figure label are written in 2011 like:
FIGURE 1.1: my description
TABLE 1.1: ...
0
votes
1answer
70 views
Exercise package and hyperlink exercise/solution : hide the empty solutions?
I'm using the exercise package in order to manage exercises together with answers. In the following MWE, an hyperlink pointing to the associated answer is created at the beginning of each of them. If ...
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
122 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 ...
0
votes
1answer
31 views
Grouping 2 subfigure and 1 other figure (subfigure within a subfgure)
I have 3 figures to be put in a figure which spans over a single column in a two-column document. The first two subfigures are similar and should be grouped together with labeling a(i) and a(ii) and ...
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
13 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 ...
0
votes
1answer
26 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},
...
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 ...
19
votes
2answers
6k views
Using the same figure twice with no new number
I have a figure that relates to two different issues discussed at very different point in a long document. Rather then send the reader back 50 pages to look up a figure, I would like to include 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
36 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[...
0
votes
1answer
23 views
Latex Counter custom reference formatting
Simple use case, I have a counter for requirements, R1, R2, etc like the one below:
\newcounter{requirementcounter}
\newcommand{\requirement}{\refstepcounter{requirementcounter}R.\...
1
vote
2answers
37 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 ...
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 ...
1
vote
1answer
214 views
Reference in latex document to part of 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
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}
\...
1
vote
1answer
28 views
Displaying label on bibtex bibliography
I am pretty new to latex and trying to write a paper.
I have a template with this code :
% no labels in bibliography.
\def\@biblabel#1{}
% set the first line of each reference flush left, and each ...
0
votes
0answers
30 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
44 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
0answers
76 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
1answer
91 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 ...
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 ...
2
votes
1answer
169 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}
\...
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 ...
4
votes
1answer
11k views
Axis Environment Tick Labels as Text (Including a $)
I am attempting to use the axis environment to build a simple plot line. Is it possible for tick labels to be renamed as text?
Instead of numbers I would like the month on the x-axis, and in addition,...
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
35 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
186 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
194 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](-...