olsak / OpTeX

OpTeX - LuaTeX format with extended Plain TeX macros
http://petr.olsak.net/optex/
33 stars 14 forks source link

Adding `\pgforeground` to the output routine #163

Closed Udi-Fogiel closed 5 months ago

Udi-Fogiel commented 5 months ago

would it make sense to add a \pgforeground token list so that it would be possible to add material to the foreground of the page? I needed that for one of my document, and thought maybe others would like that feature as well.

olsak commented 5 months ago

I implement \pgforeground as OpTeX trick, see my commit. The reason is that there is no simple and conceptual solution and we want to have simple output routine. Next level would be layers implemented in output routine, but it is another story. I want to keep the output routine simple. Maybe I will add a few examples of other output routines.

Udi-Fogiel commented 5 months ago

I implement \pgforeground as OpTeX trick, see my commit.

Thanks!

The reason is that there is no simple and conceptual solution and we want to have simple output routine.

That is probably the correct choice.