Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!tank!cps3xx!cpsvax!smithda From: smithda@cpsvax.cps.msu.edu (J. Daniel Smith) Newsgroups: comp.text Subject: Re: Current input file and line number in TeX Message-ID: <5604@cps3xx.UUCP> Date: 30 Nov 89 18:04:06 GMT References: <17388@umn-cs.CS.UMN.EDU> Sender: usenet@cps3xx.UUCP Reply-To: smithda@cpsvax.UUCP (J. Daniel Smith) Organization: Michigan State University, Computer Science Department Lines: 26 In article <17388@umn-cs.CS.UMN.EDU> cps3xx!eecae!tank!uwvax!umn-d-ub!umn-cs!kehyoe kehyoe@umn-cs.CS.UMN.EDU (Ong Keh Yoe) writes: >Does anyone know how to get the current input file and line number in TeX? >[..] >found any way of getting the current input line -- like the one TeX prints >out when it encounteres an error. Any suggestions? This one seems easy: install the new version of TeX (2.999something now, soon to be 3.0) The following is from Knuth's note describing the extensions to TeX: 9. Looking at the Line Number. ... TeX has a new parameter \inputlineno which contains the number of the line that TeX would show on an error message if an error occured now. ... That seems to be the answer to this question Dan ========================================================================= J. Daniel Smith Internet: smithda@cpsvax.cps.msu.edu Michigan State University BITNET: smithdan@msuegr Usenet: uunet!frith!smithda God created the integers; all the rest is the work of man. - Leopold Kronecker ========================================================================= Brought to you by Super Global Mega Corp .com