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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

tomaz opened this issue · comments

commented

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.

commented

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