Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!mips!news.cs.indiana.edu!ariel.unm.edu!triton.unm.edu!ingham From: ingham@triton.unm.edu (Kenneth Ingham) Newsgroups: comp.text.tex Subject: SliTeX bug? Message-ID: <1991May20.204251.16804@ariel.unm.edu> Date: 20 May 91 20:42:51 GMT Organization: University of New Mexico, Albuquerque Lines: 62 Originator: ingham@triton.unm.edu Important data: Ultrix 4.0 on a Decstation 5000/200 TeX C Version 2.95 SliTeX Version 2.09 - Release 10 November 86 It seems that it is possible to have the contents of a verbatim environment make a difference. The file runoff.tex: \documentstyle{slides} \onlyslides{2} \begin{document} \blackandwhite{slides} \end{document} The file slides.tex: \begin{slide}{} \begin{verbatim} { % } \end{verbatim} \end{slide} If the onlyslides line above is commented out, everything runs fine. However, with it there, the following error is produced: This is TeX, C Version 2.95 (no format preloaded) (runoff.tex SliTeX Version 2.09 - Release 10 November 86 (/usr/local/lib/tex/inputs/slides.sty Document Style 'slide' -- released 17 January 1986 ) Only Slides 2 No file runoff.aux. (slides.tex) Runaway argument? \fi \begin {verbatim} { \end {verbatim} \end {slide} ! File ended while scanning use of \@ggobtoend. \par \let \@makingslidesfalse ->\let \if@makingslides =\iffalse l.4 \blackandwhite{slides} ? x No pages of output. Transcript written on runoff.log. It appears that the % inside the verbatim environment is acting as a comment. I discovered this the hard way because of a short C function with a printf statement which happened to be in a verbatim environment. Is there an easy work-around for this problem? A hard one? -- Kenneth Ingham ingham@ariel.unm.edu Hummin' lil Grumman N9646L