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
5
votes
2answers
656 views

How can I find the location (coordinates) between two ticks in pgfplots?

I would like to change the behavior of pgfplots for the placement of tick scale labels and units. My desired placement would be or between the last two ticks or in place of the second last tick. For ...
5
votes
1answer
3k views

Date plot using pgfplots with odd tick label

How do I make the time label in the following image appear as "10:00" (i.e. 10 o'clock) rather than the unexpected and unwelcome "09:60"? Here's the code that I am using: \documentclass{beamer} \...
5
votes
1answer
590 views

Feynman diagrams with TikZ-Feynman: too big gap between particle label and external line

When I increase the size of my diagram with "scale" the gap between the particle label and the external line increases too. \documentclass[12pt]{book} \usepackage{luatex85} \def\pgfsysdriver{pgfsys-...
5
votes
1answer
949 views

Tikzpicture: Add slope angles to straight line

I am trying to add some angles between the x-axis and the red and blue line which indicate their slope. \documentclass[15pt,a4paper,headinclude, totoc]{scrartcl} \usepackage[usenames,dvipsnames]{...
5
votes
1answer
149 views

newcommand with optional argument displays wrong text

I tried to set up a new command with optional arguments. The problem is that the command displays 'st:code'. What's wrong? Thanks in advance! \documentclass[a4paper,twoside,10pt]{report} \usepackage{...
5
votes
1answer
318 views

Label inside mdframed messes up spacing

I have a problem with mdframed in combination with \parskip and \label. Consider the following code, which is a MWE stripped down from a large document. \documentclass{article} \usepackage[...
5
votes
2answers
2k views

equation labels inside a nested align and aligned environment

I'd like to have several equations aligned pair-wise in, essentially, two columns, but with individual labels for each equation and/or for each line (where one line displays two equations). I have ...
5
votes
1answer
1k views

How to put label on top of an inference rule (bussproofs package)?

I use bussproofs (instead of mathpartir) to layout inference rules. bussproofs can place labels to the left and to the right of a rule, but not on top of a rule (like mathpartir can do). Is there an ...
5
votes
1answer
1k views

Adding labels to a node in a matrix and change the position of single matrix cell to create a flow chart

I want to add two labels next to the diamond shaped node. One to the right saying "Ja" above the path and the other one below saying "Nein" right next to the path. Currently it seems like that two new ...
5
votes
3answers
1k views

Labeling problems with exam class usage when using multiple chapters

Using the exam document class I'm trying to create a questions/answers-sheet for a book. When working on the first chapter, everything worked nicely. When I came to the second chapter, I realized I ...
5
votes
1answer
953 views

Is it possible to refer to node label and reuse it for labeling other nodes in tikz?

I would like to "reuse" some nodes' labels, as in example below \documentclass[a4paper,12pt,oneside,titlepage]{report} \usepackage{tikz} \usetikzlibrary{positioning} \tikzset{ label node/...
5
votes
2answers
955 views

Convert final appendix to a supplementary material section

I am writing a document where each chapter has an appendix. In addition to the appendices I would like to have a final supplementary files section where I list all the files that accompany the ...
5
votes
1answer
671 views

Move position of y-axis label and legend in pgfplots

I would like to move one of the y-labels to the second group of plots on the right and legend more to the center of the plots as shown here: Here is the code: \documentclass[11pt]{book} \usepackage[%...
5
votes
1answer
700 views

Tikz sloped label on path

Any suggestion on how to get slanted text for the labels "Diapason", "Diapente" and "Diatessaron"? (PDFLATEX on Linux Lubuntu with texlive 2014) Thank you, A \documentclass{article} \usepackage{...
5
votes
1answer
728 views

customized caption and label for adjustbox

The question is a follow up of the question posted here how to make adjustbox work correctly . \documentclass{scrartcl} \usepackage{adjustbox} \usepackage{wrapfig} \usepackage{lipsum} \usepackage{...
5
votes
1answer
175 views

Wrong x-axis with pst-plot

Consider the following example: \documentclass{article} \usepackage{pst-coil,pst-plot} \def\tilskud#1#2{% \psline[linewidth=1.5pt,linecolor=red]% (!#1 1986 sub 0)% (!#1 1986 sub #2 8 sub 2 ...
5
votes
1answer
741 views

How to make a single barplot with different yticks, ytick labels and ylabel on its left and right side?

I have earlier asked two questions here related to barplots and labels/ticks for double y-axes: (1) How to make an xbar plot, with pgfplots, having different y tick labels on the left and right side y ...
5
votes
1answer
301 views

Tikz, graphdrawing: How to use \foreach variables to set edge node labels?

I wanna create and label edges using a \foreach loop to avoid having to write every single node/edge when creating large graphs. It works fine when I use it to create nodes, but when I try to label ...
5
votes
1answer
1k views

Problem referencing/labeling while using the subfiles package

I have a problem using labels together with the subfiles package. When I'm writing in one section and I try to reference to different section (or for that matter anything within that section) I get an ...
5
votes
1answer
390 views

Arrows, coordinates and labels

Please, consider the MWE below. \documentclass[border=3mm, tikz, preview]{standalone} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture}[ LM/.style = ...
5
votes
3answers
2k views

Change enumerate label alignment in Beamer

I would like to add enumerated lists to a Beamer presentation. Here is a minimal example: \documentclass{beamer} \setbeamertemplate{enumerate subitem}{\Alph{enumii}} \setbeamerfont{itemize/enumerate ...
5
votes
0answers
99 views

Add destinations for external links to PDF file? [duplicate]

According to this document, it is possible to add "destinations" to a PDF file that can be used to navigate directly to certain places in the document when opening it: Open a PDF file to a set ...
5
votes
0answers
702 views

Using autoref with my own label to my own new environment [closed]

I defined my own environment. Now I want to refer to my environment with autoref. But autoref should refer with my own defined name. But I don't know how to do this. Could someone help me? My code ...
4
votes
2answers
2k views

Minted with fancyvrb label

I am using minted for the first time and after reading the docs, I could not find a way to put a label in the code listing. Just to be clear, I am not speaking of the \label of a listing environment. ...
4
votes
4answers
4k views

Change labels on x-axis in TikZ plot

I have the following code to create an axis on which trigonometric functions must be plotted (in degrees). It is to be printed out and used as part of a mathematics test paper. However, x axis must be ...
4
votes
2answers
1k views

Nested labeled colored boxes with TikZ

I need nested boxes, as they are shown in this question, but colored ones. I tried both solutions. Using shapes.multipart I totally failed when tried to generate the nodeparts by a foreach command. ...
4
votes
1answer
15k views

How to position labels at edges of Tikz figures?

I have a problem with the 'sloped' option (see my example below). From s0 to s3 and s3 to s0, the labels are too close to the edge. The pos option allows the user to move the label along the path, but ...
4
votes
1answer
300 views

Non-ASCII character in label

Here's my MWE: \documentclass[norsk]{article} \usepackage{babel} \usepackage[utf8]{inputenc} \begin{document} \begin{figure} \caption{Skjærgårdsøl} \label{Skjærgårdsøl} \end{figure} \end{...
4
votes
2answers
152 views

Referencing to the current Section, Subsection

I am writting a long report and I would like to refer in every Section, Subsection, etc. to the Section, Subsection, etc. itself via a \ref{} (it is not enough to print the section name or number ...
4
votes
2answers
772 views

How to affect the position of equation labels when using “aligned” environments inside an “align” environment

\begin{align}\label{abc} &f(x,y,z) = \begin{aligned}[t] & aaaaaaaaaaaaaaaaaaaaaaaaaaa\\ & + aaaaaaaaaaaaaaaaaaaaaaaaaaa\\ & - aaaaaaaaaaaaaaaaaaaaaaaaaaa, ...
4
votes
3answers
390 views

Retrieve link caption of hidden label

What I wish to do is create a (hidden) label in which some text is stored, and retrieve the text by referencing to it, without getting an actual link. For example: \customlabel{refname}{some text} \...
4
votes
2answers
10k views

Problem with pgfplots/pgfkeys: “I do not know the key '/tikz/use units'”

Problem in short: I'm using pgfplots but I can't use units in the labels. I tried this minimal example (from http://pgfplots.sourceforge.net/gallery.html) and get an error message: \documentclass{...
4
votes
1answer
301 views

An equation tag which goes over two lines

I would like to make an 2-line equation tag, for a single equation. I am using the \tag command, and it works as long as I don't store a label for the equation. The moment I store a label, LaTeX barfs ...
4
votes
2answers
2k views

Start a new line in label using pgf-pie

I'm using pgf-pie. It is not a standard package. I found it on google code. As its name, it is used to create pie chart. \begin{figure}[htp] \centering \begin{tikzpicture}[scale=0.9] \...
4
votes
1answer
1k views

How to Reference a pgfplotstable

I am still generating a table from a cvs file with the pgfplotstable package. In my text I will reference to the generated table but I did not know how to do this. Normal your make a \label{tab:foo} ...
4
votes
1answer
338 views

Is there any way to define the enumerate label in general?

If I define numberenum like following, \newenvironment{numberenum} {\renewcommand{\labelenumi}{(\arabic{enumi})} \renewcommand{\labelenumii}{(\arabic{enumi}.\arabic{enumii})} \renewcommand{\...
4
votes
3answers
413 views

Tikz: Curved Label for arc

I'm trying to reproduce the following picture with tikz: And i have my Problems with the curved Label Text 'x-f(x)' My code looks like this: \documentclass{article} \usepackage{tikz} \begin{...
4
votes
2answers
292 views

superimposed nodes & connection labels in TikZ decision tree

I'm trying to build a decision tree using the TikZ package and have run into an issue. Two of my nodes from separate branches are superimposed, so I can only see one of the nodes and on the surface ...
4
votes
3answers
195 views

Join rectangles by labeled arrows

I need to connect the rectangles by labeled arrows (rights) in this case: \documentclass[tikz,border=2mm]{standalone} \usetikzlibrary{arrows, chains} \begin{document} \begin{...
4
votes
2answers
2k views

Labeling subcaption

The reference to my sub caption doesn't work \documentclass{article} \usepackage{mwe} \usepackage{subcaption} \usepackage{cleveref} \begin{document} \section{Section} \begin{center} \captionsetup{...
4
votes
2answers
3k views

How to make an xbar plot, with pgfplots, having different y tick labels on the left and right side y axis?

I am making an xbar plot with pgfplots. I want this plot to show the results from a test, where people in different age classes are given scores. For each of these age classes a single person is the ...
4
votes
2answers
4k views

How to label an optimization problem with a label such as (P)?

I am trying to write an optimization problem in my document, and for convenience, to define a label to refer to it. I don't want to refer to it as equation (3), which I know how to do, I want to ...
4
votes
2answers
82 views

Shifted edge labels in tikzpictures in nodes side by side with arrow between

I have two nodes in tikzpicture and in both nodes there is a graph in nested tikzpicture. Now, I would like an arrow to be pointing from one graph to the other - from the center of one graph to the ...
4
votes
2answers
712 views

Is it possible to include “Eq.” in equation numbering? [duplicate]

Personally, I wanted to have "Eq." in front of the equation numbering. Also, I wanted to have the section numbering in front of the equation, so that the equations are numbered as (Eq. 3.1) instead of ...
4
votes
1answer
436 views

How to name the vertices

I wrote the code in LaTeX: \begin{tikzpicture} \draw (-1.81,-1.81) rectangle (1.81,1.81); \draw[rotate around={134:(0,0)}] (-1.5,1.06) rectangle (1.5,-1.06); \end{tikzpicture} How to write the names ...
4
votes
1answer
372 views

How to get rid of the period in an item label [duplicate]

When using enumitem, I want to change the label names as follows: \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage{enumitem} \begin{document} \section{First section} \begin{...
4
votes
2answers
625 views

combining absolute and relative coordinates for axis label

Consider the following MWE \documentclass{article} \usepackage{pgfplots} \pgfplotsset{ compat=1.12, stdaxis/.style={ ylabel style={at={(ticklabel cs:1.06)},anchor=west,rotate=270}, ...
4
votes
2answers
917 views

How to label the index and glossary

Say you want to \pageref to an index and/or glossary, how can you label the index/glossary? The following approaches fail (for evident reasons): \label{glos} \printglossary \label{idx} \printindex ...
4
votes
2answers
2k views

label doesn't work inside gather*

I am successfully using gather* to centre align my groups of equations. However, if I do: \begin{gather*} \rho=a*b \\ \alpha=2*\rho. \label{eqn_one} \end{gather*} It shows two ...
4
votes
1answer
2k views

Tikz node positioning in math-environment especially \frac

(this is my first TEX-question). I'm trying to label an equation within a tikzpicture. I did it this way: \documentclass[15pt,a4paper,headinclude, totoc]{scrartcl} \usepackage{amsmath,amssymb,...