Changes

Jump to navigation Jump to search
m
Explanation of the paperSize variable used in lua
* math https://www.w3.org/TR/jlreq/#fig2_7_6 and https://www.w3.org/TR/jlreq/#fig2_7_62
* tategaki (writing vertically)
 
When you read the lua code in the first <code>\directlua{}</code>, you should realize that the dimensions of almost all layout elements are depending on the value of my lua variable "paperSize".
Thanks to defining the paper size first in lua, I can apply calculations of numeric values.
 
The value of paperSize is later passed on to <code>\setuppapersize</code> via <code>\setuppapersize[\directlua{tex.print(paperSize)}]</code>
 
<texcode>
%Visual Debugging, to be commented out later:
12

edits

Navigation menu