\continueifinputfile{...} |
{...} |
filename |
Description
- If this file is being processed because it was included in another file, stop.
- If ConTeXt was invoked on this file specifically, continue.
- Commonly used to place a test/example section at the end of a module file.
Example
\define\mycommand#1
{\tex{mycommand} turns your \quote{#1} into something useful.}
\continueifinputfile{mymodule.mkiv}
\starttext
\section{Examples of using \tex{mycommand}}
\section{On the implementation of \tex{mycommand}}
\section{Credits}
\stoptext
See Also
- \jobname simply expands to the name (sans extension) of the file ConTeXt was invoked on.