22 Jan
2017
22 Jan
'17
7:35 p.m.
I'm customizing a pretty printer and referencing the buff-imp-lua.lua and buff-imp-lua.mkiv files. I'd like to add a conditional to the .lua file say buff-imp-custom.lua. What is a good way to pass an option from my .tex file to conditionally format with the pretty printer? I'd like to use the same buff-imp-custom.lua and .mkiv pairs of files instead of creating multiple files. The .mkiv file defines e.g.: \definetyping [CUSTOM1] [\c!option=custom] I'd like to add say CUSTOM2 but pass an option that would be visible to the same buff-imp-custom.lua file. Perhaps something like this?: \definetyping [CUSTOM2] [\c!option=custom,