Command/startctxfunctiondefinition

From Wiki
Jump to navigation Jump to search


\startctxfunctiondefinition ... \stopctxfunctiondefinition

Summary

The environment \startctxfunctiondefinition ... \stopctxfunctiondefinition defines a macro that is a lua function without arguments.

Settings

\startctxfunctiondefinition ... ... \stopctxfunctiondefinition
... name

Description

This defines a TeX macro without arguments that when expanded runs a block of lua code instead of executing TeX commands.

Examples

Example 1

\startctxfunctiondefinition foo
  context('hello world')
\stopctxfunctiondefinition

\foo

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: