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

3
votes
1answer
98 views

Generalizing macros with LaTeX3

I'm trying to increase my LaTeX3-fu, but I'm getting an error about encountering printed output before the document begins. I'm trying to generalize How to get the section title by section number?. ...
6
votes
2answers
81 views

Start the content of an item on a new line after the item label in enumerate environment

How to have the full content of an enumerate item to start on a new line below the item label and number, and aligned to the left margin of the document ? This question is closely related to this ...
4
votes
1answer
127 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 ...
3
votes
1answer
339 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
1answer
404 views

How to draw rectangle edge label in tikz?

I want to draw something like this. How to get that rectangle edge label? This is the MWE. \documentclass{article} \usepackage{tikz} \usepackage[margin=15mm]{geometry} \usepackage{calc} ...
2
votes
1answer
503 views

Putting an underscore in a \label

I am trying to use pdflatex to type set some files that have underscores in the \label. Such as \label{abc_xyz} and have been unsuccessful. I keep getting errors such as: ! Missing \endcsname ...
1
vote
1answer
81 views

Change node distance using a macro and include a label to the background next to the nodes

the picture doesn't fit onto an A4 page. So what I would like to change/add is: the node distance the font size a vertical text which groups nodes together a number infront of each node as the ...
1
vote
0answers
133 views

How do I Auto-Label Hyperref Fillable Forms \TextField?

Is there any way to put an automatic label into the hyperref package's \TextField parameters field like this: \newcounter{lexemeCounter} ...
4
votes
1answer
132 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 ...
0
votes
0answers
54 views

Label in cyclic arrow diagram [duplicate]

Consider the following code from TeXample.net: How to refactor it for adding sloped labels on the outside of the arrows? Do you have a more elegant solution with TikZ? % Overlapping arrows % ...
1
vote
0answers
297 views

pgfplots: Plotting one data set with label and the other without label [closed]

I am trying to generate a plot using two data series and have the labels just on one of the series, but not the other. In the following example I would like to see the labels on first \addplot, but ...
3
votes
1answer
123 views

Positioning labels to an existing empty plot using tikz

Can you help me in correctly positioning labels to an existing empty plot using tikz ? My problems are: my labels are too far from the axes; my labels are not centered. Here is the empty plot ...
6
votes
1answer
188 views

Circle with labelled rotated radians

I'm wondering how I can reproduce the following diagrams using TeX: I realize this question is similar to this other question, however I'm not nearly experienced enough to be able to translate ...
1
vote
2answers
164 views

tests for defined labels (r@) and infinite passes with Makefile

My question probably has to do with .aux files and \newlabel therein. Here is what I can describe. The way my .PDF builds is via a Makefile; I inserted an MWE to show what happens. The situation is ...
10
votes
2answers
389 views

Irregular Polygon with Angle Labels

I am looking to create the 15-sided irregular polygon figure below, without having to declare coordinates for each point. Is there an easier way to do this? Tikz? PGF?
1
vote
0answers
114 views

How to surround portions of a tree with boxes [closed]

I need to group portions of a tree with boxes, and additionally label them, e.g. put "W1" on the side of the box, or in the top right corner of the box. The result I want to achieve is somewhat ...
2
votes
1answer
92 views

Setting labels on one axis in text mode and the other axis in math mode with PSTricks

Consider the following example: Code % pdflatex -shell-escape test.tex \documentclass{article} \usepackage{auto-pst-pdf,pst-plot} \def\seere#1#2#3{% \pspolygon[% fillstyle=solid,% ...
7
votes
1answer
453 views

Pgfplots: Drawing Arrows Along Contour Plots

I would like to draw "stealth" arrows in place of the "0" labels along the trajectory in the phase portrait pictured below. I decided to draw the trajectory using the contour functionality of ...
6
votes
2answers
236 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 ...
3
votes
1answer
1k views

pgfgantt - Two labels for one bar in Gantt chart

In my Gantt chart (I'm using package pgfgantt), I have just one task in each line, one bar per task. Each bar has its corresponding label identifying the task aligned left of the chart; e.g., ...
1
vote
1answer
262 views

Prevent multiple equation numbers when using \allowdisplaybreak with align

I have a very long equation of the following format \begingroup \allowdisplaybreaks \begin{align} a &= very long expression here\\ + & another long expression here\\ + & another long ...
6
votes
1answer
242 views

Creating form boxes with labels

I want to recreate a form with LaTeX, that can be filled by hand or --- of course --- via LaTeX. How can I create the boxes, with a footnotesized label at the top and enough space for the text to be ...
4
votes
1answer
273 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 ...
1
vote
1answer
256 views

TikZ - same label for every left/right edge

Is there a way to give every edge on the left the same label up to a specific level (I don't want labels on my leaf nodes). I want to build a Huffman-Code, so it would be nice to have every left edge ...
1
vote
1answer
125 views

envlab and datatool for labels

I'm trying to use datatool and envlab to print to and from addresses on a biglabel. Currently my code is close, but not quite there. It will print one combination of to/from on a page and with ...
18
votes
2answers
949 views

High level digital design in TikZ

I am very new to TikZ and I have trouble making a diagram similar to the one here: My problems are specifically making MUX to get to inputs which would be on 1/3 and 2/3 of the width. Taking sigma ...
13
votes
3answers
87 views

What to consider when naming labels to prevent errors?

This question is inspired by Umlauts in label and a quote from an answer to How to automatically add \! in subscripts? However the best is to avoid _ in labels. I already name all my labels with ...
1
vote
1answer
96 views

Weird thing in references/bibliography page [closed]

I'm writing my thesis but I have a huge problem. I'm using BibTeX to make the bibliography, but when I run my project,in the references page of my pdf created file I have beside the number of the ...
2
votes
0answers
207 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 ...
2
votes
1answer
136 views

Labeling user-defined shapes in TikZ

I have modified code for rotating a primitive 'match' shape (adapted from rotating camera code found here (Use a custom shape as a "building block"). How do I pass the label parameter in ...
21
votes
3answers
5k views

How can I set the TikZ label anchor explicitly?

I want to add a label to a node, but "inside" the node. Something like this: The manual seems to indicate it might be possible, although no actual key is named. The ... anchor point for the ...
2
votes
1answer
75 views

changing caption for wrapfigure

I am using wrapfigure to include both a table and a picture. However, because it's in wrapfigure, the table caption comes out labeled as "Figure X" rather than table x. Is there any way I can get ...
3
votes
1answer
598 views

How to put label and voltage on same object in CircuiTikZ?

If I type the following code there is no problem: \begin{circuitikz}[american] \draw (0,0) to[R, l^=$R_4$, v=$V_1^+$, -*] (0,2) --(0,4); \end{circuitikz} But the polarity is not the one I need. And ...
3
votes
2answers
333 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), ...... ...
0
votes
0answers
30 views

Global label in a LaTeX “align” [duplicate]

I use \begin{align} \label{blah} ... \end{align} in order to do equations of multiple lines. Unfortunately the equation number (coming from label{blah}) is not centered vertically in the middle of ...
4
votes
1answer
156 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} ...
14
votes
2answers
475 views

Complicated tikzpicture for theorem of multivariabe continuous functions

I'm attempting to construct a tikzpicture that looks like this: Here's what I have: \documentclass[12pt]{article} \usepackage{amssymb} \usepackage{amsmath} \usepackage[english]{babel} ...
3
votes
1answer
2k views

pgfplot — label, referencing and caption

I've the following pgfplot: \begin{center} \begin{tikzpicture} \begin{axis}[ xlabel = Number of threads (\#), ylabel = Task completion time (seconds), ...
3
votes
2answers
3k views

label multiple lines of equations [duplicate]

Suppose I have the equations \begin{align} f(x) = x^2 g(x) = \exp( x ) \end{align} I would like to use on single label for these lines, and ideally the equation number would be placed vertically ...
2
votes
1answer
2k views

Showing labels for equations with eqnarray

I am using \usepackage{showlabels} to show the labels in the pdf-file but it turns out that I only see the labels coming from align or equation environment and not the ones from eqnarray. Why? I ...
2
votes
0answers
43 views

label next to an arrow [duplicate]

I am trying to place a label next to the thick arrow between the first and the second box in this figure. My minimal code to generate the figure (sans the label) is the following. I am not sure how to ...
5
votes
1answer
790 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 ...
3
votes
1answer
725 views

pgfplots - Number above one of the bars in the bar chart

I want to put a number above only one of the bars in the bar chart. For example, above the bar A, I want to put a number say 200. Other bars will not have any number at the top. This is my code. ...
6
votes
1answer
738 views

tikz label coordinates using mathematical expression from foreach variables

\documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \foreach \x [count=\xi from 1] in {-3.0,-2.8,...,1.8} \draw[thin] (0,0) ++(\x,2) rectangle ++(0.2, 0.2) ...
8
votes
1answer
284 views

Label equations arbitrarily

When I have equations, as in \begin{equation} ... \end{equation} Can I arbitrarily assign the numbers to the equations? Instead of the usual order (1), (2), (3), ..., I'd like something like (1), ...
9
votes
1answer
3k views

How to place label in middle of line (above and below) with TikZ

\fbox{ \begin{tikzpicture}[scale=1,auto=center] \node[circle,fill=gray!20] (n1) at (2,8) {Node A}; \node[circle,fill=gray!20] (n2) at (8,8) {Node B}; \foreach \from/\to in {n1/n2} \draw ...
3
votes
1answer
171 views

Shift y labels, stop y labels being dropped

I have a const plot with intervals on the y-axis. I'd like my y labels to be centered in each bar, as it would be if this were an xbar interval graph. Also, and more importantly, I'd like more ...
3
votes
2answers
267 views

How to reference an axis label, e.g. xlabel

I'm new to that forum but it already helped a lot, thanks for this! But now I really got stuck. Basically I'm looking for a possiblity to reference the xlabel of an axis in a TikZ picture. The ...
11
votes
1answer
3k views

How to introduce a line break in a TikZ node label?

I need to introduce line breaks into the label of a node. This is what I've tried so far, but none of it worked: 1: \node[node, label={[split parts = 4]alpha \nodepart{two} bravo \nodepart{three} ...
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] ...