Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!wuarchive!mit-eddie!uw-beaver!sumax!amc-gw!pilchuck!ssc!mcgp1!flak From: flak@mcgp1.UUCP (Dan Flak) Newsgroups: comp.unix.questions Subject: Use of for loop in pic Message-ID: <3635@mcgp1.UUCP> Date: 13 Jul 90 17:28:54 GMT Distribution: na Organization: McCaw Cellular Communications, Inc, Seattle, Wa Lines: 50 I tried using the following example directly from the book,"Document Formatting and Typesetting on the Unix Syatem" by Narain Gehani, page 168: #-----start file ----- .PS h = 2.0; y = 0.5; x = 0.5; n = 10 H: line right h L1: line up y from H.end L2: line down y from H.end for i = 0 to n do { line right x from i/n } .PE #----- end file ----- What I get as an error message is: #----- start error message ----- pic: end of file inside .PS/.PE (Not a typewriter) near line 14, file cost_bene context is .PE >>> <<< /8837/ h = 2.0; y = 0.5; x = 0.5; n = 10 H: line right h L1: line up y from H.end L2: line down y from H.end for i = 0 to n do { line right x from i/n } .PE #----- end error message ----- If I comment out the for loop, things go OK. Also what does the <<< /8837/ mean? line 14 is the ".PE" and 'se list' shows no unusual characters in the text. Any suggestions? -- Dan Flak - McCaw Cellular Communications Inc., 201 Elliot Ave W., Suite 105, Seattle, Wa 98119, 206-286-4355, (usenet: thebes!mcgp1!flak)