Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!emory!hubcap!ncrcae!usceast!sharp From: sharp@usceast.UUCP (Harry Sharp) Newsgroups: comp.text.tex Subject: Problem with captions Keywords: figure, captions, LaTeX Message-ID: <3446@usceast.UUCP> Date: 13 Sep 90 00:09:40 GMT Lines: 34 Greetings! I recently tried using the figure environment in my Master's thesis and it solved a problem I had been having with displaying code fragments. However, I have uncovered a most unsettling problem while trying to caption one of my figures. The problem is as follows: I am displaying a group of #define statements and wish to caption my figure #defines for GOTO labels with the #define in emphasized type {\em}. \caption{\label {\em \#define}s for GOTO labels} First, the #, even when escaped, causes TeX grief and an error message about a bad \csname-\endcsname pair. When I remove the \#, I get a message about a \protect should not appear between \csname and \endcsname. I looked \csname up in the TeXBook and was properly confused by the non-answer there. My local TeX guru was equally confused by the TeX error messages. I really need the # in my caption, more than I need the word `define' emphasized, so I would greatly appreciate any ideas on how to solve that little problem. The emphasis thing would be nice, but is not vital. Any ideas? Harry Sharp sharp@usceast.cs.scarolina.edu -- [=============================================================================] USMail : Dept of Mathematics, USC, Columbia, SC 29208 E-mail : gatech!hubcap!usceast!sharp sharp@usceast.cs.scarolina.edu GO COCKS! You can't lick our cocks! University of South Carolina