🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #1313

Current input file and line number in TeX

#1313
From: Ong Keh Yoe
Date: Thu, 30 Nov 1989 02:22
13 lines
1010 bytes
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?
Technical Details
Message-ID: <17388@umn-cs.CS.UMN.EDU>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uwm.edu!uwvax!umn-d-ub!umn-cs!kehyoe

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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