Path: utzoo!utgpu!watserv1!watmath!att!att!rutgers!usc!zaphod.mps.ohio-state.edu!uwm.edu!ux1.cso.uiuc.edu!csrd.uiuc.edu!s41.csrd.uiuc.edu!eijkhout From: eijkhout@s41.csrd.uiuc.edu (Victor Eijkhout) Newsgroups: comp.text.tex Subject: Re: doing a \ref{} in a \caption of a figure in LaTeX Message-ID: <1990Nov4.203542.18675@csrd.uiuc.edu> Date: 4 Nov 90 20:35:42 GMT References: <1232@lehi3b15.csee.Lehigh.EDU> Sender: news@csrd.uiuc.edu (news) Organization: UIUC Center for Supercomputing Research and Development Lines: 25 porphano@hobbes.sfc.lehigh.edu (Paul A. Orphanos) writes: >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 >\begin{figure}[h] >\caption{Equation~\ref{idovergm} } >\label{idgmvsvgvth} >\end{figure} Should I say RTFM? On page 59 of the LaTeX book it says about the argument of a \caption command: ``This is a moving argument, so fragile commands must be \protect-ed'' And just what is the fragile command here? On page 72 it says: ``The \ref and \pageref commands are fragile'' I mean, there is a good book about LateX, so if the combination of two commands goes wrong, you look both of them up in it, right? You're welcome... Victor.