Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uwm.edu!uwvax!umn-d-ub!umn-cs!kehyoe From: kehyoe@umn-cs.CS.UMN.EDU (Ong Keh Yoe) Newsgroups: comp.text Subject: Current input file and line number in TeX Message-ID: <17388@umn-cs.CS.UMN.EDU> Date: 30 Nov 89 02:22:08 GMT Organization: University of Minnesota, Minneapolis Lines: 13 Does anyone know how to get the current input file and line number in TeX? I want to create a small running header on top of the output page which reads something like File: Chapter-1/Section-2.tex Lines: 123-456 Something like this I would find very useful when making corrections. Of course, this information wouldn't be printed on the final copy. Keeping track of file names is not hard -- I can define my own \input macro which first saves its argument before doing the real \input. But I haven't found any way of getting the current input line -- like the one TeX prints out when it encounteres an error. Any suggestions? Brought to you by Super Global Mega Corp .com