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.

Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

Plot diagram has a cut in its labels [on hold]

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
3
votes
1answer
47 views

Undefined control sequence while adding a new parameter to a existing \ExplSyntaxOn code

I am fixing my command \fullref, which internally uses \nameref and does not support multiple labels to be used simultaneously. However, on the question How to nameref multiple labels simultaneously?, ...
2
votes
1answer
28 views

Tagging and referencing

I am working in my final degree project and I have to reference some parts of the document (just a few paragraphs) where I don't understand something for my tutor to help me with. I want to create a ...
2
votes
1answer
30 views

Gnuplot to SVG to LaTeX with formulas

I create plots in gnuplot that I export as svg and include in a LaTeX document. I would like to type simple LaTeX formula directly in gnuplot that appear properly in the LaTeX document. I noticed ...
0
votes
0answers
33 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
22 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\\ ...
2
votes
1answer
31 views

How to refer to line numbers of source code in listings without adding labels by hand?

I use listings to produce my Matlab code. There I can use the \label and \ref commands for readers to direct them to my code and line number. \begin{lstlisting}[caption={Code for deflection at the ...
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 ...
4
votes
1answer
68 views

Add captions and labels to custom tcolorbox listing?

I am using following solution to display code which should look like the code from Jupyter Notebook. I got it from here: IPython Notebook cells with listings The result looks like this: (Source from ...
0
votes
2answers
216 views

How to prevent reference to enumeration inside new environment?

I defined a guidancebox envirenment, which is similar to the longtable environment, only with a different counter/ caption tag and reference label. This works fine, except if I use enumerate inside ...
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
2answers
33 views

Compilation error: Argument of \sf@@@subfloat has an extra }. Besite it works well

I would like to fix errors of compilation, but I do konw how. I would like to could still using labels. I added code like this: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{...
4
votes
1answer
73 views

Circuitikz misplaces arrow of current label when using option 'auto'

The problem seems to result from the 'auto' option of tikzpicture. I have this problem as part of a bigger tikzpicture which mixes elements like blocks with circuitikz elements. Therefore the 'auto' ...
2
votes
1answer
39 views

Why sloped edge labels position is independent from edge direction?

For example, that for positioning of edge labels is controlled by auto=right option. Than the position of edge labels should be on right side of edges regarding on their direction. However, in the ...
1
vote
1answer
53 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) # <--...
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} ...
3
votes
2answers
40 views

Reference a list with letters

I defined parlist using lower case letters for the items (I know that there are other ways to use letters for the items but I wanted to customize the list style anyway). Unfortunately, if I refer to ...
0
votes
1answer
26 views

Labeling a line in a flalign* enviroment

I would like to label the last line of this computation (and several longer ones), so I may use them as equations, like so: \begin{flalign*} \Gamma^{l}_{js}P^{j}Q^{s} &= \frac{1}{2}(\Gamma^{l}_{...
1
vote
1answer
28 views

Figure labels and references with \adjustimage

I am wondering why this command works: \noindent\adjustimage{width=1.2\textwidth,center,caption={mycaption},label={mylabel},figure}{mylabel} and I got references working correctly, and instead with ...
116
votes
5answers
164k views

TikZ set node label position more precisely

This seems like it should be really easy but I can't seem to find it anywhere... I'd like to be able to fine-tune the positioning of a node label. I'm aware of the \node[label=above/below/etc:{label}...
0
votes
0answers
28 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{...
2
votes
2answers
59 views

Label equations with braces and line breaks

I have never used this before, so please bear with me. I am trying to label parts of the flow conservation equation for momentum with braces, which I have done before. However, I can't figure out how ...
2
votes
1answer
39 views

Wrong interpretation of - - in the enumerate enviroment

Why the following code right before --\hgnum{\theenumi}] doesn't yield dash but rather two -- For easy compilation mypackage.sty is included below the code. \documentclass{article} \...
1
vote
0answers
27 views

Remove exponential factor when using custom x-axis labels [duplicate]

I set the xtick-labels to π/2, π and so on. Now because my x-values are small an exponential factor is still drawn under the x-axis. One workaround is to multiply all my values by hand with 1000. I ...
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 ...
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. ...
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
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} $$ ...
1
vote
1answer
38 views

How do I rotate labels in a tree diagram drawn with forest?

I am in the process of drawing a huge tree diagram that I want to fit on a single page (at the moment it does not fit on an A1 page). A simple way to do this would be to rotate the labels. I know this ...
3
votes
1answer
75 views

How can I define a command like `\copypaste{ref-label}`?

How can I have a command like \copypaste{ref-label} such that it copy the corresponding environment to label \label{ref-label} and paste it where the command \copypaste{ref-label} is? or at least (if ...
0
votes
1answer
36 views

How can I write an equation in the label section?

Code: \begin{figure}[ht] \centering \includegraphics[width=0.8\textwidth]{Images/Co2EOR.JPG} \caption{.....} } \label{Cross-section $$\textrm{CO}_{2}$$ EOR} \end{figure} Error Message: "Missing ...
1
vote
1answer
40 views

Pgfplots axis labels misplaced (half page away from the grid)

\documentclass[letter,12pt]{article} \usepackage{pgfplots} \pgfplotsset{tyyli/.append style={axis x line=middle, axis y line= middle, xlabel={$x$}, ylabel={$y$}, axis equal }} \pgfplotsset{every x ...
0
votes
1answer
15 views

3D Box with labels using LateX

I am new to TikZ in LateX. I want to produce the figyre below. This is what I have tried: \documentclass[]{article} \usepackage{tikz} \usetikzlibrary{3d} \begin{document} \begin{tikzpicture} \...
2
votes
2answers
43 views

How to label geometric figures

I want to encode in LateX the figure below. So far this is what I've tried. \documentclass{article} \usepackage[english]{babel} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[thin](...
1
vote
1answer
14 views

How to reference a tcbh theorem

I created a customised theorem environment via "\newtcbtheorem", however the referencing does not work properly. For example: \documentclass[a4paper, 11pt]{article} \usepackage[a4paper,left=3cm,right=...
4
votes
1answer
34 views

Tikz set label position using pgfkey

I'm trying to define a tikz style for nodes that (among other things) includes a label. Since the label position relative to the main node needs to be manually controllable I want to set the position ...
2
votes
1answer
24 views

How to use \psxlabel and \psylabel to change label size in pstricks plots?

I am trying to get larger numbers on my axes in a pstricks plot. The user's guide only says that The labels are set in the current font (ome of the examples above were preceded by \small so that the ...
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,...
2
votes
1answer
20 views

Label with counter

I have a counter called Sols. I want to create a label as follows: \label{Sol:\arabic{Sols}} From some reason I get errors. What is the solution to that? Thank you!
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 ...
6
votes
4answers
137 views

How do I reference a custom counter that shows the section number?

I am trying to use the proof environment that comes with the amsthm package. And I would like the proof environment to be numbered, such as the theorem environment for the sake of adding a label, so I ...
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 ...
1
vote
3answers
52 views

Use split environment multiple times in align

I got a big fan of the split environment to share forumula numberings over multiple lines. However I can't figure out how to use it multiple times inside an align environment. I have an equation that ...
2
votes
1answer
48 views

Have reference in section with custom counter

I have some "items" that I want to count and reference throughout the document. These items are usually equations. I also have different types of "items" that I want to differentiate via a prefix on ...
1
vote
1answer
177 views

Adding new label/reference command pairs to RefTeX

I would like to add the label commands \pflabel and \pflonglabel, as well as their corresponding reference command \pfref to RefTeX. I would like them to work like \label/\ref do by default, but be ...
2
votes
1answer
30 views

Help with single left label for multiple items with a single left brace

I have a list in the itemize environment and I would like to have it all grouped with a left curly brace that points to a symbol like (*) that works as a label that I can reference later. Currently, ...
2
votes
1answer
31 views

Change scheme label in chemmacros

I need to change the labelling for my floats (Page numbers/sections/figures/tables/schemes) into Figure S1, Table S1, Scheme S1, ... (for Supporting Infortmation of a journal). For Figures and Tables,...
1
vote
1answer
320 views

How increase the vertical space between two labels from the table of contents?

I need to increase the vertical space between two labels, specifically the vertical space in between any label (section or subsection) and the next Part. The code that I using for the table of ...