Last active
April 23, 2018 11:06
-
-
Save hmenke/5a78f123644b42c6e83d5137c8263d75 to your computer and use it in GitHub Desktop.
Absolutely minimal boilerplate for a luacode environment
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
\protected\def\startluacode | |
{\begingroup | |
\catcode`\^^M=12 | |
\catcode`\%=12 | |
\catcode`\#=12 | |
\startluacodeindeed} | |
\def\startluacodeindeed#1\stopluacode | |
{\expanded{\noexpand\endgroup\directlua{#1}}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment