lualatex-tools / luaoptions

Option handling for LuaLaTeX packages
MIT License
2 stars 0 forks source link

Fix log file location determination #7

Closed MacLotsen closed 2 weeks ago

MacLotsen commented 2 months ago

If having an alternative output directory, the tex_engine logfile search will fail. Using kpse.find_file solves the matter, honoring the TEXMFOUTPUT variable.

Don't know if kpse is available in every situation though. Solves #6

MacLotsen commented 2 months ago

Maybe it's also wise to return a {} instead of nil, when the log file can't be opened, since it's giving an error in the __index method.

jperon commented 2 weeks ago

@MacLotsen Sorry, I was away from keyboard when this PR was submitted, and didn’t see it! Would you mind adding the change you suggest, please? I mean return {} instead of return.

Many thanks!