Path: utzoo!attcan!utgpu!utstat!jarvis.csri.toronto.edu!rutgers!ucsd!ucbvax!pasteur!piaw From: piaw@soda.Berkeley.EDU (Na Choon-Piaw) Newsgroups: comp.text Subject: Cross Referencing in TeX Message-ID: Date: 15 Nov 89 17:03:06 GMT Sender: news@pasteur.Berkeley.EDU Distribution: comp.text Organization: cc Lines: 28 I'd like to know how to do cross-referencing in TeX. Preferably automatically. For instance, I'd like to be able to say something like: \beginsection{This is a test} \label{foo} \endsection .... This is talked about in section{foo} I'd like to be able to program TeX to do it. (No, I hate LaTeX, and haven't bothered replacing my manual since it got lost) This would be useful for things like computer manuals, or wargames rules, for instance. I have no idea how to do it, other than by writing to a file, and that's kinda messy: 1.1 title1 1.2 title2 And I can't do forward referencing in that case. Ideas, suggestions? I'd particularly like to know how LaTeX does it (no, I don't find that code readable...) Na Choon Piaw piaw@cory.berkeley.edu