summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/luatex/luaintro/01-02-7.sh
blob: 67e0ff1342f4cdc0afa6b229b0f74831212062c8 (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
#!/bin/sh
#
# Ein Beispiel der DANTE-Edition
#
#
# 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.
#
#
#CODEbegin
TeXfile=`basename $0 .sh`
cat << _EndOfFile_ > $TeXfile.tex
1 .Zeile\par
\directlua name{\jobname: \the\inputlineno}{
  a=3
  b=4
  c="c"
  tex.sprint(a^2+b^2 .. "=" .. c^2)}\par
2. Zeile
\bye
_EndOfFile_

luatex --interaction=batchmode $TeXfile
grep -A4 error $TeXfile.log >$TeXfile.txt
#CODEend