🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #10394

Re: TeXnical question

#10394
From: Jim Graham
Date: Thu, 20 Jun 1991 13:03
63 lines
3039 bytes
In article <1991Jun19.211753.4838@csrd.uiuc.edu> eijkhout@s41.csrd.uiuc.edu (Victor Eijkhout) writes:

>Do \string\countitem or \noexpand\countitem

yep, got mail from one of the folks at Texas A&M (WHOOP!) who is part of the
TeX Support team, and he also suggested the \string\ fix.  it worked, of
course.  :-)  and he suggested killing the \immediate, as you did.  and of
course, that also worked.

However, you bring up another issue that has just gotten me confused
again....and perhaps will result in more learning on my part.  :-)

>However, you may also want to write the chapter number, somehting like
>    \write\tocfile{\string\tocchap{\chapno}{#1}{\folio}}

In fact, in a slightly different version of the macros, my file called
rfpmacros.tex, I do the following:

\def\newsection#1{\advance\sectionnumber by 1
   \subsectionnumber=0 \subsubsectionnumber=0
   \null{\subtitles
   \secno .\the\subsectionnumber ) \uppercase{#1}
   \vskip.05in\par}
   \ifcontents
     \write\contentsfile{\string\bulletitem
       \secno .\the\subsectionnumber ) \uppercase{#1} \string\dotfill \folio}
     \write\contentsfile{}
  \fi
  }

I have similar macros for subsections and sub-subsections.

>The problem with this is that if more than one chapter starts
>on a certain page (which can easily happen with sections or subsections)
>you will twice get the second chapter number.

And here's the confusion.....  I definitely do get the correct results,
both in the text and in the \contentsfile.  Is it because I'm using
\the\sectionnumber and so on?  Or am I doing something else right w/o knowing
it?  :-)

>I suggest you keep an eye peeled for 'TeX in practice' by Stephan
>von Bechtolsheim and 'A TeXnician's Reference Guide' by yours truly,
>which are both to appear later this year and which treat this sort
>of stuff in detail.

will something be posted to the net when these come out?  sounds like 2 books
to have sitting next to The TeXbook.

thanks,
   --jim

Standard disclaimer....These thoughts are mine, not my employer's.

------------------------------------------------------------------------------
Share and Enjoy!  (Sirius Cybernetics Corporation, complaints division)
73, de n5ial

Internet:  zjdg11@hou.amoco.com    or    grahj@gagme.chi.il.us
Amateur Radio:
   TCP/IP:    jim@n5ial.ampr.org (44.72.47.193)
   Packet:    BBS went QRT for good...still searching for new one.
------------------------------------------------------------------------------
Technical Details
Message-ID: <1991Jun20.130309.429@hou.amoco.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!spool.mu.edu!cs.umn.edu!uc!apctrc!voyager!zjdg11
References: <1991Jun19.125224.19855@hou.amoco.com> <1991Jun19.211753.4838@csrd.uiuc.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!spool.mu.edu!cs.umn.edu!uc!apctrc!voyager!zjdg11
From: zjdg11@hou.amoco.com (Jim Graham)
Newsgroups: comp.text.tex
Subject: Re: TeXnical question
Message-ID: <1991Jun20.130309.429@hou.amoco.com>
Date: 20 Jun 91 13:03:09 GMT
Article-I.D.: hou.1991Jun20.130309.429
References: <1991Jun19.125224.19855@hou.amoco.com> <1991Jun19.211753.4838@csrd.uiuc.edu>
Sender: news@hou.amoco.com
Organization: Amoco
Lines: 63