Command/startctxfunction
< Command
Jump to navigation
Jump to search
Contents
\startctxfunction ... \stopctxfunction
Summary
The environment \startctxfunction ... \stopctxfunction defines a lua function from within TeX code.
Settings
Description
This defines a lua function without arguments that can be called from TeX using the \ctxfunction macro. The defined function has no arguments.
Examples
Example 1
\startctxfunction foo context('hello') \stopctxfunction \ctxfunction{foo}