Open PhelypeOleinik opened 3 years ago
This issue has been automatically marked as stale because it has not had recent activity.
This issue has been automatically marked as stale because it has not had recent activity.
This issue has been automatically marked as stale because it has not had recent activity.
Brief outline of the enhancement
LaTeX2ε used to have one file-related stack (
\@currnamestack
) with:\@currname
: the current file name (plus path, if any)\@currext
: the current file extension\the\catcode`\@
: the current catcode of@
Now since the 2020-02-02 release, there are quite a few more:
\@expl@push@filename@@
to keep track of the same as\@currnamestack
, but at theexpl3
side (generic mode doesn't use it, so it can probably be transferred to the 2e kernel)\@expl@push@filename@@
also to keep track of\ExplSyntaxOn
/Off
\__hook_curr_name_push:n
to keep track of the current default hook name\__filehook_file_push:
to keep track of\CurrentFilePathUsed
\CurrentFileUsed
\CurrentFilePath
\CurrentFile
\@kernel@currpathstack
to keep track of\@currpath
which clearly grew quite a lot and requires a lot of manual labour to set up and get working right.
LaTeX would benefit from an unified, easily extensible stack to keep track of file-related properties.