{labels} is about customizing the labels of {diagrams} and mathematical constructs like {matrices}. For questions about \label or similar commands, use {cross-referencing} instead.

learn more… | top users | synonyms (1)

12
votes
5answers
1k views

How do I draw a little red square to label my right triangle?

The sample code: \documentclass{minimal} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw ( 0 , 0 ) coordinate (A) -- ( 4 , 0 ) coordinate (C) -- ( 0 , 3 ) coordinate (B) ...
2
votes
1answer
37 views

Changing output font style of a referred label

In of the bulleted list of my MWE below, I'd like the label ("Item a") to be of bold font weight, the output of \ref{itm:one} to be in normal font weight. Unfortunately, neither the placement of ...
6
votes
2answers
153 views

PSTricks: Remove trailing zeros in axis labels

Consider the following example: \documentclass{article} \usepackage{pst-plot} \begin{document} \psset{xunit = 2} \begin{pspicture}(3,1) \psaxes[Dx = 0.5]{->}(3,1) \end{pspicture} ...
1
vote
1answer
64 views

Problem with \addtocounter that doen't affect \label

I've a little issue with \label. here's the code: \chapter{previous chapter} \phantomsection \addtocounter{chapter}{1} \addcontentsline{toc}{chapter}{\Alph{chapter}~~ the chapter} ...
4
votes
1answer
114 views

How can component and voltage labels be positioned so they are properly aligned with components?

I have coded the following circuit: \documentclass{article} \usepackage[american]{circuitikz} \begin{document} \begin{circuitikz} \draw (0,4) to [C,v^=\(v_c\),*-*] (0,1) to [short] (0,0) ...
3
votes
0answers
85 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 ...
2
votes
0answers
224 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 ...
4
votes
0answers
63 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 ...
11
votes
1answer
95 views

Multiple \the… formats for a single counter?

Say I have a definition (\arabic) that includes a small list of sub-definitions (\alph). Sometimes I want to use full cross-references (2.3a, 2.3b, ...). But sometimes, when the main definition is ...
2
votes
1answer
170 views

How to label arrows in this commuting cube?

I would like to draw a commuting cube, where all the edges are also labeled. Below is my cube but I don't know how to do this, as the stackrel doesnt seem to work. \documentclass[12pt]{article} ...
5
votes
1answer
212 views

System of equation, left aligned and two lines numbered

I really don't find how to create the system I am looking for, so I am asking for a little help! I want : At least two columns aligned to the left; The system name and a big brace on the left; Some ...
1
vote
1answer
278 views

How to fix showing table labels in TeXstudio when using ctable package?

In TeXstudio editor one can easily choose which labels to reference as soon as you type the cross-referencing-macro you intended to use, for instance, \cref{} of the cleveref package (see image ...
3
votes
1answer
95 views

Labels with \psplot

Consider the following example: \documentclass{article} \usepackage{pst-plot} \begin{document} \begin{figure} \def\dx{2.5} \def\dy{1} \makeatletter ...
6
votes
1answer
62 views

List of all labels with hyperlinks

I'm writing a document with several \label{} environments and I'm looking for an opportunity to generate a list of all of them at the beginning, something like this: Label 1 ..... 1 Label 2 ..... 2 ...
7
votes
1answer
167 views

Emphasize labels in a graph

I've got a graph with nodes and arcs between them. Then I added labels to the nodes. My problem now: The labels are partially unreadable because the arcs disturb. Do I have an opportunity to ...
0
votes
0answers
93 views

Calling filename@parse inside a command definition fails

I am trying to redefine \includegraphics to both auto-label the included figure and to restrict the maximum width. The auto-labeling is done by transforming the base filename to camelcase using the ...
2
votes
0answers
198 views

Package babel Error: You haven't loaded the language french yet [duplicate]

I just got LaTeX up and running and started following some basic instructions. The first time I followed the beginning over here: http://ftp.ctex.org/pub/tex/tools/editors/TeXworks/manual.pdf ...
10
votes
1answer
56 views

Reading (input) a file whose name is created with a label

I don't want to get into the details of why I want to do this, but I would like to: create a new counter called filenumber; create a file whose filename is \jobname\thefilenumber.txt and write to ...
5
votes
1answer
226 views

Lstlistings reference to line number

How can I place a 'label' marker inside a lstlisting environment (external file imported and formatted via the listinputlisting command) so that I can cross-reference a particular line number? In ...
3
votes
1answer
241 views

How to put a label on a wire using CircuiTikz

I would like to put a label on a short circuit element. I have tried something like this: \draw (2,2) to [short=$L = \lambda/4$, *-*] (5.5,2) (2,0) to [short, *-*] (5.5,0); but ...
8
votes
1answer
163 views

Numbering equations with letter and number?

I need all the equations in one of the sections to be numbered as letter (R) and an ascending number (1, 2, 3...). So they look like (R1), (R2), (R3) etc. I do not want the number of the ...
10
votes
2answers
5k views

Positioning of Pgfplot axis labels

I'm trying to adjust the position of my axes labels and I'm having some trouble: \documentclass{article} \usepackage{float} \usepackage{pgfplots} \usepackage{graphicx} \begin{document} ...
5
votes
2answers
185 views

Labeling node values on the axes

I want to draw some curves and some special coordinates on the curves, then label the nodes on the axes. So far I have done it manually like this (it's a diagram for the Markowitz risk premium in case ...
5
votes
1answer
199 views

Bibliography with biblatex: how to create additional labels using authoryear-style?

I've got a problem with my bibliography. I'm working with biblatex using authoryear-style. I did some modifications for my semester paper, but there's still one problem left: I'd like to display ...
5
votes
3answers
252 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 ...
6
votes
2answers
156 views

Putting labels inside section headings

I usually work with LyX, and when I want to label a section (in order to reference it later), I put the label inside the section heading. This usually works, but recently I tried to create an article ...
0
votes
0answers
73 views

How do I label and reference an Inkscape file using \input?

I have written the following code in TexShop: \begin{figure}[h] \begin{center} \def\svgwidth{\columnwidth} \input{<nameoffile>.pdf_tex} \caption{figure 1} \label{fig:no1} \end{center} ...
4
votes
1answer
117 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} ...
2
votes
1answer
84 views

Equation not displaying correctly

Just a quick question about equations. I have been trying to get my equations to display correctly but so far no luck. What I require is this What I am getting With this code \begin{equation} ...
5
votes
3answers
176 views

How can I Insert Additional label on the z-axis in ternary diagram?

I need help on how I can insert additional label X_{Bi} on the z-axis of the subfigure in my ternary diagram. In the example shown below I can only insert it at a location too far away from the middle ...
9
votes
2answers
332 views

Label variables of equation using tikz without using itemize

I'm trying to use tikz to label the variables of an equation. I know of a similar question (Itemized Equation) but the answer uses itemize to label the variables. I would like to do something similar ...
2
votes
1answer
3k views

TikZ: Label nodes on to path

I use the to syntax to set a node in the horizontal middle between to other nodes. My problem is, that a label does not fit well at this middle node. Compare the label of node 2 and node 3 in the ...
1
vote
1answer
74 views

Issue with sliding a label in xypic using LyX

I want to slide a label so I use the tex code \xymatrix{A\ar^(.25){f}[r] & B} Using directly this code as latex in LyX works, but I want to do the same thing in equations environment in LyX, ...
1
vote
1answer
107 views

Problems with labels inside a floating with a table

I have this strange problem with the labels inside the floating that contains a table. For my first table I put the label inside the floating area, then I added the cross reference somewhere in the ...
1
vote
1answer
342 views

Labelling tikz nodes AND edges

The following is a snippet of the original. It works.., \documentclass[12pt]{article} \usepackage{tikz} % drawing support \usetikzlibrary{trees,arrows,decorations.markings} ...
5
votes
1answer
756 views

Use math font for TikZ arrow labels

I am trying to make arrow labels look like they are written in math mode. This is what I have: This is what I want , I tried to use different fonts but without success. This is my code: ...
3
votes
1answer
225 views

Redefining axes label in pst-plot

I am trying to redefine the labels for x-axis in a pst-plot diagram by putting \makeatletter \def\ps@@@hlabel#1{\small(#1)} \makeatother in the preamble (see top of page 25 in the manual) but then ...
0
votes
1answer
37 views

How do I use an auxilliary file for my own commands?

I would like to extend the \label and \ref commands to provide me not only with the number of the section but also some sort of heading. What I have in mind is something like this: ...
2
votes
1answer
80 views

Label missing on axes in pspicture

Consider the following example: \documentclass{article} \usepackage{pst-plot} \begin{document} \psset{xunit=1cm,yunit=0.1cm} \savedata{\data}[{1,64},{2,32},{3,16},{4,8},{5,4},{6,2},{7,1}] ...
8
votes
2answers
107 views

Use labels from file in Tikz

I want to compare data from two files in a 4 by 4 grid. The data files are like this: data1.dat: A B C D ..... data2.dat: 1 2 3 4 ......... I am able to set up the grid with the ...
5
votes
1answer
405 views

Reduce white space above TikZ label

I'm new to TikZ, and have drawn the following picture, \documentclass[12pt,a4paper]{article} \usepackage{tikz} \usetikzlibrary{trees,arrows} \begin{document} \begin{tikzpicture}[every ...
4
votes
2answers
84 views

create label for graphics inside table cell and also add to table of contents

I would like to create a few command that allows me to reference figures inside a table and add the reference to the table of contents. \newcommand\fig[2]{ \addtocounter{figure}{1} ...
4
votes
1answer
146 views

Text over picture with white space

I'd like to label some level curves with values that are superimposed over the level curves, creating white space around the labels so that the underlying curves appear "broken". I figured a simple ...
3
votes
0answers
57 views

Tikz: Arrow description closer to arrow [duplicate]

I want $Q(g)$ closer to the diagonal arrow in this tikz-picture. How can I manage that? Thanks. \begin{tikzpicture}[description/.style={fill=white,inner sep=2pt},baseline={([yshift=1.5em]current ...
1
vote
0answers
25 views

Problem with Chapters in appendix mode not having a label [duplicate]

I have a main file where I include several chapters including a couple of appendices, like this: \usepackage{appendix} \begin{document} ... \include{chapter1} \include{chapter2} ... ...
4
votes
2answers
88 views

list of current labels in lyx

I would like to see all the currently created labels in my document in LyX. I am creating a label and this label already exists somewhere in my document. Lyx relabels my item adding a "-1" to it. When ...
5
votes
2answers
158 views

Left-justified equations with left tags (so it looks like an enumeration)

I want to make a math enivornment (preferably a customized align/flalign environment) with left-justified/left-aligned equations (as it is possible with the flalign environment) and left-aligned tags ...
2
votes
1answer
176 views

Label and non-plain text arguments

I have a custom macro: \NewDocumentCommand\includefigure{mo}{ ... \caption{#2} \label{fig:#2} } The optional argument is used for the caption and the label. The problem is that when I have ...
6
votes
1answer
76 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
2answers
344 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 ...