Command/startctxfunction

From Wiki
< Command
Revision as of 14:57, 27 August 2020 by Taco (talk | contribs) (Created page with "Documentation for \startctxfunction ... \stopctxfunction")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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: