summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/luatex/luaintro/09-03-1.lualtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/luatex/luaintro/09-03-1.lualtx')
-rw-r--r--Master/texmf-dist/doc/luatex/luaintro/09-03-1.lualtx7
1 files changed, 3 insertions, 4 deletions
diff --git a/Master/texmf-dist/doc/luatex/luaintro/09-03-1.lualtx b/Master/texmf-dist/doc/luatex/luaintro/09-03-1.lualtx
index f7e1b080fff..785ca2a4613 100644
--- a/Master/texmf-dist/doc/luatex/luaintro/09-03-1.lualtx
+++ b/Master/texmf-dist/doc/luatex/luaintro/09-03-1.lualtx
@@ -3,7 +3,6 @@
%%
%% 1. Auflage
%%
-%% Beispiel 09-03-1 auf Seite 166.
%%
%% Copyright (C) 2012 Herbert Voss
%%
@@ -26,7 +25,7 @@
\usepackage{luacode}
%StopShownPreambleCommands
\begin{document}
-\directlua{
+\bgroup\catcode`\%=12 \directlua{
CumCDP_2012 = 1.00E-6
ICumCDP_WIP_2012 = 2.00E-7
ICumCDP_R = 1.00E-7
@@ -34,6 +33,6 @@ ICumCDP = ICumCDP_WIP_2012 + ICumCDP_R}
\begin{tabular}{cr}
Summe: & \directlua{tex.sprint(ICumCDP)}\\
-Summe: & \luaexec{tex.sprint(string.format("\%e", 51.2))}
-\end{tabular}
+Summe: & \luaexec{tex.sprint(string.format("%e", 51.2))}
+\end{tabular} \egroup
\end{document}