{labels} is about customizing the labels of {diagrams} and mathematical constructs like {matrices}. For questions about \label or similar commands, use {cross-referencing} instead.
29
votes
5answers
5k views
How do I label different rows or columns of a matrix using braces?
I have a matrix enclosed in brackets [ ] (or (), or {}, or |'s, or ||'s):
- a b c d -
| e f g h |
| i j k l |
- m n o p -
which I want to label like so:
R
|---|
-- - a b c d ...
18
votes
3answers
3k views
TikZ: Bend text so that it follows a line
I have two arrows going from a node on the left to a node on the right. Both arrows are slightly bent. I want to label the arrows with text that is bent just like the arrows. This is as far as I've ...
17
votes
3answers
589 views
Draw dimension of a line as a decoration in TikZ
Is it possible to define in TikZ a new decoration or something like that, such that it is possible to write something like:
\draw[dim={text,above}] (A) -- (B);
\draw[dim={text,below}] (C) -- (D);
...
17
votes
4answers
11k views
TikZ set node label position more precisely
This seems like it should be really easy but I can't seem to find it anywhere...
I'd like to be able to fine-tune the positioning of a node label.
I'm aware of the ...
13
votes
2answers
228 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}
...
11
votes
3answers
63 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 ...
11
votes
1answer
175 views
How can I put “=” in a TikZ node label specified as an option
When I try to put an = symbol into a TikZ node label specified as an option (using label=), I get an error:
Extra }, or forgotten $.
Is there a way to specify = in such cases that I'm missing?
...
11
votes
1answer
158 views
Adding a label to a bent arrow in TikZ
In this question Is there a TikZ equivalent to the PSTricks \ncbar command? Jake provided a very nice TikZ version of the PSTricks \ncbar command.
With normal node connections in TikZ, I can use the ...
11
votes
1answer
615 views
How to use “fit” to frame the nodes and labels
I'm using the fit TikZ library to fit a rectangle around two nodes which include labels. However, the rectangle is only fit around the actual nodes, not about their labels:
\documentclass{article}
...
10
votes
3answers
287 views
Printing labels along with equation numbers
Working with documents with huge amount of equations it becomes cumbersome to go back and remind yourself what you labeled a certain equation to (I try to name them in a smart way, but there are too ...
10
votes
1answer
2k views
Place label in middle of line with TikZ
What is the best way to place a label in the middle of a line with TikZ? I mean smack dab in the middle of the line, not above or below it. The following is close
\begin{tikzpicture}
\draw[|->, ...
10
votes
1answer
339 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
2answers
221 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 ...
9
votes
1answer
140 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, ...
9
votes
1answer
106 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
...
8
votes
2answers
94 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?
8
votes
2answers
843 views
Matrix with arrows and labels
I would like your advice on writing a matrix with latex. In order to explain the meaning of the rows and columns, the matrix should be surrounded by two arrows, one on the left side pointing downward ...
8
votes
2answers
232 views
referencing main subequation
In the following example i labeled each subeqnation.
\begin{subequations}
\begin{gather}
R_0 = 0 \label{subeqn:ini-cond-r} \\
N_0 = 0 \label{subeqn:ini-cond-n}
\end{gather}
...
8
votes
1answer
93 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), ...
8
votes
2answers
508 views
pgfplots: two labelings for a single 3d plot
I am trying to add a second labeling to my 3d plot, but I can not figure out how to do it correctly. The idea is to add a second axis without any grid, ticks, lines and nothing but labels and overlay ...
8
votes
1answer
367 views
Use text data as mark labels in pgfplots
I have a table with numerical data and text in different columns, like this:
0 0 0.1
1 0 \pi
2 0 \frac{\pi}{2}
I'd like to put text labels on a plot using the text in the third column ...
8
votes
1answer
454 views
Different color for individual bar in bar chart & adding bar labels
Please consider the following MWE.
There are three things I would like to do:
Individual colouring For the last element ("not rejected") I would like to fill the bar with another color (e.g. ...
8
votes
1answer
353 views
Label automatically positioned so that it doesn't overlap anything
I produce automatically generated LaTeX-files with nodes and links.
Is it possible to put the label of the node outside of the node and it is automatically positioned somewhere, such that there is no ...
7
votes
2answers
590 views
Tikz: Labeling objects and referencing them
According to the Tikz manual I can use "name=" to assign a label to the drawings, but when I do the following:
\begin{tikzpicture}
\draw [ blue, thick, name=e1] (10pt,10pt) ellipse (50pt and ...
7
votes
1answer
481 views
Titles aligned horizontally above nodes in figure
I am trying to create a flow chart going left-right where each stage has a header aligned with it, at a certain height above the chart. I am trying to use the Hydrogen Splitting Example (see the ...
6
votes
1answer
209 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) ...
6
votes
1answer
241 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} ...
6
votes
1answer
778 views
How to change label and ticks of a pgfplots colorbar?
I have a 3d plot with colored surface and a colorbar made with pgfplots.
My probably related questions are:
How can I set the label of the colorbar?
What are the equivalents of zticks (positions of ...
6
votes
1answer
87 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
1answer
995 views
pgfplots using strings *from data table* as x axis labels in bar chart
I've seen some of the other threads on using strings as x axis labels, but nothing that fits my situation.
I'm trying to create a bar chart from a CSV file. I can do it so long as everything in the ...
6
votes
1answer
288 views
How to remove parenthesis in an equation number created by \tag?
This is probably simple, but I can't figure it out. How can I remove the parentheses around a \tag in an align equation? I would like the second line (and only that) to contain [2] instead of ([2]). A ...
6
votes
1answer
342 views
Two level labels in bar plot
I need to group the labels in the x axis by putting a second level label. I need to separate the nodes that are grouped from the other ones or marked them somehow.
For example, if I have the labels ...
6
votes
1answer
375 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 ...
6
votes
1answer
254 views
Equation tag in twoside-mode outer
At the moment I thinking about the following think. When I use the twoside mode to write a book I want to print the number of the equation outer.
I can modify it manually with these two commands:
...
5
votes
2answers
191 views
How to make the hyperlink point to the top of linked figure and item of enumeration?
I want to create a problem booklet. Each problem numbered by enumerate has at most one figure that may either be in marginpar or float and occupy the full width.
The caption for each figure has a ...
5
votes
2answers
110 views
Tikz: How do you label a circled node to the left without collisions?
I'm trying to label a circled node in Tikz with some text to the left. The problem is it is colliding with the circle.
For example I have something like:
\begin{tikzpicture}
\node[draw,circle] at ...
5
votes
1answer
358 views
repetitive footnotes
Is it possible to have the footnotes not to repeat in the same page and take the old number?
In other words, even if the footnote labels are same, can the footnotes have same number.
here is my MWE.
...
5
votes
1answer
67 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 ...
5
votes
1answer
100 views
Using variables in constructing new labels
First, apologies for my lack of knowledge in this matter. I am trying the following code without really understanding every bit and piece of it.
Anyway, can anyone help me find what is wrong with the ...
5
votes
1answer
244 views
pgfplots axis descriptions from file
I was wondering if there is any way to make pgfplots read the xlabel and ylabel from a file.
This is similar to this question Using Labels from a File in PGFplot but I'd like to read the column ...
5
votes
2answers
2k views
Label matrix dimensions
I have a matrix equation like
Ax=b
I'd like to include the dimensions under each, like so
\underset{p\times k}{A} \underset{k\times 1}{x} = \underset{p\times 1}{b}
The problem is that this is ...
5
votes
1answer
78 views
autonum does not like \ref in a \caption
The following is a minimal non-working example of a reference to some label within a caption while using the autonum package.
\documentclass{article}
\usepackage{autonum}
\begin{document}
...
5
votes
1answer
1k views
Date plot using pgfplots with odd tick label
How do I make the time label in the following image appear as "10:00" (i.e. 10 o'clock) rather than the unexpected and unwelcome "09:60"?
Here's the code that I am using:
\documentclass{beamer}
...
5
votes
1answer
501 views
plotting a line in a barchart
Problem: line stops at given coordinates, ymax is not obeyed.
\documentclass[a4paper,10pt]{report}
\usepackage[left=1.5cm,top=2cm,right=1.5cm,bottom=1.5cm]{geometry}
...
5
votes
1answer
495 views
How to make a pgfplots stacked xbar plot with bar-“explicit meta” labels computed from input table data
I am making a pgfplots stacked xbar plot where each bar has a distinct
label, in addition to a numeric bar length. Each pair of bars also
has a common label. I would like to mark each bar with its ...
5
votes
1answer
254 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
1k views
Putting LaTeX table legend in a “x\y” style [duplicate]
Possible Duplicate:
Tables of numbers
Is it possible to put a "x\y" style legend in one cell (maybe be made up of several cells) of a table? It would be great to make the 'x' slightly lower ...
5
votes
1answer
226 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 ...
4
votes
2answers
295 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. ...

