Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have just discovered pinlabel, and would like to use it to add labels to my figures.

I am using Adobe Illustrator to create my figures: I have a Mac, and with the latest OS, it seems hard/impossible to install xfig. I am using TeXShop and I would prefer to use pdftex to LaTeX my file, so I use AI to create a PDF figure.

The trouble is, when I add a pinlabel label to my figure, I get the error that the .ps or .eps file cannot be found. Colin Rourke's instructions for pinlabel indicate that when using pdftex, it will automatically search for a .pdf figure file, which clearly it is not.

Here is a sample of TeX which I am using. The sample figure is available here:


\small\hair 2pt
\pinlabel $(0,0)$ at 160 190
\caption{We are interested in the shaded region.}

If I comment out the lines from \labellist to \endlabellist, pdftex will produce a perfectly fine figure. With those lines, I get the error

cropped-C3-example.{ps,eps} not found (or no BBox)

Has anyone else had this problem? Have you found a solution?

share|improve this question
It compiles fine here... –  karlkoeller Aug 9 '13 at 17:39
On Linux/TeXLive 2013, it compiles without those errors to give this output like @karlkoeller –  texenthusiast Aug 9 '13 at 19:56
I have found the embarrassing solution. Mac does not have pinlabel.sty installed. The strange thing is that TeX did not complain, which it usually would if it does not have a package. Putting pinlabel.sty into the same folder as my .tex file worked like a charm. –  Tara Holm Aug 9 '13 at 23:40

1 Answer 1

up vote 5 down vote accepted

If you're willing to use TikZ instead of pinlabel, here's a solution. The commented out line draws a help grid on top of your image so you can see where to put your node.

I couldn't get the pinlabel to work, and saw the error you mentioned.




\node[anchor=south west,inner sep=0] at (0,0) {\includegraphics{cropped-C3-example.pdf}};

%%\draw[help lines] (0,0) grid (8,8);

%% This is done by drawing a label above and right
%% of the vertex you're labeling, rather than giving
%% the coordinates of the label itself.
%% Alternately, if you wanted to position the label
%% yourself, you could use a command like:
\node[label=above right:{$(0,0)$}] at (1.6,3.6){};
%% \node at (2.2,4.1){$(0,0)$};

\caption{We are interested in the shaded region.}

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.