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.

140 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
73 views

Is it possible to label (tag) a value of a (l3keys) key-value in order to reuse it elsewhere easily?

I have a command (\people[⟨options⟩]{⟨name⟩}) for entering people. Its optional argument lets the user specify possible people's (possibly multiple) attribute(s) with a (l3keys) key–value system: ...
3
votes
0answers
148 views

possible (major) bug with pgfplot axis labeling?

I tried compiling a bunch of files today, all of which use tikzpictures and pgfplots. Something truly odd is happening with how the y-axis label is being positioned. I took the MWE from Positioning ...
3
votes
0answers
155 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
0answers
155 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)}...
3
votes
0answers
205 views

How can I 'uniquify' RefTeX label defaults?

When you create a new section within AUCTeX (using C-c C-s) and give the section a name, RefTeX will prompt you for a title, insert the section, and then prompt you for a label. This label is auto-...
2
votes
1answer
172 views

Why does this custom “mytarget/mylink” definition pair NOT work properly?

The goal is to get a pair of commands, \mytarget(*) and \mylink/\Mylink. Specifically, I am interested why "my" solution does NOT work, and how to fix it (if possible). Syntax \mytarget{&...
2
votes
0answers
25 views

Redefining and Conditional Defining of labels

This is a fairly unimportant itch, but if it is easy/exists, please let me know. The \newlabel macro defines a label and warns if another label wants to overwrite it. In analogy with \newcommand / \...
2
votes
0answers
13 views

Referencing multiple labels at once

I would like to reference multiple labels in one reference, like it is possible when citing bibliography using the IEEE Standard. When citing, one is able to use: This is a statement \cite{...
2
votes
0answers
113 views

Reduce whitespace after \ref

I have the following latex file: \documentclass[AMA,STIX1COL]{WileyNJD-v2} \usepackage{moreverb} \usepackage{algpseudocode} \usepackage{algorithm} \usepackage{tabu} \usepackage{tabularx} \usepackage{...
2
votes
1answer
193 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} \...
2
votes
0answers
152 views

Bibliography STYLE [label] missing?

Please, I want my bibliography to look like this one: [Wonko and Tsio 99b] Wonko, A. C., Tsio, F.: "Extended Use of Hyperlinks"; J.UCS, 5, 3 (1999), 225-327. I tried "apalike" and "agsm" but the ...
2
votes
0answers
108 views

Trick/Workaround for cross reference between files without xr

I have a main manuscript and a supplementary materials tex files. These are based on templates by the AGU journals, therefore it is not recommended to add any other packages, than those provided. I ...
2
votes
0answers
178 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
0answers
532 views

Contour gnuplot: how to add the name of variable to the labels of contours?

I'm writing my second paper with LaTeX, and most of my questions could be answered by many posts from this page. Firstly great thanks to you for that! But one problem remained: I have a contour plot: ...
2
votes
0answers
770 views

Change label (x-axis, y-axis) font size of already inserted eps figure in LaTeX

Just wondering if there is a possibility of changing the font size of the x-axis and y-axis of an eps figure. I tried \fontsize{15}{12}\selectfont, but it did not work at all. Thank you very much in ...
2
votes
0answers
902 views

how to draw multiple graphs next to each other with labels

How to draw multiple graphs next to each other in a document? Also, how to name each graph with a label? One more thing is I need to show an dashed edge to intersect the graph edge, in that case how ...
2
votes
0answers
153 views

How to automate right node alignment for labels from table AND marker size AND marker color of scatter plot?

Problem: Labels from table are placed right, but overlap. Is there a way to automate alignment of the labels near nodes so that labels do not overlap? This is a small example but I have bigger table ...
1
vote
0answers
38 views

Label Bars in a Tornado Chart (LaTeX, Pgfplots)

I'm working on a tornado chart and I want to label the 6 horizontal bars. So far, this is what I've got: \pgfplotsset{TornadoPlot/.style={width=\textwidth,height=8cm, xmin=-20,xmax=20, line width=1pt, ...
1
vote
0answers
15 views

How to add appendix label to appendices for report document class

The following MWE works fine for the article class, but it doesn't work for the report class. \documentclass{report} \usepackage[title]{appendix} \begin{document} \section{title 1} \section{title 2}...
1
vote
2answers
29 views

Algorithm caption?

I am writing my final thesis and I am not too practical working with LaTeX. In my document, I have to write some algorithms; my professor gave me the following code to put in the preamble: \newcounter{...
1
vote
0answers
25 views

How to make in RevTex format a reference for a specific word?

Hi I'm using a RevTex template and I would like to create a reference for a single word for instance 'molecule'. So i would like to use the reference for this word everytime I should write the word ...
1
vote
0answers
42 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> ...
1
vote
1answer
83 views

How to Change Autorefname of Subfigure

I currently started to use the subfigure command instead of minipage to arrange several figures. I am using the subcaption package to do so. Now subfigure (other than minipage) references in the ...
1
vote
0answers
33 views

Labeling the thequestion and the parts in a storing box

I'm a typesetting tests with key answers. The questions have parts. What I want is to make \thequestion appear only once and the \thepartno follow without the question label. For example: Question 1 - ...
1
vote
0answers
56 views

link to answer in exercise in arabic

I tried to create this in Arabic but I failed how can I get model like this in Arabic when I click in correction( in arabic الحل ) I go to the answer of exercise I click to the execise (in arabic ...
1
vote
1answer
33 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 ...
1
vote
0answers
34 views

Grid of equations in aligned environment, each with own references

I would like to achieve something like the example shown in the picture below. I already have a solution; however, it seems to involve creating a lot of minipages and subequation environments, plus ...
1
vote
1answer
214 views

Caption and label on xltabular environment

I have been trying to add caption and label to a long table (not entirely written below) inside the xltabular environment. After checking Caption on tabular environment, labels with tabular and some ...
1
vote
0answers
26 views

Displaying BibTex item Bibliography without label

Similar to this previous tex.stackexchange question I would like to remove the labels from the bibliography but within the "report" document class. When injecting the following code in my preamble : ...
1
vote
0answers
37 views

Is there a way to SAVE and REUSE some contents later

%% 19 Feb 2020 \documentclass[12pt,a4paper,UTF8]{report} %% %% \usepackage{amsmath,amssymb} \usepackage{graphicx} \usepackage[flushleft]{paralist}[2013/06/09] \usepackage{hyperref} \usepackage{lipsum} ...
1
vote
0answers
43 views

idea/query for a package (unless it alread exists)

Imagine you're a silly person (like me), who has arm-twisted LaTeX into working as a DTP environment, for long (500-1200 page monstrographs) with lots of figures (which can't break across pages, ...
1
vote
0answers
60 views

Tagging LaTeX for conversion to XML

The author I work with plans to publish an audio version of his work at some point. They want to use IBM SSML to configure the voices. In order to make the LaTeX source ready for conversion to SSML, I ...
1
vote
0answers
78 views

Which characters are safe to use in labels?

To my dismay, I've learned that it is unsafe to use the colon (:) in labels if you are using babel-french together with at least one other package, namely, crossreftool, which operates upon labels. ...
1
vote
0answers
593 views

Figure and table numbers are missing a period

I am writing a science dissertation in the memoir class. The numbering system of the figures and tables appears to use the Chapter Figure number in chapter format, but does not include any separator ...
1
vote
1answer
283 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
0answers
55 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 ...
1
vote
0answers
126 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
82 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,...
1
vote
0answers
195 views

How to add origin (0,0) to a plot?

I have the following code for a plot. \documentclass[]{article} \usepackage{tikz, pgfplots} \begin{document} \begin{figure}[h] \centering \begin{tikzpicture} \begin{axis}[ xlabel=$w_{jk}^*$, ylabel={$...
1
vote
0answers
572 views

pgfplots log axis to show linear style tick labels

I have created a semilogxaxis to plot my data, however I have problems showing the ticks on the x-axis the way I want. At the moment, the ticklabels are shown in the 10^n notation, however I prefer ...
1
vote
0answers
102 views

Numbering correctly indented Verbatim code blocks

I have been looking through the tex.stackechange community answers and questions and I've not managed to find an answer to my problem. I want to be able to write blocks of code in a verbatim-like ...
1
vote
0answers
184 views

Labelling inside subnumcases enviroment

I am writing some equations using subnumcases enviroment as the following: \documentclass[a4paper]{article} \usepackage{amsmath} \usepackage{cases} \numberwithin{equation}{section} \begin{document} \...
1
vote
0answers
421 views

tufte: two tables on the same page

I have two tables which are about 40% of the page height. Both are related and should stay on the same page. Therefore I put both tables inside a minipage and made it floating. \documentclass{tufte-...
1
vote
0answers
169 views

Avoid multiply defined labels using tikzscale and TikZ externalize

I'm using the tikzscale package to scale my TikZ and PGFPlots graphics. This packages uses several iterations to get the desired dimensions. If I'm activating the externalization and use a label to be ...
1
vote
0answers
160 views

How to preserve information after exporting Tikz code from Geogebra and compiling it?

I use Geogebra to draw the figures in my book, exporting it to Tikz code to compile. However I found that the information of labeling in Geogebra was lost after exporting or compiling, and it ...
1
vote
0answers
548 views

tikz/gnuplot legend inside the caption

I want to add my legend inside the caption, similarly the one given in this question. But I want to use gnuplot environment as in the following MWE. Unfortunately, I am getting '??' because \label{...
1
vote
0answers
110 views

indexing with sed using less brittle \gls and \acs and \index commands

I'm writing a book for which I produce sections for glossaries, acronyms and index entries using the glossaries, acronym and makeidx packages on a template derived from the Springer book template. To ...
1
vote
0answers
543 views

How should I read the current TikZ “label distance”?

I decided that I don't like the behaviour of the label functionality of TikZ. I want to get labels that are positioned using the anchor opposite the specified label angle. So for example if the label ...
0
votes
0answers
30 views

Tcolorbox label and cross-reference autocomplete

I am using tcolorbox package for making environment. I use the method that is shown on page 355 in the manual (17.1 Macros of the Library): \newtcbtheorem. May I ask if there is anyway to make a ...
0
votes
0answers
25 views

subsubsection labels always start at 1

When I use \subsubsection, its label is like a subsection starting at 1. My input: \section{} \subsection{} \subsubsection{} \subsection{} \subsubsection{} What I want: 1. 1.1 1.1.1 1.2 1.2.1 What I'...