Article View: comp.text.tex
Article #1037RE: Figure captioning and referencing...
From: George D. Greenwade
Date: Fri, 07 Aug 1992 14:07
Date: Fri, 07 Aug 1992 14:07
46 lines
2943 bytes
2943 bytes
In <1992Aug6.175415.22388@ctr.columbia.edu> (comp.text.tex, Thu, 6 Aug 1992
17:54:15 GMT), Andrew P. Anselmo <anselmo@cumesb.mech.columbia.edu> posted:
> I've been trying create captions that look like so:
>
> Figure 10. A tree grows in Brooklyn. As you can see, the
> tree etc. etc. [10]
>
> Note a) that there is an indentation for the Figure number, and b) that
> there is a citation. Yet the \caption{ } option in LaTex doesn't like me
> putting a tab environment, or a \cite{ } inside the \caption brackets. Any
> solutions, net gods?
>
> \begin{figure}
> \vspace{2.0in}
> \caption{\label{fig:tree} A tree grows in Brooklyn.\cite{BugsBunny}}
> \end{figure} ^
> not liked at all!
With respect to a), use hangcaption.sty -- that's precisely what it is
designed to do. To retrieve it via e-mail, include:
SENDME STY.HANGCAPTION
in the body of a mail message to FILESERV@SHSU.BITNET (FILESERV@SHSU.edu).
To retrieve it via anonymous ftp, go to Niord.SHSU.edu (192.92.115.8) and
look in [FILESERV.STY].
With respect to b) [I haven't tried this, but it's a good guess], try:
\caption{\label{fig:tree} A tree grows in Brooklyn.\protect\cite{BugsBunny}}
^^^^^^^^
My reasoning is that the \cite is being written out (as are \chapters,
\sections, etc.) then recalled for processing in subsequent runs (which is
where my guess is you are having problems). By \protect'ing it, you should
be passing the command verbatim to the auxilliary file and processed
appropriately in subsequent usage. As a very general rule of thumb, you
need to \protect just about every command included in text passed to an
auxilliary file (i.e., it might be wise to include \protect\label as well
if you insist on including the \label in the \caption).
Regards, George
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
George D. Greenwade, Ph.D. Bitnet: BED_GDG@SHSU
Department of Economics and Business Analysis THEnet: SHSU::BED_GDG
College of Business Administration Voice: (409) 294-1266
P. O. Box 2118 FAX: (409) 294-3612
Sam Houston State University Internet: bed_gdg@SHSU.edu
Huntsville, TX 77341 bed_gdg%SHSU.decnet@relay.the.net
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Technical Details
Message-ID:
<0095EBB9.4825C640.13366@SHSU.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!noiro.acs.uci.edu!unogate!mvb.saic.com!info-texShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!noiro.acs.uci.edu!unogate!mvb.saic.com!info-tex From: "George D. Greenwade" <bed_gdg@SHSU.edu> Newsgroups: comp.text.tex Subject: RE: Figure captioning and referencing... Message-ID: <0095EBB9.4825C640.13366@SHSU.edu> Date: Fri, 07 Aug 1992 09:07:34 CDT Organization: Info-Tex<==>Comp.Text.Tex Gateway X-Gateway-Source-Info: Mailing List Lines: 46