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

7
votes
1answer
559 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
310 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
280 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
301 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
319 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
326 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
142 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 ...
19
votes
2answers
1k 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 ...
14
votes
3answers
92 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
108 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
236 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
168 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 ...
22
votes
3answers
6k 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
86 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
697 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 ...
4
votes
2answers
579 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
163 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
521 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
3k 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), ...
5
votes
2answers
6k 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
3k 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
47 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
951 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
858 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
898 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
363 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), ...
11
votes
1answer
6k 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
184 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
325 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 ...
13
votes
1answer
4k 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} ...
4
votes
1answer
3k 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] ...
10
votes
2answers
495 views

How to generate n points over a circumference and choose label and color

I would like to place n points over a circumference like Figure 3 of this file. I'd choose the label to be assigned to each vertex and color and I'd like to have the code in TikZ-pgf.
5
votes
1answer
465 views

Custom axis marks in double logarithmic plot

I'm getting quite frustrated with my lack of pgfplot understanding and was hoping somebody could help me figure out how to get more readily readable/understandable x axis tick marks. I have the ...
19
votes
1answer
8k views

Comprehensive list of TikZ style options?

I'm aware that one can use \tikzstyle{every label}=[...] to apply styles to every label within a tikzpicture; or \tikzset{mystyle/.style={...}} to apply style specs to a specific type of node mystyle ...
9
votes
1answer
192 views

TikZ: positioning label at the end of a path

I'm trying in TikZ to find a general way to draw an arrow and label it at the end. Something like this works reasonably well: \draw[->] (0, 0) -- (1, 3) node[pos=1.1]{$\vec{v}$}; However, ...
4
votes
2answers
527 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] ...
0
votes
1answer
266 views

Listings and multiline labels

I wish a multiline label in the lstlisting environment. I would like to reference more than one line within the same listing. Can you help me to find a solution? I have found this link but this only ...
0
votes
1answer
377 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} ...
8
votes
1answer
971 views

Pgfplots contour gnuplot crazy labels

This is driving me mad. I am tryng to create some contour plots, but I get them full of labels, so that they are unreadable! I can't even see the lines or read the values because they are too much. I ...
1
vote
1answer
52 views

Add label to textual data

This question is extremely basic and I know how to solve it basically but it is a workaround and I was wondering whether there is a much better way to do it - here is the problem: I'd like to give ...
9
votes
1answer
197 views

Using xy-pic, how do you label an arrow with a curly brace that spans the length of the arrow, and can be offset arbitrary distances?

I'm trying to figure out how to label the arrows with curly braces that span the length of the arrow, and to make it all very pretty. More specifically, I'm trying to make ...
0
votes
1answer
197 views

Can't find a SIAM Label Error

I'm using winedt 6.0 and a SIAM template in my document. When I compile, I get an error message stating: ! SIAM Label Error: There were multipy-defined labels Correct multiply-defined labels. Type ...
7
votes
1answer
695 views

labelling with arrows in an automated way

In adding-labels-to-a-formula is a tikz scheme that puts rounded boxes around parts of an equation so that they can be labelled. It looks nicer than plain old \underbrace, and can be automated ...
2
votes
1answer
333 views

Adding a caption to a graphic inside a longtable

I have the following longtable : \begin{longtable}{|p{10cm}|} \hline some text \includegraphics[width=10cm,keepaspectratio]{\basedir some.png} some text\\ \hline ...
4
votes
1answer
311 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 ...
2
votes
2answers
208 views

caption in a tikz object

I created markov's chain using tikz package. Now I would add to to it caption and label but I got error.How can I add a caption and a label to a tikz object?
2
votes
1answer
327 views

Reverse labels without reversing the coordinates in circuitikz

How do I flip the label to the bottom without having to flip the coordinates? \documentclass[preview, american, convert]{standalone} \usepackage[siunitx]{circuitikz} \begin{document} ...
5
votes
1answer
431 views

How do I remove tick labels in latex using pstricks?

On my old Mac running OS 10.4.11, using TeXShop 2.26 I would use the pstricks package to draw figures. In those figures I had neither tick marks nor tick labels. I have recently switched to a new ...