summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/luatex/luaintro/01-02-9.lualtx3
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/luatex/luaintro/01-02-9.lualtx3')
-rw-r--r--Master/texmf-dist/doc/luatex/luaintro/01-02-9.lualtx332
1 files changed, 32 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-02-9.lualtx3 b/Master/texmf-dist/doc/luatex/luaintro/01-02-9.lualtx3
new file mode 100644
index 00000000000..a5a3903b5f9
--- /dev/null
+++ b/Master/texmf-dist/doc/luatex/luaintro/01-02-9.lualtx3
@@ -0,0 +1,32 @@
+%%
+%% Ein Beispiel der DANTE-Edition
+%%
+%% 1. Auflage
+%%
+%% Beispiel 01-02-9 auf Seite 12.
+%%
+%% 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
+%StartShownPreambleCommands
+\pdfcompresslevel=0\newcount\gstatelevel
+\def\pdfsave{\directlua{pdf.print("page", "q\string\n")}}
+\def\pdfrestore{\directlua{pdf.print("page", "Q\string\n")}}
+\def\pdflocal#1#2{\begingroup%
+ \ifnum\currentgrouplevel=\gstatelevel
+ \else
+ \gstatelevel=\currentgrouplevel \pdfsave \aftergroup\pdfrestore
+ \fi
+ \directlua{pdf.print"#1\string\n"}#2\endgroup}
+%StopShownPreambleCommands
+\relax
+\bf\pdflocal{0.5 g}{Dies ist \pdflocal{0.6 g}{\it Grau}} und dies Schwarz!
+\bye