Command/startctxfunction

From Wiki
Jump to navigation Jump to search


\startctxfunction ... \stopctxfunction

Summary

The environment \startctxfunction ... \stopctxfunction defines a lua function from within TeX code.

Settings

\startctxfunction ... ... \stopctxfunction
... name

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}

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: