TransWikia.com

Can ConTeXt do what luaTeX does?

TeX - LaTeX Asked on July 15, 2021

I am aware that ConTeXt is a macro package whereas luaTeX is an engine. As far as I know, luaTeX is a plain TeX + Lua as an embedded scripting language. Furthermore, ConTeXt can use Lua.

My question is where are the differences? In other words, what are some situations in which one overcomes the other (i.e. advantages and disadvantages)?

2 Answers

Contrary to what Gaussler says, from circa 2018 there's a new format called ConTeXt LMTX (Lua, Metapost, TeX, XML) using a new engine called LuaMetaTeX. I'll try to summarize some advantages and disadvantages wrt aspects I'm familiar with. Also, by simplicity I list both ConTeXt (format) and LuaMetaTeX (engine) features.

EDIT: Gaussler is right wrt average users. ConTeXt MkIV and LuaTeX (be OpTeX, LaTeX, Plain, etc.) should be capable (theoretically) of doing essentially the same things. It's only when you need more tuning or features that differences become clear.

Advantages

Disadvantages

  • Compiled libraries (.so/.dll) aren't supported by default. This is because LuaMetaTeX doesn't fully support them and you have to include your own Lua libraries. Also, and unlike ConTeXt with LuaTeX, you need an additional flag --permitloadlib. According to LuaMetaTeX manual, "the reason for having this as option is the wish for security [...], so this might give an extra feeling of protection": http://www.pragma-ade.com/general/manuals/luametatex.pdf
  • Not really a disadvantage, but a caveat. LuaMetaTeX uses Lua 5.4 which is in active development, so minor differences (and bugs) wrt Lua 5.3 will be there.

Correct answer by Jairo A. del Rio on July 15, 2021

ConTeXt (in its newest version) runs exclusively on LuaTeX. So ConTeXt can do everything LuaTeX can.

Answered by Gaussler on July 15, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP