Tagged Questions

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

0
votes
1answer
38 views

How do I use an auxilliary file for my own commands?

I would like to extend the \label and \ref commands to provide me not only with the number of the section but also some sort of heading. What I have in mind is something like this: ...
2
votes
1answer
81 views

Label missing on axes in pspicture

Consider the following example: \documentclass{article} \usepackage{pst-plot} \begin{document} \psset{xunit=1cm,yunit=0.1cm} \savedata{\data}[{1,64},{2,32},{3,16},{4,8},{5,4},{6,2},{7,1}] ...
8
votes
2answers
107 views

Use labels from file in Tikz

I want to compare data from two files in a 4 by 4 grid. The data files are like this: data1.dat: A B C D ..... data2.dat: 1 2 3 4 ......... I am able to set up the grid with the ...
5
votes
1answer
429 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 ...
4
votes
2answers
85 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
157 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 ...
3
votes
0answers
60 views

Tikz: Arrow description closer to arrow [duplicate]

I want $Q(g)$ closer to the diagonal arrow in this tikz-picture. How can I manage that? Thanks. \begin{tikzpicture}[description/.style={fill=white,inner sep=2pt},baseline={([yshift=1.5em]current ...
1
vote
0answers
25 views

Problem with Chapters in appendix mode not having a label [duplicate]

I have a main file where I include several chapters including a couple of appendices, like this: \usepackage{appendix} \begin{document} ... \include{chapter1} \include{chapter2} ... ...
4
votes
2answers
91 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 ...
5
votes
2answers
165 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 ...
2
votes
1answer
184 views

Label and non-plain text arguments

I have a custom macro: \NewDocumentCommand\includefigure{mo}{ ... \caption{#2} \label{fig:#2} } The optional argument is used for the caption and the label. The problem is that when I have ...
6
votes
1answer
80 views

Wrong x-axis with pst-plot

Consider the following example: \documentclass{article} \usepackage{pst-coil,pst-plot} \def\tilskud#1#2{% \psline[linewidth=1.5pt,linecolor=red]% (!#1 1986 sub 0)% (!#1 1986 sub #2 8 sub 2 ...
5
votes
2answers
400 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 ...
4
votes
1answer
192 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
411 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
1k 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 ...
9
votes
3answers
192 views

PSTricks: Wrong axis labels

Consider the following example: \documentclass{article} \usepackage{pstricks-add} \def\sandsynlighed#1#2{% \psframe[ linecolor=red, fillstyle=solid, fillcolor=blue!50 ](#1,0)(!#1 ...
2
votes
1answer
359 views

Pandoc caption for code blocks [closed]

Consider the following code block: ~~~~{.Python .numberLines caption="test"} def myfunction(var): """ Oh how awesome this is. """ pass ~~~~ The code gets formatted correctly in the Pdf, but the ...
4
votes
1answer
555 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? ...
3
votes
2answers
211 views

How can I find the location (coordinates) between two ticks in pgfplots?

I would like to change the behavior of pgfplots for the placement of tick scale labels and units. My desired placement would be or between the last two ticks or in place of the second last tick. For ...
5
votes
1answer
86 views

How can one put labels over an image?

This question is slightly different from Drawing on an image with TikZ. What I'm asking is how can I put a vertex label, at a particular point (x,y), on an image of a graph in TikZ? \begin{center} ...
5
votes
1answer
149 views

How to put a label at the beginning of an arrow?

I came with the following code to display the graph below: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \tikzset{ actor/.style={ rectangle, draw=black, ...
8
votes
1answer
3k views

individual tick label style with pgfplots

given the following code, I want to modify the tick labels in such a way, that for negative values of x, the labels are located above the x-axis. How can I realize this? \documentclass{report} ...
3
votes
1answer
101 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
82 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
151 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
386 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
448 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
574 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
83 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
142 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
137 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
55 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
321 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
135 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
201 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
166 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
428 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
125 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
100 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
501 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
283 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
273 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
273 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
295 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
275 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
133 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
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 ...
13
votes
3answers
89 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 ...