Path: utzoo!attcan!uunet!mcsun!ukc!icdoc!sot-ecs!spqr From: spqr@ecs.soton.ac.uk (Sebastian Rahtz) Newsgroups: comp.text.tex Subject: Re: How to do reference in caption env.? Message-ID: Date: 28 Jul 90 11:28:00 GMT References: <7055.26af42fc@swift.cs.tcd.ie> Sender: spqr@ecs.soton.ac.uk Organization: Southampton University Computer Science Lines: 15 In-reply-to: wai@swift.cs.tcd.ie's message of 26 Jul 90 19:22:36 GMT In article <7055.26af42fc@swift.cs.tcd.ie> wai@swift.cs.tcd.ie writes: \begin{figure} ... \caption{... \ref{ref:count}} \end{figure} TeX keeps complaining that there is an extra '}' in @caption ... try reading the LaTeX book. it explains clearly (?) that you need a \protect in front of \ref -- Sebastian Rahtz S.Rahtz@uk.ac.soton.ecs (JANET) Computer Science S.Rahtz@ecs.soton.ac.uk (Bitnet) Southampton S09 5NH, UK S.Rahtz@sot-ecs.uucp (uucp)