[texhax] Latex question
Mel Janowitz
melj at dimax.rutgers.edu
Tue Apr 27 16:34:10 CEST 2004
Gentlemen:
I am a current TUG member with email address meljan at optonline.net.
I have not been able to figure out how to cross-reference figures that
involve pictures I have created. I can cross-reference anything else I
want. It occurred to me that perhaps I am making a mistake creating the
pictures. I boiled it down to the essentials and am attaching a sample
file. I tried this on three separate latex systems.
Thanks,
Mel Janowitz
*********************************************************
Melvin F Janowitz
428 CoRE Building Phone: 732-445-0074
DIMACS email: melj at dimax.rutgers.edu
Rutgers, The State University
96 Frelinghuysen Road
Piscataway, NJ 08854
President-elect Classification Society of North America
*********************************************************
-------------- next part --------------
\documentclass[11pt]{article}
\usepackage{amssymb}
\begin{document}
\section{test}
\begin{figure}[h] \label{fig:tree2a}
\centering
\begin{picture}(210,60)(-260,-10)
\put(-192,25){\line(1,0){60}}
\put(-192,25){\circle*{5}}
\put(-132,25){\circle*{5}}
\put(-260,-10){\line(2,1){70}}
\put(-260,60){\line(2,-1){70}}
\put(-260,-10){\line(0,1){70}}
\put(-260,-10){\circle*{5}}
\put(-260,60){\circle*{5}}
\put(-62,60){\circle*{5}}
\put(-62,-10){\circle*{5}}
\put(-132,25){\line(2,1){70}}
\put(-132,25){\line(2,-1){70}}
\put(-275,25){e1}
\put(-230,50){e2}
\put(-230,-5){e3}
\put(-168,28){e4}
\put(-102,50){e5}
\put(-102,-5){e6}
\end{picture}
\caption{Original graph with bridges at e4, e5, e6}
\end{figure}
\begin{figure} \label{fig:t2b}
\centering
\begin{picture}(210,85)(-260,-10)
\put(-132,25){\circle*{5}}
\put(-200,-10){\line(2,1){70}}
\put(-200,60){\line(2,-1){70}}
\put(-200,-10){\line(-2,1){70}}
\put(-200,60){\line(-2,-1){70}}
\put(-270,25){\circle*{5}}
\put(-200,-10){\line(0,1){70}}
\put(-200,-10){\circle*{5}}
\put(-200,60){\circle*{5}}
\put(-62,60){\circle*{5}}
\put(-62,-10){\circle*{5}}
\put(-132,25){\line(2,1){70}}
\put(-132,25){\line(2,-1){70}}
\put(-62,-13){\line(0,1){70}}
\put(-275,10){e1}
\put(-190,59){e2}
\put(-190,-15){e3}
\put(-132,10){e4}
\put(-52,57){e5}
\put(-52,-13){e6}
\end{picture}
\caption{Associated line graph with cut-vertex at e4}
\end{figure}
This is Figure \ref{fig:tree2a}
Then comes Figure \ref{fig:t2b}
\end{document}
More information about the texhax
mailing list