[tex-k] tex.ch line number updating?
Andreas Scherer
andreas_tex at freenet.de
Sun Jun 2 12:15:36 CEST 2024
Am 01.06.24 um 19:54 schrieb Andreas Scherer:
> I could imagine that TIE or CTIE might be good starting points
Indeed. A simple change in TIE§49 (or CTIE§53) prints correct line
information related to the master file:
diff --git a/texk/web2c/tiedir/tie.w b/texk/web2c/tiedir/tie.w
index 227328b729..c91bd13ea2 100644
--- a/texk/web2c/tiedir/tie.w
+++ b/texk/web2c/tiedir/tie.w
@@ -1058,6 +1058,7 @@ Without a match nothing must be done.
if (out_mode==normal) {
if (test_input!=none) {
fputc(map_xchr(@'@@'),out_file); fputc(map_xchr(@'x'),out_file);
+ fprintf(out_file, " l.%ld", input_organization[0]->line);
new_line(out_file);
out_mode=pre;
} else break;
Now one would have to store any manual text from the '@x' line of the
'current' change and reproduce it in the output (if a change file is
created).
Andreas
More information about the tex-k
mailing list.