home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / text / tex / 10421 < prev    next >
Encoding:
Text File  |  1992-08-22  |  1.8 KB  |  41 lines

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