1. Example of source file
\documentstyle{book} \input ProTex.sty \AlProTex{c,<<<>>>,title,list,`} \begin{document} \<body\><<< printf("\n ``hello everybody``"); >>> \<prog A\><<< `<include`> main() { `<body`> } >>> \<include\><<< #include <stdio.h> >>> \<body\><<< printf("\n"); >>> \OutputCode\<prog A\> \end{document}
2. Corresponding document
printf("\n `hello everybody`");
-_-_-
<.include.> main() { <.body.> } -_-_-
#include <stdio.h>
-_-_-
printf("\n");
-_-_-3. Corresponding code
#include <stdio.h> main() { printf("\n `hello everybody`"); printf("\n"); }