Questions tagged [labels]

{labels} is about customizing the labels of {diagrams} and mathematical constructs like {matrices}. For questions about \label or similar commands, use {cross-referencing} instead.

Filter by
Sorted by
Tagged with
7
votes
1answer
721 views

\label is Undefined when used in \afterpage?

I am trying to force a figure and an image to show up on the same page back to back. I read the solution of using the \afterpage which works great. Except now the \label is undefined and I cannot ...
7
votes
1answer
186 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}} %\...
7
votes
2answers
667 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 ...
7
votes
1answer
2k 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 ...
7
votes
1answer
646 views

Static labels on rotating arrows in TikZ

Update after answer: After employing the very helpful answer below, my animation now looks like this, and all labels are "glued" in place. Thank you very much!* Original question: I have the ...
7
votes
1answer
615 views

How can I get a stacked bar with single values and sum on the side

Based on this question I was able to put partial and total values on my bar plot. My bars have some really small values though and it is impossible to fit the numbers in some ranges. I would like to ...
7
votes
1answer
349 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 ...
6
votes
11answers
3k views

How do I make a square and label each corner with a number?

I am trying to make a square to demonstrate how reflections and rotations work, so I would like a square with each interior vertex labeled with a number.
6
votes
2answers
4k 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 ...
6
votes
1answer
183 views

How to create an overhanging label for parts of a sentence?

Reference image attached. I also want to be able to change the colour of there arrows and label text, etc.
6
votes
3answers
4k views

Make a polygon with automatically labelled nodes according to their coordinates

The goal: Make a polygon (and a circle containing that polygon at the nodes of the polygon, without the polygon's lines) with automatically numbered nodes according to their coordinates (x,y) [which ...
6
votes
2answers
615 views

How to draw a labeled triple arrow (\Rrightarrow)

There exists the ams-symbol \Rrightarrow which gives a triple arrow like . Now I want to endow the arrow with a label, which for example in the case of double arrows works with \xRightarrow{f}. But ...
6
votes
1answer
227 views

Treatment applied in parallel to `LaTeX3`'s integers and `LaTeX2e`'s counter gives differents results

I'm in the process to try to give an expl3 flavor of my answer of my question: Add a marginal note when a page break occurs in the middle of a multi-line equation. During this process, I noticed a ...
6
votes
1answer
4k 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 ...
6
votes
2answers
2k 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 ...
6
votes
2answers
319 views

labels of nodes with drop shadow

in cases, that all nodes in some tikz pictures have shadow. this can be done for example by: every node/.style = {draw, fill=white, drop shadow}, problem arise, if i like to some of this nodes add ...
6
votes
1answer
6k views

Add label to bars in bar chart

I am trying to get labels over the bars in my bar chart. I found \node [above] at (axis cs: 1, 810) {$Q1$};, but this one centers itself in the middle between two bars. I want the value from the ...
6
votes
1answer
768 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 ...
6
votes
2answers
106 views

Trying to align the equations and labelling

I am trying to align the equations, but the alignment has done something wrong to the spacing. The equation in the first line has moved to the right. \documentclass[12pt,letterpaper]{article} \...
6
votes
4answers
156 views

How do I reference a custom counter that shows the section number?

I am trying to use the proof environment that comes with the amsthm package. And I would like the proof environment to be numbered, such as the theorem environment for the sake of adding a label, so I ...
6
votes
1answer
291 views

Making `\AtBeginDocument{\pretocmd{\label}{##1}…` work

I want to patch \label, involving #1, and it seems that with hyperref, you have to do so after \begin{document} or using \AtBeginDocument. (The code should work without hyperref, too.) So this is what ...
6
votes
1answer
654 views

Planes' intersection in Asymptote

I have made a picture: The code: \documentclass{article} \usepackage{asymptote} \begin{document} \begin{asy} //================ Format ================= settings.outformat = "pdf"; settings.prc = ...
6
votes
2answers
167 views

\label-\ref consecutively numbered theorems using varioref

I hope all definitions, lemmas, theorems, propositions and corollaries are numbered consecutively. The code as below. My trouble is: when I reference, like \ref{<lemma 4>}, get 'definition 4'. ...
6
votes
2answers
16k views

Subfigure removing and controlling label/numbering

this problem is similar to others but I cannot find a solution. In the example below I have a figure with 6 subfigures. I would like to remove the label/numbering from the 2nd, 4th and 6th subfigure, ...
6
votes
2answers
5k 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}, ...
6
votes
2answers
148 views

Mysterious horizontal space when using \label after beginning a user-defined environment

Here is my MWE: \documentclass{article} \RequirePackage{expl3} \RequirePackage{xparse} \ExplSyntaxOn \newcounter{exercise} \NewDocumentEnvironment{exercise}{} { \refstepcounter{exercise} \par\...
6
votes
2answers
194 views

How to move text labels vertically in tikztiming

In a tikz timing graph I want to reduce the font size of the labels. When I do that they are not vertically centred with the graph anymore. How does one move the label vertically to the center? The ...
6
votes
2answers
409 views

Conditional pageref for labels far away

Currently, within my thesis, I am numberings theorems (and remarks, etc.) with a global counter. This makes it difficult in the printed version to find the theorem if a reference is too far away from ...
6
votes
3answers
1k views

How to mark equation number but not change the reference text?

I would like to mark a few equations as special by adding an asterisk (or some other symbol) to the equation number. I accomplish this as follows: \documentclass{article} \usepackage{amsmath} \...
6
votes
3answers
776 views

Decorate with text along the perimeter of a circle using TikZ

Using the following code I am trying to visualize nested circles: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc,fpu} \usetikzlibrary{decorations.text} \begin{document} \def\sizeA{...
6
votes
2answers
343 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} \end{document}...
6
votes
1answer
1k 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 ...
6
votes
2answers
1k 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 ...
6
votes
1answer
1k views

How to add a math expression in the label outside of a node?

Adding a math expression as a label inside a node works fine: \begin{figure} \begin{tikzpicture}[] \node[circle, draw] (c1) [label=left: text] {}; \node[block, draw, right = of c1] (e1) {$1*1=...
6
votes
1answer
1k views

How to label sets in Venn diagram using venndiagram package

How do I have the labels (A and B) outside the circles? I would like a solution that uses the venndiagram package. Code: \documentclass{article} \usepackage{venndiagram} \begin{document} \begin{...
6
votes
2answers
299 views

Is there an equivalent to \uput in TikZ?

I am trying to learn TikZ, having some experience with pstrick. I would like to add some labels to my figures and am used to the convenience of the pstricks macro \uput{label separation}[relative ...
6
votes
1answer
1k views

Reduce white space above TikZ label

I'm new to TikZ, and have drawn the following picture, \documentclass[12pt,a4paper]{article} \usepackage{tikz} \usetikzlibrary{trees,arrows} \begin{document} \begin{tikzpicture}[every node/.style={...
6
votes
2answers
7k views

Circuitikz place text above and below component

Lets say I create a component like this (0,0) to [R, l^=$R1$] (0,2) How can I make it so that the value, R1, is say, on the right hand side, and the resistance, say, 1kohm is on the left hand side? ...
6
votes
1answer
570 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 from ...
6
votes
1answer
1k 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} \begin{...
6
votes
1answer
1k 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 ...
6
votes
1answer
155 views

Cyrilic characters in \label and \ref in pdflatex

I want to write \label and \ref with Cyrillic(Russian) characters in pdflatex. \usepackage[russian]{babel} in preamble. I tried \label{\detokenize{}}, but it doesn't work. \documentclass[a4paper,...
6
votes
1answer
1k views

Constructing a tree in LaTeX

I am having real trouble creating a tree. So far I have \documentclass{article} \usepackage{tikz-qtree} \begin{document} \begin{tikzpicture}[every tree node, level distance=1.25cm,sibling ...
6
votes
1answer
665 views

TikZ node label distance depends on length when using tikzstyle

When I include circle in the every node style, the distance from the label to the node depends on the length of the label: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{...
6
votes
2answers
754 views

TikZ/ERD: node (=Entity) label on the inside

I'm trying to draw an ERD diagram. I recycled code from a couple of posts around here and added my own spice, finally ending up with: \documentclass[border=0.5in]{article} \usepackage{tikz} \...
6
votes
1answer
2k views

How label position and color can be modified in tikzpicture in posters?

I am working on a poster with fancytikzposter package, I cutted out the problematic part, it can be downloaded from here. I created a tikzpicture inside the poster and some problems occured: labels ...
6
votes
1answer
14k views

How to correctly label an included PDF?

I have this: \label{appendix:b} \includepdf[scale=0.8,pages=1,pagecommand=\chapter{interview}]{interview/interview} \includepdf[scale=0.8,pages=2-,pagecommand={}]{interview/interview} \label{appendix:...
6
votes
1answer
826 views

Feynman diagrams with feynmf/feynmp - edges of diagram cropped off?

I am trying to create Feynman diagrams with LaTeX/MetaPost and feynmp seems like the perfect package to do so. I had no problems with the tutorial and can generate the diagram itself in .eps without ...
6
votes
1answer
1k 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 ...
6
votes
1answer
2k 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 ...