summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/luatex/luaintro/01-02-8.lualtx3
blob: ce559d858d2fe3aff64b66791ab3e84ef5c3ed35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
%% 
%%  Ein Beispiel der DANTE-Edition
%%  
%%  1. Auflage
%% 
%% 
%%  Copyright (C) 2014 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{\latelua{pdf.print("page", "q\string\n")}}
\def\pdfrestore{\latelua{pdf.print("page", "Q\string\n")}}
\def\pdflocal#1#2{\begingroup%
  \ifnum\currentgrouplevel=\gstatelevel
  \else
    \gstatelevel=\currentgrouplevel \pdfsave \aftergroup\pdfrestore
  \fi
  \latelua{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