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

6
votes
0answers
63 views

Add break node to plot in pgfplots

I was able to 'break' the vertical axis using pgfplots, but some issues came along with it: Most importantly, I can't find how to add the 'break sign' (the two parallel lines) to my plot as well, ...
1
vote
3answers
56 views

Adding labels to the equations when they are broken

\begin{align} \begin{split} \pd{EU}{\alpha} &= d(\theta) U'(\pi_{1}) [G_{\alpha}(\alpha, \theta, \epsilon) - \widebar{P} C_{\alpha}(\alpha, \theta)] \\ &+ (1-d(\theta)) ...
2
votes
2answers
88 views

Labeling equations and math mode

I have to write the equation shown below in Latex and I am using {\textbf{q}=($\mu$ $_1$ $\mu$ $_2$ ... $\mu$ $_{n-2}$ $\mu$ $_n$ )\textsuperscript{T}} and it comes OK. However, I need to ...
2
votes
1answer
34 views

Pgfplots: Add curly rotated braces to a graph

I created a simple graph of a demand function so far. Is there an easy way of addition curly rotated braces and labels to the graph (like in my sketch). Those should mark the intervals for a value ...
5
votes
1answer
16 views

Repeated “Label(s) may have changed” when using \catcode`_=12 underscore hack with hyperref

This MWE produces repeated Label(s) may have changed warnings despite the output files not changing. The same problem has been discussed in How to diagnose a permanent "Label(s) may have ...
2
votes
0answers
20 views

pgfplots: tik labels missing and axis labels are inside plot [duplicate]

I am having major trouble in getting pgfplots to work on my Ubuntu 14 System. I am running the minimum example from http://www.texample.net/tikz/examples/pgfplots/ and the result looks like the ...
1
vote
1answer
26 views

Writing to aux - you can't use a prefix with `the character @'

In a previous project, we used the following macro to define requirements, so that they were easy to reference later in the text. \newcommand{\reqlabel}[2]{% \label{#1} ...
0
votes
1answer
20 views

includepdf addtolist label not working

When I include PDFs in the annex, the label gets not set correctly. In the list of tables the link appears correctly, but clicking it brings me to the first page of the document. The link in the ...
1
vote
2answers
19 views

Increase labelwidth MSC package

I'm using the MSC package to draw a sequence chart. I only need one instance, with ingoing and outgoing (lost and found) messages. I've set up a working example suing the LaTeX compiler. ...
0
votes
0answers
8 views

referencing vertical subfigures [duplicate]

I am new with LaTeX and I have a problem with in text referencing on my sub-figures which are in vertical alignment. The code I use is below. If in my text I write \ref{fig:a} the ?? will appear. If I ...
4
votes
1answer
72 views

Asymptote: prevent label scaling in 3d perspective

Is there a simple way to prevent labels from scaling based on their distance to the camera in a perspective 3d view? (For example, see the first comment on this question or page 65 of this tutorial.) ...
1
vote
0answers
27 views

insertion picture in latex problem [duplicate]

I'm using latex editor to insert a picture. When I view the output in pdf file the "Diagram.jpg" appear above the picture. How I can remove it? the code written for insertion is: \begin{figure}[h] ...
1
vote
1answer
15 views

Referencing subordinate equations

I have this equation in my paper: \begin{subequations} \begin{align} \label{eq:pv-omega} \hat{p} = pv \ll j\Omega \quad \Rightarrow \quad \gamma=2,\\ \hat{p} = pv \gg j\Omega \quad ...
5
votes
1answer
37 views

Pgfplot/tikzpicture: modify ticks and labels

I would like to modify my tikzpicture: 1.) I added an extra tick at x=92, but this overlaps with the automatic tick x=100. How to solve this overlapping? Same problem for the second extra tick at ...
4
votes
4answers
253 views

Change labels on x-axis in TikZ plot

I have the following code to create an axis on which trigonometric functions must be plotted (in degrees). It is to be printed out and used as part of a mathematics test paper. However, x axis must be ...
1
vote
0answers
22 views

Refer to an equation inside a node in a graph

I am not very familiar with the tikz package. Reading here and there on internet, I managed to do this \begin{tikzpicture} [node distance=.8cm, start chain=going below,] \node[punktchain, ...
-1
votes
0answers
17 views

Labels not included in \includegraphics{Feynman.1}?

I know this has been asked before so I'm surprised none of the other solutions helped/why this occurs. To be clear the labels do show on the original output but I want to use \includegraphics to save ...
0
votes
0answers
36 views

How to make a test on the current page number?

How could I test whether some label is on the current page, or on the previous or next one. Typically I would like to build a macro \onthispage{label}{text1}{text2} which would print text1 if the page ...
0
votes
0answers
9 views

Latex (TexWorks) not referencing figures properly in minipage environment [closed]

I am inserting two figures into a latex document I am writing. I am using a minipage environment so they appear side by side. When referenced later in the text the first figure number appears ...
2
votes
0answers
19 views

Put parentheses by default when referencing an equation [duplicate]

I have this equation: \begin{equation} \label{eq:helicsol} x = y \end{equation} and then I have: As we can observe, the solution of \ref{eq:helicsol} and I get: As we can observe, the ...
3
votes
1answer
50 views

How to move amsmath equation label into LHS margin?

I am using amsmath and I would like to move the equation label into the left hand side margin aligned with the top of the equation. I have looked through the documentation but I can't find anything on ...
1
vote
1answer
21 views

References not working for \lstinputlisting

I may be doing something wrong but can't realize what... I want to set a label for a piece of code represented by: \lstinputlisting[language=Python, label={lst:control_os_call}, firstline=231, ...
3
votes
1answer
73 views

Drawing Sinusoids with Phase difference

My first goal was to draw sinusoid plots similar whit these images: This is what I've done (similar to one code in this forum): What I'd like to know is (if possible) how to change integral ...
3
votes
1answer
89 views

Tikz functions and coordinate system: Adding points and labels

I managed to adjust some of the existing code a little bit to fit my needs. I can plot simple functions. (1) I want to add labels to the coordinate system, for example e (~ 2.71) to the x-axes and ...
2
votes
1answer
33 views

pgfplots: change vertical position of node label in addplot

In the MWE below, how can I change the vertical position of the label associated with the curve? For example, if I wanted to put it below the curve? \documentclass{standalone} \usepackage{tikz} ...
2
votes
0answers
34 views

pgfplots: Fixing overlapping X axis labels

I am trying to create a time series plot but my X axis labels overlap: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{width=14cm,compat=newest} \usepgfplotslibrary{dateplot} ...
9
votes
4answers
219 views

How to point an equation to a curve

I have the following code: \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.7} \begin{document} \begin{tikzpicture}[>=latex] \begin{axis}[grid=both, axis x ...
1
vote
1answer
58 views

LaTeX pgfgantt move inline label above the bar not working

I'm trying to move my already inline labels to above the bar and have attempted to add bar inline label node /.style=north or bar inline label anchor=north or bar inline label anchor/.styles = north ...
0
votes
0answers
48 views

Label at the end of document is lost, bug?

I'm having a long document in memoir at the end of which I set a label, and so far it has worked. I did some changes to my document, at unrelated places, and suddenly I'm getting the warning that that ...
2
votes
1answer
41 views

Conflicting multi-line underbrace labels

Sometimes a \makebox gives nice underbrace, sometimes multiline version with \parbox works. But how to combine two multiline-underbrace-equation-labels side by side and make them look good? ...
1
vote
2answers
62 views

yticklabel pos=right has no effect

I am using pgfplots to draw a simple 2D function. I'd like to display all of the ytick labels on the right side of the plot. So far I had no success using yticklabel pos=right, I do not get an error ...
2
votes
1answer
32 views

Using pictures / images as x-axis label in pgfplot?

is it somehow possible to use external pictures as explicit labels in pgfplot? Or can I use the draw environment within the label definition? I tried it in two ways: \begin{tikzpicture} ...
0
votes
1answer
27 views

how to use showlabels package in IEEEtran class

I need to show the labels of the equation, besides equation number, in my .pdf file in the IEEEtran class. For that I use the \usepackage[right]{showlabels}. But I am unable to show the labels. For ...
1
vote
1answer
31 views

Label american current source correctly

I am trying to put a label in the right of the american current source, but it doesn't want to go. I tried to use l>=$4$A instead of i>=$4$A but there is an error on that. I tried to use v ...
1
vote
1answer
24 views

label of the resistors using circuitkz

How can I put the label of the resistors horizontally instead of being in the same direction of the component? I tried to use [R, l=$R_c$:-90] as an example I saw but it didn't work. ...
1
vote
1answer
41 views

Two caption names for figures

I am typing my thesis in LaTeX and I have problems with captions. In my thesis are pictures as well as graphs. According to my school I have to have these captions: picture: "Obr. XXX", graph: "Graf. ...
4
votes
1answer
39 views

Counter not incrementing when defining crefname with cleveref and algpseudocode

I am renaming the "line" label for lines in the algorithmic environment, since I am using the default label for lstlisting environment. As soon as I add define \crefname for it, the counter does not ...
6
votes
2answers
153 views

Tikz Forest label positioning

I'm constructing a tree diagram using the forest package, and I want to label the edges. Usually, Tikz is quite good at avoiding a collision between the label and the edge, but if the branches of my ...
4
votes
1answer
32 views

newcommand with optional argument displays wrong text

I tried to set up a new command with optional arguments. The problem is that the command displays 'st:code'. What's wrong? Thanks in advance! \documentclass[a4paper,twoside,10pt]{report} ...
0
votes
1answer
46 views

Referencing my own command

I'm trying make my own command for a requirements document. I'm now looking for a way to reference my requirements. This should be possible by using \ref and the later on with the hyerref package. ...
1
vote
0answers
35 views

How to label equations effectively and efficiently?

I am writing a thesis containing a lot of equations. One problem I am facing is how to label them well enough so that it is easier to refer to them later on. Currently, I tried to name every equation. ...
1
vote
1answer
45 views

Individual tick label style depending on position

I'm looking for a solution to restrict tick labels to be within the axis limits (see figure, without enlarging limits). The idea was to apply a custom tick label style for example to the first ...
3
votes
1answer
95 views

How to draw a bubble column chart with a legend?

I am very new to plot in Latex, and am trying to piece together a bubble column chart with a legend and labelled axes. So far, I have a working chart, but can only get the legend or a labeled x-axis. ...
2
votes
0answers
61 views

How to add label along the path in tikz?

I want to draw the following figure via tikz. I tried several methods (decorations, midway, etc.) to put the label word along the graphs of the functions, but failed. Here is my code ...
2
votes
1answer
55 views

Show only every n-th xtick label when using 'x tick label as interval'

This question results from the same problem I asked here. Now, I have to many data points to give every single one a tick label. For one axis (the one on the bottom) I could achieve what I want. But ...
3
votes
1answer
72 views

Draw and label arcs to label angles

I have written the following in LaTeX. I have trouble drawing and labeling all my angles (I want to label the angles in B, C, D and F. I have so far only managed to draw those in C (easier because ...
0
votes
1answer
37 views

Side by side figures with side captions

I want my figures to be side by side with a side caption, and I thought I had succeeded in doing this until I've realised every time I have two figures side by side it will label this, say, Figure 1, ...
0
votes
1answer
51 views

Start xtick labels in the first interval using pgfplots

I'm creating a graph with two x axis using pgfplots where one axis represents timesteps and the other iterations within one timestep. So far I have the following code: \begin{tikzpicture} ...
1
vote
1answer
43 views

Circuitikz: increase the distance of a resistor label

In such a simple circuit \documentclass[12pt]{article} \usepackage[siunitx]{circuitikz} \usepackage{tikz} \begin{document} Resistance: \begin{circuitikz} \draw (0,0) to [R=$R$,*-*,v=$V_1 - V_2$] ...
1
vote
0answers
33 views

labeling of group of pictures using x and y axis

how can I create like the following figure ((in attached picture))?