home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.text.tex
- Path: sparky!uunet!mcsun!sunic!kth.se!news.kth.se!orre
- From: orre@cyklop.bion.kth.se (Roland Orre)
- Subject: SliTeX Label problems
- Message-ID: <ORRE.92Aug23003428@cyklop.bion.kth.se>
- Sender: usenet@kth.se (Usenet)
- Nntp-Posting-Host: cyklop.nada.kth.se
- Reply-To: orre@nada.kth.se (Roland Orre)
- Organization: Royal Institute of Technology, Stockholm, Sweden
- Date: Sat, 22 Aug 1992 23:34:28 GMT
- Lines: 28
-
- The equation labels does not work with SliTeX. The reason seems to be that
- no .aux file is generated. It feels like it is the \label command that does
- not work properly. I don't understand enough TeX to be able to rewrite the
- label command why I instead tried the following hacks, as I in this case
- only needed to be able to reference backwards.
-
- \renewcommand{\label}[1]{
- \newlabel{#1}{{\value{equation}}{\thepage}}
- }
-
- \renewcommand{\label}[1]{
- \newlabel{#1}{{\theequation}{\thepage}}
- }
-
- In the first case SliTeX complains about missing number and fails. In the
- second case SliTeX swallows it but the only number I get from later \ref
- commands is the last value of \theequation. If I do an explicit
- \newlabel{eq:name}{{2}{\thepage}} in the equation, then it works.
- I understand that it is something really fundamental I don't understand
- with TeX, why I am lost. What do I do wrong?
-
- --------------------------------+----------------------+-----------------------
- Roland Orre | O---O---O Studies of | orre@nada.kth.se
- Dept. of Computing Science | \ /|\ /| Artificial | orre%nada@sekth.bitnet
- Royal Institute of Technology | O-O-O-O Neural |
- SANS, NADA, KTH | |/ \ /| Systems | Phone: +46 8 790 6900
- S-100 44 Stockholm, Sweden | O---O-O | Fax: +46 8 790 0930
- --------------------------------+----------------------+-----------------------
-