4

I'm a big fan of custom LaTeX formats built with mylatexformat. So far, pdftex has been my default engine. I'm now going to use luatex as my default engine so I'd like to adapt my format customization workflow to luatex particularities.

What kind of packages/macros can I dump in my custom format for luatex?

  • 2
    you can not dump lua state or opentype fonts so you need to avoid any luatex-specific setup: more trouble than it's worth, probably:-) – David Carlisle Aug 12 '16 at 16:25
  • 1
    @DavidCarlisle Indeed. Hard to guess that e.g. pdftexcmds has a lua module without looking at the code. So no polyglossia, no fontspec, no tikz, no pgfplots, etc. That's really bad... – cjorssen Aug 12 '16 at 16:35
  • 1
    if it really mattered you could define things to catch the lua parts and load in \everyjob (as the latex format itself loads the luatexbase code in \everyjob) but really it's not a lot slower loading from a file than from a format so in most cases the benefits are probably not worth the complication – David Carlisle Aug 12 '16 at 18:12
  • 1
    no real generic way as if you load the tex into the format but delay the lua parts until everyjob, the relative order of execution is different and it may or may not need adjustment to the code in each case. – David Carlisle Aug 12 '16 at 18:19
  • 1
    @cjorssen, meanwhile, did you figure a way to achieve this? – bonanza Nov 2 '18 at 9:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.