{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)

4
votes
1answer
227 views

Positioning Labels in Asymptote

How can I control the position of the $x$ label below? Created with draw("$x$",O--X,blue,Arrow3) I know I can manually control label positions with label("$x$",<position>,blue), but is there a ...
3
votes
1answer
330 views

Circuitikz: Label space control

I have problem with vertical spacing between part reference and components (resistor R2, R3). I wish to have text more closer to resistor. And second problem are position of the text for voltage ...
7
votes
1answer
70 views

Automatically reference a set of equations in align

Is there a way to automatically refer to a set of equations in an align environment? E.G. I would like this to read "From Eqs.(1-3), we can clearly see..." \documentclass{article} ...
0
votes
0answers
20 views

Crossreferencing included PDFs in the appendix for classicthesis + lyx [duplicate]

My appendix currently consists of 4 PDF's that I have manually included into the "Appendix" Part of my tex document created in Lyx (classicthesis v4.1). I would like to cross-reference these included ...
2
votes
1answer
1k views

Tikz edge label position

Is there a way to set the location of the position of edge label when using the tikz graph package? I attempted to look for samples of this being done in the manual, but was unable to find any ...
4
votes
2answers
64 views

Combine showing multiple figure labels

I have two sub-figures in a figure (say Figure M) called a and b. How can I combine showing multiple figure labels like this? Figure Ma and b P.S. I can easily get the following figure labels by ...
7
votes
1answer
124 views

Can I give a function to a label?

I try to create a dynamic way to give labels to my slides in Beamer. \documentclass{beamer} \newcommand{\partName}{blank} \newcommand {\defPartName}[1]{\renewcommand{\partName}{#1}} ...
6
votes
2answers
305 views

How to give a label to nodes which already contain a tikzpicture with nodes.

I am a beginner at TikZ and LaTeX. This is what I currently have: I would like to label each of these rectangles (i.e. graphs) with a single letter, i.e. G. This is the code for a single graph in ...
7
votes
1answer
148 views

How to copy a lemma to appendix without changing its number?

I have a document with a lemma (using amsthm), like so: \begin{lem} \label{mylemma} % ... \end{lem} The proof of this lemma can be found in the appendix (see section \ref{sec:proof_of_mylemma}). ...
5
votes
0answers
165 views

Reuse an image resp. a box in TikZ but have side-effects only once

I have a huge document (a pool of exercise problems) with lots of \input statements (one file per subexercise). In order to not get lost in this mess and easily open files from the PDF, I include a ...
20
votes
3answers
275 views

Chart showing the relative number of pages in the document

I'm playing with the idea of adding a chart in the begining of my thesis, showing the relative dimension of each chapter (or section, maybe). This is something that I would want to generate ...
3
votes
1answer
144 views

Problem with numbering of questions in exsheets

When using : \documentclass[11pt,letterpaper,oneside]{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage{enumitem} \usepackage{verbatim} ...
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
38 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
156 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
66 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
122 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
86 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
243 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
66 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
96 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
194 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
246 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
304 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
104 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
65 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
168 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
100 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 ...
3
votes
0answers
199 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
307 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
275 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
178 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 ...
11
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
207 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
209 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
295 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 ...
7
votes
2answers
163 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
80 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
120 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
85 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
182 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
365 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
77 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
110 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
371 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
821 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
241 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
38 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: ...