%% Run this file using texmfstart texexec --module test-001.tex
%D \module
%D  [file=test-001.tex,
%D   version=0.1,
%D   title=Module documentation,
%D   subtitle=testing \type{ctxtools --document},
%D   author=Aditya Mahajan,
%D   date=\currentdate]

\unprotect

%D In \CONTEXT\ you can use \type{%D} at the beginning of the lines to
%D document macros. This testfile is to see if different alternatives comes
%D out correctly.

%D \macros{somemacro}
%D One can use \tex{macros} to make get a pretty output for the macro name
\def\somemacro{%
  \doifelsesomething{something}{soemthingelse}{ifpart}{elsepart}
  }

%D \macros{someothermacro}
%D Hans like the spacy look, so \CONTEXT's internal files use a blank line
%D after the \type{%D}s

\def\someothermacro{%
  Hello World}

%D Sometimes you just add some explaination, without specifying the macro

\def\command{%
  Print a command}

%D You may or may not leave space after the explaination
\def\command{%
  Print something else}

%D Keep in mind that \type{%D} is just a simple post||processing of the tex
%D file, so do not expect it to understand the context. It can not distinguish
%D between

\def\macro!one{%
  Do something
%D Some explaination inside the macro
  and keep doing something}

%D and the next definition

\def\macro!two{%
  Do something}
%D Explaination outside the macro
\def\macro!three{%
  Some more stuff}

\protect
