tomaz / zx-next-dev-guide

Guide for ZX Spectrum Next assembler developer. Available as free to download PDF from releases page, or printed coil bound book at https://bit.ly/zx-next-assembler-dev-guide
Other
141 stars 10 forks source link

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

Closed tomaz closed 2 years ago

tomaz commented 2 years ago

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 commented 2 years ago

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...