Open main menu

Changes

32 bytes removed ,  16:57, 8 June 2020
m
no edit summary
If you ever dreamed of proper typesetting without backslashes galore, here is where to start at.
== Basic reading ==
* [http://www.pragma-ade.com/general/manuals/cld-mkiv.pdf The CLD manual] by Hans Hagen.
* {{src|cldf-ini.lua}}: the entry point for the '''cldf-*''' files that contain the CLD implementation.
== An Example ==
Writing CLDs is straightforward although there are some pitfalls.
Suppose we want to typeset the following minimal example:
Mandatory (grouped) arguments are given either as strings or as functions.
=== Nesting 1: Functions ===
The following example shows two ways of rewriting the above TeX code: the first one closely resembles its structure while the second calls the function <code>test</code> from inside the <code>placefigure</code> macro.
</pre>
=== Nesting 2: Delayed ===
An alternative to the function encapsulation is provided by
</pre>
 [[Category:Lua]][[Category:LuaTeX]][[Category:Programmingand Databases]]