Path: utzoo!utgpu!watserv1!watmath!att!att!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!uwm.edu!rutgers!netnews.upenn.edu!vax1.cc.lehigh.edu!lehi3b15!hobbes.sfc.lehigh.edu From: porphano@hobbes.sfc.lehigh.edu (Paul A. Orphanos) Newsgroups: comp.text.tex Subject: doing a \ref{} in a \caption of a figure in LaTeX Message-ID: <1232@lehi3b15.csee.Lehigh.EDU> Date: 31 Oct 90 16:55:20 GMT Sender: news@lehi3b15.csee.Lehigh.EDU Lines: 47 I have a user at our site who is trying to reference an equation as part of a figure caption. The equation is tagged normally, but when it is referred to in the caption, LaTeX gives an error message saying that there's a missing } in the \caption, along with a flurry of messages following. Any of you out there who have written theses or papers probably has used a reference in a figure caption, and might have seen this before. Below is a little sample file that does'nt work on either our Sparc, or Vax version of LaTeX. \documentstyle[12pt]{article} \begin{document} \section{The Extraction Technique}{\ } \begin{equation} id=id \label{idovergm} \end{equation} \begin{figure}[h] \caption{Equation~\ref{idovergm} } \label{idgmvsvgvth} \end{figure} \end{document} It's really simple, and should work. But it does'nt. Any help is greatly appreciated. Thanks Alot, Paul Orphanos ------------------------------------------------------------------------------ Paul A. Orphanos Internet: porphano@hobbes.sfc.lehigh.edu Microelectronics Laboratory Bitnet: pao0@lehigh.bitnet Lehigh University Bethlehem, Pa. -- ------------------------------------------------------------------------------ Paul A. Orphanos Internet: porphano@hobbes.sfc.lehigh.edu Microelectronics Laboratory Bitnet: pao0@lehigh.bitnet Lehigh University