We’re rewarding the question askers & reputations are being recalculated! Read more.

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.

67 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
189 views

Stacked bar chart percentage label not showing

I have a stacked bar chart and surprisingly not all the percentage of the bars are shown. I only allowed values more than 3% to be shown, however some are clearly more than 3% and at the same time not ...
4
votes
0answers
67 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
132 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
116 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
116 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
184 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
107 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
96 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

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
393 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
616 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
790 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
52 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
67 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
1answer
55 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
62 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 ...
1
vote
0answers
38 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
86 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
39 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
181 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
410 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
65 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
116 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
403 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
139 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
155 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
718 views

How to make colored labels in feynMF/feynMP

There are several ways of adding a label to the vertex, e.g. as in code below. It is documented how to make the colored polygons or lines, as done for the V2, but I couldn't find anything about making ...
1
vote
0answers
466 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
103 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
520 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
43 views

Plot diagram has a cut in its labels

I have tried to use scalebox but it still happens so no matter how i scale it the labels of my plots have these cuts here is my code for that: \begin{figure}[!h] \begin{tikzpicture} \...
0
votes
0answers
35 views

Cross referencing tables from appendix file in chapter files on memoir class

I am writing a document and I have split chapters into independent tex files in memoir class. I want to reference tables in the appendix in chapter files but I get this error message: You have ...
0
votes
1answer
23 views

How to add a label in the middle of a section and that refers to this place and not at the beginning of the section

Of course without creating a new subsection. \documentclass{article} \usepackage{blindtext} \usepackage{hyperref} \begin{document} \section{One} \label{sec:one1} \blindtext\\ ...
0
votes
0answers
31 views

LaTeX Find and Replace with variables between { }

Using gb4e I have, say, two labels in: \begin{exe} \ex\label{mi1} \begin{xlist} and \begin{exe} \ex\label{mi2} \begin{xlist} Question: How do I get via FIND and REPLACE: \begin{exe}\...
0
votes
0answers
20 views

How can I get a list of marks/labels within a section listed under the section heading

My goal is to write something like this within a LaTex document: \section{Introduction} \makemarksummary{section{Introduction}} Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod ...
0
votes
0answers
18 views

labeling fancy theorem and definition

Is it possible to label these theorems? I tried \begin{mytheo}{}{}\label{theo1}, but does not work properly (in the reference I get the number 14 for a theorem that is 2)... \documentclass{report} ...
0
votes
0answers
29 views

Label equations with numbers with optidef

This might be a dumb question but I am writing my model with optidef. Using such a environment \documentclass[a4paper]{article} \usepackage{remreset} \usepackage [short]{optidef} \usepackage{...
0
votes
0answers
33 views

Locally changing what \ref displays

I want to write as will be shown in chapter 3 section 4.3, where the hyperlink on ``4.3'' is generated by \ref{sec: titleOfSec4.3}. But this \ref of course gives me as will be shown in ...
0
votes
0answers
31 views

Macro similar to section with label/reference and custom format

I am trying to write a macro (\exhibitTitle) that would behave similar to section/chapter, but with its own counter that increases by 1. Its important that it supports label (doesn't have to be ...
0
votes
0answers
24 views

Cross referencing to any reference counter without adding labels

This answer provided a great solution for creating a new reference counter. I have a further idea to refer to a particular point without putting label or ref manually. This is done in package linguex ...
0
votes
0answers
47 views

LaTeX: different labels for figure caption and figure reference

I have to follow a special template for captioning figures. For a figure caption's label I should have the following format (2.5cm indention from the most left where the text begins): For this format,...
0
votes
0answers
21 views

Getting a correct reference after being labeled with a command inside \label

If I label something with a command like this: \label{lst:\mycommand} Because \mycommand changes for everything I'm labelling in a particular repetitive section. When I'm using \ref{lst:abcd} for ...
0
votes
0answers
22 views

Creating a bracket [] macro for \ref when using hyperref

I've been trying to add brackets around cross-references in a more automatic manner in my recent report, but haven't been able to do so just yet. A simple \newcommand-macro does not seem to work. I've ...
0
votes
1answer
27 views

labelling arrays

Sorry if this is stupid but writing $$ \begin{array}{c} \label{cycle LP} \text{min} \ \ \ w^t x \\ \text{s.t.} \sum_{C \in \mathcal{C}} x_v \geq 1 \\ x \geq 0 \end{array} $$ ...
0
votes
0answers
36 views

How to change axis tick label font to Arial when using pgfplots to draw a figure?

I can change the main font in the preamble using \usepackage{fontspec} \setmainfont{Arial} but it only works for the legend but not axis tick label, I've installed Arial font. I don't want to use ...
0
votes
0answers
60 views

Pgfplots labels position is wrong

I can't understand why does label position fail? I use Miktex + Pgfplots. Code: \documentclass[a4paper, 14pt, twoside, unicode, titlepage, final]{extreport} \usepackage[T2A]{fontenc} \usepackage[...
0
votes
0answers
85 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 ...
0
votes
0answers
28 views

Subfigure without caption but with labels for cross reference

I need to have subfigures with proper labels to cross refer, but doesn't need any caption for them. How can this be done? \begin{figure}[h] \centering \begin{subfigure}[t]{0.49\textwidth} ...
0
votes
0answers
14 views

Include a listing but set the caption in the enclosing file

I have a document with many large listings. To keep things organised I'd prefer to keep these listings in separate files and using \input in the appropriate location in the text. However, I'd also ...