-
Notifications
You must be signed in to change notification settings - Fork 4
Always explicitly load the kpse module
#4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,9 +21,9 @@ local char = utf8.char | |
| local codes = utf8.codes | ||
| local unpack = table.unpack | ||
|
|
||
| if tex.initialize then | ||
| kpse.set_program_name'kpsewhich' | ||
| end | ||
| local kpse = require'kpse' | ||
| kpse.set_program_name'kpsewhich' | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This breaks name lookup when used in LaTeX.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How so?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It changes the current This doesn't matter too much with TeX Live's default setup since that always falls back to the other directories if a file isn't found and TeX Live generally doesn't reuse filenames, but it can easily break user settings. |
||
|
|
||
| local ccc, composition_mapping, decomposition_mapping, compatibility_mapping, nfc_qc do | ||
| local function doubleset(ts, key, v1, kind, v2) | ||
| ts[1][key] = v1 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zauguin Out of curiosity, where is
tex.initializedefined? I don't see any mention in eitherluatex.pdforltluatex.pdf.