Skip to content
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

Compiling issue for \include with extensions on non-MixTeX #20

Closed
tomaz opened this issue Jan 17, 2022 · 1 comment
Closed

Compiling issue for \include with extensions on non-MixTeX #20

tomaz opened this issue Jan 17, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@tomaz
Copy link
Owner

tomaz commented Jan 17, 2022

Reported to email:

I checked out the last GIT version and when passing it through LaTeX (both texlive latex and pdflatex), I got "file not found" errors for the \include tex files. LaTeX is looking for .tex.tex files and removing the extension in the \include fixes the problem.

Looks like unlike \input the extension is added by LaTeX by the \include command.

Check if \include works without .tex on MikTeX, if so, then simply removing extensions is the solution. Otherwise look if it's possible to detect the TeX variant during compilation and use conditionals.

tomaz added a commit that referenced this issue Feb 14, 2022
…nds #20

Some LaTeX variants add the extension internally, so it ends up doubles (`*.tex.tex`) and then they fail to find the file. MikTEX works with both variants, so this seems like better way.
@tomaz tomaz added enhancement New feature or request and removed more-info-needed labels Feb 14, 2022
@tomaz
Copy link
Owner Author

tomaz commented Feb 14, 2022

Removed all extensions from both \include{} and \input{}, MikTEX is smart enough to handle both cases, so this seems like a better approach. Though it may happen some LaTeX variants will fail without extensions. Let's see...

@tomaz tomaz closed this as completed Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant