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

  1. Newsgroups: comp.text.tex
  2. Path: sparky!uunet!van-bc!ubc-cs!unixg.ubc.ca!reg.triumf.ca!asnd
  3. From: asnd@reg.triumf.ca (Donald Arseneau)
  4. Subject: Re: Problem in Verbatim Mode
  5. Message-ID: <22AUG199204074981@reg.triumf.ca>
  6. News-Software: VAX/VMS VNEWS 1.41    
  7. Sender: news@unixg.ubc.ca (Usenet News Maintenance)
  8. Nntp-Posting-Host: reg.triumf.ca
  9. Organization: TRIUMF: Tri-University Meson Facility
  10. References: <MASROOR.92Aug22121606@human.ai.kyushu-u.ac.jp>
  11. Distribution: comp.text.tex,fj.comp.texhax
  12. Date: Sat, 22 Aug 1992 11:07:00 GMT
  13. Lines: 51
  14.  
  15. In article <MASROOR.92Aug22121606@human.ai.kyushu-u.ac.jp>, masroor@human.ai.kyushu-u.ac.jp (Muhammad Masroor Ali) writes...
  16. >I have got two sets of macros in two different .MAC files:
  17. >        1. vten.MAC
  18. >           a) BeginTenVerbatim          - begins ten point verbatim mode
  19. >           b) EndTenVerbatim            - finishes ten point verbatim mode
  20. >        2. vtwelve.MAC
  21. >           a) BeginTwelveVerbatim       - begins twelve point verbatim mode  
  22. >           b) EndTwelveVerbatim         - finishes twelve point verbatim mode
  23. ....
  24. >Runaway argument?
  25. >If you want to give a man something practical, consider tires.  More^^M\ETC.
  26. >! File ended while scanning use of \ttfinish.
  27. ..
  28.  
  29. The problem is that three are two conflicting definitions of \ttfinish:
  30.  
  31. >        |gdef|ttfinish#1^^M#2\EndTenVerbatim{#1|vbox{#2}|endgroup$$}}
  32. >        |gdef|ttfinish#1^^M#2\EndTwelveVerbatim{#1|vbox{#2}|endgroup$$}}
  33.  
  34. Only the second definition to be read will be retained.  Thus, if definition
  35. two is in effect, only Twelveverbatim will end properly.
  36.  
  37. To fix it, use the definition
  38.  
  39.       |gdef|ttfinish#1^^M#2\EndVerbatim{#1|vbox{#2}|endgroup$$}}
  40.  
  41. and use it as follows:
  42.  
  43.   \BeginTenVerbatim        and        \BeginTwelveVerbatim
  44.      Some Text                           Larger Text
  45.   \EndVerbatim                        \EndVerbatim
  46.  
  47. It would also be more efficient to combine the bulk of the macro definitions
  48. into one macro:
  49.  
  50.    \def\BeginTwelveVerbatim{\BeginVerbatim{\twelvett}}
  51.    \def\BeginTenVerbatim{\BeginVerbatim{\tentt}}
  52.  
  53. Donald Arseneau                asnd@reg.triumf.ca
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.