lib-tex icon indicating copy to clipboard operation
lib-tex copied to clipboard

Support for XeLaTeX

Open kyuilisworking opened this issue 4 years ago • 1 comments

Is there a plan to support XeTeX / XeLaTeX in the future as well? I'd also like to help out - if there is some documentation on how other projects are structured in general (for pdftex and luatex), that would help me get started.

kyuilisworking avatar Apr 25 '21 18:04 kyuilisworking

As for the how to do it, it’s relatively simple: cross compile to an arm64 binary (using cross-compiling tools), add dependency to ios_system for input, output and file system communication, and make sure memory is released when the command leaves.

For XeTeX, the problem is in the first step: it has a strong dependency on frameworks and libraries that are specific to OS X, and so it cannot be cross-compiled for arm64. Luatex code is much better for cross-compiling.

To the best of my knowledge, luatex abilities are a superset of those of XeTeX (anything XeTeX can do, luatex can also do), so there is little to be gained by adding XeTeX.

holzschu avatar Apr 25 '21 19:04 holzschu