summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/luatex/luaintro/01-02-18.lualtx3
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/luatex/luaintro/01-02-18.lualtx3')
-rw-r--r--Master/texmf-dist/doc/luatex/luaintro/01-02-18.lualtx345
1 files changed, 45 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-02-18.lualtx3 b/Master/texmf-dist/doc/luatex/luaintro/01-02-18.lualtx3
new file mode 100644
index 00000000000..9c28a97c2b9
--- /dev/null
+++ b/Master/texmf-dist/doc/luatex/luaintro/01-02-18.lualtx3
@@ -0,0 +1,45 @@
+%%
+%% Ein Beispiel der DANTE-Edition
+%%
+%% 1. Auflage
+%%
+%% Beispiel 01-02-18 auf Seite 17.
+%%
+%% Copyright (C) 2013 Herbert Voss
+%%
+%% It may be distributed and/or modified under the conditions
+%% of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%%
+%% See http://www.latex-project.org/lppl.txt for details.
+%%
+%%
+%% ====
+\nopagenumbers\tt
+%StartShownPreambleCommands
+\begingroup
+\initcatcodetable1
+\catcode`\%=12 \catcode`\#=12 \catcode`\_=12 \catcode`\^=12
+\catcode`\&=12 \catcode`\|=12 \catcode`\{=12 \catcode`\}=12
+\catcode`\~=12 \catcode`\$=12
+\savecatcodetable1
+\endgroup
+ \def\obeylualines{\obeylines\obeyspaces}
+ \def\obeyluatokens{\catcodetable1
+ \def\\{\string\\}\def\|{\string\|}\def\-{\string\-}%
+ \def\({\string\(}\def\){\string\)}\def\{{\string\{}\def\}{\string\}}%
+ \def\'{\string\'}\def\"{\string\"}%
+ \def\n{\string\n}\def\r{\string\r}\def\f{\string\f}\def\t{\string\t}%
+ \def\a{\string\a}\def\b{\string\b}\def\v{\string\v}\def\s{\string\s}%
+ \def\1{\string\1}\def\2{\string\2}\def\3{\string\3}\def\4{\string\4}\def\5{\string\5}%
+ \def\6{\string\6}\def\7{\string\7}\def\8{\string\8}\def\9{\string\9}\def\0{\string\0}}
+\long\def\dodostartluacode#1\stopluacode{\expanded{\endgroup\noexpand\directlua{#1}}}
+\long\def\dostartluacode{\begingroup
+ \obeylualines\obeyluatokens\catcodetable0\dodostartluacode}
+\def\startluacode{\dostartluacode}
+%StopShownPreambleCommands
+\relax
+\startluacode
+tex.print([[$\int f(x)\,dx$]])
+\stopluacode
+\bye