-
Notifications
You must be signed in to change notification settings - Fork 12
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
Errors with \LTinput #169
Comments
Thanks for these observations. :) The first should be considered as a bug. Some time ago, I was already wondering about the second point. This would be an improvement. |
Contemplating the file recursion problem, I'm wondering about the following. LaTeX macro Do you have an application in mind, where we really should read a file only once? |
I am not sure whether this applies here: Suppose I have a multi file document. Where Otherwise, just catching the error is fine. |
Thanks for this clever case. I assume that you define, e.g., macros in the preamble in main.tex that should be available for the filter when processing chapter1.tex.
Macros
OK, then I will change it this way. Thanks for the feedback! |
Addresses issue #169 (recursion problem)
Playing a bit around with
\LTinput
I noticed two things.If one has two files, which use
\LTinput
to read each other, then aRecursionError: maximum recursion depth exceeded while calling a Python object
occurs. As far as I understand, you check to not load packages twice, then maybe loading the same file with\LTinput
twice should be prevented.When you use
\LTinput
to read a file and this loaded file yields an error, e.g.from another
\LTinput
, then the given position is the correct position in the loaded file. But we do not know which file this is. It would be nice if that could be added to the error message.The text was updated successfully, but these errors were encountered: