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

5
votes
2answers
298 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
438 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 ...
5
votes
1answer
62 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} ...
5
votes
2answers
148 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 ...
5
votes
1answer
772 views

Including package to create MATLAB labels using LaTeX

When using LaTeX as the interpreter to typeset labels in MATLAB it would be great to be able to include packages to customize appearance. Is this possible? As of now I know no method to create non ...
5
votes
3answers
210 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 ...
4
votes
2answers
629 views

Adding labels to a formula

I have a diagram like this, explaining a formula: \documentclass{article} \usepackage{stackrel} \begin{document} $\stackrel[e+f+g+h^i]{a^b}{c d}$ \end{document} For this example, I have removed ...
4
votes
2answers
1k 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
3answers
4k views

How can I label \rightleftarrows above and below?

How can I label $\rightleftarrows$ above the top arrow and below the bottom arrow?
4
votes
2answers
591 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
113 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} ...
4
votes
2answers
82 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 ...
4
votes
1answer
129 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
443 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
2answers
2k 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
1answer
196 views

how to label equations in this way?

Suppose Alice has an equation labelled by (3). After several pages, she wants to label a new equation by (3)', to indicate that the new equation (3)' is an analog of (3). How does she type in Latex to ...
4
votes
2answers
57 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 ...
4
votes
3answers
162 views

How to avoid the poles of the voltages to overlap the resistors?

Using this code in circuitkz I get this circuit \begin{circuitikz}[american] \ctikzset {voltage/distance from node=1}; \draw (0,0) to[battery,l=V] (0,2) to[R,l^=$R_1$,v=$V_1$] ...
4
votes
1answer
65 views

Beamerposter does not automatically change font size of equation number

I'm using the beamerposter package. While I'm able to change the font size of my equations, I cannot change the size of their corresponding labels. Consider the code below as a MWE. Is this ...
4
votes
1answer
932 views

label curve and/or contour name created with pgfplot via gnuplot

I will want to name different contour as one can see it on topographic card. How to do that? I want label on different curve with the parameter that distinguish the curves. I have created 10+10 curves ...
4
votes
2answers
2k views

How to create a figure with latex labels and handling transparency in gnuplot?

I am very fond of latex labels in my gnuplot figures, and the way I generate most of them is via the pslatex terminal. Here, I would like to take advantage of transparency in a figure (superimposed ...
4
votes
1answer
173 views

Centering bars on xticks in pgfplots

My wife is working on her master thesis and we are trying to make some bar graphs to use with it. We have managed to create a nice-looking graph, but the labels/xtick does not align in center. When ...
4
votes
1answer
285 views

Differing left and right axis labels in psplot

This question is related to psgraph with y-axis on left and right of graph and axis labels but can stand alone, as it is really about loops and variables. I'm really sad that I have to ask this ...
4
votes
1answer
420 views

Labeling a box in tikz

As shown in the working example below, I have red box around all the boxes. I want to label the box but I couldn't manage to do it. I tried to use some of the ways in given in the tikz examples but I ...
4
votes
1answer
60 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} ...
4
votes
1answer
153 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 ...
4
votes
1answer
184 views

circuitikz label malfunction

This may be a total newbie problem, but I cannot find a single reference of this behaviour anywhere I look and thus this question: This is my code: \documentclass{article} ...
4
votes
1answer
210 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 ...
4
votes
1answer
269 views

How to remove multiply-defined label in pgfplotstable using longtable

I need to add caption to a longtable possibly with a label to reference in text, however SIAM format fails when it encounters multiply-defined labels because of the repeated caption. Is there an easy ...
4
votes
1answer
151 views

Creating labes on diagram edges

I want to add labels 3, 4, 5 on tree edges like you can see on picture, but I don't know how :( My minimal example: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{tikz} ...
4
votes
1answer
1k views

How to put an itemize label on multiple lines?

I was wondering if it was possible nicely display a long label when using the itemize environment? e.g.: \begin{itemize} \item[long ugly displaying label] Stuff \subitem more stuff ... ...
4
votes
2answers
3k views

Bar plot labels and grids

\documentclass[a4paper,11pt]{report} \usepackage{tikz} \usepackage{verbatim} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ title = {Optimalization based upon co-occurences}, ...
4
votes
1answer
94 views

Labeling several out/incoming lines collectively in Feynmp?

Suppose I have two outgoing lines in Feynmp, o1 and o2. I know how to label each and one of them. But suppose I want to draw a huge curly bracket going from o1 to o2 and then label that bracket. Is it ...
4
votes
1answer
60 views

Placing labels as numbers at the top of each bar in this plot in pgfplots

I have this bar chart where numbers seem to appear to be not centered at the top of each bar. I tried writing "center" in the \node area, but it did not work. The code is written using pgfplots. The ...
4
votes
2answers
83 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
361 views

Labeling Edges in a Weighted Digraph

I would like to have the labels of the edges of a weighted digraph positioned "beside" (north, south, east, west, etc.) the arrows. I have already created the digraph with: \documentclass{article} ...
4
votes
1answer
831 views

LaTeX gives warning - empty label `' multiply defined

I have a LaTeX document that works fine, but it does give a warning message every time I compile it. Here is the text of the warning message: LaTeX Warning: Label `' multiply defined. The name ...
4
votes
1answer
202 views

Aligning marginal notes with center of line rather than baseline

I would like to have all references in my document (to equations, figures, lemmas, random locations in text, etc.) be numbered in the same series, and I would like these numbers to appear in the ...
4
votes
1answer
107 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) ...
4
votes
1answer
135 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 ...
4
votes
1answer
123 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 ...
4
votes
1answer
488 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 ...
4
votes
1answer
759 views

Label near start when using myncbar

My problem is quite simple, yet i can't find answer. Pre: \usepackage{tikz} \usetikzlibrary{matrix, shapes, arrows, positioning, fit, calc} Styles: \tikzstyle{decision} = [diamond, draw, ...
4
votes
1answer
137 views

Set labels to column title in a stacked bar graph

I was trying to build a stacked bar graph which displays the labels of the columns title not in a legend, but directly near the bar itself. So far, I came up with the following: ...
4
votes
0answers
152 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 ...
4
votes
0answers
58 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 ...
4
votes
0answers
233 views

3d axis label ovelapping [closed]

I'm using matlab2tikz to generate the tikz code for my figures. When compiling the document with the figure code as below, I get an ovelapping with the axis label y and z. Here is what I've got: ...
3
votes
3answers
130 views

Plotting functions and denoting equation on the figure

How can I plot the functions P=20-1/5*Q and P=5+1/9*Q so as to find the equilibrium point? The figure I need is like the following: Furthermore, how could I put the equation on each ...
3
votes
2answers
285 views

Equation numbers of different types within a same document

I want to display the equation as (1) , (2), (3) and so on...... for one set of equations (section) and then I want to display the other set of equation (in another section) as (a), (b), (c), ...... ...
3
votes
1answer
1k views

How to place a textnode at the center of a drawed rectangle

A rectangle label does not appear inside the rectangle but on the corner of it. \tikzstyle{every node} = [align=center] \begin{tikzpicture} \draw (0, 0) rectangle (2, 2) node [center] ...