🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #1339

"Problem with LaTeX style file"

#1339
From: Daan Reuhman 43625
Date: Thu, 16 Apr 1992 13:23
80 lines
2535 bytes
Dear TeX-ers,                              16 April 1992


A colleague of mine has written a following file, called
"endnotes.sty". This should work as follows: when typing

      $ latex mydocument

a file "mydocument.ref" must be produced containing a
LaTeX itemize environment which can be included using
the "\input" command.


Example "mydocument.tex":

  \documentstyle[11pt,endnotes]{article}
  \begin{document}
  A bit of text.\endnote{An endnote}
  More bits of text.\endnote{A second endnote}
  \gennote 
  \end{document}

produces in the "mydocument.ref" file:

  \section*{References}
  \begin{itemize}
  \item{An endnote}
  \item{A second endnote}
  \end{itemize}

Everything seems to work fine, except for two nasty
problems:

  1.  To make it work the LaTeX file must produce at
      least 1 (one) page of output.

  2.  When calling the \endnote macro with a font size
      changing command, such as \endnote{{\large Again}},
      an error message is produced:
 
      ! TeX capacity exceeded, sorry [parameter stack size=60].
      \@setsize #1#2#3#4->
                \@nomath #1\let \@currsize #1\baselineskip #2\setbox \st...
      \@setsize #1#2#3#4->
                \@nomath #1\let \@currsize #1\baselineskip #2\setbox \st...

      
%
% --  This is endnotes.sty
%
\newcounter{endnotectr}
\newcounter{startendnote}
\newif\ifendnotes
\newwrite\refs
\def\endnote#1{\ifendnotes\relax\else\newwrite\refs%
               \setcounter{endnotectr}{1}%
               \immediate\openout\refs=\jobname.ref%
               \immediate\write\refs{\string \section*{References}}%
               \immediate\write\refs{\string \begin{itemize}}%
               \endnotestrue\fi%
               \stepcounter{endnotectr}%
               $^{\theendnotectr}$%
               \immediate\write\refs{\string \item{#1}}%
              }
\def\gennote{\immediate\write\refs{\string \end{itemize}}%
             \immediate\closeout\refs}


Could anyone help us out here?


Please reply by mail to:


 Daan B. Reuhman
        Philips Research Laboratories
        CAD Support Department

 e-mail reuhman@prl.philips.nl
Technical Details
Message-ID: <5322@prles2.prl.philips.nl>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!relay.philips.nl!prle!prles2!prl.philips.nl

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!relay.philips.nl!prle!prles2!prl.philips.nl
From: reuhman@prl.philips.nl (Daan Reuhman 43625)
Newsgroups: comp.text.tex
Subject: "Problem with LaTeX style file"
Message-ID: <5322@prles2.prl.philips.nl>
Date: 16 Apr 92 13:23:01 GMT
Sender: news@prles2.prl.philips.nl
Organization: none
Lines: 80