Skip to content

alias ProcessOutputBufferCallback


(alias) ProcessOutputBufferCallback = fun(buffer: string) -> string?

Modify the encoding of the output buffer.

This callback allows you to change the contents of the line output buffer just before LuaTeX actually starts writing it to a file as the result of a write command. It is only called for output to an actual file (that is, excluding the log, the terminal, and so called write 18 calls).

If you return nil, LuaTeX will pretend like your callback never happened. You can gain a small amount of processing time from that. This callback does not replace any internal code.

😱 Types incomplete or incorrect? 🙏 Please contribute!