Created
June 25, 2017 12:18
-
-
Save benzea/bd9aa91f827943f886ec51a2d2520c28 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\def\logpos#1{\lognamedpos{#1}#1} | |
\def\lognamedpos#1{\pdfsavepos\write128{POSITION #1: \the\pdflastxpos,\the\pdflastypos}} | |
\newenvironment{MYTEST}[1]{% | |
\begingroup% | |
\global\advance \gTESTint 1 % | |
\SEPARATOR% | |
\LONGTYPEOUT{% | |
TEST \the\gTESTint: \detokenize{#1}}% | |
\SEPARATOR% | |
}{% | |
\SEPARATOR% | |
\LONGTYPEOUT{}% | |
\endgroup% | |
} | |
\newenvironment{OMITPAGE}{% | |
\begingroup% | |
\OMIT% | |
}{% | |
\vfil\break% | |
\TIMO% | |
\endgroup% | |
} | |
\newenvironment{MYTESTPAGE}[1]{% | |
\begin{MYTEST}{#1}% | |
}{% | |
\vfil\break% | |
\end{MYTEST}% | |
} | |
\newenvironment{MYTESTPAGESHOW}[1]{% | |
\begin{MYTESTPAGE}{#1}% | |
\showoutput% | |
}{% | |
\end{MYTESTPAGE}% | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment