Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!jarthur!nntp-server.caltech.edu!news From: marcel@cs.caltech.edu (Marcel van der Goot) Newsgroups: comp.text.tex Subject: Re: Citations in \caption Summary: RTFM: p. 59, p. 188 Keywords: fragile command, moving argument, manual Message-ID: <1991Jan9.224549.11693@nntp-server.caltech.edu> Date: 9 Jan 91 22:45:49 GMT References: Sender: news@nntp-server.caltech.edu Distribution: comp Organization: California Institute of Technology (CS dept) Lines: 32 Nntp-Posting-Host: stun3h.caltech.edu In Michael Hucka (hucka@engin.umich.edu) writes: > Is it possible to put a \cite command in a \caption? LaTeX is giving me an > error when I try it, and I cannot seem to find an answer in either the LaTeX > manual or the list of frequently asked questions posted monthly to this > group. Amazing. Let's see. I take my office-mate's LaTeX manual (I never use LaTeX myself), and look up ``\caption'' in the index: p. 59, ... Ok, p. 59: The caption on a figure or table is made with a \caption command having the caption's text as its arguments. This is a moving argument, so fragile commands must be \protect'ed (see Section 2.2.3). Now let's look up \cite: p. 73, 188 p. 73: looks complicated, let's try the other first. p. 188: \cite[text]{key_list} The key_list argument ... ... If present, text is added as a remark to the citation. Fragile. I know, this newsgroup is for beginning as well as for experienced users, and the TeX and LaTeX manuals are not the most readable books around (by necessity), but one could still make at least the most elementary attempt to figure things out oneself --- we've had postings about Reading The Fine Manual before. Marcel van der Goot marcel@vlsi.cs.caltech.edu