Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!uakari.primate.wisc.edu!caen!ox.com!yale!cs.yale.edu!newsbase!duchier From: duchier@cs.yale.edu (Denys Duchier) Newsgroups: comp.text.tex Subject: Re: Assigning Labels Manually in LaTeX Message-ID: Date: 7 May 91 13:09:26 GMT References: Sender: news@cs.yale.edu (Usenet News) Reply-To: duchier-denys@cs.yale.edu Organization: Computer Science, Yale University, New Haven, CT 06520-2158 Lines: 20 In-Reply-To: terryb.bbs@shark.cs.fau.edu's message of 4 May 91 16: 36:27 GMT Nntp-Posting-Host: albania.ai.cs.yale.edu In article terryb.bbs@shark.cs.fau.edu (terry bohning) writes: > Is there any way to assign a number to a figure label manually in > LaTeX? I have a picture on a separate page which I would like to > refer to in the text using a label such as Figure~\ref{fi:fig}. > But since it's not a LaTeX figure, I cannot use > \caption{This Figure \label{fi:fig}}. > So I need a way to assign a number to a caption label and step the caption > label counter. Try this: {\makeatletter \gdef\mylabel#1#2{{\def\@currentlabel{#1}\label{#2}}}} Usage: \mylabel{REFERENCE TEXT}{LABEL} Example: \mylabel{[Funky Picture]}{fi:fig} --Denys