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.

135 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
72 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
146 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
154 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
204 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
0answers
24 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
98 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
188 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
105 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
173 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
526 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
759 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
898 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
17 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
22 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
40 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
76 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
32 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
53 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
31 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
31 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
200 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
568 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
267 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
565 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
97 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
180 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
417 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
544 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
31 views

Pandoc loses Section numbers as well as Figure /table references. Doesn't show superscripts

I have a supervisor who is uncomfortable with LaTeX and wants a Word document. It is a sizeable document with many cross referencing between sections and chapters. I used pandoc to make the conversion....
0
votes
0answers
12 views

Referring to environment starting with list

When referring to an environment that starts with a list, the numbering is correct, but when clicking the link created by hyperref, one gets sent to the wrong page. This phenomenon does not happen ...
0
votes
0answers
33 views

How to label equation without item text?

The enumerate environment I use is as follows: \begin{enumerate}[label={\bfseries{Problem }\arabic*}] \item\mbox{} \begin{enumerate}[label=(\alph*)] \item The text of the problem \begin{eqnarray} f(0)&...