diff options
author | Karl Berry <karl@freefriends.org> | 2013-02-13 00:06:34 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-02-13 00:06:34 +0000 |
commit | 33b9decf3736250e2c7bc7c110b29116cef82dda (patch) | |
tree | bb7f7257a9b96e51599ca309607995d89ecd82fe | |
parent | fee6ae63b6689ddbae970ff9114c6ed976bf1dab (diff) |
luaintro (12feb13)
git-svn-id: svn://tug.org/texlive/trunk@29093 c570f23f-e606-0410-a88d-b1316a301751
213 files changed, 7680 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-01-1.lua b/Master/texmf-dist/doc/luatex/luaintro/01-01-1.lua new file mode 100644 index 00000000000..40207fa724d --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/01-01-1.lua @@ -0,0 +1,4 @@ +-- ein einfaches Lua-Beispiel +-- Syntax: texlua <datei> +a=3; b=4; c=5 +print("Pythagoras: " .. a^2+b^2 .. "=" .. c^2) diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-02-1.lualtx b/Master/texmf-dist/doc/luatex/luaintro/01-02-1.lualtx new file mode 100644 index 00000000000..88c6e2f39db --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/01-02-1.lualtx @@ -0,0 +1,34 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 01-02-1 auf Seite 8. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{193.16928pt} +\setlength\parindent{0pt} +\usepackage{fontspec} +\begin{document} +\directlua{ + global = 1 -- global definiert + local lokal = 2 -- lokal definiert} +Die Variable \texttt{global} ist vom +Typ »\directlua{tex.print(type(global))}« +und \texttt{local} vom Typ +\directlua{tex.print(type(lokal))}. +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-02-10.ltx2 b/Master/texmf-dist/doc/luatex/luaintro/01-02-10.ltx2 new file mode 100644 index 00000000000..37e61bba38c --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/01-02-10.ltx2 @@ -0,0 +1,46 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 01-02-10 auf Seite 13. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[a5paper]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{176.40707pt} +\usepackage[margin=5mm,a6paper]{geometry} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\def\flip#1{\pdfliteral{q -1 0 0 -1 20 6 cm}% + \hbox to0pt{#1\hss}\pdfliteral{Q}% + \hbox to20bp{\hss}} +\def\red#1{\pdfliteral page{q 0 1 1 0 k}#1% + \pdfliteral page{Q}} +%StopShownPreambleCommands +\begin{document} +\Large\sloppy +The first macro applies a transformation to a +\flip{text} object, the second applies a +color (\red{red online}, \red{gray in print}). +If used separately, they work just fine. +If used as \verb|\flip{\red{text}}|, it's +still ok: \flip{\red{text}}. Now try to say +\verb|\red{\flip{text}}|: \red{\flip{text}}. +The text is transformed and colored as +expected. But all the rest of the page is +broken, as its content is completely +displaced! +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-02-11.ltx2 b/Master/texmf-dist/doc/luatex/luaintro/01-02-11.ltx2 new file mode 100644 index 00000000000..f9ce6d18111 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/01-02-11.ltx2 @@ -0,0 +1,46 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 01-02-11 auf Seite 13. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[a5paper]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{176.40707pt} +\usepackage[margin=5mm,a6paper]{geometry} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\def\flip#1{\pdfliteral{q -1 0 0 -1 20 6 cm}% + \hbox to0pt{#1\hss}\pdfliteral{Q}% + \hbox to20bp{\hss}} +\def\red#1{\pdfliteral page{q 0 1 1 0 k}#1% + \pdfliteral page{Q}} +%StopShownPreambleCommands +\begin{document} +\Large\sloppy +The first macro applies a transformation to a +\flip{text} object, the second applies a +color (\red{red online}, \red{gray in print}). +If used separately, they work just fine. +If used as \verb|\flip{\red{text}}|, it's +still ok: \flip{\red{text}}. Now try to say +\verb|\red{\flip{text}?}|: \red{\flip{text}?}. +The text is transformed and colored as +expected. But all the rest of the page is +now ok, as its content is completely +correct placed! +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-02-12.lualtx b/Master/texmf-dist/doc/luatex/luaintro/01-02-12.lualtx new file mode 100644 index 00000000000..060002692a4 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/01-02-12.lualtx @@ -0,0 +1,45 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 01-02-12 auf Seite 14. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +%\usepackage[margin=5mm,a6paper]{geometry} +\setlength\parindent{0pt}\sloppy +%StartShownPreambleCommands +\directlua{tex.enableprimitives("",tex.extraprimitives('luatex'))}% \latelua{} +\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} +\def\flip#1{\pdflocal{-1 0 0 -1 20 6 cm}{\hbox to0pt{#1\hss}}% + \hbox to20bp{\hss}} +\def\red#1{\pdflocal{0 1 1 0 k}{#1}} +%StopShownPreambleCommands +\begin{document} +The first macro applies a transformation to a \flip{text} object, the second +applies a color (\red{red online}, \red{gray in print}). If used separately, +they work just fine. If used as \verb|\flip{\red{text}}|, it's still ok: +\flip{\red{text}}. Now try to say \verb|\red{\flip{text}}|: \red{\flip{text}}. +The text is transformed and colored as expected. But all the rest of the page +is broken, as its content is completely displaced! +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-02-13.lualtx3 b/Master/texmf-dist/doc/luatex/luaintro/01-02-13.lualtx3 new file mode 100644 index 00000000000..8d4e52fb85d --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/01-02-13.lualtx3 @@ -0,0 +1,27 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 01-02-13 auf Seite 14. +%% +%% 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 + +%StopShownPreambleCommands +\relax +\directlua{% + tex.print("$\string\\sin^2\string\\alpha+\string\\cos^2\string\\beta=1$")} +\directlua{% + tex.print("\luaescapestring{$\noexpand\sin^2\alpha+\noexpand\cos^2\beta=1$}")} +\bye diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-02-14.lualtx3 b/Master/texmf-dist/doc/luatex/luaintro/01-02-14.lualtx3 new file mode 100644 index 00000000000..957dcce51f9 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/01-02-14.lualtx3 @@ -0,0 +1,27 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 01-02-14 auf Seite 15. +%% +%% 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 + +%StopShownPreambleCommands +\relax +\def\A{3}\def\B{4} +\directlua{local A=\A; B=\B; + tex.print("$a^2+b^2$= ",(A^2+B^2))}\par +\csname\directlua{tex.print("TeX")}\endcsname +\bye diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-02-15.lualtx3 b/Master/texmf-dist/doc/luatex/luaintro/01-02-15.lualtx3 new file mode 100644 index 00000000000..c7fc2165885 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/01-02-15.lualtx3 @@ -0,0 +1,37 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 01-02-15 auf Seite 16. +%% +%% 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 +\def\lua{% + \bgroup + \catcode`\{=12 \catcode`\}=12 \catcode`\^^M=12 \catcode`\#=12 \catcode`\~=12 + \catcode`\%=12 \luacode} +\bgroup +\catcode`\^^M=12 % lokal halten +\long\gdef\luacode#1^^M#2\endlua{\directlua{#2}\egroup}% +\egroup +%StopShownPreambleCommands +\relax +\lua + local A=3.001 Sim="~" + local B=4 No="#" + local L="{" R="}" + tex.print("$a^2+b^2$"..Sim..(A^2+B^2)..L.."Pythagoras"..R..No,Sim) +\endlua\par +Ende +\bye diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-02-16.lualtx3 b/Master/texmf-dist/doc/luatex/luaintro/01-02-16.lualtx3 new file mode 100644 index 00000000000..4095a7da586 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/01-02-16.lualtx3 @@ -0,0 +1,31 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 01-02-16 auf Seite 16. +%% +%% 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 + +%StopShownPreambleCommands +\relax +\def\Pyth{Pythagoras} +\directlua{ + local P="\Pyth"; + local A=3.001; + local Sim="\approx"; + local B=4; + tex.print("$a^2+b^2"..Sim.."$"..(A^2+B^2)..P)} + \char007 $\char007$ +\bye diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-02-17.lualtx3 b/Master/texmf-dist/doc/luatex/luaintro/01-02-17.lualtx3 new file mode 100644 index 00000000000..f56047a0056 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/01-02-17.lualtx3 @@ -0,0 +1,25 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 01-02-17 auf Seite 16. +%% +%% 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 + +%StopShownPreambleCommands +\relax +\directlua{tex.print("$\string\\alpha$")} +\directlua{tex.print("\luaescapestring{$\noexpand\beta$}")} +\bye 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 diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-02-19.lualtx b/Master/texmf-dist/doc/luatex/luaintro/01-02-19.lualtx new file mode 100644 index 00000000000..38efa816630 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/01-02-19.lualtx @@ -0,0 +1,34 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 01-02-19 auf Seite 18. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{193.16928pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\edef\SetzeZaehlerA{\count1=11} +\def\SetzeZaehlerB{\count1=12} +%StopShownPreambleCommands +\begin{document} +\meaning\SetzeZaehlerA\par +\meaning\SetzeZaehlerB\par +Wert: \the\count1\par +\SetzeZaehlerB Wert: \the\count1 +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-02-2.lualtx b/Master/texmf-dist/doc/luatex/luaintro/01-02-2.lualtx new file mode 100644 index 00000000000..f123fb23d93 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/01-02-2.lualtx @@ -0,0 +1,36 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 01-02-2 auf Seite 8. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{193.16928pt} +\setlength\parindent{0pt} +\usepackage{fontspec} +\begin{document} +\begingroup +\directlua{ + global = 1 -- global definiert + local lokal = 2 -- lokal definiert} +\endgroup +Die Variable \texttt{global} ist vom +Typ »\directlua{tex.print(type(global))}« +und \texttt{local} vom Typ +\directlua{tex.print(type(lokal))}. +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-02-20.lualtx b/Master/texmf-dist/doc/luatex/luaintro/01-02-20.lualtx new file mode 100644 index 00000000000..17778e9bca0 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/01-02-20.lualtx @@ -0,0 +1,34 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 01-02-20 auf Seite 18. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{169.16928pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\edef\SetzeZaehlerA{\directlua{tex.count[1]=11}} +\def\SetzeZaehlerB{\directlua{tex.count[1]=12}} +%StopShownPreambleCommands +\begin{document} +\meaning\SetzeZaehlerA\par +\meaning\SetzeZaehlerB\par +Wert: \the\count1\par +\SetzeZaehlerB Wert: \the\count1 +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-02-21.lualtx b/Master/texmf-dist/doc/luatex/luaintro/01-02-21.lualtx new file mode 100644 index 00000000000..381bc9eebda --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/01-02-21.lualtx @@ -0,0 +1,38 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 01-02-21 auf Seite 19. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\begin{document} +\ttfamily\footnotesize\begin{tabular}{@{} l l | l l@{}} +\multicolumn{4}{c}{\rmfamily Ausgabe der Tabelle tex}\\\hline +\emph{k} & \emph{v} & \emph{k} & \emph{v}\\\hline +\directlua{i=0; for k,v in pairs(tex) do i=i+1; + tex.print(k.." & "..tostring(v)) + if i<2 then + tex.print(" & ") + else + tex.print("\string\\tabularnewline") + i=0 + end +end}\\\hline +\end{tabular} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-02-22.lualtx b/Master/texmf-dist/doc/luatex/luaintro/01-02-22.lualtx new file mode 100644 index 00000000000..782751ab13b --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/01-02-22.lualtx @@ -0,0 +1,38 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 01-02-22 auf Seite 20. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\begin{document} +\ttfamily\footnotesize\begin{tabular}{@{} l l | l l@{}} +\multicolumn{4}{c}{\rmfamily Ausgabe der Tabelle lua}\\\hline +\emph{k} & \emph{v} & \emph{k} & \emph{v}\\\hline +\directlua{i=0; for k,v in pairs(lua) do i=i+1; + tex.print(k.." & "..tostring(v)) + if i<2 then + tex.print(" & ") + else + tex.print("\string\\tabularnewline") + i=0 + end +end}\\\hline +\end{tabular} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-02-3.lualtx b/Master/texmf-dist/doc/luatex/luaintro/01-02-3.lualtx new file mode 100644 index 00000000000..d534e0536d9 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/01-02-3.lualtx @@ -0,0 +1,31 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 01-02-3 auf Seite 9. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{193.16928pt} +\setlength\parindent{0pt} +\usepackage{fontspec} +\begin{document} +\directlua{% + tex.print("Wer A sagt, ") + -- es kommt noch Text + tex.print("muss auch B sagen")} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-02-4.lualtx b/Master/texmf-dist/doc/luatex/luaintro/01-02-4.lualtx new file mode 100644 index 00000000000..ab8713eb2ea --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/01-02-4.lualtx @@ -0,0 +1,31 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 01-02-4 auf Seite 9. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{193.16928pt} +\setlength\parindent{0pt} +\usepackage{fontspec} +\begin{document} +\directlua{% + tex.print("Wer A sagt, ") + % es kommt noch Text + tex.print("muss auch B sagen")} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-02-5.lualtx b/Master/texmf-dist/doc/luatex/luaintro/01-02-5.lualtx new file mode 100644 index 00000000000..af6c16ceb07 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/01-02-5.lualtx @@ -0,0 +1,43 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 01-02-5 auf Seite 10. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\newwrite\luadebug +\newsavebox\debugbox +\sbox\debugbox{\footnotesize\ttfamily\InputIfFileExists{export.lua}{}} +\immediate\openout\luadebug export.lua +\AtEndDocument{\immediate\closeout\luadebug} +\newcommand*\directluadebug{\immediate\write\luadebug} +%StopShownPreambleCommands +\begin{document} +\directluadebug{% + tex.print("Wer A sagt, ") + -- es kommt noch Text + tex.print("muss auch B sagen")} +\usebox\debugbox\par % Ausgabe des Dateiinhalts +\directlua{% Ausgabe des exandierten Arguments + tex.print("Wer A sagt, ") + -- es kommt noch Text + tex.print("muss auch B sagen")} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-02-6.lualtx b/Master/texmf-dist/doc/luatex/luaintro/01-02-6.lualtx new file mode 100644 index 00000000000..a7af1b25357 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/01-02-6.lualtx @@ -0,0 +1,34 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 01-02-6 auf Seite 10. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{193.16928pt} +\setlength\parindent{0pt} +\usepackage{fontspec} +\begin{document} +\begingroup +\endlinechar=10 +\directlua{% + tex.print("Wer A sagt,\string~") + -- es kommt noch Text + tex.print("muss auch B sagen")} +\endgroup +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-02-7.sh b/Master/texmf-dist/doc/luatex/luaintro/01-02-7.sh new file mode 100644 index 00000000000..43e121d90aa --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/01-02-7.sh @@ -0,0 +1,31 @@ +#!/bin/sh +# +# Ein Beispiel der DANTE-Edition +# +## Beispiel 01-02-7 auf Seite 10. +# +# 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. +# +# +#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 diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-02-8.lualtx3 b/Master/texmf-dist/doc/luatex/luaintro/01-02-8.lualtx3 new file mode 100644 index 00000000000..d30ce0964e6 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/01-02-8.lualtx3 @@ -0,0 +1,32 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 01-02-8 auf Seite 11. +%% +%% 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{\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 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 diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-03-1.lualtx3 b/Master/texmf-dist/doc/luatex/luaintro/01-03-1.lualtx3 new file mode 100644 index 00000000000..7f2fbf2e18d --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/01-03-1.lualtx3 @@ -0,0 +1,28 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 01-03-1 auf Seite 20. +%% +%% 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\hsize=6cm\parindent=0pt +%StartShownPreambleCommands +\bgroup\initcatcodetable1 +\catcode`\_=12 \catcode`\^=12 +\savecatcodetable1\egroup +%StopShownPreambleCommands +\relax +Im Textmodus sind die Zeichen {\tt +\directlua{tex.print(1,"_ und ^")}} +nicht erlaubt! +\bye diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-03-2.lualtx3 b/Master/texmf-dist/doc/luatex/luaintro/01-03-2.lualtx3 new file mode 100644 index 00000000000..94a117e040d --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/01-03-2.lualtx3 @@ -0,0 +1,26 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 01-03-2 auf Seite 20. +%% +%% 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\hsize=4.5cm\parindent=0pt +%StartShownPreambleCommands + +%StopShownPreambleCommands +\relax +Die folgenden Zeichen m\"ussen ,,escaped`` +werden: \tt\directlua{tex.print(-2, + "_ ^ $ \% { } \string~ \# & \string\\")} +\bye diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-03-3.lualtx3 b/Master/texmf-dist/doc/luatex/luaintro/01-03-3.lualtx3 new file mode 100644 index 00000000000..3e517a9d80a --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/01-03-3.lualtx3 @@ -0,0 +1,24 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 01-03-3 auf Seite 21. +%% +%% 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 + +%StopShownPreambleCommands +\relax +\directlua{tex.print({"a","und","b"})} +\bye diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-03-4.lualtx3 b/Master/texmf-dist/doc/luatex/luaintro/01-03-4.lualtx3 new file mode 100644 index 00000000000..b47c5dea80c --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/01-03-4.lualtx3 @@ -0,0 +1,24 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 01-03-4 auf Seite 21. +%% +%% 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 + +%StopShownPreambleCommands +\relax +\directlua{tex.sprint({"a","und","b"})} +\bye diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-03-5.lualtx3 b/Master/texmf-dist/doc/luatex/luaintro/01-03-5.lualtx3 new file mode 100644 index 00000000000..5a4c26bddf7 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/01-03-5.lualtx3 @@ -0,0 +1,24 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 01-03-5 auf Seite 21. +%% +%% 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 + +%StopShownPreambleCommands +\relax +\directlua{tex.sprint({"a ","und ","b"})} +\bye diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-03-6.lualtx3 b/Master/texmf-dist/doc/luatex/luaintro/01-03-6.lualtx3 new file mode 100644 index 00000000000..e43fd0ac060 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/01-03-6.lualtx3 @@ -0,0 +1,29 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 01-03-6 auf Seite 21. +%% +%% 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\parindent=0pt +%StartShownPreambleCommands + +%StopShownPreambleCommands +\relax +\directlua{% + WTage={"Mo","Di","Mi","Do","Fr","Sa","So"} + Zeichen={-2,"_","^","$","\%","{","}", + "\string~","\#","&","\string\\"}} +Sonderzeichen und Wochentage:\par\tt +\directlua{tex.tprint(Zeichen,{" "},WTage)} +\bye diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-04-1.lualtx b/Master/texmf-dist/doc/luatex/luaintro/01-04-1.lualtx new file mode 100644 index 00000000000..9740010e6e2 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/01-04-1.lualtx @@ -0,0 +1,38 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 01-04-1 auf Seite 22. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{luacode} +%StopShownPreambleCommands +\begin{document} +\begin{tabular}{*5l}\hline +\luacode + for i=1,5 do + ixi='$'..i..'^'..(i+1)..'='..i^(i+1)..'$'; + tex.sprint(ixi) + if i<5 then tex.print('&') else tex.print('\\\\\\hline') end + end +\endluacode +\end{tabular} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-04-2.lualtx b/Master/texmf-dist/doc/luatex/luaintro/01-04-2.lualtx new file mode 100644 index 00000000000..b1114336179 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/01-04-2.lualtx @@ -0,0 +1,49 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 01-04-2 auf Seite 23. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{luacode,booktabs} +%StopShownPreambleCommands +\begin{document} +Text vor der Gleitumgebung \ldots + +\begin{table}[!htb] +\caption{Das kleine Einmaleins zum Wiederholen.}\smallskip\centering +\begin{luacode} + tex.print("\\begin{tabular}{@{} *9l @{}}\\toprule") + local num=6 + for i=1,num do + for j=1,num do + ixj='$'..i..'\\cdot'..j..'='..i*j..'$'; + tex.print(ixj) + if(j<num) then tex.sprint('&') else tex.sprint('\\\\') end + end + end + tex.print("\\bottomrule") + tex.print("\\end{tabular}") +\end{luacode} +\end{table} + +Text nach der Gleitumgebung \ldots +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-04-3.lualtx b/Master/texmf-dist/doc/luatex/luaintro/01-04-3.lualtx new file mode 100644 index 00000000000..d39d01fb13e --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/01-04-3.lualtx @@ -0,0 +1,42 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 01-04-3 auf Seite 24. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{luacode} +\begin{luacode*} +function Wertetabelle() + for Grad=0,360,15 do + Rad=math.rad(Grad) + tex.print(string.format('%2d & %1.6f & %1.6f & %1.6f & %3.6g & %3.6f & %3.6f\\\\', + Grad,Rad,math.sin(Rad),math.cos(Rad),math.tan(Rad),math.sinh(Rad),math.cosh(Rad))) + end +end +\end{luacode*} +%StopShownPreambleCommands +\begin{document} +\begin{tabular}{@{} r *6c @{}} +\emph{Grad} & $x$ & $\sin(x)$ &$\cos(x)$ &$\tan(x)$ &$\sinh(x)$ &$\cosh(x)$ \\\hline +\directlua{Wertetabelle()} \hline +\end{tabular} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-04-4.lualtx b/Master/texmf-dist/doc/luatex/luaintro/01-04-4.lualtx new file mode 100644 index 00000000000..745c5c8fb82 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/01-04-4.lualtx @@ -0,0 +1,62 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 01-04-4 auf Seite 25. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{luacode} +\usepackage{libertine} +\begin{luacode*} +function readbuf( buf ) + mybuf = mybuf .. buf .. "\n" +end +function startrecording() + mybuf = "" + luatexbase.add_to_callback('process_input_buffer', readbuf, 'readbuf') +end +function stoprecording() + luatexbase.remove_from_callback('process_input_buffer', 'readbuf') + buf_without_end_log = mybuf:gsub("\\end{recorder}\n","") + print(string.format("Lua: %q", buf_without_end_log)) -- Ausgabe Logfile + luaBuffer=mybuf:gsub("\\end{recorder}","") -- Ausgabe Dokument +end +\end{luacode*} +\newcommand\printBuffer{\directlua{tex.print(string.format(luaBuffer))}} +\newenvironment{recorder} + {\directlua{startrecording()}} + {\directlua{stoprecording()}} +%StopShownPreambleCommands +\begin{document} + +\begin{recorder} + Hallo \TeX-Welt. Dies ist Datei \jobname. +\end{recorder} + +Und jetzt die Ausgabe: \printBuffer\\ +Und nochmal: \printBuffer + +\begin{recorder} + Hallo Lua\TeX-Welt. +\end{recorder} + +Und jetzt die Ausgabe: \printBuffer +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/01-04-5.ctx1crop b/Master/texmf-dist/doc/luatex/luaintro/01-04-5.ctx1crop new file mode 100644 index 00000000000..fd1025580df --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/01-04-5.ctx1crop @@ -0,0 +1,61 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 01-04-5 auf Seite 26. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +\input CTdefault.tex +%StartShownPreambleCommands +\startluacode +local format = string.format +local concat = table.concat +function document.TestBitmap(nx,ny) + nx = math.round(nx/65536) + ny = math.round(ny/65536) + nx = 2 * math.round(nx/2) + ny = 2 * math.round(ny/2) + local r = { } + local dx = 255/nx + local dy = 255/ny + for i=1,ny/2 do + local n = i*dy + local c = { } + for j=1,nx/2 do c[#c+1] = format("%02x",j*dx+n) end + for j=nx/2,1,-1 do c[#c+1] = format("%02x",j*dx+n) end + c = concat(c,"",1,nx) + r[#r+1] = c + end + for i=ny/2,1,-1 do + local n = i*dy + local c = { } + for j=1,nx/2 do c[#c+1] = format("%02x",j*dx+n) end + for j=nx/2,1,-1 do c[#c+1] = format("%02x",j*dx+n) end + c = concat(c,"",1,nx) + r[#r+1] = c + end + r = concat(r,"\r",1,ny) + figures.bitmapimage {data=r,xresolution=nx,yresolution=ny} +end +\stopluacode +%StopShownPreambleCommands +\starttext +\defineoverlay[BitMess][{\scale[width=\dimexpr\overlaywidth+2ex, + height=\dimexpr\overlayheight+2ex]{\ctxlua{% + document.TestBitmap(\number\dimexpr\overlaywidth, + \number\dimexpr\overlayheight)}}}] +\framed[width=10cm,height=10cm,frame=off, + background={BitMess,color},backgroundcolor=white]{test} +\stoptext diff --git a/Master/texmf-dist/doc/luatex/luaintro/02-01-1.lualtx b/Master/texmf-dist/doc/luatex/luaintro/02-01-1.lualtx new file mode 100644 index 00000000000..5aacc5231f6 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/02-01-1.lualtx @@ -0,0 +1,32 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 02-01-1 auf Seite 27. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{169.16928pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +% keine Angaben in der Präambel -- +%StopShownPreambleCommands +\begin{document} +Das ältere \textsc{Mädchen} wollte wie üblich +eine \textbf{Crème Brûlée} zum Frühstück, +aber nicht ganz so \textit{süß}. $\alpha$ +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/02-01-2.lualtx b/Master/texmf-dist/doc/luatex/luaintro/02-01-2.lualtx new file mode 100644 index 00000000000..3d55299b98a --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/02-01-2.lualtx @@ -0,0 +1,32 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 02-01-2 auf Seite 27. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{169.16928pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage[T1]{fontenc} +%StopShownPreambleCommands +\begin{document} +Das ältere \textsc{Mädchen} wollte wie üblich +eine \textbf{Crème Brûlée} zum Frühstück, +aber nicht ganz so \textit{süß}. $\alpha$ +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/02-01-3.lualtx b/Master/texmf-dist/doc/luatex/luaintro/02-01-3.lualtx new file mode 100644 index 00000000000..05a372b09cb --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/02-01-3.lualtx @@ -0,0 +1,34 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 02-01-3 auf Seite 28. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{169.16928pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{luaotfload} +\usepackage[EU2]{fontenc} +\usepackage{lmodern} +%StopShownPreambleCommands +\begin{document} +Das ältere \textsc{Mädchen} wollte wie üblich +eine \textbf{Crème Brûlée} zum Frühstück, +aber nicht ganz so \textit{süß}. $\alpha$ +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/02-01-4.sh b/Master/texmf-dist/doc/luatex/luaintro/02-01-4.sh new file mode 100644 index 00000000000..3cf6af15f63 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/02-01-4.sh @@ -0,0 +1,18 @@ +#!/bin/sh +# +# Ein Beispiel der DANTE-Edition +# +## Beispiel 02-01-4 auf Seite 28. +# +# 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. +# +# +#CODEbegin +pdffonts 02-01-3.pdf +#CODEend diff --git a/Master/texmf-dist/doc/luatex/luaintro/02-01-5.sh b/Master/texmf-dist/doc/luatex/luaintro/02-01-5.sh new file mode 100644 index 00000000000..dd61fa96358 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/02-01-5.sh @@ -0,0 +1,32 @@ +#!/bin/sh +# +# Ein Beispiel der DANTE-Edition +# +## Beispiel 02-01-5 auf Seite 28. +# +# 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. +# +% +cat <<End_Of_File > 02-01-3-type1.tex +\documentclass{article} +\usepackage[T1]{fontenc} +\usepackage[utf8]{inputenc} +\usepackage{lmodern} +\begin{document} +Das ältere Mädchen wollte wie üblich +eine \textbf{Crème Brûlée} zum Frühstück, +aber nicht ganz so \textit{süß}. $\alpha$ +\end{document} +End_Of_File +pdflatex 02-01-3-type1.tex > /dev/null + +# +#CODEbegin +pdffonts 02-01-3-type1.pdf +#CODEend diff --git a/Master/texmf-dist/doc/luatex/luaintro/02-02-1.lualtx b/Master/texmf-dist/doc/luatex/luaintro/02-02-1.lualtx new file mode 100644 index 00000000000..e35add4a081 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/02-02-1.lualtx @@ -0,0 +1,32 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 02-02-1 auf Seite 29. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{145.16928pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{libertine}% use also Mono +%StopShownPreambleCommands +\begin{document} +Libertine\par +\sffamily Biolinum\par +\ttfamily LinMono +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/02-02-10.lualtx b/Master/texmf-dist/doc/luatex/luaintro/02-02-10.lualtx new file mode 100644 index 00000000000..b1cd86a3a73 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/02-02-10.lualtx @@ -0,0 +1,46 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 02-02-10 auf Seite 37. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{fontspec} +\newcommand\listfontfeatures{% +\directlua{ +local id = font.current() +local font = fonts.identifiers[id] +local data = font.shared.otfdata +if data then + local features = data.luatex.features + for i,_ in next, features do + for f,_ in next, features[i] do + print(f, "\string\n"..table.serialize(features[i][f])) + tex.sprint(-1, f.." ") + end + end +end +}} +%StopShownPreambleCommands +\begin{document} +\section*{\TeX Gyre Pagella} +\fontspec{TeX Gyre Pagella} \listfontfeatures +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/02-02-11.lualtx2 b/Master/texmf-dist/doc/luatex/luaintro/02-02-11.lualtx2 new file mode 100644 index 00000000000..7143ed561b1 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/02-02-11.lualtx2 @@ -0,0 +1,57 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 02-02-11 auf Seite 39. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{luacode} +\usepackage[margin=0.5cm]{geometry} +\usepackage{fontspec} +\usepackage{multicol} +\setlength{\columnsep}{0.3cm} \setlength{\columnseprule}{1pt} +\setmainfont{Linux Libertine O} +%StopShownPreambleCommands +\begin{document} +\begin{multicols}{7}\noindent +\begin{luacode*} +local f = fontloader.open('target/CP/LinLibertine_R.otf') +local glyphs = {} +for i = 0, f.glyphmax - 1 do + local g = f.glyphs[i] + if g then + table.insert(glyphs, {name = g.name, unicode = g.unicode}) + end +end +table.sort(glyphs, function (a,b) return (a.unicode < b.unicode) end) +for i = 1, #glyphs do + tex.sprint(glyphs[i].unicode .. ': ') + if (glyphs[i].unicode > 0) then + tex.sprint('{\\char' .. glyphs[i].unicode .. '}'); + end + tex.sprint(' {\\tiny (') + tex.sprint(-2, glyphs[i].name) + tex.sprint(')}\\\\') +end +fontloader.close(f) +\end{luacode*} +\end{multicols} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/02-02-12.lualtx3 b/Master/texmf-dist/doc/luatex/luaintro/02-02-12.lualtx3 new file mode 100644 index 00000000000..b32713b43ab --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/02-02-12.lualtx3 @@ -0,0 +1,30 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 02-02-12 auf Seite 39. +%% +%% 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 +\input luaotfload.sty +\font\testA={name:TG Pagella Math:mode=base;script=math} at 12pt +\font\testB={name:XITS Math:mode=base;script=math} at 12pt +\font\testC={Linux Biolinum Keyboard O} at 15pt +%StopShownPreambleCommands +\relax +\Umathspaceafterscript\crampedscriptstyle=10pt +\textfont0=\testA Pagella: $\int\limits_1^\infty {1 \over x^2} dx=1$ \par +\textfont0=\testB XITS:~~~ $\int\limits_1^\infty {1 \over x^2} dx=1$ \par +\testC Keyboard +\bye diff --git a/Master/texmf-dist/doc/luatex/luaintro/02-02-13.lualtx3 b/Master/texmf-dist/doc/luatex/luaintro/02-02-13.lualtx3 new file mode 100644 index 00000000000..3905402d4b2 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/02-02-13.lualtx3 @@ -0,0 +1,31 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 02-02-13 auf Seite 39. +%% +%% 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\hsize=12cm +%StartShownPreambleCommands +\input luaotfload.sty +\font\rm="Hoefler Text" \font\bf="Hoefler Text/B" +\font\it="Hoefler Text/I" \font\sl="Hoefler Text:slant=0.2" +%StopShownPreambleCommands +\relax +\rm Dieser {\sl Text} wird {\bf linksbündig} {\it sein\/}.\par +\hfill Dieser Text dagegen rechtsbündig.\par +\hfill\bf Dies ist zentrierter Text.\hfill\null\par +\rm Linksbündig und\hfill\sl auch rechtsbündig.\par +$\alpha$\hfill\it ist zentriert zwischen $\alpha$ und + $\Omega$\hfill\rm $\Omega$ +\bye diff --git a/Master/texmf-dist/doc/luatex/luaintro/02-02-14.lualtx3 b/Master/texmf-dist/doc/luatex/luaintro/02-02-14.lualtx3 new file mode 100644 index 00000000000..3c3a35b6aca --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/02-02-14.lualtx3 @@ -0,0 +1,29 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 02-02-14 auf Seite 40. +%% +%% 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\parindent=0pt +%StartShownPreambleCommands +\input luaotfload.sty +\font\1={file:ec-lmr10} at 10pt +\font\2={file:/home/voss/.fonts/Arial/Arial.ttf} at 11pt +\font\3={file:data/LinLibertine_R.otf:+onum;color=FF0000} at 12.345pt +%StopShownPreambleCommands +\relax +\1 Ich bin die Latin Modern mit 10pt (Type~1)\par +\2 Ich bin die Arial mit 11pt (TrueType)\par +\3 Ich bin die Libertine mit 12.345pt (OpenType) +\bye diff --git a/Master/texmf-dist/doc/luatex/luaintro/02-02-15.lualtx3 b/Master/texmf-dist/doc/luatex/luaintro/02-02-15.lualtx3 new file mode 100644 index 00000000000..dacbf228d18 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/02-02-15.lualtx3 @@ -0,0 +1,32 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 02-02-15 auf Seite 41. +%% +%% 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\parindent=0pt\hsize=12cm +\def\blindtext{% +There were approximately nine presentations for each of the three days of the +conference. As a first time attendee I found the presentations to be of high +quality typically found in an academic conference. Unlike most academic conferences +where everyone is of the same specialty, the TUG conference saw an eclectic mix +of specialties; there was a range of people in academia, sciences and the humanities.} +%StartShownPreambleCommands +\input luaotfload.sty +\font\1={Latin Modern Roman} at 11.5pt +\font\2={Latin Modern Roman:protrusion=default;expansion=default} at 11.5pt +%StopShownPreambleCommands +\relax +\1 \blindtext\par \2\pdfprotrudechars2 \pdfadjustspacing2 \blindtext +\bye diff --git a/Master/texmf-dist/doc/luatex/luaintro/02-02-16.lualtx3 b/Master/texmf-dist/doc/luatex/luaintro/02-02-16.lualtx3 new file mode 100644 index 00000000000..2378fae950d --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/02-02-16.lualtx3 @@ -0,0 +1,41 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 02-02-16 auf Seite 42. +%% +%% 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\parindent=0pt\hsize=12cm +%StartShownPreambleCommands +\directlua {callback.register('define_font', +function (name,size) + if name == 'cmr10-rot' then + f = font.read_tfm('cmr10',size) + f.name = 'cmr10-rot' + f.type = 'virtual' + f.fonts = {{ name = 'cmr10', size = size }} + for i,v in pairs(f.characters) do + if (string.char(i)):find('[herbertundjana]') then + v.commands = {{'special','pdf: 1 0 0 rg'},{'char',i},{'special','pdf: 0 g'},} + else + v.commands = {{'char',i}} + end + end + else f = font.read_tfm(name,size) end + return f +end)} +%StopShownPreambleCommands +\relax +\font\FA=cmr10-rot at 12pt \FA Herbert geht oft mit Jana laufen. \par +\font\FB=cmr10 at 12pt \FB Herbert geht oft mit Jana laufen. +\bye diff --git a/Master/texmf-dist/doc/luatex/luaintro/02-02-2.lualtx b/Master/texmf-dist/doc/luatex/luaintro/02-02-2.lualtx new file mode 100644 index 00000000000..55ab7978ecb --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/02-02-2.lualtx @@ -0,0 +1,32 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 02-02-2 auf Seite 29. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{145.16928pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{quattrocento} +%StopShownPreambleCommands +\begin{document} +QuattroCento Serif\par +\sffamily QuattroCento Sans Serif\par +\ttfamily Latin Modern Mono +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/02-02-3.lualtx b/Master/texmf-dist/doc/luatex/luaintro/02-02-3.lualtx new file mode 100644 index 00000000000..8788ed229cf --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/02-02-3.lualtx @@ -0,0 +1,34 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 02-02-3 auf Seite 30. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{145.16928pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{amsmath} +\usepackage{libertine}% mit LinMono +\usepackage{cabin,ebgaramond} +%StopShownPreambleCommands +\begin{document} +EB Garamond (Serifen)\par +\sffamily Cabin Sans Serif\par +\ttfamily Libertine Mono +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/02-02-4.lualtx b/Master/texmf-dist/doc/luatex/luaintro/02-02-4.lualtx new file mode 100644 index 00000000000..6c175d53733 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/02-02-4.lualtx @@ -0,0 +1,42 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 02-02-4 auf Seite 30. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{luaotfload} +%StopShownPreambleCommands +\begin{document} +\catcode`\_=12 +\directlua{function listTableVariables() + tex.print("\string\\halign{\#&\#&\#&\#\string\\cr") + local i=0 + font=fontloader.open("data/LinMono_M.otf") + f=fontloader.to_table(font) + for k in pairs(f) do tex.sprint(tostring(k)) + i=i+1 if i==4 then tex.print("\string\\cr") i=0 + else tex.sprint(" & ") + end end + tex.print("\string\\cr}") + end } +\ttfamily\footnotesize\directlua{listTableVariables()} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/02-02-5.lualtx b/Master/texmf-dist/doc/luatex/luaintro/02-02-5.lualtx new file mode 100644 index 00000000000..4cb2636bdd8 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/02-02-5.lualtx @@ -0,0 +1,57 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 02-02-5 auf Seite 31. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{193.16928pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{luaotfload,luacode} +%StopShownPreambleCommands +\begin{document} +\catcode`\_=12 +\begin{luacode} +function tp(data) -- use tostring if nil + tex.print(tostring(data).."\\par") +end +font=fontloader.open("data/LinMono_M.otf") +f=fontloader.to_table(font) +fontloader.close(font) +tp(f.copyright) tp(f.creationtime) +tp(f.descent) tp(f.design_range_bottom) +tp(f.design_range_top)tp(f.design_size) +tp(f.encodingchanged) tp(f.extrema_bound) +tp(f.familyname) tp(f.fontname) +tp(f.fontstyle_id) tp(f.fullname) +tp(f.glyphcnt) tp(f.glyphmax) +tp(f.hasvmetrics)tp(f.head_optimized_for_cleartype) +tp(f.issans) tp(f.isserif) +tp(f.italicangle) tp(f.modificationtime) +tp(f.onlybitmaps) tp(f.origname) +tp(f.os2_version) tp(f.serifcheck) +tp(f.sfd_version) tp(f.strokedfont) +tp(f.strokewidth) tp(f.table_version) +tp(f.uni_interp) tp(f.uniqueid) +tp(f.units_per_em) tp(f.upos) +tp(f.use_typo_metrics)tp(f.uwidth) +tp(f.version) tp(f.weight) +tp(f.weight_width_slope_only) tp(f.xuid) +\end{luacode} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/02-02-6.sh b/Master/texmf-dist/doc/luatex/luaintro/02-02-6.sh new file mode 100644 index 00000000000..80a612ad834 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/02-02-6.sh @@ -0,0 +1,19 @@ +#!/bin/sh +# +# Ein Beispiel der DANTE-Edition +# +## Beispiel 02-02-6 auf Seite 31. +# +# 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. +# +# Running otfinfo on Linux +# +#CODEbegin +otfinfo -i ~/.fonts/Minion/MinionPro-Regular.otf +#CODEend diff --git a/Master/texmf-dist/doc/luatex/luaintro/02-02-7.lualtx2 b/Master/texmf-dist/doc/luatex/luaintro/02-02-7.lualtx2 new file mode 100644 index 00000000000..f18549e9807 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/02-02-7.lualtx2 @@ -0,0 +1,58 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 02-02-7 auf Seite 36. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1,2,3 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{115.5155pt} +\setlength{\parindent}{0em} +\usepackage[paper=a6,pagesize,DIV15]{typearea} +%StartShownPreambleCommands +\usepackage{fontspec,luacode} +\newfontface\LMML{Latin Modern Mono Light Cond} +\begin{luacode} +local teststring = "Lua\\TeX~--~Eine Einführung." +local myfonts = dofile(fonts.names.path.localdir.."/otfl-names.lua") +function printFontDemo(fontname) + local fnA = string.lower(fontname) + local a = {} + local b = {} + for i, v in ipairs(myfonts.mappings) do + m, n = string.find(string.lower(v.names.family),fnA) + if m then + a[v.fontname] = v.familyname + b[#b + 1] = v.fontname + end + end + table.sort(b) + for i, v in ipairs(b) do + tex.print("\\parbox{0.21\\linewidth}{\\LMML\\footnotesize") + tex.print(-2, a[v]) + tex.print("\\\\ \\scriptsize") + tex.print(-2, v) + tex.print("}\\parbox{0.79\\linewidth}{\\raggedright\\fontspec{" .. v .. "}") + tex.print(teststring) + tex.print("}\\\\[2pt]") + end +end +\end{luacode} +%StopShownPreambleCommands +\begin{document} +\directlua{printFontDemo("Latin Modern")} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/02-02-8.lualtx2 b/Master/texmf-dist/doc/luatex/luaintro/02-02-8.lualtx2 new file mode 100644 index 00000000000..c6dbe5e1a11 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/02-02-8.lualtx2 @@ -0,0 +1,58 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 02-02-8 auf Seite 36. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1,2 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{158.76529pt} +\setlength{\parindent}{0em} +\usepackage[paper=a6,pagesize,DIV15]{typearea} +%StartShownPreambleCommands +\usepackage{fontspec,luacode} +\newfontface\LMML{Latin Modern Mono Light Cond} +\begin{luacode} +local teststring = "Lua\\LaTeX~--~Eine Einführung." +local myfonts = dofile(fonts.names.path.localdir.."/otfl-names.lua") +function printFontDemo(fontname) + local fnA = string.lower(fontname) + local a = {} + local b = {} + for i, v in ipairs(myfonts.mappings) do + m, n = string.find(string.lower(v.names.family),fnA) + if m then + a[v.fontname] = v.familyname + b[#b + 1] = v.fontname + end + end + table.sort(b) + for i, v in ipairs(b) do + tex.print("\\parbox{0.21\\linewidth}{\\LMML\\footnotesize") + tex.print(-2, a[v]) + tex.print("\\\\ \\scriptsize") + tex.print(-2, v) + tex.print("}\\parbox{0.79\\linewidth}{\\raggedright\\fontspec{" .. v .. "}") + tex.print(teststring) + tex.print("}\\\\[2pt]") + end +end +\end{luacode} +%StopShownPreambleCommands +\begin{document} +\directlua{printFontDemo("Bioli")} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/02-02-9.lualtx b/Master/texmf-dist/doc/luatex/luaintro/02-02-9.lualtx new file mode 100644 index 00000000000..e33b33cf3d5 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/02-02-9.lualtx @@ -0,0 +1,42 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 02-02-9 auf Seite 36. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{fontspec} +%StopShownPreambleCommands +\begin{document} +\ExplSyntaxOn +LatinModern~ist~ +\fontspec_if_fontspec_font:TF {~eine~}{~keine~}»fontspec«~Schrift.\par +\setmainfont{DejaVu Serif} +DejaVu~Serif:~\par +ist~\fontspec_if_fontspec_font:TF {eine~}{keine~}»fontspec«~Schrift;\par +ist~\fontspec_if_opentype:TF {}{nicht~}vom~Typ~OpenType;~ +hat~\fontspec_if_feature:nTF {smcp}{~}{keine~}Kapitälchen;~ +benutzt~\fontspec_if_current_script:nTF {latn}{}{kein~}»Latin~script«;~ +hat~\fontspec_if_script:nTF {cyrl}{}{kein~}Cyrillic;~ +benutzt~die~`default'-Sprache\fontspec_if_current_language:nTF {DFLT}{}{~nicht};~ +hat~\fontspec_if_language:nnTF {latn}{ROM}{}{kein~}Romanian.\par +\ExplSyntaxOff Test: \textsc{Test} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/03-01-1.lualtx b/Master/texmf-dist/doc/luatex/luaintro/03-01-1.lualtx new file mode 100644 index 00000000000..7d33358e83c --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/03-01-1.lualtx @@ -0,0 +1,28 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 03-01-1 auf Seite 44. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\begin{document} +\directlua{tex.print('Version:' .. tex.luatexversion .. "; " .. + 'Revision:' .. tex.luatexrevision .. "; " .. + 'Zeitstempel:' .. tex.luatexdatestamp)} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/03-03-1.lualtx b/Master/texmf-dist/doc/luatex/luaintro/03-03-1.lualtx new file mode 100644 index 00000000000..74172eac2e3 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/03-03-1.lualtx @@ -0,0 +1,31 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 03-03-1 auf Seite 46. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{317.53058pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\directlua{tex.enableprimitives("hv",{"directlua","formatname"})} +%StopShownPreambleCommands +\begin{document} +\hvdirectlua{tex.print(os.date())} -- \directlua{tex.print(os.date())}. Wir +haben das Format \hvformatname. (\verb|\formatname| ist »\meaning\formatname«) +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/03-04-1.lualtx3 b/Master/texmf-dist/doc/luatex/luaintro/03-04-1.lualtx3 new file mode 100644 index 00000000000..ba54ddedc02 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/03-04-1.lualtx3 @@ -0,0 +1,26 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 03-04-1 auf Seite 50. +%% +%% 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 + +%StopShownPreambleCommands +\relax +\count12345=54321 +\advance\count12345 by 45679 +\the\count12345 +\bye diff --git a/Master/texmf-dist/doc/luatex/luaintro/03-06-1.lualtx3 b/Master/texmf-dist/doc/luatex/luaintro/03-06-1.lualtx3 new file mode 100644 index 00000000000..2db84049cdc --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/03-06-1.lualtx3 @@ -0,0 +1,30 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 03-06-1 auf Seite 52. +%% +%% 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\parindent=0pt\font\Libertine=LinLibertineT-osf-t1 at 11pt \Libertine +%StartShownPreambleCommands + +%StopShownPreambleCommands +\relax +\def\foo{\catcode`\<=1 \catcode`\>=2 + \catcode`\{=12\catcode`\}=12} +\foo {<bar>} \par +\def\foobar<\catcode`\<=12\catcode`\>=12 + \catcode`\{=1 \catcode`\}=2> +\foobar <foobar>\par +\def\foobarbaz{{<foobarbaz>}}\foobarbaz +\bye diff --git a/Master/texmf-dist/doc/luatex/luaintro/03-06-2.lualtx3 b/Master/texmf-dist/doc/luatex/luaintro/03-06-2.lualtx3 new file mode 100644 index 00000000000..099fc288b69 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/03-06-2.lualtx3 @@ -0,0 +1,37 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 03-06-2 auf Seite 52. +%% +%% 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\parindent=0pt +%StartShownPreambleCommands +\bgroup\initcatcodetable1 +\catcode`\_=12 \catcode`\^=12 \catcode`\$=12 +\catcode`\%=12 \catcode`\#=12 \catcode`\&=12 +\catcode`\{=12 \catcode`\}=12 \catcode`\~=12 +\catcode`!=0 \catcode`\\=12 +!savecatcodetable1!egroup +%StopShownPreambleCommands +\relax +Eine Verbatimausgabe:\par\tt +\directlua{tex.print(1,"\string\\documentclass[11pt]{article}")} +\directlua{tex.print("\string\\break")} +\directlua{tex.print(1,"\string\\begin{document}")} +\directlua{tex.print("\string\\break")} +\directlua{tex.print(1,"$a_1^2+b_2^2=c^2$")} +\directlua{tex.print("\string\\break")} +\directlua{tex.print(1,"\string\\end{document}")} +\def\foo{bar}\foo% kein Fehler, da Tabelle 0 aktiv ist +\bye diff --git a/Master/texmf-dist/doc/luatex/luaintro/03-06-3.lualtx3 b/Master/texmf-dist/doc/luatex/luaintro/03-06-3.lualtx3 new file mode 100644 index 00000000000..0fa7ced5940 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/03-06-3.lualtx3 @@ -0,0 +1,42 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 03-06-3 auf Seite 53. +%% +%% 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\parindent=0pt +%StartShownPreambleCommands +\bgroup\initcatcodetable1 +\catcode`\^^J=13 +\catcode`\_=12 \catcode`\^=12 \catcode`\$=12 +\catcode`\%=12 \catcode`\#=12 \catcode`\&=12 +\catcode`\{=12 \catcode`\}=12 \catcode`\~=12 +\catcode`!=0 \catcode`?=7 \catcode`\\=12 +!savecatcodetable1!egroup +\bgroup\initcatcodetable2 +\catcode`\^^J=5 +\savecatcodetable2\egroup +%StopShownPreambleCommands +\relax +Eine Verbatimausgabe:\par\tt +\endlinechar=10 \catcodetable1 !let??J=!par +\documentclass[11pt]{article} +\begin{document} +% Mathematik & Pythagoras +$a_1^2+b_2^2=c^2$ +\end{document} +!catcodetable2 \rm %ohne \catcodetable2 +% käme wegen \ und {} ein Fehler +\def\foo{bar}\foo +\bye diff --git a/Master/texmf-dist/doc/luatex/luaintro/03-07-1.lualtx b/Master/texmf-dist/doc/luatex/luaintro/03-07-1.lualtx new file mode 100644 index 00000000000..070d190db53 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/03-07-1.lualtx @@ -0,0 +1,45 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 03-07-1 auf Seite 54. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +\usepackage{array} +\begin{document} +Ausgabe der Knotenliste durch \texttt{node.types()} ergibt:\par +\catcode`\_=12 \tabcolsep=4pt +\directlua{ + tex.print('\string\\tabular{@{} *4{rl} @{}}\string\\hline') + local n = node.types() + tex.print(' 0 & ' .. n[0] .. ' & ') + local i = 1 + for j,v in pairs(n) do + if j > 0 then + tex.print( j .. ' & ' .. v ) + i = i+1 + if (i == 4 ) then tex.print('\string\\\string\\') i=0 + else tex.print(' & ') + end + end + end + tex.print('\string\\\string\\ \string\\hline \string\\endtabular')} +\par\the\lastnodetype\ foo\the\lastnodetype. +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/03-07-2.lualtx b/Master/texmf-dist/doc/luatex/luaintro/03-07-2.lualtx new file mode 100644 index 00000000000..e77858c8140 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/03-07-2.lualtx @@ -0,0 +1,42 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 03-07-2 auf Seite 55. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +\usepackage{array} +\begin{document} +Ausgabe der Untertypen eines \texttt{whatsit} durch \texttt{node.whatsits()} ergibt:\par +\catcode`\_=12 \tabcolsep=4pt +\directlua{ + tex.print('\string\\tabular{@{} *4{rl} @{}}\string\\hline') + local i = 0 + for j,v in table.sortedpairs(node.whatsits()) do + if j > 0 and j <100 then + tex.print( j .. ' & ' .. v ) + i = i+1 + if (i == 4 ) then tex.print('\string\\\string\\') i=0 + else tex.print(' & ') + end + end + end + tex.print('\string\\\string\\ \string\\hline \string\\endtabular')} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/03-08-1.lualtx b/Master/texmf-dist/doc/luatex/luaintro/03-08-1.lualtx new file mode 100644 index 00000000000..d1b0ebacc29 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/03-08-1.lualtx @@ -0,0 +1,57 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 03-08-1 auf Seite 56. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{examinimal} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\documentclass{minimal} +\usepackage{luacode} +\begin{luacode*} +local out=assert(io.open("target/CP/xlist.nodes","w")) +local n=node.types() +function printnode(head) +while head do + if head.id==8 then out:write(head.id..","..head.subtype) -- ein whatsit + else out:write(string.format("%3d",head.id)) + end + if head.id==37 then out:write("\"",string.char(head.char),"\" ->") + else out:write(" ->") + end + if head.next == nil then out:write("nil") + else out:write(string.format("%3d",head.next.id)) + end + out:write(" ("..n[head.id].."->") + if head.next==nil then out:write("nil)\n") + else out:write(n[head.next.id]..")\n") + end + if head.id==0 or head.id==1 then printnode(head.head) -- Rekursion + end + head=head.next +end +return true +end +luatexbase.add_to_callback("post_linebreak_filter",printnode,"printnode") +\end{luacode*} +%StopShownPreambleCommands +\begin{document} +abc1 +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/03-08-2.lualtx3 b/Master/texmf-dist/doc/luatex/luaintro/03-08-2.lualtx3 new file mode 100644 index 00000000000..35a14e3f833 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/03-08-2.lualtx3 @@ -0,0 +1,48 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 03-08-2 auf Seite 57. +%% +%% 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 + +%StopShownPreambleCommands +\relax +\directlua{local out=assert(io.open("target/CP/xlist2.nodes","w")) +local n=node.types() +function printnode(head) +while head do + if head.id==8 then out:write(head.id..","..head.subtype) + else out:write(string.format("\%3d",head.id)) + end + if head.id==37 then + out:write("\string\"",string.char(head.char),"\string\" ->") + else out:write("\space\space\space\space->") + end + if head.next==nil then out:write("nil") + else out:write(string.format("\%3d",head.next.id)) + end + out:write(" ("..n[head.id].."->") + if head.next==nil then out:write("nil)\string\n") + else out:write(n[head.next.id]..")\string\n") + end + if head.id==0 or head.id==1 then printnode(head.head) end + head=head.next +end +return true +end +callback.register("post_linebreak_filter",printnode,"printnode")} +abc1 +\bye diff --git a/Master/texmf-dist/doc/luatex/luaintro/03-08-3.sh b/Master/texmf-dist/doc/luatex/luaintro/03-08-3.sh new file mode 100644 index 00000000000..69cbab8683c --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/03-08-3.sh @@ -0,0 +1,29 @@ +#!/bin/sh +# +# Ein Beispiel der DANTE-Edition +# +## Beispiel 03-08-3 auf Seite 57. +# +# 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. +# +# +#CODEbegin +TeXfile=`basename $0 .sh` +cp data/viznodelist.lua . +cat << _EndOfFile_ > $TeXfile.tex +\setbox0\hbox{abc1} +\directlua{require("viznodelist") + viznodelist.nodelist_visualize(0,"./$TeXfile.gv")} +\box0 +\bye +_EndOfFile_ + +luatex --interaction=batchmode --draftmode $TeXfile +dot -Tpng $TeXfile.gv -o $TeXfile.png +#CODEend diff --git a/Master/texmf-dist/doc/luatex/luaintro/03-10-1.lualtx b/Master/texmf-dist/doc/luatex/luaintro/03-10-1.lualtx new file mode 100644 index 00000000000..2a0c2d3cf6d --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/03-10-1.lualtx @@ -0,0 +1,41 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 03-10-1 auf Seite 59. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{examinimal} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{luacode} +\begin{luacode*} +function checknode(head) + while head do + if head.id==11 then head.kern=20*2^16 end -- entspricht pt + if head.id==0 or head.id==1 then checknode(head.head) end + head=head.next + end +return true +end +luatexbase.add_to_callback("post_linebreak_filter",checknode,"checknode") +\end{luacode*} +%StopShownPreambleCommands +\begin{document} +\fbox{abc1} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/03-10-2.lualtx b/Master/texmf-dist/doc/luatex/luaintro/03-10-2.lualtx new file mode 100644 index 00000000000..8f5b87ebdb6 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/03-10-2.lualtx @@ -0,0 +1,47 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 03-10-2 auf Seite 60. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{examinimal} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{luacode} +\begin{luacode*} +function checknode(head) + while head do + if head.id==37 then + if head.char==string.byte("c") then + n=head -- Zwischenspeichern + head.prev.next=head.next head.next.prev=head.prev + node.free(n) -- Speicher freigeben + end + end + if head.id==0 or head.id==1 then checknode(head.head) end + head=head.next + end +return true +end +luatexbase.add_to_callback("post_linebreak_filter",checknode,"checknode") +\end{luacode*} +%StopShownPreambleCommands +\begin{document} +\fbox{abc1} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/03-10-3.lualtx b/Master/texmf-dist/doc/luatex/luaintro/03-10-3.lualtx new file mode 100644 index 00000000000..b714d7d69cf --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/03-10-3.lualtx @@ -0,0 +1,48 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 03-10-3 auf Seite 61. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{examinimal} +\pagestyle{empty} +\setlength\textwidth{52.91997pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{luacode} +\begin{luacode*} +function checknode(head) +while head do + if head.id==37 then + if head.char==string.byte("c") then + local n=node.new("glyph") + n.subtype=head.subtype n.char=head.char n.font=head.font + n.next = head head.prev.next = n + n.prev = head.prev head.prev = n + end + end + if head.id==0 or head.id==1 then checknode(head.head) end + head=head.next +end +return true +end +luatexbase.add_to_callback("post_linebreak_filter",checknode,"checknode") +\end{luacode*} +%StopShownPreambleCommands +\begin{document} +\fbox{abc1} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/03-11-1.sh b/Master/texmf-dist/doc/luatex/luaintro/03-11-1.sh new file mode 100644 index 00000000000..2197f6ef670 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/03-11-1.sh @@ -0,0 +1,29 @@ +#!/bin/sh +# +# Ein Beispiel der DANTE-Edition +# +## Beispiel 03-11-1 auf Seite 61. +# +# 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. +# +# +#CODEbegin +TeXfile=`basename $0 .sh` +cp data/viznodelist.lua . +cat << _EndOfFile_ > $TeXfile.tex +\setbox0\hbox{\vbox{\hbox{ab}\par\hbox{c1}}} +\directlua{require("viznodelist") + viznodelist.nodelist_visualize(0,"./$TeXfile.gv")} +\box0 +\bye +_EndOfFile_ + +luatex --interaction=batchmode --draftmode $TeXfile +dot -Tpng $TeXfile.gv -o $TeXfile.png +#CODEend diff --git a/Master/texmf-dist/doc/luatex/luaintro/03-11-2.lualtx b/Master/texmf-dist/doc/luatex/luaintro/03-11-2.lualtx new file mode 100644 index 00000000000..77383a21f49 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/03-11-2.lualtx @@ -0,0 +1,27 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 03-11-2 auf Seite 62. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{examinimal} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\begin{document} +\directlua{local a=3; local b=node.new(37) + tex.print(tostring(node.is_node(a))..", "..tostring(node.is_node(b)))} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/03-11-3.lualtx b/Master/texmf-dist/doc/luatex/luaintro/03-11-3.lualtx new file mode 100644 index 00000000000..90db3b93509 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/03-11-3.lualtx @@ -0,0 +1,28 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 03-11-3 auf Seite 63. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setmonofont[Scale=0.82]{DejaVu Sans Mono} +\begin{document} +\small\ttfamily \catcode`\_=12 % wegen der Funktionsnamen +\directlua{tex.print(table.serialize(node.fields(37)))} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/03-11-4.lualtx b/Master/texmf-dist/doc/luatex/luaintro/03-11-4.lualtx new file mode 100644 index 00000000000..19c2c62c892 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/03-11-4.lualtx @@ -0,0 +1,36 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 03-11-4 auf Seite 64. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setmonofont[Scale=0.82]{DejaVu Sans Mono}\ttfamily\small\parindent=0pt +\begin{document} +\setbox0=\hbox{d g} \setbox1=\hbox{d\rule[-2pt]{50pt}{5pt}g} +Box0: \directlua{w,h,d=node.dimensions( + tex.box[0].glue_set, tex.box[0].glue_sign, tex.box[0].glue_order, + tex.box[0].head.next, node.tail(tex.box[0].head)) + tex.print((w/2^16).."pt; "..(h/2^16).."pt; "..(d/2^16).."pt") }\quad +Box1:\directlua{w,h,d=node.dimensions( + tex.box[1].glue_set, tex.box[1].glue_sign, tex.box[1].glue_order, + tex.box[1].head.next, node.tail(tex.box[1].head)) + tex.print((w/2^16).."pt; "..(h/2^16).."pt; "..(d/2^16).."pt") }\\ +fontdimen=\the\fontdimen2\font\ Box0: \box0\ Box1: \box1 +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/03-11-5.lualtx b/Master/texmf-dist/doc/luatex/luaintro/03-11-5.lualtx new file mode 100644 index 00000000000..2f66cca8667 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/03-11-5.lualtx @@ -0,0 +1,34 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 03-11-5 auf Seite 65. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{38.80977pt} +\setlength\parindent{0pt} +\begin{document} +\directlua{function checknode(head) +for t in node.traverse(head) do + if t.id==0 or t.id==1 then checknode(t.head) end + if t.id==37 then if t.char>96 and t.char<122 then t.char=t.char-32 end end +end +return true end +luatexbase.add_to_callback("post_linebreak_filter",checknode,"checknode")} +abc1\par Und\par weiter \ldots %% Konvertierung in Großbuchstaben +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/03-11-6.lualtx b/Master/texmf-dist/doc/luatex/luaintro/03-11-6.lualtx new file mode 100644 index 00000000000..e2711168191 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/03-11-6.lualtx @@ -0,0 +1,49 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 03-11-6 auf Seite 65. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{examinimal} +\pagestyle{empty} +\setlength\textwidth{52.91997pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{luacode} +\begin{luacode*} +function checknode(head) +local START=head +while head do + if head.id==37 then + if head.char==string.byte("1") then + n=node.new(37) n.char=string.byte("0") + n.font=head.font + head,n=node.insert_before(START,head,n) + head=n.next + end + end + if head.id==0 or head.id==1 then checknode(head.head) end + head=head.next +end +return true +end +luatexbase.add_to_callback("post_linebreak_filter",checknode,"checknode") +\end{luacode*} +%StopShownPreambleCommands +\begin{document} +abc1 +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/03-11-7.lualtx b/Master/texmf-dist/doc/luatex/luaintro/03-11-7.lualtx new file mode 100644 index 00000000000..0ee36a3a150 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/03-11-7.lualtx @@ -0,0 +1,47 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 03-11-7 auf Seite 66. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{examinimal} +\pagestyle{empty} +\setlength\textwidth{52.91997pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{luacode} +\begin{luacode*} +function checknode(head) +while head do + if head.id==37 then + if head.char==string.byte("c") then + n=node.new(37) n.char=string.byte("d") + n.font=head.font + head=node.insert_after(head,head,n) + end + end + if head.id==0 or head.id==1 then checknode(head.head) end + head=head.next +end +return true +end +luatexbase.add_to_callback("post_linebreak_filter",checknode,"checknode") +\end{luacode*} +%StopShownPreambleCommands +\begin{document} +abc1 +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/04-01-1.lualtx3 b/Master/texmf-dist/doc/luatex/luaintro/04-01-1.lualtx3 new file mode 100644 index 00000000000..ec4bfe22c60 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/04-01-1.lualtx3 @@ -0,0 +1,41 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 04-01-1 auf Seite 71. +%% +%% 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 + +%StopShownPreambleCommands +\relax +\directlua{ + function foo(text) + return (text) + end } +\directlua{function listCallbacksLua() + info=callback.list() + local i=0 + for k in pairs(info) do + if info[k] then + tex.sprint("T") + else + tex.sprint("f") + end + end + end} +\catcode`\_=12 +\directlua{callback.register("pre_output_filter",foo,"Foo")} +\font\IXtt=cmtt10 at 8pt \IXtt\directlua{listCallbacksLua()} +\bye diff --git a/Master/texmf-dist/doc/luatex/luaintro/04-01-2.lualtx3 b/Master/texmf-dist/doc/luatex/luaintro/04-01-2.lualtx3 new file mode 100644 index 00000000000..a02d01409a9 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/04-01-2.lualtx3 @@ -0,0 +1,42 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 04-01-2 auf Seite 72. +%% +%% 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 + +%StopShownPreambleCommands +\relax +\catcode`\_=12 +\directlua{ + function listCallbacks() + tex.print("\string\\halign{\#&\#&\#&\#\string\\cr") + local i=0 + info=callback.list() + for k in pairs(info) do + tex.sprint(tostring(k)) + i=i+1 + if i==4 then + tex.print("\string\\cr") i=0 + else + tex.sprint(" & ") + end + end + tex.print("\string\\cr}") + end +} +\font\IXtt cmtt10 at 8pt \IXtt \directlua{listCallbacks()} +\bye diff --git a/Master/texmf-dist/doc/luatex/luaintro/04-01-3.lualtx b/Master/texmf-dist/doc/luatex/luaintro/04-01-3.lualtx new file mode 100644 index 00000000000..7bb261241e7 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/04-01-3.lualtx @@ -0,0 +1,46 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 04-01-3 auf Seite 72. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{luacode,fontspec} +\begin{luacode} + function listCallbacks() + local n=4 -- Spaltenzahl der Tabelle + tex.print("\\footnotesize\\begin{tabular}{@{} *" .. n .. "l @{}}") + local i=0 + info=callback.list() + for k in pairs(info) do + if info[k] then + tex.sprint("\\verb|" .. k .. "|") + i=i+1 + if i==n then tex.print("\\\\") i=0 else tex.print(" & ") end + end + end + tex.print("\\end{tabular}") + end +\end{luacode} +%StopShownPreambleCommands +\begin{document} +\directlua{listCallbacks()} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/04-04-1.lualtx b/Master/texmf-dist/doc/luatex/luaintro/04-04-1.lualtx new file mode 100644 index 00000000000..7e367a5f29d --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/04-04-1.lualtx @@ -0,0 +1,35 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 04-04-1 auf Seite 86. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{169.16928pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{fontspec}\newlength\OneEX +\setsansfont[Path=target/CP/]{LinBiolinum_R.otf} +\setmainfont{Linux Libertine O} +%StopShownPreambleCommands +\begin{document} +\Large\OneEX=1ex Lua\TeX\ und +Lua\LaTeX\\ \the\OneEX\\ +\sffamily\OneEX=1ex Lua\TeX\ +und Lua\LaTeX\\ \the\OneEX +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/04-04-10.lualtx b/Master/texmf-dist/doc/luatex/luaintro/04-04-10.lualtx new file mode 100644 index 00000000000..980bce48862 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/04-04-10.lualtx @@ -0,0 +1,60 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 04-04-10 auf Seite 94. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{luacode,libertine} +\begin{luacode} + local translate={c='ĉ', g='ĝ', h='ĥ', j='ĵ', s='ŝ', u='û'} + local function get_char_token(char) + return token.create(unicode.utf8.byte(char)) + end + local function get_token_char(tok) + return tok[1] == 11 and unicode.utf8.char(tok[2]) + end + local circumflex_token = get_char_token("^") + local function is_circumflex(tok) + return tok[1] == circumflex_token[1] and tok[2] == circumflex_token[2] + and tok[3] == circumflex_token[3] + end + local function in_math_mode() + local n = tex.nest[tex.nest.ptr] + return n.mode == 235 or n.mode == -235 + end + local function texperanto() + local t = token.get_next() + if not in_math_mode() and is_circumflex(t) then + local u = token.get_next() + local c = get_token_char(u) + if c then + local d = translate[c] + if d then return get_char_token(d) else return {t, u} end + else return {t, u} end + else return t end + end + luatexbase.add_to_callback("token_filter", texperanto, "texperanto") +\end{luacode} +%StopShownPreambleCommands +\begin{document} +^c ^g ^h ^j ^s ^u $a^2+b^2=c^2$ und $a^c\le h^j$ +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/04-04-11.lualtx b/Master/texmf-dist/doc/luatex/luaintro/04-04-11.lualtx new file mode 100644 index 00000000000..451fda7fb13 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/04-04-11.lualtx @@ -0,0 +1,46 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 04-04-11 auf Seite 95. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{luacode,libertine} +\begin{luacode} +function checknode(List) + for t in node.traverse(List) do + if t.id==0 or t.id==1 then checknode(t.head) end + if t.id==37 then +-- tex.print(unicode.utf8.char(t.char)) + if (t.char>96 and t.char<122) or + t.char==228 or t.char==246 or t.char==252 then t.char=t.char-32 end + end + end +return true +end +\end{luacode} +\def\MUC#1{\setbox0=\hbox{#1}\directlua{checknode(tex.box[0].head)}\box0} +%StopShownPreambleCommands +\begin{document} +\MUC{Freie Universität Berlin} +\def\TU{Technische Universität Berlin}\MUC{\TU} +\MUC{ÄÖÜäöüß}%196 214 220 228 246 252 223 +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/04-04-12.lualtx b/Master/texmf-dist/doc/luatex/luaintro/04-04-12.lualtx new file mode 100644 index 00000000000..576627f51b7 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/04-04-12.lualtx @@ -0,0 +1,53 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 04-04-12 auf Seite 96. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +\usepackage[ngerman]{babel} +%StartShownPreambleCommands +\usepackage{libertine,luacode,blindtext} +\begin{luacode*} +function drawGlyphBB(glyph) + local width = glyph.width/2^16 + local height = glyph.height/2^16 + local depth = glyph.depth/2^16 + local w=node.new("whatsit","pdf_literal") + w.data=string.format("q 1 0 0 RG 0.1 w "..-width.." "..-depth.." "..width.." "..(height+depth).." re S Q ") + return w +end +function markList(List) + while List do + if List.id==0 or List.id==1 then markList(List.head) end + if List.id==37 then + local m=List -- save current node + m=node.insert_after(m,m,drawGlyphBB(List)) + end + List=List.next + end + return true +end +\end{luacode*} +%StopShownPreambleCommands +\begin{document} +\directlua{luatexbase.add_to_callback("post_linebreak_filter",markList,"markList")} +\blindtext \par +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/04-04-13.lualtx b/Master/texmf-dist/doc/luatex/luaintro/04-04-13.lualtx new file mode 100644 index 00000000000..4fc886d4fab --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/04-04-13.lualtx @@ -0,0 +1,53 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 04-04-13 auf Seite 97. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +\usepackage[ngerman]{babel} +%StartShownPreambleCommands +\usepackage{libertine,luacode,blindtext,color,microtype} +\begin{luacode*} +function drawGlyphBB(glyph) + local width = glyph.width/2^16 + local height = glyph.height/2^16 + local depth = glyph.depth/2^16 + local w=node.new("whatsit","pdf_literal") + w.data=string.format("q 1 0 0 RG 0.2 w "..-width.." "..-depth.." "..width.." "..(height+depth).." re b Q ") + return w +end +function markList(List) + while List do + if List.id==0 or List.id==1 then markList(List.head) end + if List.id==37 then + local m=List -- save current node + m=node.insert_after(m,m,drawGlyphBB(List)) + end + List=List.next + end + return true +end +\end{luacode*} +%StopShownPreambleCommands +\begin{document} +\directlua{luatexbase.add_to_callback("post_linebreak_filter",markList,"markList")} +\color{white}\blindtext \par +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/04-04-14.lualtx b/Master/texmf-dist/doc/luatex/luaintro/04-04-14.lualtx new file mode 100644 index 00000000000..1914747e332 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/04-04-14.lualtx @@ -0,0 +1,53 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 04-04-14 auf Seite 97. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +\usepackage[ngerman]{babel} +%StartShownPreambleCommands +\usepackage{libertine,luacode,blindtext,color,microtype} +\begin{luacode*} +function drawGlyphBB(glyph) + local width = glyph.width/2^16 + local height = glyph.height/2^16 + local depth = glyph.depth/2^16 + local w=node.new("whatsit","pdf_literal") + w.data=string.format("q 0 G 0.2 w "..-width.." "..-depth.." "..width.." "..(height+depth).." re 0 g f b Q ") + return w +end +function markList(List) + while List do + if List.id==0 or List.id==1 then markList(List.head) end + if List.id==37 then + local m=List -- save current node + m=node.insert_after(m,m,drawGlyphBB(List)) + end + List=List.next + end + return true +end +\end{luacode*} +%StopShownPreambleCommands +\begin{document} +\directlua{luatexbase.add_to_callback("post_linebreak_filter",markList,"markList")} +\color{white}\blindtext \par +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/04-04-15.lualtx b/Master/texmf-dist/doc/luatex/luaintro/04-04-15.lualtx new file mode 100644 index 00000000000..220617dbee0 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/04-04-15.lualtx @@ -0,0 +1,67 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 04-04-15 auf Seite 98. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +\usepackage{luacode} +\usepackage{libertine,blindtext} +\usepackage[ngerman]{babel} +\begin{luacode*} +local out=assert(io.open("target/CP/xlist5.nodes","w")) -- für interne Kontrolle +local ntype=node.types() +function printList(head) +while head do + if head.id==8 then out:write(head.id..","..head.subtype) -- ein whatsits + else out:write(string.format("%3d",head.id)) + end + if head.id==37 then out:write("\"",unicode.utf8.char(head.char),"\" ->") + else out:write(" ->") + end + if head.next == nil then out:write("nil") + else out:write(string.format("%3d",head.next.id)) + end + out:write(" ("..ntype[head.id].."->") + if head.next==nil then out:write("nil)\n") + else out:write(ntype[head.next.id]..")\n") + end + if head.id==0 or head.id==1 then printList(head.head) -- Rekursion + end + head=head.next +end +return true +end +\end{luacode*} +%StartShownPreambleCommands +\begin{luacode*} +function rSpace(List) + for line in node.traverse_id(0,List) do + for s in node.traverse_id(10,line.head) do node.remove(line.head,s) end + end + return true +end +\end{luacode*} +%StopShownPreambleCommands +\begin{document} +\blindtext \par +\directlua{luatexbase.add_to_callback("post_linebreak_filter",rSpace,"rSpace")} +\blindtext \par +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/04-04-16.lualtx b/Master/texmf-dist/doc/luatex/luaintro/04-04-16.lualtx new file mode 100644 index 00000000000..2cfb10ba42d --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/04-04-16.lualtx @@ -0,0 +1,73 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 04-04-16 auf Seite 99. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +\usepackage{luacode} +\usepackage{libertine,blindtext} +\usepackage[ngerman]{babel} +\begin{luacode*} +local out=assert(io.open("target/CP/xlist6.nodes","w")) +local ntype=node.types() +function printList(head) +while head do + if head.id==8 then out:write(head.id..","..head.subtype) -- ein whatsits + else out:write(string.format("%3d",head.id)) + end + if head.id==37 then out:write("\"",unicode.utf8.char(head.char),"\" ->") + else out:write(" ->") + end + if head.next == nil then out:write("nil") + else out:write(string.format("%3d",head.next.id)) + end + out:write(" ("..ntype[head.id].."->") + if head.next==nil then out:write("nil)\n") + else out:write(ntype[head.next.id]..")\n") + end + if head.id==0 or head.id==1 then printList(head.head) -- Rekursion + end + head=head.next +end +return true +end +\end{luacode*} +%StartShownPreambleCommands +\begin{luacode*} +function markList(List) + for n in node.traverse(List) do + if n.id==1 then markList(List.head) + elseif n.id==0 then -- Zeilenanfang gefunden + for m in node.traverse(n.head) do + if m.id==10 or m.id==12 or m.id==7 or m.id==11 then + m=node.remove(n.head,m) + end end end end + return true +end +\end{luacode*} +%StopShownPreambleCommands +\begin{document} +\directlua{luatexbase.add_to_callback("post_linebreak_filter",markList,"markList")} +\directlua{luatexbase.add_to_callback("post_linebreak_filter",printList,"printList")} +\blindtext \par +\directlua{luatexbase.remove_from_callback("post_linebreak_filter","markList")} +\directlua{luatexbase.remove_from_callback("post_linebreak_filter","printList")} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/04-04-17.lualtx b/Master/texmf-dist/doc/luatex/luaintro/04-04-17.lualtx new file mode 100644 index 00000000000..1aee18ad883 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/04-04-17.lualtx @@ -0,0 +1,70 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 04-04-17 auf Seite 100. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\textwidth=320pt +%StartShownPreambleCommands +\usepackage{luacode,libertine} +\begin{luacode*} +function active_hyphen (head) + local orig_head = head + while head do + if head.id == 37 then + head.subtype = 1 + if head.char == 45 then + local p = node.new("penalty") + p.penalty = 10000 + local g = node.new("glue") + g.spec = node.new("glue_spec") + g.spec.width = 0 + head.prev.next = p + p.next = head + p.prev = head.prev + g.prev = head + g.next = head.next + head.prev = p + head.next = g + g.next.prev = g + end + end + head = head.next + end + lang.hyphenate(orig_head) -- Trennungen neu testen + return true +end +\end{luacode*} +%StopShownPreambleCommands +\begin{document} +\noindent\rule{\linewidth}{0.5pt}\makebox(0,0){\put(0,-200){\line(0,1){100}}} +\par +Finally, all of the three antibiotics examined had a negative effect on +$\beta$-galactosidase activity from the time they were introduced to the +assay. \par +\directlua{luatexbase.add_to_callback("pre_linebreak_filter",active_hyphen,"hyphen")} +Finally, all of the three antibiotics examined had a negative effect on +$\beta$-galactosidase activity from the time they were introduced to the +assay.\par +\directlua{luatexbase.remove_from_callback("pre_linebreak_filter","hyphen")} +Finally, all of the three antibiotics examined had a negative effect on +$\beta$-galactosidase activity from the time they were introduced to the +assay. +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/04-04-2.lualtx b/Master/texmf-dist/doc/luatex/luaintro/04-04-2.lualtx new file mode 100644 index 00000000000..0c43868b83e --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/04-04-2.lualtx @@ -0,0 +1,43 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 04-04-2 auf Seite 87. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{145.16928pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{fontspec}\newlength\OneEX +\setsansfont[Path=target/CP/]{LinBiolinum_R.otf} +\setmainfont{Linux Libertine O} +\directlua {local function fix_biolinum_x(fontdata) + if fontdata.fullname:find("Biolinum") then + if fontdata.characters[string.byte("x")] then + fontdata.parameters.x_height = + fontdata.characters[string.byte("x")].height + end end end +luatexbase.add_to_callback("luaotfload.patch_font", + fix_biolinum_x, "patch.fix_biolinum_x")} +%StopShownPreambleCommands +\begin{document} +\Large\OneEX=1ex Lua\TeX\ und Lua\LaTeX\\ +\the\OneEX\\ \sffamily +\OneEX=1ex Lua\TeX\ und Lua\LaTeX\\ +\the\OneEX +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/04-04-3.lualtx b/Master/texmf-dist/doc/luatex/luaintro/04-04-3.lualtx new file mode 100644 index 00000000000..fad9b58463a --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/04-04-3.lualtx @@ -0,0 +1,40 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 04-04-3 auf Seite 88. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{luacode} +\begin{luacode} +function funny(data) + if string.find(data,"\\") then return data + else return string.reverse(data) + end +end +\end{luacode} +%StopShownPreambleCommands +\begin{document} +\directlua{luatexbase.add_to_callback("process_input_buffer",funny,"funny")} +Dies ist eine ganz normale Zeile, die unsinnigen Text +zeigt, der hier auch noch weitergeht :-) Nur +dies ist ok :-) \ldots +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/04-04-4.lualtx b/Master/texmf-dist/doc/luatex/luaintro/04-04-4.lualtx new file mode 100644 index 00000000000..7b2142502de --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/04-04-4.lualtx @@ -0,0 +1,34 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 04-04-4 auf Seite 88. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{169.16928pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\directlua {function fixTypo(data) + return string.gsub(data," dre "," der ") +end} +%StopShownPreambleCommands +\begin{document} +\directlua{luatexbase.add_to_callback( + "process_input_buffer",fixTypo,"fixTypo")} +Es ist dre Tippfehler. +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/04-04-5.lualtx2 b/Master/texmf-dist/doc/luatex/luaintro/04-04-5.lualtx2 new file mode 100644 index 00000000000..a27dbb25446 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/04-04-5.lualtx2 @@ -0,0 +1,78 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 04-04-5 auf Seite 91. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +\usepackage[margin=1cm]{geometry} +\usepackage[ngerman]{babel} +%StartShownPreambleCommands +\usepackage{luacode,multicol} +\begin{luacode*} +out=assert(io.open("target/CP/xlist3.nodes","w")) +local n=node.types() +function printnode(head) +while head do + if head.id==8 then + out:write(head.id..","..head.subtype) -- ein whatsits + else + out:write(string.format("%3d",head.id)) + end + if head.id==37 then + out:write("\"",string.char(head.char),"\" ->") + else + out:write(" ->") + end + if head.next == nil then + out:write("nil") + else + out:write(string.format("%3d",head.next.id)) + end + out:write(" ("..n[head.id].."->") + if head.next==nil then + out:write("nil)\n") + else + out:write(n[head.next.id]..")\n") + end + if head.id==0 or head.id==1 then printnode(head.head) -- Rekursion + end + head=head.next +end +return true +end +\end{luacode*} +%StopShownPreambleCommands +\begin{document} +\parbox{5cm}{% +\directlua{luatexbase.add_to_callback("post_linebreak_filter",printnode,"printnode")}% +Jetzt soll \hbox{hier ein} langer Text angegeben werden, dessen Knotenliste + wir betrachten.\par +Rot->Zeilenanfang\par Grun->Wortende\par Blau->Absatzende +\directlua{luatexbase.remove_from_callback("post_linebreak_filter","printnode")} +\directlua{out:close()}} +\newread\reader \openin\reader=target/CP/xlist3.nodes\relax\ttfamily +\begin{multicols*}{3} +\loop \readline\reader to \data + \unless\ifeof\reader \data\par +\repeat +\end{multicols*} +\closein\reader +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/04-04-6.lualtx b/Master/texmf-dist/doc/luatex/luaintro/04-04-6.lualtx new file mode 100644 index 00000000000..c59857c21a2 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/04-04-6.lualtx @@ -0,0 +1,55 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 04-04-6 auf Seite 91. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +\usepackage[ngerman]{babel} +%StartShownPreambleCommands +\usepackage{luacode} +\begin{luacode*} +function markNode(color) + local w=node.new("whatsit","pdf_literal") + w.data=string.format("q "..color.."RG 2 w 0 -0.1 m 0 10 l S Q") + return w +end +function markList(List) + for n in node.traverse(List) do + if n.id==1 then markList(List.head) + elseif n.id==0 then -- Zeilenanfang gefunden + n.head=node.insert_before( + n.head, n.head, markNode("1 0 0")) + end + end + return true +end +\end{luacode*} +%StopShownPreambleCommands +\begin{document} +\parbox{5cm}{% +\directlua{luatexbase.add_to_callback("post_linebreak_filter",markList,"markList")}% +Jetzt soll \hbox{hier ein} langer Text angegeben werden, dessen Knotenliste wir +betrachten.\par +Rot: Zeilenanfang\par +Grun: Wortende\par +Blau: Absatzende} +\directlua{luatexbase.remove_from_callback("post_linebreak_filter","markList")} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/04-04-7.lualtx b/Master/texmf-dist/doc/luatex/luaintro/04-04-7.lualtx new file mode 100644 index 00000000000..2dc44585062 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/04-04-7.lualtx @@ -0,0 +1,58 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 04-04-7 auf Seite 92. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +\usepackage[ngerman]{babel} +\usepackage{luacode} +\begin{luacode*} +function markNode(color) + local w=node.new("whatsit","pdf_literal") + w.data=string.format("q "..color.."RG 2 w 0 -0.1 m 0 10 l S Q") + return w +end +\end{luacode*} +%StartShownPreambleCommands + +\begin{luacode*} +function markList(List) + for n in node.traverse(List) do + if n.id==1 then markList(List.head) + elseif n.id==0 then -- Zeilenanfang gefunden + n.head=node.insert_before(n.head, n.head, markNode("1 0 0")) + for m in node.traverse(n.head) do + if m.id==10 and m.prev.id==37 then -- Wortende gefunden + m=node.insert_before(n.head, m, markNode("0 1 0")) + end end end end + return true +end +\end{luacode*} +%StopShownPreambleCommands +\begin{document} +\parbox{5cm}{% +\directlua{luatexbase.add_to_callback("post_linebreak_filter",markList,"markList")}% +Jetzt soll \hbox{hier ein} langer Text angegeben werden, dessen Knotenliste wir +betrachten.\par +Rot: Zeilenanfang\par Grun: Wortende\par +Blau: Absatzende} +\directlua{luatexbase.remove_from_callback("post_linebreak_filter","markList")} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/04-04-8.lualtx b/Master/texmf-dist/doc/luatex/luaintro/04-04-8.lualtx new file mode 100644 index 00000000000..d726058a87c --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/04-04-8.lualtx @@ -0,0 +1,62 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 04-04-8 auf Seite 93. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +\usepackage[ngerman]{babel} +\usepackage{luacode} +\begin{luacode*} +function markNode(color) + local w=node.new("whatsit","pdf_literal") + w.data=string.format("q "..color.."RG 2 w 0 -0.1 m 0 10 l S Q") + return w +end +\end{luacode*} +%StartShownPreambleCommands + +\begin{luacode*} +function markList(List) + for n in node.traverse(List) do + if n.id==1 then markList(List.head) + elseif n.id==0 then -- Zeilenanfang gefunden + n.head=node.insert_before(n.head, n.head, markNode("1 0 0")) + for m in node.traverse(n.head) do + if m.id==10 and m.prev.id==37 then -- Wortende gefunden + m=node.insert_before(n.head, m, markNode("0 1 0")) + end + if m.id == 12 then -- Absatzende gefunden + m = node.insert_before(n.head, m, markNode("0 0 1")) + end end end end + return true +end +\end{luacode*} +%StopShownPreambleCommands +\begin{document} +\parbox{5cm}{% +\directlua{luatexbase.add_to_callback("post_linebreak_filter",markList,"markList")}% +Jetzt soll \hbox{hier ein} langer Text angegeben werden, dessen Knotenliste wir +betrachten.\par +Rot: Zeilenanfang\par +Grun: Wortende\par +Blau: Absatzende} +\directlua{luatexbase.remove_from_callback("post_linebreak_filter","markList")} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/04-04-9.lualtx b/Master/texmf-dist/doc/luatex/luaintro/04-04-9.lualtx new file mode 100644 index 00000000000..3e8fffdb73e --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/04-04-9.lualtx @@ -0,0 +1,65 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 04-04-9 auf Seite 93. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +\usepackage[ngerman]{babel} +\usepackage{luacode} +\begin{luacode*} +function markNode(color) + local w=node.new("whatsit","pdf_literal") + w.data=string.format("q "..color.."RG 2 w 0 -0.1 m 0 10 l S Q") + return w +end +\end{luacode*} +%StartShownPreambleCommands + +\begin{luacode*} +function markList(List) + for n in node.traverse(List) do + if n.id==1 then markList(List.head) + elseif n.id==0 then -- Zeilenanfang gefunden + n.head=node.insert_before(n.head, n.head, markNode("1 0 0")) + for m in node.traverse(n.head) do + if m.id==10 and m.prev.id==37 then -- Wortende gefunden + m=node.insert_before(n.head, m, markNode("0 1 0")) + end + if m.id == 12 then -- Absatzende gefunden + m = node.insert_before(n.head, m, markNode("0 0 1")) + end + if m.id == 7 then -- Trennmöglichkeit gefunden + m = node.insert_before(n.head, m, markNode("[2]1 d 1 0 1")) + end end end end + return true +end +\end{luacode*} +%StopShownPreambleCommands +\begin{document} +\parbox{5cm}{% +\directlua{luatexbase.add_to_callback("post_linebreak_filter",markList,"markList")}% +Jetzt soll \hbox{hier ein} langer Text angegeben werden, dessen Knotenliste wir +betrachten.\par +Rot: Zeilenanfang\par +Grun: Wortende\par +Blau: Absatzende} +\directlua{luatexbase.remove_from_callback("post_linebreak_filter","markList")} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/05-01-1.lualtx b/Master/texmf-dist/doc/luatex/luaintro/05-01-1.lualtx new file mode 100644 index 00000000000..d5b3c37df2a --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/05-01-1.lualtx @@ -0,0 +1,40 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 05-01-1 auf Seite 102. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{317.53058pt} +%StartShownPreambleCommands +\directlua{tex.enableprimitives("",tex.extraprimitives())} +\def\Test{% + \ifnum\mathstyle=\textstyle \mbox{Text}% + \else\ifnum\mathstyle=\displaystyle \mbox{Display}% + \else\ifnum\mathstyle=\scriptstyle \mbox{\footnotesize Script}% + \else\ifnum\mathstyle=\scriptscriptstyle \mbox{\tiny ScriptScript}% + \else\ifnum\mathstyle=\crampeddisplaystyle \mbox{CDisplay}% + \else\ifnum\mathstyle=\crampedtextstyle \mbox{CText}% + \else\ifnum\mathstyle=\crampedscriptstyle \mbox{\footnotesize CScript}% + \else\ifnum\mathstyle=\crampedscriptscriptstyle \mbox{\tiny CScriptScript}% + \else \mbox{Nichts} \fi \fi \fi \fi \fi \fi \fi \fi} +%StopShownPreambleCommands +\begin{document} +$ L_{\Test}\Test L_{\Test_{\Test}} L^{{\Test}^{\Test}}$ +\[ L_{\Test}\Test L_{\Test_{\Test}} L^{{\Test}^{\Test}} \] +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/05-01-2.lualtx b/Master/texmf-dist/doc/luatex/luaintro/05-01-2.lualtx new file mode 100644 index 00000000000..1fcdb6d9c3f --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/05-01-2.lualtx @@ -0,0 +1,41 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 05-01-2 auf Seite 102. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{317.53058pt} +\directlua{tex.enableprimitives('',tex.extraprimitives())} +\def\Test{% + \ifnum\mathstyle=\textstyle \mbox{Text}% + \else\ifnum\mathstyle=\displaystyle \mbox{Display}% + \else\ifnum\mathstyle=\scriptstyle \mbox{\footnotesize Script}% + \else\ifnum\mathstyle=\scriptscriptstyle \mbox{\tiny ScriptScript}% + \else\ifnum\mathstyle=\crampeddisplaystyle \mbox{CDisplay}% + \else\ifnum\mathstyle=\crampedtextstyle \mbox{CText}% + \else\ifnum\mathstyle=\crampedscriptstyle \mbox{\footnotesize CScript}% + \else\ifnum\mathstyle=\crampedscriptscriptstyle \mbox{\tiny CScriptScript}% + \else \mbox{Nichts} \fi \fi \fi \fi \fi \fi \fi \fi} +%StartShownPreambleCommands +% Für \Test siehe Präambel im Beispiel vorher! +%StopShownPreambleCommands +\begin{document} +\huge $ {a^{\Test}_{\Test} \over b^{\Test}_{\Test}} $ $ {a^p_1\over b^p_1} $ +$\Ustack {a^{\Test}_{\Test} \over b^{\Test}_{\Test}}$ $ \Ustack{a^p_1\over b^p_1}$ +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/05-02-1.lualtx3 b/Master/texmf-dist/doc/luatex/luaintro/05-02-1.lualtx3 new file mode 100644 index 00000000000..496ba4bac25 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/05-02-1.lualtx3 @@ -0,0 +1,33 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 05-02-1 auf Seite 103. +%% +%% 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 +\def\OverBrace{\Umathaccent 0 0 "23DE}% new definition +\input luaotfload.sty +\font\testA={name:TG Pagella Math:mode=base;script=math} at 12pt +\font\testB={name:XITS Math:mode=base;script=math} at 12pt +%StopShownPreambleCommands +\relax +\textfont0=\testA +Pagella: $\Umathaccent 0 0 "0307 {\Umathchar 0 0 "1D434}$ +$\Umathaccent 0 0 "0308 {\Umathchar 0 0 "1D434}$ +$\OverBrace{f}$ \par \textfont0=\testB XITS:~~ +$\Umathaccent 0 0 "0307 {\Umathchar 0 0 "1D434}$ +$\Umathaccent 0 0 "0308 {\Umathchar 0 0 "1D434}$ +$\OverBrace{f}$ +\bye diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-02-1.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-02-1.lualtx new file mode 100644 index 00000000000..c8c44bcd7a2 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-02-1.lualtx @@ -0,0 +1,46 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-02-1 auf Seite 110. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\RequirePackage{filecontents} +\begin{filecontents*}{\jobname.html} +<h1>Das Paket interpreter</h1> +<h3>Herbert Voß</h3> +<!-- Erstelle den Titel --> +<p> Irgend ein sinnloser Text </p> <p>Noch mehr Text.</p> +\end{filecontents*} +\begin{filecontents*}{i-html.lua} +interpreter.add_pattern{ pattern="%<h1>(.-)%</h1>",replace=[[\title{%1}]] } +interpreter.add_pattern{ pattern="%<h3>(.-)%</h3>",replace=[[\author{%1}]]} +interpreter.add_pattern{ pattern="%<!--(.-)%-->", replace=[[\maketitle]] } +interpreter.add_pattern{ pattern="%<p>(.-)%</p>", replace=[[\par{}%1\par{}]] } +\end{filecontents*} +\parindent=0pt +%StartShownPreambleCommands +\usepackage{fontspec,fancyvrb} +\usepackage{interpreter} +\setmainfont{Chaparral Pro} +%StopShownPreambleCommands +\begin{document} +\interpretfile{html}{\jobname.html}\par +\VerbatimInput{\jobname.html} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-03-1.lualtx3 b/Master/texmf-dist/doc/luatex/luaintro/06-03-1.lualtx3 new file mode 100644 index 00000000000..699cc5f7625 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-03-1.lualtx3 @@ -0,0 +1,55 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-03-1 auf Seite 112. +%% +%% 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\parindent=0pt +%StartShownPreambleCommands +\directlua{function printtable(tb, Ebene) + Ebene = Ebene or 1 + local tab = "\string\\hbox to "..tostring((Ebene-1)*2).."em{}" + for k,v in pairs(tb) do + if type(v) \string~= "table" then + tex.print("\string\\hbox{"..tab..k.."="..v.."}\string\\par") + else + tex.print("\string\\hbox{"..tab..k.."}\string\\par") + Ebene=Ebene+1 + printtable(v, Ebene) + end + end +end + +xml = require('luaxml-mod-xml') +handler = require('luaxml-mod-handler') +%--------------------------------------------------- +xmlBeispiel = [[ + <a> + <d>hello</d> + <b>world.</b> + <b>another one</b> + </a>]] +%--------------------------------------------------- +treehandler = handler.simpleTreeHandler() +x = xml.xmlParser(treehandler) +} +%StopShownPreambleCommands +\relax +foo \par\tt +\directlua{x:parse(xmlBeispiel)} \par % Parsen des xml-Codes +\directlua{printtable(treehandler.root)}\par % Ausgeben des xml-Baums als Text + +\directlua{print(xml.serialize(treehandler.root))} % Auf der Konsole ausgeben +\directlua{tex.print(treehandler.root["a"]["b"][2])} % Direktzugriff auf einzelne Elemente +\bye diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-04-1.lualtx3 b/Master/texmf-dist/doc/luatex/luaintro/06-04-1.lualtx3 new file mode 100644 index 00000000000..7c8dfe0651b --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-04-1.lualtx3 @@ -0,0 +1,40 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-04-1 auf Seite 113. +%% +%% 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. +%% +%% +%% ==== +\hyphenation{gra-fi-sche} +%StartShownPreambleCommands +\input lua-visual-debug.sty +\hsize=7cm \vsize=7cm% Beispielseite +%StopShownPreambleCommands +\relax +\centerline{\bf Das Paket + ``lua-visul-debug''} + +\vskip2ex +Dieses Paket von {\it +Patrick Gundlach} +unterst\"utzt eine visuelle +Fehlersuche bei der Formatierung +eines Textes, indem es einfache +grafische Elemente in die normale +Textausgabe einf\"ugt. Dabei werden +auch mathematische Ausdr\"ucke +entsprechend behandelt. + +$$ \int\limits_1^\infty + {1 \over x^2}{\rm d}x=1 $$ +\bye diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-05-1.lualtx3 b/Master/texmf-dist/doc/luatex/luaintro/06-05-1.lualtx3 new file mode 100644 index 00000000000..9f86918b77b --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-05-1.lualtx3 @@ -0,0 +1,43 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-05-1 auf Seite 115. +%% +%% 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 +\hsize=11cm \input chickenize.tex \countglyphs +%StopShownPreambleCommands +\relax +\centerline{\bf Das Paket ``chickenize''} + +\vskip2ex +\chickenizesetup{colorexpansion=false colorstretchnumbers=false}\colorstretch +Dieses Paket von {\it Arno Trautmann} unterst\"utzt die visuelle Darstellung +der Zeilenausrichtung. Diese w\"are im Idealfall ohne Dehnen und Stauchen +gesetzt, was in der Praxis selten vorkommt. Der Wert daf\"ur wird in einem +Knoten gespeichert und kann somit f\"ur grafische Zwecke ausgelesen werden. + +\medskip\chickenizesetup{colorstretchnumbers=true} +Dieses Paket von {\it Arno Trautmann} unterst\"utzt die visuelle Darstellung +der Zeilenausrichtung. Diese w\"are im Idealfall ohne Dehnen und Stauchen +gesetzt, was in der Praxis selten vorkommt. Der Wert daf\"ur wird in einem +Knoten gespeichert und kann somit f\"ur grafische Zwecke ausgelesen werden. + +\uncolorstretch\uppercasecolor\letterspaceadjust +Dieses Paket von {\it Arno Trautmann} unterst\"utzt die visuelle Darstellung +der Zeilenausrichtung. Diese w\"are im Idealfall ohne Dehnen und Stauchen +gesetzt, was in der Praxis selten vorkommt. Der Wert daf\"ur wird in einem +Knoten gespeichert und kann somit f\"ur grafische Zwecke ausgelesen werden. +\bye diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-05-2.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-05-2.lualtx new file mode 100644 index 00000000000..53f04b55e99 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-05-2.lualtx @@ -0,0 +1,42 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-05-2 auf Seite 116. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\textwidth=11cm +%StartShownPreambleCommands +\usepackage{chickenize,microtype} +%StopShownPreambleCommands +\begin{document} +\begin{center}\textbf{Das Paket ``chickenize''}\end{center} +\smallskip\microtypesetup{expansion=false} +\chickenizesetup{colorexpansion=true}\colorstretch +Dieses Paket von {\it Arno Trautmann} unterstützt die visuelle Darstellung der +Zeilenausrichtung. Diese wäre im Idealfall ohne Dehnen und Stauchen gesetzt, +was in der Praxis selten vorkommt. Der Wert dafür wird in einem Knoten +gespeichert und kann somit für grafische Zwecke ausgelesen werden. + +\medskip\microtypesetup{expansion=true} +Dieses Paket von {\it Arno Trautmann} unterstützt die visuelle Darstellung der +Zeilenausrichtung. Diese wäre im Idealfall ohne Dehnen und Stauchen gesetzt, +was in der Praxis selten vorkommt. Der Wert dafür wird in einem Knoten +gespeichert und kann somit für grafische Zwecke ausgelesen werden. +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-06-1.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-06-1.lualtx new file mode 100644 index 00000000000..1ad32b2a0c1 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-06-1.lualtx @@ -0,0 +1,39 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-06-1 auf Seite 117. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\parindent=0pt +%StartShownPreambleCommands +\usepackage{luabibentry} +\usepackage[ngerman]{babel} +\setupbibentry{\jobname} +%StopShownPreambleCommands +\begin{document} +Mit dem Befehl~\cite{lua-ref2} gibt es nur den normalen Verweis, mit +\bibentry{lua-ref2} jedoch den ganzen Bibliografieeintrag. + +Genauso wie bei \bibentry{unicode-math}. + +\nocite{unicode-math} +\bibliographystyle{alpha} +\bibliography{demo} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-07-1.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-07-1.lualtx new file mode 100644 index 00000000000..38b06c94ed3 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-07-1.lualtx @@ -0,0 +1,41 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-07-1 auf Seite 118. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{105.84532pt} +\setlength\parindent{0pt} +\usepackage{fontspec} +%StartShownPreambleCommands +\usepackage{luacode} +\newcommand\Verein{DANTE e.V.}\newcommand\Ort{Heidelberg} +%StopShownPreambleCommands +\begin{document} +\begin{luacode} +function Sonderzeichen(T1,T2) + local a = T1 .. "\\\\" .. T2 .. "\\par" -- T1\\\\T2\\par + local b = [[ T1\\T2 ]] -- "T1"\\\\"T2" + local c = T1 .. "\\newline " .. T2 -- T1\\newline T2 + local d = [[ T1\string\newline T2 ]] -- "T1"\\newline "T2" + tex.print(a,b,c,d) +end +\end{luacode} +\directlua{Sonderzeichen("\Verein","\Ort")} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-07-2.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-07-2.lualtx new file mode 100644 index 00000000000..4e97a0def85 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-07-2.lualtx @@ -0,0 +1,49 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-07-2 auf Seite 119. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{141.1235pt} +\setlength\parindent{0pt} +\usepackage{fontspec} +%StartShownPreambleCommands +\usepackage{luacode} +%StopShownPreambleCommands +\begin{document} +\begin{luacode*} +function AlternierendeSumme(Max) -- Maximalzahl + local Start = os.clock() -- Startzeit holen + local Summe = 1 -- Startwert + local k0 = 1 -- Zähler + for k=2, Max do -- For-Schleife + k0 = k0 + k -- Zählersumme + if k % 2 == 0 then Summe = Summe - k0/(k*k) + else Summe = Summe + k0/(k*k) + end + end + local Stop = os.clock() -- Endzeit holen + tex.sprint(Summe .. " (" .. Stop-Start .. " sek)" ) +end +\end{luacode*} +Die Summe ist für $k=1000001$ gleich +\directlua{AlternierendeSumme(1000001)}. +In der Klammer steht die für die Berechnung +benötigte Zeit. +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-07-3.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-07-3.lualtx new file mode 100644 index 00000000000..aab91ff3eae --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-07-3.lualtx @@ -0,0 +1,28 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-07-3 auf Seite 119. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{193.16928pt} +\setlength\parindent{0pt} +\usepackage{fontspec} +\begin{document} +Datum: \directlua{tex.print(os.date())} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-07-4.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-07-4.lualtx new file mode 100644 index 00000000000..7fa1a972df5 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-07-4.lualtx @@ -0,0 +1,29 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-07-4 auf Seite 119. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{169.16928pt} +\setlength\parindent{0pt} +\usepackage{fontspec} +\begin{document} +Die aktuelle Uhrzeit ist +\directlua{tex.print(os.date("\%H:\%M:\%S"))} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-07-5.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-07-5.lualtx new file mode 100644 index 00000000000..5a3368d8a4c --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-07-5.lualtx @@ -0,0 +1,31 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-07-5 auf Seite 120. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +\usepackage{libertine} +\begin{document} +{\catcode`\_=10 \directlua{tex.print(os.getenv("LANG")..": ")}} +\directlua{ os.setlocale("","time") % hole aktuelle Einstellung + os.setlocale("de_DE","time") + tex.print(os.date("Heute ist ein \%A im Monat \%B"))} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-09-1.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-09-1.lualtx new file mode 100644 index 00000000000..9b17145a37e --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-09-1.lualtx @@ -0,0 +1,37 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-09-1 auf Seite 121. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{193.16928pt} +\usepackage[ngerman]{babel} +\usepackage{filecontents}\setlength\parindent{0pt} +%StartShownPreambleCommands +\begin{filecontents*}{\jobname.bsp} +Dre +PAris +\end{filecontents*} +\usepackage{spelling} +%StopShownPreambleCommands +\begin{document} +Dre Eifelturm in PAris an der Seine.\par +\spellingreadbad{target/CP/\jobname.bsp} +Dre Eifelturm in PAris an der Seine. +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-10-1.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-10-1.lualtx new file mode 100644 index 00000000000..bc314244d51 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-10-1.lualtx @@ -0,0 +1,38 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-10-1 auf Seite 121. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{193.16928pt} +\setlength\textwidth{6.5cm} +%StartShownPreambleCommands +\usepackage{fontspec,microtype} +\usepackage[mark]{lua-check-hyphen} +\usepackage[ngerman]{babel} +%StopShownPreambleCommands +\begin{document} +Die Kontrolle von gut getrennten Wörtern +ist viel einfacher, wenn man eine richtige +Liste der getrennten Wörter hier vorliegen +hat. Denn dann kann man diese gezielt +durchsehen und die Wahrscheinlichkeit, +dass eine vielleicht Trennung übersehen +wird, sinkt damit automatisch.\par +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-11-1.sh b/Master/texmf-dist/doc/luatex/luaintro/06-11-1.sh new file mode 100644 index 00000000000..9865a86440e --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-11-1.sh @@ -0,0 +1,19 @@ +#!/bin/sh +# +# Ein Beispiel der DANTE-Edition +# +## Beispiel 06-11-1 auf Seite 121. +# +# 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. +# +# Running otfinfo on Linux +# +#CODEbegin +otfinfo -i ~/.fonts/Minion/MinionPro-Regular.otf +#CODEend diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-11-10.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-11-10.lualtx new file mode 100644 index 00000000000..7c983c118b5 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-11-10.lualtx @@ -0,0 +1,32 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-11-10 auf Seite 126. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +%StartShownPreambleCommands +\usepackage{fontspec} +%StopShownPreambleCommands +\begin{document} +\fontspec{Iwona} Ein Test in der Schrift Iwona und nun ein Wechsel zur +{\fontspec{Kurier}Schrift Kurier und nun zur Schrift {\fontspec{Antykwa Poltawskiego} +allerletzt die Schrift Antykwa Poltawskiego,}} die nicht wie +\fontspec{HelveticaNeue}Helvetica Neue aussieht. +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-11-11.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-11-11.lualtx new file mode 100644 index 00000000000..9f90539a785 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-11-11.lualtx @@ -0,0 +1,34 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-11-11 auf Seite 127. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength{\parindent}{0em} +%StartShownPreambleCommands +\usepackage{fontspec} +%StopShownPreambleCommands +\begin{document} +Ein Test mit der Berthold-Imago-Schrift:\par +\fontspec[Path=/home/voss/Fonts/OpenType/B/Berthold/, + Extension=.otf]{BertholdImagoBQ-Book} +Ein ganz \textit{normaler Text} in der neuen schönen Schrift, die als \textbf{OpenType} +eingebunden wurde. +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-11-12.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-11-12.lualtx new file mode 100644 index 00000000000..2d468d34fb9 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-11-12.lualtx @@ -0,0 +1,44 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-11-12 auf Seite 128. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength{\parindent}{0em} +\usepackage[ngerman]{babel} +%StartShownPreambleCommands +\usepackage{fontspec} +\setmainfont[Path=/home/voss/.fonts/Berthold/, + Extension=.otf, + UprightFont = * Book, + ItalicFont = * BookItalic, + BoldItalicFont= * ExtraBoldItalic, + BoldFont = * ExtraBold +]{BertholdImagoBQ-} +\newfontface\Script[Path=/home/voss/.fonts/Berthold/,Extension=.otf,Scale=1.1]% + {BertholdScriptBQ-Medium} +%StopShownPreambleCommands +\begin{document} +Ein Test mit der Berthold-Imago-Schrift:\par +Ein ganz normaler Text in der neuen schönen Schrift, die als +\textbf{OpenType"=Schrift} eingebunden wurde. \textit{Die Schrift als +Italic und nun zusätzlich \bfseries als fette Variante} \par +\Script Berthold kommt auch mit einer Scriptvariante, die ganz nett ist. +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-11-13.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-11-13.lualtx new file mode 100644 index 00000000000..821aed7ec24 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-11-13.lualtx @@ -0,0 +1,35 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-11-13 auf Seite 129. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +%StartShownPreambleCommands +\usepackage{fontspec} +\setmainfont{Linux Libertine O}\setsansfont{Linux Biolinum O} +\setmonofont[Scale=0.85]{Bitstream Vera Sans Mono} +%StopShownPreambleCommands +\begin{document} +Die normale Schrift ist die Libertine, die es auch \textbf{fett gibt}.\par +\sffamily Die serifenlose die Biolinum, die es auch \textbf{fett gibt}.\par +\ttfamily Und die Monoschrift ist die Vera, die es auch \textbf{fett gibt}.\par +\addfontfeature{FakeStretch=0.85}% +Und die Monoschrift ist die Vera, die es auch \textbf{fett gibt}. +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-11-14.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-11-14.lualtx new file mode 100644 index 00000000000..d1df475b8fd --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-11-14.lualtx @@ -0,0 +1,35 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-11-14 auf Seite 129. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength{\parindent}{0em} +\usepackage[ngerman]{babel} +%StartShownPreambleCommands +\usepackage{libertine} +%StopShownPreambleCommands +\begin{document} +Das ist die Libertine und \textsf{dies ist die Biolinum}\par +{\bfseries Das ist die Libertine und \textsf{dies ist die Biolinum}}\par +{\itshape Das ist die Libertine und \textsf{dies ist die Biolinum}}\par +{\scshape Das ist die Libertine und \textsf{dies ist die Biolinum}}\par +\LKeyTux\ \LKeyStrg\ \LKey{a}\LKey{b} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-11-15.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-11-15.lualtx new file mode 100644 index 00000000000..11365892499 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-11-15.lualtx @@ -0,0 +1,38 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-11-15 auf Seite 129. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{145.16928pt} +\setlength{\parindent}{0em} +%StartShownPreambleCommands +\usepackage{fontspec,xunicode}\setmainfont{Optima} +\setmathrm{Optima}\setboldmathrm[ + BoldFont={Optima ExtraBlack}]{Optima Bold} +%StopShownPreambleCommands +\begin{document} +Text in der Schrift Optima. \par +$Optima\ \mathrm{Optima}$\boldmath +\[ \int\limits_\mathbf{1}^\mathbf{\infty} + \,\frac{1}{x}\,\mathrm{d}x \] +\unboldmath +\[ \int\limits_\mathbf{1}^\mathbf{\infty} + \,\frac{1}{x}\,\mathrm{d}x \] +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-11-16.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-11-16.lualtx new file mode 100644 index 00000000000..960c7da6e82 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-11-16.lualtx @@ -0,0 +1,38 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-11-16 auf Seite 131. +%% +%% Copyright (C) 2012 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{169.16928pt} +\setlength{\parindent}{0em} +%StartShownPreambleCommands +\usepackage{fontspec} + \newcounter{var}\newcounter{trans} +\usepackage{ifthen} +%StopShownPreambleCommands +\begin{document} +\Huge \rule{0pt}{2cm} + \whiledo{\value{var}<9}{% + \stepcounter{trans}% + \edef\1{\noexpand\fontspec[ + Color=5599\thetrans\thetrans]{Zapfino}}\1% + \makebox[0.75\width]{d}% + \stepcounter{var}} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-11-17.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-11-17.lualtx new file mode 100644 index 00000000000..85693802758 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-11-17.lualtx @@ -0,0 +1,40 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-11-17 auf Seite 132. +%% +%% Copyright (C) 2012 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength{\parindent}{0em} +%StartShownPreambleCommands +\usepackage{fontspec}% lualatex +\defaultfontfeatures{Ligatures=TeX} +\setmainfont[SmallCapsFont={Linux Libertine O Capitals}, + SmallCapsFeatures={Letters=SmallCaps}]{Linux Libertine O} +\newfontface\scfont[Letters=SmallCaps]{Linux Libertine O Capitals} +\usepackage{microtype} +%StopShownPreambleCommands +\begin{document} +\scshape{Example of small caps}\par +\textls{\scshape{Example of small caps with textls}}\par +\scshape{\textls{Example of small caps with textls inside}}\par +{\lsstyle\scshape{Example of small caps with lsstyle}}\par +{\scfont Example of Letters=SmallCaps}\par +{\scfont\textls{Example of textls with Letters=SmallCaps}} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-11-18.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-11-18.lualtx new file mode 100644 index 00000000000..6321e382170 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-11-18.lualtx @@ -0,0 +1,41 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-11-18 auf Seite 133. +%% +%% Copyright (C) 2012 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{169.16928pt} +\usepackage{filecontents}\setlength{\parindent}{0em} +%StartShownPreambleCommands +\begin{filecontents*}{texgyrebonum.fea} +languagesystem DFLT dflt; +languagesystem latn dflt; +feature kern { pos a u -90; +pos u s -60; pos b r -70; } kern; +\end{filecontents*} +\usepackage{fontspec} +\setmainfont[Renderer=Basic + ]{TeX Gyre Bonum} +%StopShownPreambleCommands +\begin{document} +{\huge aufbrausen} (ohne)\par +\addfontfeatures{% + FeatureFile=texgyrebonum.fea} +{\huge aufbrausen} (mit) +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-11-2.sh b/Master/texmf-dist/doc/luatex/luaintro/06-11-2.sh new file mode 100644 index 00000000000..f4fdea82428 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-11-2.sh @@ -0,0 +1,19 @@ +#!/bin/sh +# +# Ein Beispiel der DANTE-Edition +# +## Beispiel 06-11-2 auf Seite 121. +# +# 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. +# +# Running otfinfo on Linux +# +#CODEbegin +otfinfo -h +#CODEend diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-11-3.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-11-3.lualtx new file mode 100644 index 00000000000..2218ff51329 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-11-3.lualtx @@ -0,0 +1,35 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-11-3 auf Seite 124. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength{\parindent}{0em} +%StartShownPreambleCommands +\usepackage{fontspec} +\setmainfont{Cambria} +\newfontface\Arial{Arial} \newfontface\DejaVu{DejaVu Serif} +\newfontface\Helvetica{HelveticaNeue} +%StopShownPreambleCommands +\begin{document} +Ein Test in der Schrift Cambria und nun ein Wechsel zur {\DejaVu Schrift +Dejavu und nun zu {\Arial allerletzt die Schrift Arial,}} die ebenso ein +Klon von \Helvetica Helvetica Neue ist, wie \TeX\ Gyre Heros. +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-11-4.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-11-4.lualtx new file mode 100644 index 00000000000..637960cdc59 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-11-4.lualtx @@ -0,0 +1,34 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-11-4 auf Seite 124. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength{\parindent}{0em} +%StartShownPreambleCommands +\usepackage{fontspec} +\newfontface\DejaVuSans{DejaVu Sans} +\newfontfamily\DVSerif{DejaVu Serif} +%StopShownPreambleCommands +\begin{document} +Die Schrift \DejaVuSans DejaVu Sans kommt \textit{sehr} \textbf{groß} daher. +\DVSerif Auch die Schrift DejaVu Serif kommt \textit{sehr} \textbf{groß} +daher. \rmfamily Rückschaltung auf die Standardschrift. +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-11-5.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-11-5.lualtx new file mode 100644 index 00000000000..7a31e1b9fdb --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-11-5.lualtx @@ -0,0 +1,32 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-11-5 auf Seite 125. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength{\parindent}{0em} +%StartShownPreambleCommands +\usepackage{fontspec} +\newfontface{\Warnock}[Contextuals=WordFinal]{Warnock Pro Regular} +%StopShownPreambleCommands +\begin{document} +\Warnock Ein Text in Italic der Warnock Schrift. +\itshape Ein Text in Italic der Warnock Schrift. +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-11-6.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-11-6.lualtx new file mode 100644 index 00000000000..a8efd8f254f --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-11-6.lualtx @@ -0,0 +1,33 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-11-6 auf Seite 125. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength{\parindent}{0em} +%StartShownPreambleCommands +\usepackage{fontspec} +%StopShownPreambleCommands +\begin{document} +\fontspec{Cambria} Ein Test in der Schrift Cambria und nun ein Wechsel zur +{\fontspec{DejaVu Serif}Schrift Dejavu und nun zu {\fontspec{Arial} allerletzt +die Schrift Arial,}} die ebenso ein Klon von \fontspec{HelveticaNeue}Helvetica Neue +ist, wie \TeX\ Gyre Heros. +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-11-7.sh b/Master/texmf-dist/doc/luatex/luaintro/06-11-7.sh new file mode 100644 index 00000000000..fb104cd664e --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-11-7.sh @@ -0,0 +1,19 @@ +#!/bin/sh +# +# Ein Beispiel der DANTE-Edition +# +## Beispiel 06-11-7 auf Seite 125. +# +# 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. +# +# Running pdffonts on Linux +# +#CODEbegin +pdffonts 02-03-3.pdf +#CODEend diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-11-8.sh b/Master/texmf-dist/doc/luatex/luaintro/06-11-8.sh new file mode 100644 index 00000000000..1ee9f20a132 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-11-8.sh @@ -0,0 +1,19 @@ +#!/bin/sh +# +# Ein Beispiel der DANTE-Edition +# +## Beispiel 06-11-8 auf Seite 125. +# +# 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. +# +# Running fc-list on Linux +# +#CODEbegin +fc-list Cambria +#CODEend diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-11-9.sh b/Master/texmf-dist/doc/luatex/luaintro/06-11-9.sh new file mode 100644 index 00000000000..2eaf0abed96 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-11-9.sh @@ -0,0 +1,19 @@ +#!/bin/sh +# +# Ein Beispiel der DANTE-Edition +# +## Beispiel 06-11-9 auf Seite 125. +# +# 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. +# +# Running fc-list on Linux +# +#CODEbegin +fc-list : family | sort | head +#CODEend diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-12-1.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-12-1.lualtx new file mode 100644 index 00000000000..9c18cfae88e --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-12-1.lualtx @@ -0,0 +1,33 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-12-1 auf Seite 134. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{193.16928pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{unicode-math} +\setmathfont{Cambria Math} +%StopShownPreambleCommands +\begin{document} +$x₁₂₃ x₉₊₋ x₊₋₍ x₍₌₎ xₑₒₓ$\\ +$x⁰ⁱ⁺⁾ⁿ² xⁱ⁺⁾ⁿ² xⁿ² x²ⁱ⁺⁾ⁿ$\\ +$x₃₄²ⁱ⁺⁾ⁿ$ +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-12-10.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-12-10.lualtx new file mode 100644 index 00000000000..7845c068f9a --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-12-10.lualtx @@ -0,0 +1,32 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-12-10 auf Seite 139. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{121.16928pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{unicode-math} +\setmathfont{TGPagella Math} +%StopShownPreambleCommands +\begin{document} +\[ \mathbb{\sum}_{i=1}^n=\frac{n^2+n}{\mathbb{2}} \] +\[ \Bbbsum_{i=1}^n=\frac{n^2+n}{\mathbb{2}} \] +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-12-11.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-12-11.lualtx new file mode 100644 index 00000000000..dae228639ba --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-12-11.lualtx @@ -0,0 +1,37 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-12-11 auf Seite 141. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{169.16928pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{amsmath,unicode-math} +\setmathfont{XITS Math}\def\P{\char`\'} +%StopShownPreambleCommands +\begin{document} +\begin{align*} +y &= x^5 & y &= x^5 \\ +y' &= 5x^4 & y^\prime &=5x^4 \\ +y'' &= 20x^3 & y^\dprime &=20x^3\\ +y''' &= 60x^2 & y^\trprime&=60x^2\\ +y''''&= 120x & y^\qprime &=120x \\ +\end{align*} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-12-12.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-12-12.lualtx new file mode 100644 index 00000000000..3ed92e475f2 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-12-12.lualtx @@ -0,0 +1,35 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-12-12 auf Seite 141. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\DeclareSymbolFont{UPM}{U}{eur}{m}{n} +\DeclareMathSymbol{\uppartial}{0}{UPM}{"40} +\usepackage{unicode-math} +\unimathsetup{partial=upright} +\setmathfont{Latin Modern Math} +%StopShownPreambleCommands +\begin{document} +\[ \frac{\uppartial f(x,y,z)}{\uppartial x} = z^2\cdot x \] +\[ \frac{\partial f(x,y,z)}{\partial x} = z^2\cdot x \] +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-12-13.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-12-13.lualtx new file mode 100644 index 00000000000..26a399f6988 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-12-13.lualtx @@ -0,0 +1,31 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-12-13 auf Seite 142. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{169.16928pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{unicode-math} +\setmathfont{Latin Modern Math} +%StopShownPreambleCommands +\begin{document} +\[ a²^^^^2086+b²^^^^2086=c²^^^^2086 \] +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-12-14.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-12-14.lualtx new file mode 100644 index 00000000000..21917e035cc --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-12-14.lualtx @@ -0,0 +1,37 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-12-14 auf Seite 142. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{unicode-math} \setmathfont{XITS Math} +%StopShownPreambleCommands +\begin{document} +$A^^^^2070{}^^^^00b9{}^^^^00b2{}^^^^00b3{}^^^^2074{}^^^^2075 +{}^^^^2076{}^^^^2077{}^^^^2078{}^^^^2079{}^^^^207a{}^^^^207b +{}^^^^207c{}^^^^207d{}^^^^207e{}^^^^2071{}^^^^207f$ \par +$A^^^^2080{}^^^^2081{}^^^^2082{}^^^^2083{}^^^^2084{}^^^^2085 +{}^^^^2086{}^^^^2087{}^^^^2088{}^^^^2089{}^^^^208a{}^^^^208b +{}^^^^208c{}^^^^208d{}^^^^208e{}^^^^2090{}^^^^2091{}^^^^1d62 +{}^^^^2092{}^^^^1d63{}^^^^1d64{}^^^^1d65{}^^^^2093{}^^^^1d66 +{}^^^^1d67{}^^^^1d68{}^^^^1d69{}^^^^1d6a$ +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-12-2.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-12-2.lualtx new file mode 100644 index 00000000000..9530a08598f --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-12-2.lualtx @@ -0,0 +1,33 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-12-2 auf Seite 135. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{169.16928pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{unicode-math} +\setmathfont{Latin Modern Math} +%StopShownPreambleCommands +\begin{document} +\huge$ab\mathbb{ab}$\\ +\setmathfont[range=\mathbb]{XITS Math} +$ab\mathbb{ab}$ +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-12-3.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-12-3.lualtx new file mode 100644 index 00000000000..aa9857b2270 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-12-3.lualtx @@ -0,0 +1,34 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-12-3 auf Seite 135. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{121.16928pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{unicode-math} +\setmathfont{Latin Modern Math} +%StopShownPreambleCommands +\begin{document} +\Large$aB1\alpha\Lambda\mathbfsfit{aB1\alpha\Lambda}$\\ +\setmathfont[% + range=\mathbfsfit/{latin,greek,Greek}]{TGPagella Math} +$aB1\alpha\Lambda\mathbfsfit{aB1\alpha\Lambda}$ +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-12-4.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-12-4.lualtx new file mode 100644 index 00000000000..c66750b2d08 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-12-4.lualtx @@ -0,0 +1,34 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-12-4 auf Seite 135. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{193.16928pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{unicode-math} +\setmathfont{Latin Modern Math} +\setmathfont[ + range={"0062-"006C,"0040-"004E}]{XITS Math} +%StopShownPreambleCommands +\begin{document} +$ABCDEFGHIJKLMNOPQRSTUVWXYZ$\\ +$abcdefghijklmnopqrstuvwxyz$ +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-12-5.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-12-5.lualtx new file mode 100644 index 00000000000..e4d9a1c1a0a --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-12-5.lualtx @@ -0,0 +1,47 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-12-5 auf Seite 136. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage[sans-style=upright]{unicode-math} +\setmainfont[Renderer=Basic,Ligatures=TeX, + ItalicFeatures={RawFeature=+itlc}]{TeX Gyre Bonum} +\setsansfont[Renderer=Basic,Ligatures=TeX,Scale=MatchUppercase, + ItalicFeatures={RawFeature=+itlc}]{TeX Gyre Heros} +\setmonofont[Scale=MatchUppercase]{Luxi Mono} +\setmathfont{TGPagella Math}% Allgemeine Vorgabe +\setmathfont[range=\mathsfup/{latin,Latin,num}]{TeX Gyre Heros} +\setmathfont[range=\mathtt/{latin,Latin,num}]{Luxi Mono} +\setmathfont[range=\mathup/{greek,Greek}]{XITS Math} +\setmathfont[range={"22C5}]{XITS Math}% Angström +\setmathfont[range=\mathscr]{XITS Math} +%StopShownPreambleCommands +\begin{document} +Normaler Text in Bonum (Bookman)\par +\textsf{Sans Serif in Heros (Helvetica)}\hfill +\texttt{Typewriter mit Luxi Mono}\par +$z=f(x,y,z)$ (Pagella Math, die Standard-Matheschrift )\par +$\mathsf{xyzXYZ123}$ (Heros) \hfill $\mathsfup{xyzXYZ123}$ (Heros)\par +$\mathtt{xyzXYZ123}$ (Luxi) \hfill $\mathup{αβγΑΒΓ}$ (XITS) \par +\AA$\mathchar"22C5$ (XITS) \hfill $\mathscr{abcdABCD1234}$ (XITS) +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-12-6.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-12-6.lualtx new file mode 100644 index 00000000000..7f61cfdec27 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-12-6.lualtx @@ -0,0 +1,37 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-12-6 auf Seite 136. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{121.16928pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{unicode-math} +\setmathfont{Latin Modern Math} +\setmathfont[version=TGP]{TGPagella Math} +\setmathfont[version=TGT]{TGTermes Math} +%StopShownPreambleCommands +\begin{document} +\[ \int\limits_1^\infty \frac1{x^2}\mathrm dx=1 \] +\mathversion{TGP} +\[ \int\limits_1^\infty \frac1{x^2}\mathrm dx=1 \] +\mathversion{TGT} +\[ \int\limits_1^\infty \frac1{x^2}\mathrm dx=1 \] +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-12-7.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-12-7.lualtx new file mode 100644 index 00000000000..7c8eda5faae --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-12-7.lualtx @@ -0,0 +1,34 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-12-7 auf Seite 137. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{unicode-math} +\setmathfont[script-font = {Asana Math}, + script-features = {Style=MathScript,Colour=FF0000}, + sscript-font = {Cambria Math}, + sscript-features= {Style=MathScriptScript,Colour=0000FF}]{XITS Math} +%StopShownPreambleCommands +\begin{document} +\[ 12345_{6789}^{1234_{56789}^{12345_{6789}}} \] +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-12-8.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-12-8.lualtx new file mode 100644 index 00000000000..35a5b617c06 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-12-8.lualtx @@ -0,0 +1,41 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-12-8 auf Seite 138. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{193.16928pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{unicode-math} +\setmathfont{XITS Math} +\unimathsetup{math-style=ISO, + bold-style=TeX} +%StopShownPreambleCommands +\begin{document} +${ABCDEFGHIJKLMNOPQRSTUVWXYZ}$\\ +${abcdefghijklmnopqrstuvwxyz}$\\ +${ΑΒΓΔΕΖΗΘϴΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ}$\\ +${αβγδεϵζηθϑικϰλμνξοπϖρϱςστυφϕχψω}$ + +$\mathbf{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$\\ +$\mathbf{abcdefghijklmnopqrstuvwxyz}$\\ +$\mathbf{ΑΒΓΔΕΖΗΘϴΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ}$\\ +$\mathbf{αβγδεϵζηθϑικϰλμνξοπϖρϱςστυφϕχψω}$ +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-12-9.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-12-9.lualtx new file mode 100644 index 00000000000..b4729a8c3b7 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-12-9.lualtx @@ -0,0 +1,38 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-12-9 auf Seite 139. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{unicode-math} \setmathfont{XITS Math} +\unimathsetup{math-style=TeX,bold-style=upright,sans-style=italic} +%StopShownPreambleCommands +\begin{document} +${ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz}$\\ +${ΑΒΓΔΕΖΗΘϴΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ αβγδεϵζηθϑικϰλμνξοπϖρϱςστυφϕχψω}$ + +$\mathbf{ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz}$\\ +$\mathbf{ΑΒΓΔΕΖΗΘϴΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ αβγδεϵζηθϑικϰλμνξοπϖρϱςστυφϕχψω}$ + +$\mathsf{ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz}$\\ +$\mathsf{ΑΒΓΔΕΖΗΘϴΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ αβγδεϵζηθϑικϰλμνξοπϖρϱςστυφϕχψω}$ +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/06-13-1.lualtx b/Master/texmf-dist/doc/luatex/luaintro/06-13-1.lualtx new file mode 100644 index 00000000000..2a9c58644c6 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/06-13-1.lualtx @@ -0,0 +1,36 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 06-13-1 auf Seite . +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\parindent=0pt +%StartShownPreambleCommands +\usepackage{amsmath,luatexja-fontspec,unicode-math} +\jfontspec{IPAexMincho} +%StopShownPreambleCommands +\begin{document} +\section{注记:数学模式下的日文字符} +p\TeX 支持在数学模式下的日文字符,如以下源码: + +$f_{高温}$~($f_{\text{high temperature}}$). +\[ y=(x-1)^2+2\quad よって\quad y>0 \] +$5\in 素:=\{\,p\in\mathbb N:\text{$p$ is a prime}\,\}$. +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/07-02-1.lualtx b/Master/texmf-dist/doc/luatex/luaintro/07-02-1.lualtx new file mode 100644 index 00000000000..abb30e9df57 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/07-02-1.lualtx @@ -0,0 +1,45 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 07-02-1 auf Seite 148. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{145.16928pt} +%StartShownPreambleCommands +\usepackage{luamplib} +%StopShownPreambleCommands +\begin{document} +Normaler Text \ldots\par +\begin{mplibcode} +beginfig(1); +u:=1.3cm; transform T; z1=(0,2u); n:=5; +for i=1 upto n-1: z[i+1]=z1 rotated (360*i/n); +endfor; +z1 transformed T=0.1[z1,z2]; +z2 transformed T=0.1[z2,z3]; +z3 transformed T=0.1[z3,z4]; +path p; +p = for i=1 upto n: z[i]--endfor cycle; +for i=0 upto 100: + fill p withcolor 0.2*white; p:=p transformed T; + fill p withcolor white; p:=p transformed T; +endfor; +endfig; +\end{mplibcode} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/07-02-2.lualtx b/Master/texmf-dist/doc/luatex/luaintro/07-02-2.lualtx new file mode 100644 index 00000000000..4c837415b70 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/07-02-2.lualtx @@ -0,0 +1,53 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 07-02-2 auf Seite 149. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +%StartShownPreambleCommands +\usepackage{luamplib} \newsavebox\MPBox +%StopShownPreambleCommands +\begin{document} +\begin{lrbox}{\MPBox} +\begin{mplibcode} +vardef randomwalk(expr C,wd,ht,n,l,f,r)=save A,B,a,b; + pair A,B;a=0; + draw ((wd,-ht)--(wd,ht)--(-wd,ht)--(-wd,-ht)--cycle) shifted C; + A=C; + for i=1 upto n: + forever: + b:=a*f+((uniformdeviate 2)-1)*180r; + B:=A+l*(uniformdeviate 1)*dir(b); + if (abs(xpart(B-C))>= wd) or (abs(ypart(B-C))>= ht): + B:=A+l*(uniformdeviate 2)*dir(b+180); + fi; + exitif (abs(xpart(B-C))< wd) and (abs(ypart(B-C))< ht); + endfor; + draw A--B;A:=B;a:=b mod 360; + endfor; +enddef; +beginfig(1) +randomwalk(origin, 2cm,2cm,1000,10mm,0,1); +randomwalk((5cm,0),2cm,2cm,3000, 4mm,1,0.3); +endfig; +\end{mplibcode} +\end{lrbox} +Text \fbox{\usebox\MPBox} Text +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/07-02-3.lualtx b/Master/texmf-dist/doc/luatex/luaintro/07-02-3.lualtx new file mode 100644 index 00000000000..ad65f3e714c --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/07-02-3.lualtx @@ -0,0 +1,40 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 07-02-3 auf Seite 150. +%% +%% 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +%StartShownPreambleCommands +\usepackage{luamplib} +%StopShownPreambleCommands +\begin{document} +\begin{mplibcode} +beginfig(1) +input metaobj; +newRecursiveBox.A(36) "rotangle(5)"; +scaleObj(A,0.06); +A.c=origin; +newVonKochFlake.B(3); +scaleObj(B,0.45); +A.e+(1cm,0)=B.w; +drawObj(A,B); +endfig; +\end{mplibcode} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/08-01-1.lua b/Master/texmf-dist/doc/luatex/luaintro/08-01-1.lua new file mode 100644 index 00000000000..c17069d2d44 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/08-01-1.lua @@ -0,0 +1,4 @@ +print("\076\117\097") +print("L\tu\ta") +text="Dies ist ein Text" +print ("text hat "..#text.." Zeichen") diff --git a/Master/texmf-dist/doc/luatex/luaintro/08-01-10.lua b/Master/texmf-dist/doc/luatex/luaintro/08-01-10.lua new file mode 100644 index 00000000000..c9f2d6f3e01 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/08-01-10.lua @@ -0,0 +1,8 @@ +function f(a) return (a*a) end +x=11;g =12 +a={ [f(3)]=g; "x", "yy"; x=1, + f(x), [30]=23; 45 } +print(table.maxn(a).." Elemente") +for i,j in pairs(a) do + print(i,j) +end diff --git a/Master/texmf-dist/doc/luatex/luaintro/08-01-11.lua b/Master/texmf-dist/doc/luatex/luaintro/08-01-11.lua new file mode 100644 index 00000000000..ea05390524f --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/08-01-11.lua @@ -0,0 +1,12 @@ +function f(a, b) return a,b end +function g(a, b, ...) return a,... end +function r() return 1,2,3 end +print(f(3)) +print(f(3, 4)) +print(f(3, 4, 5)) +print(f(r(), 10)) +print(f(r())) +print(g(3)) +print(g(3, 4)) +print(g(3, 4, 5, 8)) +print(g(5, r())) diff --git a/Master/texmf-dist/doc/luatex/luaintro/08-01-2.lua b/Master/texmf-dist/doc/luatex/luaintro/08-01-2.lua new file mode 100644 index 00000000000..3c9e71c7d25 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/08-01-2.lua @@ -0,0 +1,11 @@ +html=[[ +<HTML> +<HEAD> +<TITLE>LuaTeX und LuaLaTeX</TITLE> +</HEAD> +<BODY> +<A HREF="http://luatex.org">LuaTeX</A> +</BODY> +</HTML> +]] +print (html) diff --git a/Master/texmf-dist/doc/luatex/luaintro/08-01-3.lua b/Master/texmf-dist/doc/luatex/luaintro/08-01-3.lua new file mode 100644 index 00000000000..f571c8a1ee6 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/08-01-3.lua @@ -0,0 +1,12 @@ +html=[==[ +<HTML> +<HEAD> +<TITLE>Zeichenketten</TITLE> +</HEAD> +<BODY> +Zeichenketten kann + man in [[...]] setzen. +</BODY> +</HTML> +]==] +print (html) diff --git a/Master/texmf-dist/doc/luatex/luaintro/08-01-4.lua b/Master/texmf-dist/doc/luatex/luaintro/08-01-4.lua new file mode 100644 index 00000000000..85494df9cc8 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/08-01-4.lua @@ -0,0 +1,6 @@ +a=3 --[=[ +-- b=4; c=5 +d=6; e=7 ]=] +print(a,tostring(d),tostring(e)) +print("10"+a) +-- "10" wird in eine Zahl konvertiert diff --git a/Master/texmf-dist/doc/luatex/luaintro/08-01-5.lua b/Master/texmf-dist/doc/luatex/luaintro/08-01-5.lua new file mode 100644 index 00000000000..7abbfa5f101 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/08-01-5.lua @@ -0,0 +1,2 @@ +a=3; b=0xEEff +print(type(a),type(b)) diff --git a/Master/texmf-dist/doc/luatex/luaintro/08-01-6.lua b/Master/texmf-dist/doc/luatex/luaintro/08-01-6.lua new file mode 100644 index 00000000000..d96796eff7e --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/08-01-6.lua @@ -0,0 +1,3 @@ +i = 3; a = {} +i,a[i] = i+1,20 +print(i, a[3], a[4]) -- a[4] nicht definiert! diff --git a/Master/texmf-dist/doc/luatex/luaintro/08-01-7.lua b/Master/texmf-dist/doc/luatex/luaintro/08-01-7.lua new file mode 100644 index 00000000000..fb2a1a5c671 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/08-01-7.lua @@ -0,0 +1,6 @@ +x,y = 1,2 +x,y = y,x +print(x,y) +z=3 +x,y,z = y,z,x +print(x,y,z) diff --git a/Master/texmf-dist/doc/luatex/luaintro/08-01-8.lua b/Master/texmf-dist/doc/luatex/luaintro/08-01-8.lua new file mode 100644 index 00000000000..2eafc4c3756 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/08-01-8.lua @@ -0,0 +1,10 @@ +Wtage={"Sonntag", "Montag", "Dienstag","Mittwoch", + "Donnerstag", "Freitag", "Samstag"} +WtagNr={} -- neue Tabelle +for v,w in pairs(Wtage) do + WtagNr[w] = v +end +for i,j in pairs(WtagNr) do + print(string.format("%10s: %2i",i,j)) +end +print(i,j) -- nicht definiert diff --git a/Master/texmf-dist/doc/luatex/luaintro/08-01-9.lua b/Master/texmf-dist/doc/luatex/luaintro/08-01-9.lua new file mode 100644 index 00000000000..7acaa2bd787 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/08-01-9.lua @@ -0,0 +1,8 @@ +print(1 or 2) +print(1 and 2) +print(1 or error()) +print(nil or "nil") +print(nil and 1) +print(false and error()) +print(false and nil) +print(false or not nil) diff --git a/Master/texmf-dist/doc/luatex/luaintro/08-02-1.lua b/Master/texmf-dist/doc/luatex/luaintro/08-02-1.lua new file mode 100644 index 00000000000..2eb91910ae7 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/08-02-1.lua @@ -0,0 +1 @@ +print(math.sin(0.12345)^2+math.cos(0.12345)^2) diff --git a/Master/texmf-dist/doc/luatex/luaintro/09-01-1.lualtx b/Master/texmf-dist/doc/luatex/luaintro/09-01-1.lualtx new file mode 100644 index 00000000000..d1c4da2a545 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/09-01-1.lualtx @@ -0,0 +1,33 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 09-01-1 auf Seite 159. +%% +%% Copyright (C) 2012 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{193.16928pt} +\usepackage[ngerman]{babel} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{libertine} +%StopShownPreambleCommands +\begin{document} +Herbert Voß \\ +HERBERT VOẞ \\ +\textsc{Herbert Voß} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/09-01-2.lualtx b/Master/texmf-dist/doc/luatex/luaintro/09-01-2.lualtx new file mode 100644 index 00000000000..0b5a6c038fb --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/09-01-2.lualtx @@ -0,0 +1,31 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 09-01-2 auf Seite 159. +%% +%% Copyright (C) 2012 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{145.16928pt} +%StartShownPreambleCommands +\usepackage{fontspec} +\setmainfont[Ligatures=TeX]{TeX Gyre Pagella} +%StopShownPreambleCommands +\begin{document} +\texttt{Unicode:} ā ī ū ṃ ṅ ñ\par +\texttt{Macro: } \=a \={\i} \=u \d{m} \.n \~n +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/09-01-3.lualtx3 b/Master/texmf-dist/doc/luatex/luaintro/09-01-3.lualtx3 new file mode 100644 index 00000000000..e44ac317282 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/09-01-3.lualtx3 @@ -0,0 +1,27 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 09-01-3 auf Seite 160. +%% +%% Copyright (C) 2012 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\parindent=0pt +%StartShownPreambleCommands +\input luaotfload.sty +\font\testA="name:MinionPro:mode=node:+kern" at 16pt +\font\testB="name:MinionPro:mode=base:+kern" at 16pt +%StopShownPreambleCommands +\relax +{{\tt mode=node:} \testA ATT DATUM FOUNDATIONS}\par + {\tt mode=base:} \testB ATT DATUM FOUNDATIONS +\bye diff --git a/Master/texmf-dist/doc/luatex/luaintro/09-01-4.lualtx b/Master/texmf-dist/doc/luatex/luaintro/09-01-4.lualtx new file mode 100644 index 00000000000..bf097804c88 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/09-01-4.lualtx @@ -0,0 +1,37 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 09-01-4 auf Seite 160. +%% +%% Copyright (C) 2012 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{145.16928pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{fontspec} +\setsansfont[Scale=MatchLowercase, + BoldFont={DejaVu Sans Condensed Bold}, + BoldItalicFont={Florencesans SC Cond Bold Italic}, + ItalicFont={Gill Sans Light Italic}]{Helvetica} +%StopShownPreambleCommands +\begin{document} +\sffamily Dies ist die Helvetica.\par +\textbf{Dies ist jetzt DejaVu Sans}\par +\emph{\textbf{Dies ist Florence Sans}}\par +\emph{Dies ist die Gill Sans Light Italic} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/09-01-5.lualtx b/Master/texmf-dist/doc/luatex/luaintro/09-01-5.lualtx new file mode 100644 index 00000000000..25a3e11f43f --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/09-01-5.lualtx @@ -0,0 +1,35 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 09-01-5 auf Seite 160. +%% +%% Copyright (C) 2012 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle2} +\pagestyle{empty} +\setlength\textwidth{193.16928pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{fontspec} +\setmainfont{Linux Libertine O} +%StopShownPreambleCommands +\begin{document} +\large +Schiffe fielen flach ins Riffle.\par +\addfontfeatures{Ligatures={NoRequired, + NoCommon, NoContextual}} +Schiffe fielen flach ins Riffle. +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/09-01-6.lualtx b/Master/texmf-dist/doc/luatex/luaintro/09-01-6.lualtx new file mode 100644 index 00000000000..92a7ba7bdc7 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/09-01-6.lualtx @@ -0,0 +1,50 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 09-01-6 auf Seite 162. +%% +%% Copyright (C) 2012 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{xcolor,fontspec} +\def\red#1{\color{red} #1} +\def\reda#1{\fontspec[Color=red,Variant=2,Scale=4]{Zapfino Extra LT Pro}#1} +\def\redb#1{\fontspec[Color=red,Variant=3,Scale=4]{Zapfino Extra LT Pro}#1} +\def\redc#1{\fontspec[Color=red,Variant=4,Scale=4]{Zapfino Extra LT Pro}#1} +\def\redd#1{\fontspec[Color=red,Variant=5,Scale=4]{Zapfino Extra LT Pro}#1} +\def\rede#1{\fontspec[Color=red,Variant=6,Scale=4]{Zapfino Extra LT Pro}#1} +\def\redf#1{\fontspec[Color=red,Variant=7,Scale=4]{Zapfino Extra LT Pro}#1} +\def\redg#1{\fontspec[Color=red,Variant=8,Scale=4]{Zapfino Extra LT Pro}#1} +\def\blue#1{\color{blue} #1} +\def\bluea#1{\fontspec[Color=blue,Variant=2,Scale=4]{Zapfino Extra LT Pro}#1} +\def\blueb#1{\fontspec[Color=blue,Variant=3,Scale=4]{Zapfino Extra LT Pro}#1} +\def\bluec#1{\fontspec[Color=blue,Variant=4,Scale=4]{Zapfino Extra LT Pro}#1} +\def\blued#1{\fontspec[Color=blue,Variant=5,Scale=4]{Zapfino Extra LT Pro}#1} +\def\bluee#1{\fontspec[Color=blue,Variant=6,Scale=4]{Zapfino Extra LT Pro}#1} +\def\bluef#1{\fontspec[Color=blue,Variant=7,Scale=4]{Zapfino Extra LT Pro}#1} +\def\blueg#1{\fontspec[Color=blue,Variant=8,Scale=4]{Zapfino Extra LT Pro}#1} +\setmainfont[Ligatures={Common,Rare},Scale=4]{Zapfino Extra LT Pro} +%StopShownPreambleCommands +\begin{document} +{\red d}roo{\blue g} {\reda d}roo{\bluea g} +{\redb d}roo{\blueb g} {\redf d}roo{\bluef g}\\[.3cm] +{\redc d}roo{\bluec g} {\redd d}roo{\blued g} +{\rede d}roo{\bluee g} {\redg d}roo{\blueg g} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/09-03-1.lualtx b/Master/texmf-dist/doc/luatex/luaintro/09-03-1.lualtx new file mode 100644 index 00000000000..f7e1b080fff --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/09-03-1.lualtx @@ -0,0 +1,39 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 09-03-1 auf Seite 166. +%% +%% Copyright (C) 2012 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{121.16928pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{luacode} +%StopShownPreambleCommands +\begin{document} +\directlua{ +CumCDP_2012 = 1.00E-6 +ICumCDP_WIP_2012 = 2.00E-7 +ICumCDP_R = 1.00E-7 +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} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/09-03-2.lualtx b/Master/texmf-dist/doc/luatex/luaintro/09-03-2.lualtx new file mode 100644 index 00000000000..5b704ef6f29 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/09-03-2.lualtx @@ -0,0 +1,35 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 09-03-2 auf Seite 166. +%% +%% Copyright (C) 2012 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{121.16928pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{luacode} +\def\getVLength(#1,#2)(#3,#4){% + \directlua{tex.print(math.sqrt((#3-#1)^2+(#4-#2)^2))}\\ + \luaexec{tex.print(string.format("\%.4f",% + (math.sqrt((#3-#1)^2+(#4-#2)^2))))}} +%StopShownPreambleCommands +\begin{document} +Negative Zahlen extra Klammern!\par +\getVLength((-1),(-2))(4,2) +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/09-03-3.lualtx b/Master/texmf-dist/doc/luatex/luaintro/09-03-3.lualtx new file mode 100644 index 00000000000..970ff624a9b --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/09-03-3.lualtx @@ -0,0 +1,32 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 09-03-3 auf Seite 166. +%% +%% Copyright (C) 2012 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{121.16928pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\def\multido#1#2#3#4{% + \directlua{ for i=#1,#2,#3 do tex.print(#4) end}} +%StopShownPreambleCommands +\begin{document} +\multido{0}{17}{math.sqrt(3)}% + {i..": "..i*i.."\string\\par"} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/09-03-4.lualtx b/Master/texmf-dist/doc/luatex/luaintro/09-03-4.lualtx new file mode 100644 index 00000000000..fea59bc74d4 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/09-03-4.lualtx @@ -0,0 +1,39 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 09-03-4 auf Seite 167. +%% +%% Copyright (C) 2012 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{luacode} +\usepackage{listings} +\setmonofont[Scale=0.81]{DejaVu Sans Mono} +%StopShownPreambleCommands +\begin{document} +\begin{luacode*} +local http=require("socket.http") +local page=http.request( 'http://archiv.dante.de' ) +tex.print("\\begin{lstlisting}[basicstyle=\\ttfamily\\scriptsize,") +tex.print("language=HTML]") +tex.print(page:gsub("\n","\r")) +tex.print("\\end{lstlisting}") +\end{luacode*} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/09-03-5.lualtx b/Master/texmf-dist/doc/luatex/luaintro/09-03-5.lualtx new file mode 100644 index 00000000000..19d044d402f --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/09-03-5.lualtx @@ -0,0 +1,32 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 09-03-5 auf Seite 168. +%% +%% Copyright (C) 2012 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{121.16928pt} +\setlength\parindent{0pt} +%StartShownPreambleCommands +\usepackage{ifpdf,ifluatex,ifxetex,dtklogos} +%StopShownPreambleCommands +\begin{document} +\ifluatex Lua\LaTeX \ldots +\else\ifxetex \XeLaTeX \ldots +\else pdf\LaTeX \ldots\fi\fi +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/09-03-6.lualtx b/Master/texmf-dist/doc/luatex/luaintro/09-03-6.lualtx new file mode 100644 index 00000000000..879cb766ddb --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/09-03-6.lualtx @@ -0,0 +1,26 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% 1. Auflage +%% +%% Beispiel 09-03-6 auf Seite 168. +%% +%% Copyright (C) 2012 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. +%% +%% +%% ==== +% Show page(s) 1 +%% +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{352.81416pt} +\begin{document} +\small\ttfamily\directlua{tex.print(kpse.find_file("luasseq.lua",'lua'))} +\end{document} diff --git a/Master/texmf-dist/doc/luatex/luaintro/CTdefault.tex b/Master/texmf-dist/doc/luatex/luaintro/CTdefault.tex new file mode 100644 index 00000000000..fda1cd4f6a9 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/CTdefault.tex @@ -0,0 +1,2 @@ +\let\StartShownPreambleCommands\relax +\let\StopShownPreambleCommands\relax diff --git a/Master/texmf-dist/doc/luatex/luaintro/DEexa.sty b/Master/texmf-dist/doc/luatex/luaintro/DEexa.sty new file mode 100644 index 00000000000..39765a44322 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/DEexa.sty @@ -0,0 +1,27 @@ +% +% Style for the DANTE edition exa classes +% +% $Id: DEexa.sty 631 2012-01-21 18:35:47Z herbert $ +% +\ProvidesPackage{DEexa}[2009/12/06 v0.01 (hv)] +\input{exa-fontconfig} +\let\StartShownPreambleCommands\relax +\let\StopShownPreambleCommands\relax +% ignore second documentclass command for display in book: +\renewcommand\documentclass[2][]{} +\let\ps@origplain\ps@plain +\let\ps@plain\ps@empty % this class doesn't produces page numbers + % since this would make examples too big + % but if necessary there is origplain + +\endinput + +\AtBeginDocument{ +\ifx\color\@undefined +\else + \definecolor{blue}{cmyk}{1,0.56,0,0} + \definecolor{red}{cmyk}{0,0,0,.3} + \definecolor{green}{cmyk}{0,0,0,.2} + \definecolor{yellow}{cmyk}{0,0,0,.1} +\fi +} diff --git a/Master/texmf-dist/doc/luatex/luaintro/DEoptions.sty b/Master/texmf-dist/doc/luatex/luaintro/DEoptions.sty new file mode 100644 index 00000000000..d625f6c5ef5 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/DEoptions.sty @@ -0,0 +1,51 @@ +% $Id: DEoptions.sty 574 2011-09-05 08:17:17Z herbert $ +% Copyright 2011 by Herbert Voss +% +% This file may be distributed and/or modified +% +% 1. under the LaTeX Project Public License and/or +% 2. under the GNU Public License. +% +% See the file doc/licenses/LICENSE for more details. + +\RequirePackage{keyval}[1997/11/10] + +\def\ProcessOptionsExa{% + \let\@tempa\@empty + \ifx\@currext\@clsextension% + \else + \@for\CurrentOption:=\@classoptionslist\do{% + \@ifundefined{KV@\@currname @\CurrentOption}% + {}{\edef\@tempa{\@tempa,\CurrentOption,}}}% + \fi + \edef\@tempa{% + \noexpand\setkeys{\@currname}{\@tempa\@ptionlist{\@currname.\@currext}}}% + \let\exa@origkverr\KV@err% + \ifx\@currext\@clsextension\let\KV@errx=\@gobble\fi% never mind + \@tempa% + \let\KV@err\exa@origkverr% + \AtEndOfPackage{\let\@unprocessedoptions\relax}} + +\def\ExecuteOptionsExa#1{\setkeys{\@currname}{#1}} +\def\DeclareOptionExa#1{\@ifnextchar[{\exa@dokv{#1}}{\exa@dokv{#1}[]}} +\long\def\exa@dokv#1[#2]#3{\define@key{\@currname}{#1}[{#2}]{#3}} + +\def\exa@filterclassoptions{% + \def\exa@filteredclassoptionslist{} + \@for\CurrentOption:=\@classoptionslist\do{% + \ifx\CurrentOption\@empty\else + \@expandtwoargs\in@{=}{\CurrentOption}% + \ifin@ + \else + \edef\exa@filteredclassoptionslist{% + \exa@filteredclassoptionslist,\CurrentOption} + \fi + \fi + }% + \let\@classoptionslist=\exa@filteredclassoptionslist% +} + +\newcommand\defexaoption{\define@key{exa@option}} +\newcommand\setexaoption{\setkeys{exa@option}} + +\endinput
\ No newline at end of file diff --git a/Master/texmf-dist/doc/luatex/luaintro/Letter.ist b/Master/texmf-dist/doc/luatex/luaintro/Letter.ist new file mode 100644 index 00000000000..8a2edd046a0 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/Letter.ist @@ -0,0 +1,11 @@ +headings_flag 1 +heading_prefix "\\textbf{" +heading_suffix "}\\nopagebreak\n" +symhead_positive "Symbole" +numhead_positive "Zahlen" +item_1 "\\par\\leavevmode\\hangindent10pt\\makebox[10pt][l]{--}" +item_01 "\\par\\leavevmode\\hangindent10pt\\makebox[10pt][l]{--}" +item_x1 "\\par\\leavevmode\\hangindent10pt\\makebox[10pt][l]{--}" +item_2 "\\par\\leavevmode\\hangindent20pt\\makebox[20pt][l]{-- -- }" +item_12 "\\par\\leavevmode\\hangindent20pt\\makebox[20pt][l]{-- -- }" +item_x2 "\\par\\leavevmode\\hangindent20pt\\makebox[20pt][l]{-- -- }" diff --git a/Master/texmf-dist/doc/luatex/luaintro/LetterC.ist b/Master/texmf-dist/doc/luatex/luaintro/LetterC.ist new file mode 100644 index 00000000000..dddba818459 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/LetterC.ist @@ -0,0 +1,12 @@ +headings_flag 1 +heading_prefix "\\colorbox{black!50}{\\makebox[\\columnwidth][l]{\\bfseries\\color{white}" +heading_suffix "}}\\nopagebreak\n" +symhead_positive "Symbole" +numhead_positive "Zahlen" +item_1 "\\par\\leavevmode\\hangindent10pt\\makebox[10pt][l]{--}" +item_01 "\\par\\leavevmode\\hangindent10pt\\makebox[10pt][l]{--}" +item_x1 "\\par\\leavevmode\\hangindent10pt\\makebox[10pt][l]{--}" +item_2 "\\par\\leavevmode\\hangindent20pt\\makebox[20pt][l]{-- -- }" +item_12 "\\par\\leavevmode\\hangindent20pt\\makebox[20pt][l]{-- -- }" +item_x2 "\\par\\leavevmode\\hangindent20pt\\makebox[20pt][l]{-- -- }" +delim_0 "\\dotfill~ " diff --git a/Master/texmf-dist/doc/luatex/luaintro/LoadFonts.tex b/Master/texmf-dist/doc/luatex/luaintro/LoadFonts.tex new file mode 100644 index 00000000000..5f1a1f57963 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/LoadFonts.tex @@ -0,0 +1,60 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Font Setup +\starttypescriptcollection[mylibertine] + +\starttypescript[serif][libertine][name] + \definefontsynonym[Serif] [name:Linux Libertine O] [features=default] + \definefontsynonym[SerifItalic] [name:Linux Libertine Italic O] [features=default] + \definefontsynonym[SerifBold] [name:Linux Libertine Bold O] [features=default] + \definefontsynonym[SerifBoldItalic] [name:Linux Libertine Bold Italic] [features=default] + \definefontsynonym[SerifSlanted] [name:Linux Libertine Slanted O] [features=default] + \definefontsynonym[SerifSlantedBold][name:Linux Libertine Slanted O Bold][features=default] + \definefontsynonym[SerifCaps] [name:Linux Libertine O Capitals] [features=smallcaps] +\stoptypescript + +\starttypescript[sans][biolinum][name] + \setups[font:fallback:Serif] + \definefontsynonym [Sans] [name:Linux Biolinum O] [features=default] + \definefontsynonym [SansBold] [name:Linux Biolinum Bold O] [features=default] + \definefontsynonym [SansItalic] [name:Linux Biolinum Italic O] [features=default] + \definefontsynonym [SansBoldItalic] [name:Linux Biolinum Slanted O Bold][features=default] + \definefontsynonym [SansSlanted] [name:Linux Biolinum Slanted O] [features=default] + \definefontsynonym [SansSlantedBold][name:Linux Biolinum Slanted O Bold][features=default] +\stoptypescript + +\starttypescript[keyboard][biolinumKB] + \definefontsynonym[Keyboard][name:Linux BiolinumKB][features=default] +\stoptypescript + +\starttypescript[outline][biolinumOL] + \definefontsynonym[Outline] [name:Linux BiolinumOL] [features=default] + \definefontsynonym[OutlineBold] [name:Linux BiolinumOL Bold][features=default] + \definefontsynonym[OutlineItalic][name:Linux BiolinumOL Italic][features=default] +\stoptypescript + +\starttypescript[shadow][biolinumSH] + \definefontsynonym[Shadow] [name:Linux BiolinumSH] [features=default] + \definefontsynonym[ShadowBold] [name:Linux BiolinumSH Bold][features=default] + \definefontsynonym[ShadowItalic][name:Linux BiolinumSH Italic][features=default] +\stoptypescript + +\starttypescript[mono][bera][name] + \setups[font:fallback:Serif] + \definefontsynonym [Mono] [name:BeraSansMono-Roman] +% \definefontsynonym [Mono] [file:fvmr8a.afm] +\stoptypescript + +\starttypescript[mylibertine] + \definetypeface[mylibertine][rm][serif][libertine][default] + \definetypeface[mylibertine][ss][sans] [biolinum] [default] + \definetypeface[mylibertine][tt][mono] [bera] [default][rscale=0.85] + \definetypeface[mylibertine][mm][math] [modern] [default] + \definetypeface[mylibertine][kb][keyboard][biolinumKB][default] + \definetypeface[mylibertine][ol][outline] [biolinumOL][default] + \definetypeface[mylibertine][sh][shadow] [biolinumSH][default] +\stoptypescript + +\stoptypescriptcollection +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\setupbodyfont[mylibertine,11pt,rm] + +\endinput diff --git a/Master/texmf-dist/doc/luatex/luaintro/README b/Master/texmf-dist/doc/luatex/luaintro/README new file mode 100644 index 00000000000..41b1436a032 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/README @@ -0,0 +1,17 @@ +Die Beispiele benötigen die ebenfalls hier vorhandenen +Dokumentenklassen, die alle eine Endung .cls haben. +Diese Beispielklassen müssen entweder in ein +TDS-kompatibles Verzeichnis kopiert werden oder im +Dokumentenverzeichnis verbleiben. Im Allgemeinen +können die Klassen auch durch die Standardklassen +article, book oder report ersetzt werden. + +lualtx: & lualatex +lualtx2: & lualatex +lualtx3: & luatex +ltx2: & pdflatex +ctx1crop: & context +lua: & lua (texlua) +sh: & bash (sh) + + diff --git a/Master/texmf-dist/doc/luatex/luaintro/beispiel.cls b/Master/texmf-dist/doc/luatex/luaintro/beispiel.cls new file mode 100644 index 00000000000..1e142731ea8 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/beispiel.cls @@ -0,0 +1,32 @@ +%% +%% Das LaTeX Buch, 1. Auflage +%% +%% Copyright (C) 2009 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. +%% +% +\RequirePackage{DEoptions} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}} +\ProcessOptions\relax +\LoadClass[twoside,fontsize=7pt]{scrartcl} +\RequirePackage[T1]{fontenc} +\input{exa-fontconfig} +\RequirePackage{geometry} +\geometry{paperheight=8cm,paperwidth=6cm}%,tmargin=3mm,bmargin=3mm} +%\AtBeginDocument{\inputencoding{latin9}} + +\let\StartShownPreambleCommands\relax +\let\StopShownPreambleCommands\relax +\let\DocStart\relax +\let\DocEnde\relax +% ignore second documentclass command for display in book: +\renewcommand\documentclass[2][]{} + +\endinput + + diff --git a/Master/texmf-dist/doc/luatex/luaintro/bspcalweekly.cls b/Master/texmf-dist/doc/luatex/luaintro/bspcalweekly.cls new file mode 100644 index 00000000000..78a041cac47 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/bspcalweekly.cls @@ -0,0 +1,24 @@ +% UTF8 +% +% $Id: bspcalweekly.cls 631 2012-01-21 18:35:47Z herbert $ +% +\RequirePackage{DEoptions} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{weekly}} +\ProcessOptions\relax +\LoadClass[German]{weekly} +\RequirePackage[utf8x]{inputenc} +\RequirePackage[T1]{fontenc} +\RequirePackage{xcolor} +\input{exa-fontconfig} +\RequirePackage[ngerman]{babel} +\setlength\parindent{0pt} +\setcounter{page}{1} + +\let\StartShownPreambleCommands\relax +\let\StopShownPreambleCommands\relax +\let\DocStart\relax +\let\DocEnde\relax +% ignore second documentclass command for display in book: +\renewcommand\documentclass[2][]{} + +\endinput diff --git a/Master/texmf-dist/doc/luatex/luaintro/bspdvdcoll.cls b/Master/texmf-dist/doc/luatex/luaintro/bspdvdcoll.cls new file mode 100644 index 00000000000..9dfe887ffe9 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/bspdvdcoll.cls @@ -0,0 +1,24 @@ +% UTF8 +% +% $Id: bspdvdcoll.cls 631 2012-01-21 18:35:47Z herbert $ +% +\RequirePackage{DEoptions} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{dvdcoll}} +\ProcessOptions\relax +\LoadClass{dvdcoll} +\RequirePackage[utf8x]{inputenc} +\RequirePackage[T1]{fontenc} +\RequirePackage{xcolor} +\input{exa-fontconfig} +\RequirePackage{babel} +\setlength\parindent{0pt} +\setcounter{page}{1} + +\let\StartShownPreambleCommands\relax +\let\StopShownPreambleCommands\relax +\let\DocStart\relax +\let\DocEnde\relax +% ignore second documentclass command for display in book: +\renewcommand\documentclass[2][]{} + +\endinput diff --git a/Master/texmf-dist/doc/luatex/luaintro/bspfont.cls b/Master/texmf-dist/doc/luatex/luaintro/bspfont.cls new file mode 100644 index 00000000000..16eee302e60 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/bspfont.cls @@ -0,0 +1,133 @@ +% +% $Id: bspfont.cls 575 2011-09-05 08:22:27Z herbert $ +% +\RequirePackage{DEoptions} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}} +\ProcessOptions\relax +\LoadClass[a4paper,12pt]{scrartcl} +\usepackage{xcolor,ifthen,calc,tabularx,ragged2e} +\newcolumntype{C}{>{\centering\arraybackslash}X} +\usepackage{eqlist} +\usepackage{babel} +\usepackage[top=1cm,bottom=1cm]{geometry} +\pagestyle{empty} +\setlength{\parindent}{0em} +\newcommand{\bs}{$\backslash$} +\let\StartShownPreambleCommands\relax +\let\StopShownPreambleCommands\relax +\let\DocStart\relax +\let\DocEnde\relax +% ignore second documentclass command for display in book: +\renewcommand\documentclass[2][]{} + +% \newcommand*\printFontAttr[2]{% +% \ifthenelse{\equal{#1}{m}}{}{}% +% \ifthenelse{\equal{#1}{b}}{bold - }{}% +% \ifthenelse{\equal{#1}{bx}}{bold - }{}% +% \ifthenelse{\equal{#1}{r}}{regular - }{}% +% \ifthenelse{\equal{#1}{c}}{black - }{}% +% \ifthenelse{\equal{#1}{k}}{book - }{}% +% \ifthenelse{\equal{#1}{me}}{medium - }{}% +% \ifthenelse{\equal{#2}{n}}{normal}{}% +% \ifthenelse{\equal{#2}{it}}{italic}{}% +% \ifthenelse{\equal{#2}{sl}}{slanted}{}% +% \ifthenelse{\equal{#2}{sc}}{caps}{}% +% \ifthenelse{\equal{#2}{ic}}{italic caps}{}% +% } +\newcommand*\printFontAttr[2]{#1-#2} + +% Symbol im entsprechenden Font anzeigen +\newcommand\fsymbol[5]{\usefont{#1}{#2}{#3}{#4}\fontsize{9pt}{9pt}\selectfont% + \strut\textcolor{blue}{\symbol{#5}}} + +\newcounter{myx}\newcounter{myy}\newcounter{mye} + +\newcommand*\InitToks{\@temptokena={}} +\newcommand\AddToks[1]{\@temptokena=\expandafter{\the\@temptokena #1}} +\newcommand\AddToksExp[1]{% + \edef\@tempa{#1}\expandafter\AddToks\expandafter{\@tempa}} +\newcommand*\PrintToks{\the\@temptokena} + +\newcommand\makeTable[4]{% + \begingroup + \InitToks + \AddToks{\begin{tabularx}{\linewidth}{@{}|C|C|C|C|C|C|C|C|@{}}\hline}% + \setcounter{myy}{0}% + \whiledo{\value{myy} < 32}{% + \setcounter{myx}{0}% + \whiledo{\value{myx} < 8}{% + \setcounter{mye}{\themyy * 8 + \themyx}% + \AddToksExp{\noexpand\tiny\strut\themye\hfill\noexpand\fsymbol{#1}{#2}{#3}{#4}{\themye}\hfill\mbox{}}% + \ifthenelse{\value{myx} < 7}% + {\AddToks{&}}% + {\AddToks{\\\hline}}% + \addtocounter{myx}{1}% + }\addtocounter{myy}{1}% + }% + \AddToks{\end{tabularx}}% + \setlength\extrarowheight{-2pt}% + \PrintToks + \endgroup +} + +\newcommand{\FONTTAB}[4]{ + \par\medskip\normalfont + \makeTable{#1}{#2}{#3}{#4} +} + +\newcommand\TEXT[4]{{% +\usefont{#1}{#2}{#3}{#4}\selectfont% +Dies hier ist ein +Blindtext zum Testen von Textausgaben. +Wer diesen Text liest, ist selbst schuld. +Der Text gibt lediglich den Grauwert +der Schrift an. Ist das wirklich so?\par}} +\newcommand\TEXTUPPER[4]{{% +\usefont{#1}{#2}{#3}{#4}\selectfont% +DIES HIER IST EIN +BLINDTEXT ZUM TESTEN VON TEXTAUSGABEN. +WER DIESEN TEXT LIEST, IST SELBST SCHULD. +DER TEXT GIBT LEDIGLICH DEN GRAUWERT +DER SCHRIFT AN. IST DAS WIRKLICH SO?\par}} +\newcommand\ZAHL[4]{{\usefont{#1}{#2}{#3}{#4}\selectfont% +0123456789}} +\newcommand\BEISPIEL[4]{{% +\usefont{#1}{#2}{#3}{#4}\fontsize{1cm}{1cm}\selectfont% +BEISPIEL\par}} +\def\FONTfont{} +\def\FONTname{} +\def\FONTtexname{} +\def\FONTschnitte{} +\def\FONTencoding{} +\def\FONTpackage{} +\def\FONTmathe{} +\def\FONTtabelle{yes} +\def\FONTupper{no} +\def\FONTinitial{} + +\newcommand\PRINT[4]{% +\begin{minipage}{\linewidth} + \begin{minipage}{.38\linewidth}\scriptsize + \begin{eqlist}[\def\makelabel##1{\textbf{##1}}\setlength\itemsep{0pt}\setlength\parsep{3pt}] + \item [Font] {\raggedright\FONTfont} + \item [Fontname] \FONTname + \item [\TeX-Name] \FONTtexname + \item [Schnitte] \FONTschnitte + \ifthenelse{\equal{\FONTencoding}{}}{}{\item [Encoding] \FONTencoding} + \ifthenelse{\equal{\FONTpackage}{}}{}{\item [Paket] \FONTpackage} + \ifthenelse{\equal{\FONTmathe}{}}{}{\item [Mathematik] \FONTmathe} + \end{eqlist} + \end{minipage}\hfill + \begin{minipage}{.6\linewidth}\small\color{blue} + \ifthenelse{\equal{\FONTinitial}{}}{% + \ifthenelse{\equal{\FONTupper}{ja}}{\TEXTUPPER{#1}{#2}{#3}{#4}}{\TEXT{#1}{#2}{#3}{#4}\par\ZAHL{#1}{#2}{#3}{#4}} + }{\BEISPIEL{#1}{#2}{#3}{#4}} + \end{minipage} +\end{minipage} +\ifthenelse{\equal{\FONTtabelle}{}}{}{\FONTTAB{#1}{#2}{#3}{#4}}% +} + +\newcommand\PRINTFD[4]{\pagebreak[0]\textbf{#1-#2-#3-#4}\nopagebreak\par\TEXT{#1}{#2}{#3}{#4}\par\medskip} + + +\endinput diff --git a/Master/texmf-dist/doc/luatex/luaintro/bsppstricks.cls b/Master/texmf-dist/doc/luatex/luaintro/bsppstricks.cls new file mode 100644 index 00000000000..d15510afd6d --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/bsppstricks.cls @@ -0,0 +1,45 @@ +% +% $Id: bsppstricks.cls 631 2012-01-21 18:35:47Z herbert $ +% +\RequirePackage{DEoptions} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}} +\ProcessOptions\relax +\LoadClass[a4paper,12pt]{scrartcl} +\RequirePackage[utf8x]{inputenc} +\RequirePackage[T1]{fontenc} +\RequirePackage{xcolor} +\RequirePackage{amsmath,amssymb} +\input{exa-fontconfig} +\RequirePackage[ngerman]{babel} + +\RequirePackage{pst-all,pst-eucl,pst-func} +\psset{unit=1cm} +\RequirePackage{multido} +\pagestyle{empty} +\newcommand{\bs}{$\backslash$} + +% Oval für pstricks +\newcommand{\myboxoval}[5]{% + \rput(#1){\rnode{#2}{\psovalbox{\parbox[c][#3][c]{#4}{\begin{center}{\scriptsize #5}\end{center}}}}}} +% Oval für pstricks (tree) +\newcommand{\myboxovaltree}[4][]{% + \Toval[#1]{\parbox[c][#2][c]{#3}{\begin{center}#4\end{center}}}} +% Rechteck für pstricks +\newcommand{\myboxbox}[5]{% + \rput(#1){\rnode{#2}{\psframebox{\parbox[c][#3][c]{#4}{\begin{center}{\scriptsize #5}\end{center}}}}}} +% Rechteck mit Abrundung für pstricks +\newcommand{\myboxroundbox}[5]{% + \rput(#1){\rnode{#2}{\psframebox[framearc=0.5]{\parbox[c][#3][c]{#4}{\begin{center}{\scriptsize #5}\end{center}}}}}} +% Kreis für pstricks +\newcommand{\myboxcircle}[6][doubleline=false]{ + \rput(#2){\rnode{#3}{\pscirclebox[#1]{\parbox[c][#4][c]{#5}{\begin{center}{\scriptsize #6}\end{center}}}}}} + + +\let\StartShownPreambleCommands\relax +\let\StopShownPreambleCommands\relax +\let\DocStart\relax +\let\DocEnde\relax +% ignore second documentclass command for display in book: +\renewcommand\documentclass[2][]{} + +\endinput diff --git a/Master/texmf-dist/doc/luatex/luaintro/exa-fontconfig.tex b/Master/texmf-dist/doc/luatex/luaintro/exa-fontconfig.tex new file mode 100644 index 00000000000..03097bb80b3 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/exa-fontconfig.tex @@ -0,0 +1,23 @@ +\RequirePackage{ifxetex,ifluatex,ifpdf,dtklogos} +\ifxetex + \usepackage{mathspec} + \setmathfont{Latin Modern Math} + \usepackage{libertineotf} +\else +\ifluatex + \usepackage{fontspec} + \setmathrm{Latin Modern Math} + \setmathtt{Latin Modern Math} + \setmathsf{Latin Modern Math} + \usepackage{libertineotf} +\else +%\ifpdf %% we have a latex or pdf run + \RequirePackage[T1]{fontenc} + \usepackage{libertine} +% \usepackage{beramono} +% \RequirePackage[de,expert,uprightgreek]{lucidabr}% für mathe +% \IfFileExists{lucbmath.sty}{\usepackage[de,expert,uprightgreek]{lucbmath}}{}% für mathe +\fi\fi + +\endinput + diff --git a/Master/texmf-dist/doc/luatex/luaintro/exaarticle.cls b/Master/texmf-dist/doc/luatex/luaintro/exaarticle.cls new file mode 100644 index 00000000000..4cf3914755c --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/exaarticle.cls @@ -0,0 +1,22 @@ +%% +%% DANTE Edition +%% +%% Example class for use with the book examples. +%% +%% Copyright (C) 2009/10 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. +%% +% +\RequirePackage{DEoptions} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} +\ProcessOptions\relax +\LoadClass[twoside]{article} +\RequirePackage{ifpdf} +\RequirePackage{DEexa} + +\endinput diff --git a/Master/texmf-dist/doc/luatex/luaintro/exaarticle2.cls b/Master/texmf-dist/doc/luatex/luaintro/exaarticle2.cls new file mode 100644 index 00000000000..8c8b9730fd7 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/exaarticle2.cls @@ -0,0 +1,22 @@ +% $Id: exaarticle2.cls 602 2011-11-28 07:11:34Z herbert $ +%% +%% Example class for use with the book examples. +%% +%% Copyright (C) 2009 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. +%% +% +\RequirePackage{DEoptions} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} +\ProcessOptions\relax +\LoadClass{article} +%\RequirePackage{dtklogos} +\let\StartShownPreambleCommands\relax +\let\StopShownPreambleCommands\relax +\endinput + diff --git a/Master/texmf-dist/doc/luatex/luaintro/exaartplain.cls b/Master/texmf-dist/doc/luatex/luaintro/exaartplain.cls new file mode 100644 index 00000000000..d5899f67aba --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/exaartplain.cls @@ -0,0 +1,30 @@ +%% +%% Das LaTeX Buch +%% +%% Example class for use with the book examples. +%% +%% Copyright (C) 2009 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. +%% +% +\RequirePackage{DEoptions} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} +\ProcessOptions\relax +\LoadClass{article} +\let\StartShownPreambleCommands\relax +\let\StopShownPreambleCommands\relax +% ignore second documentclass command for display in book: +\renewcommand\documentclass[2][]{} + +\let\ps@origplain\ps@plain +\let\ps@plain\ps@empty % this class doesn't produces page numbers + % since this would make examples too big + % but if necessary there is origplain + +\endinput +yy
\ No newline at end of file diff --git a/Master/texmf-dist/doc/luatex/luaintro/exabeamer.cls b/Master/texmf-dist/doc/luatex/luaintro/exabeamer.cls new file mode 100644 index 00000000000..61cbe47a440 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/exabeamer.cls @@ -0,0 +1,49 @@ +% +% $Id: exabeamer.cls 162 2009-12-05 20:32:34Z herbert $ +% +%% +%% Das LaTeX Buch +%% +%% Example ``beamer like'' class for use with the book examples. +%% +%% Copyright (C) 2009 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. +%% +% +\RequirePackage{beamerbasercs} +\RequirePackage{beamerbaseoptions} +\DeclareOptionBeamer*{\PassOptionsToClass{\CurrentOption}{beamer}} +\ProcessOptionsBeamer\relax +\LoadClass{beamer} +\RequirePackage{DEexa} + +\endinput + +\AtBeginDocument{ +\ifx\selectcolormodel\@undefined +\else + \selectcolormodel{cmyk} +\fi +\special{ps: + /setcmykcolor { exch 0.11 mul add + exch 0.59 mul add + exch 0.3 mul add + dup 1 gt { pop 1 } if neg 1 add setgray } def + /setrgbcolor { 0.11 mul + exch 0.59 mul add + exch 0.3 mul add setgray } def + /sethsbcolor { /b exch def /s exch def 6 mul dup cvi dup /i exch def sub /f exch def + /F [[0 1 f sub 1][f 0 1][1 0 1 f sub][1 f 0][1 f sub 1 0][0 1 f][0 1 1]] def + F i get { s mul neg 1 add b mul} forall + 0.11 mul + exch 0.59 mul add + exch 0.3 mul add setgray } def + } +} + + diff --git a/Master/texmf-dist/doc/luatex/luaintro/exabook.cls b/Master/texmf-dist/doc/luatex/luaintro/exabook.cls new file mode 100644 index 00000000000..40bfbf4c296 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/exabook.cls @@ -0,0 +1,18 @@ +%% +%% Copyright (C) 2009 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. +%% +% +\RequirePackage{DEoptions} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}} +\ProcessOptions\relax + +\LoadClass[twoside,10pt]{book} +\RequirePackage{DEexa} + +\endinput diff --git a/Master/texmf-dist/doc/luatex/luaintro/exabook2.cls b/Master/texmf-dist/doc/luatex/luaintro/exabook2.cls new file mode 100644 index 00000000000..e0dea04b7f3 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/exabook2.cls @@ -0,0 +1,19 @@ +%% +%% Copyright (C) 2009 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. +%% +% +\RequirePackage{DEoptions} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}} +\ProcessOptions\relax + +\LoadClass{book} +\let\StartShownPreambleCommands\relax +\let\StopShownPreambleCommands\relax + +\endinput diff --git a/Master/texmf-dist/doc/luatex/luaintro/exadante.cls b/Master/texmf-dist/doc/luatex/luaintro/exadante.cls new file mode 100644 index 00000000000..9b082131e00 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/exadante.cls @@ -0,0 +1,19 @@ +%% +%% Copyright (C) 2011 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. +%% +% +\RequirePackage{DEoptions} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{danteedition}} +\ProcessOptions\relax + +\PassOptionsToPackage{ngerman}{babel} +\LoadClass{danteedition} +\RequirePackage{DEexa} + +\endinput diff --git a/Master/texmf-dist/doc/luatex/luaintro/exafoils.cls b/Master/texmf-dist/doc/luatex/luaintro/exafoils.cls new file mode 100644 index 00000000000..4725699774d --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/exafoils.cls @@ -0,0 +1,59 @@ +% +% $Id: exafoils.cls 631 2012-01-21 18:35:47Z herbert $ +% +%% +%% Praesentationen, 1st edition +%% +%% Prasentationen mit LaTeX +%% +%% Copyright (C) 2009 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. +%% +% +\RequirePackage{DEoptions} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{foils}} +\ProcessOptions\relax +\LoadClass{foils} +\RequirePackage[T1]{fontenc} +\input{exa-fontconfig} +\let\StartShownPreambleCommands\relax +\let\StopShownPreambleCommands\relax + +% ignore second documentclass command for display in book: + +\renewcommand\documentclass[2][]{} + +\endinput + +\AtBeginDocument{ +\ifx\selectcolormodel\@undefined +\else + \selectcolormodel{cmyk} +\fi + + +\special{ps: + /setcmykcolor { exch 0.11 mul add + exch 0.59 mul add + exch 0.3 mul add + dup 1 gt { pop 1 } if neg 1 add setgray } def + /setrgbcolor { 0.11 mul + exch 0.59 mul add + exch 0.3 mul add setgray } def + /sethsbcolor { /b exch def /s exch def 6 mul dup cvi dup /i exch def sub /f exch def + /F [[0 1 f sub 1][f 0 1][1 0 1 f sub][1 f 0][1 f sub 1 0][0 1 f][0 1 1]] def + F i get { s mul neg 1 add b mul} forall + 0.11 mul + exch 0.59 mul add + exch 0.3 mul add setgray } def + } +} + +\endinput + diff --git a/Master/texmf-dist/doc/luatex/luaintro/exafubeamer.cls b/Master/texmf-dist/doc/luatex/luaintro/exafubeamer.cls new file mode 100644 index 00000000000..c15ae37df9d --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/exafubeamer.cls @@ -0,0 +1,37 @@ +% +% $Id: exafubeamer.cls 631 2012-01-21 18:35:47Z herbert $ +% +%% +%% +%% Praesentationen, 1st edition +%% +%% Prasentationen mit LaTeX +%% +%% Copyright (C) 2009 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. +%% +% +\RequirePackage{DEoptions} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{FUbeamer}} +\ProcessOptions\relax +\LoadClass[xcolor=table]{FUbeamer} + +\RequirePackage[T1]{fontenc} +\input{exa-fontconfig} + +\let\StartShownPreambleCommands\relax +\let\StopShownPreambleCommands\relax + +% ignore second documentclass command for display in book: + +\renewcommand\documentclass[2][]{} + + +\endinput + diff --git a/Master/texmf-dist/doc/luatex/luaintro/exafupd.cls b/Master/texmf-dist/doc/luatex/luaintro/exafupd.cls new file mode 100644 index 00000000000..a4c57b804b0 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/exafupd.cls @@ -0,0 +1,56 @@ +% +% $Id: exafupd.cls 631 2012-01-21 18:35:47Z herbert $ +% +%% +%% Praesentationen, 1st edition +%% +%% Prasentationen mit LaTeX +%% +%% Copyright (C) 2009 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. +%% +% +\RequirePackage{DEoptions} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{FUpowerdot}} +\ProcessOptions\relax +\LoadClass{FUpowerdot} +\RequirePackage[T1]{fontenc} +\input{exa-fontconfig} +\let\StartShownPreambleCommands\relax +\let\StopShownPreambleCommands\relax + +% ignore second documentclass command for display in book: + +\renewcommand\documentclass[2][]{} + +\endinput + + +\AtBeginDocument{ +\ifx\selectcolormodel\@undefined +\else + \selectcolormodel{cmyk} +\fi +\special{ps: + /setcmykcolor { exch 0.11 mul add + exch 0.59 mul add + exch 0.3 mul add + dup 1 gt { pop 1 } if neg 1 add setgray } def + /setrgbcolor { 0.11 mul + exch 0.59 mul add + exch 0.3 mul add setgray } def + /sethsbcolor { /b exch def /s exch def 6 mul dup cvi dup /i exch def sub /f exch def + /F [[0 1 f sub 1][f 0 1][1 0 1 f sub][1 f 0][1 f sub 1 0][0 1 f][0 1 1]] def + F i get { s mul neg 1 add b mul} forall + 0.11 mul + exch 0.59 mul add + exch 0.3 mul add setgray } def + } +} + diff --git a/Master/texmf-dist/doc/luatex/luaintro/examargin.cls b/Master/texmf-dist/doc/luatex/luaintro/examargin.cls new file mode 100644 index 00000000000..de2bc8fdae6 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/examargin.cls @@ -0,0 +1,107 @@ +% +% $Id: examargin.cls 631 2012-01-21 18:35:47Z herbert $ +% +%% +%% The LaTeX Companion, 2ed +%% +%% Example ``margin lines'' class for use with the Companion examples. +%% +%% Copyright (C) 2004 Frank Mittelbach, Michel Goossens, +%% Johannes Braams, David Carlisle, and Chris Rowley +%% +%% 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. +%% +% +\RequirePackage{DEoptions} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} +\ProcessOptions\relax +\LoadClass[twoside]{article} + +\RequirePackage[T1]{fontenc} +\input{exa-fontconfig} + + +\let\StartShownPreambleCommands\relax +\let\StopShownPreambleCommands\relax + + +\let\ps@origplain\ps@plain +\let\ps@plain\ps@empty % this class doesn't produces page numbers + % since this would make examples too big + % but if necessary there is origplain + + +% Public version uses cmtt (ectt) +%\renewcommand{\ttdefault}{cmtt}\endinput +% Book version uses emtt, and restricts to two colors. + +\DeclareFontFamily{T1}{emtt}{\hyphenchar \font\m@ne} +\DeclareFontShape{T1}{emtt}{m}{n}{ + <-9> emtt8 + <9-10> emtt9 + <10-12> emtt10 + <12-> emtt12 + }{} +\DeclareFontShape{T1}{emtt}{m}{it}{ + <-> emitt10 + }{} +\DeclareFontShape{T1}{emtt}{m}{sl}{ + <-> emsltt10 + }{} +\DeclareFontShape{T1}{emtt}{m}{sc}{ + <-> emtcsc10 + }{} + +% FAKE OT1 as it is needed in one example + +\DeclareFontFamily{OT1}{emtt}{\hyphenchar \font\m@ne} +\DeclareFontShape{OT1}{emtt}{m}{n}{ + <-9> emtt8 + <9-10> emtt9 + <10-12> emtt10 + <12-> emtt12 + }{} + +\renewcommand{\ttdefault}{emtt} + +% as the book is printed in two colors only (black and blue) we need +% to ensure that other colors are replaced by gray if necessary: + +\AtBeginDocument{ +\ifx\color\@undefined +\else +\definecolor{red}{gray}{.7} +\definecolor{green}{gray}{.8} % we keep green +\definecolor{yellow}{gray}{.9} +\fi +} + +% for margin rules in math examples we need color to make them +% blue. So in this class color is actually always present: + +\RequirePackage{color} + +\newcommand \EX@rulewidth {0.25pt} + +%% Keep on hacking! +\newcommand \SetupMarginLines{% + \AtBeginDocument + {\hbox\bgroup \kern-\EX@rulewidth + {\color{blue}\vrule width \EX@rulewidth}% + \vbox\bgroup}% + \AtEndDocument + {\egroup + {\color{blue}\vrule width \EX@rulewidth}% + \kern-\EX@rulewidth \egroup}% +} + + +\SetupMarginLines + + +\endinput + diff --git a/Master/texmf-dist/doc/luatex/luaintro/examemoir.cls b/Master/texmf-dist/doc/luatex/luaintro/examemoir.cls new file mode 100644 index 00000000000..f167bc7136e --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/examemoir.cls @@ -0,0 +1,19 @@ +% $Id: examemoir.cls 575 2011-09-05 08:22:27Z herbert $ +%% +%% Copyright (C) 2011 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. +%% +% +\RequirePackage{DEoptions} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{memoir}} +\ProcessOptions\relax + +\LoadClass[twoside,10pt]{memoir} +\RequirePackage{DEexa} + +\endinput diff --git a/Master/texmf-dist/doc/luatex/luaintro/examinimal-mathsymbols.cls b/Master/texmf-dist/doc/luatex/luaintro/examinimal-mathsymbols.cls new file mode 100644 index 00000000000..859ecefc2ef --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/examinimal-mathsymbols.cls @@ -0,0 +1,31 @@ +% +% $Id: ttctminimal.cls 124 2008-12-30 20:35:40Z herbert $ +% +%% +%% Der Mathematiksatz mit LaTeX +%% +%% Copyright (C) 2009 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. +%% +% +\LoadClass[10pt]{article} +\RequirePackage[T1]{fontenc} +\setlength\tabcolsep{4pt} +\def\Lcs#1{\texttt{\textbackslash#1}} +\def\mathsymbol#1{$\csname#1\endcsname $ & \Lcs{#1} & } +\def\mathSymbol#1{$ \csname#1\endcsname $ & \Lcs{#1} + & $ \csname big#1\endcsname $ & \Lcs{big#1} &} +\let\StartShownPreambleCommands\relax +\let\StopShownPreambleCommands\relax + +% ignore second documentclass command for display in book: + +\renewcommand\documentclass[2][]{} + +\endinput + diff --git a/Master/texmf-dist/doc/luatex/luaintro/examinimal.cls b/Master/texmf-dist/doc/luatex/luaintro/examinimal.cls new file mode 100644 index 00000000000..da8999d9e6f --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/examinimal.cls @@ -0,0 +1,26 @@ +% +% $Id: examinimal.cls 253 2010-01-14 14:56:10Z herbert $ +% +%% +%% LaTeX für wissenschaftliche Arbeiten +%% +%% Copyright (C) 2009 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. +%% +% +\LoadClass[10pt]{article} +\RequirePackage[T1]{fontenc} +\let\StartShownPreambleCommands\relax +\let\StopShownPreambleCommands\relax + +% ignore second documentclass command for display in book: + +\renewcommand\documentclass[2][]{} + +\endinput + diff --git a/Master/texmf-dist/doc/luatex/luaintro/exapd.cls b/Master/texmf-dist/doc/luatex/luaintro/exapd.cls new file mode 100644 index 00000000000..2f9eee6e105 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/exapd.cls @@ -0,0 +1,56 @@ +% +% $Id: exapd.cls 631 2012-01-21 18:35:47Z herbert $ +% +%% +%% The LaTeX Companion, 2ed +%% +%% Example ``powerdot like'' class for use with the book examples. +%% +%% Copyright (C) 2009 Niedernair/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. +%% +% +\RequirePackage{DEoptions} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{powerdot}} +\ProcessOptions\relax +\LoadClass{powerdot} +\RequirePackage[T1]{fontenc} +\input{exa-fontconfig} +\let\StartShownPreambleCommands\relax +\let\StopShownPreambleCommands\relax + +% ignore second documentclass command for display in book: + +\renewcommand\documentclass[2][]{} + +\endinput + +\AtBeginDocument{ +\ifx\selectcolormodel\@undefined +\else + \selectcolormodel{cmyk} +\fi +\special{ps: + /setcmykcolor { exch 0.11 mul add + exch 0.59 mul add + exch 0.3 mul add + dup 1 gt { pop 1 } if neg 1 add setgray } def + /setrgbcolor { 0.11 mul + exch 0.59 mul add + exch 0.3 mul add setgray } def + /sethsbcolor { /b exch def /s exch def 6 mul dup cvi dup /i exch def sub /f exch def + /F [[0 1 f sub 1][f 0 1][1 0 1 f sub][1 f 0][1 f sub 1 0][0 1 f][0 1 1]] def + F i get { s mul neg 1 add b mul} forall + 0.11 mul + exch 0.59 mul add + exch 0.3 mul add setgray } def + } +} + +\endinput + diff --git a/Master/texmf-dist/doc/luatex/luaintro/exaprosper.cls b/Master/texmf-dist/doc/luatex/luaintro/exaprosper.cls new file mode 100644 index 00000000000..39e4891bd4c --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/exaprosper.cls @@ -0,0 +1,60 @@ +% +% $Id: exaprosper.cls 631 2012-01-21 18:35:47Z herbert $ +% +%% +%% +%% Praesentationen, 1st edition +%% +%% Prasentationen mit LaTeX +%% +%% Copyright (C) 2009 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. +%% +% +\RequirePackage{DEoptions} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{prosper}} +\ProcessOptions\relax +\LoadClass{prosper} +\RequirePackage[T1]{fontenc} +\input{exa-fontconfig} +\let\StartShownPreambleCommands\relax +\let\StopShownPreambleCommands\relax + +% ignore second documentclass command for display in book: + +\renewcommand\documentclass[2][]{} + +\endinput + +\AtBeginDocument{ +\ifx\selectcolormodel\@undefined +\else + \selectcolormodel{cmyk} +\fi + + +\special{ps: + /setcmykcolor { exch 0.11 mul add + exch 0.59 mul add + exch 0.3 mul add + dup 1 gt { pop 1 } if neg 1 add setgray } def + /setrgbcolor { 0.11 mul + exch 0.59 mul add + exch 0.3 mul add setgray } def + /sethsbcolor { /b exch def /s exch def 6 mul dup cvi dup /i exch def sub /f exch def + /F [[0 1 f sub 1][f 0 1][1 0 1 f sub][1 f 0][1 f sub 1 0][0 1 f][0 1 1]] def + F i get { s mul neg 1 add b mul} forall + 0.11 mul + exch 0.59 mul add + exch 0.3 mul add setgray } def + } +} + +\endinput + diff --git a/Master/texmf-dist/doc/luatex/luaintro/exareport.cls b/Master/texmf-dist/doc/luatex/luaintro/exareport.cls new file mode 100644 index 00000000000..0d16eadb100 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/exareport.cls @@ -0,0 +1,61 @@ +%% +%% Wiss, 1st edition +%% +%% LaTeX für wissenschaftliche Arbeiten +%% +%% Copyright (C) 2009 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. +%% +% +\RequirePackage{DEoptions} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}} +\ProcessOptions\relax +\LoadClass[twoside,openany,10pt]{report} + +\RequirePackage{DEexa} +\def\@makechapterhead#1{% + \vspace*{10\p@}% + {\parindent \z@ \raggedright \normalfont + \ifnum \c@secnumdepth >\m@ne + \Large\bfseries \@chapapp\space \thechapter + \par\nobreak + \vskip 20\p@ + \fi + \interlinepenalty\@M + \Large\bfseries #1\par\nobreak + \vskip 20\p@ + }} +\def\@makeschapterhead#1{% + \vspace*{10\p@}% + {\parindent \z@ \raggedright + \normalfont + \interlinepenalty\@M + \Large\bfseries #1\par\nobreak + \vskip 20\p@ + }} + + +\let\StartShownPreambleCommands\relax +\let\StopShownPreambleCommands\relax +\makeatletter +%\let\ps@plain\ps@empty +\makeatother +\renewcommand\documentclass[2][]{} +\endinput + +\AtBeginDocument{ +\ifx\color\@undefined +\else + \definecolor{blue}{cmyk}{1,0.56,0,0} + \definecolor{red}{cmyk}{0,0,0,.3} + \definecolor{green}{cmyk}{0,0,0,.2} + \definecolor{yellow}{cmyk}{0,0,0,.1} +\fi +} + + diff --git a/Master/texmf-dist/doc/luatex/luaintro/exaseminar.cls b/Master/texmf-dist/doc/luatex/luaintro/exaseminar.cls new file mode 100644 index 00000000000..19e283fe214 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/exaseminar.cls @@ -0,0 +1,33 @@ +% +% $Id: exaseminar.cls 631 2012-01-21 18:35:47Z herbert $ +% +%% +%% +%% Praesentationen, 1st edition +%% +%% Prasentationen mit LaTeX +%% +%% Copyright (C) 2009 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. +%% +% +\RequirePackage{DEoptions} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{seminar}} +\ProcessOptions\relax +\LoadClass{seminar} +\RequirePackage[T1]{fontenc} +\input{exa-fontconfig} +\let\StartShownPreambleCommands\relax +\let\StopShownPreambleCommands\relax + +% ignore second documentclass command for display in book: + +\renewcommand\documentclass[2][]{} + +\endinput + diff --git a/Master/texmf-dist/doc/luatex/luaintro/exaslidenotes.cls b/Master/texmf-dist/doc/luatex/luaintro/exaslidenotes.cls new file mode 100644 index 00000000000..9268a5b916d --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/exaslidenotes.cls @@ -0,0 +1,59 @@ +% +% $Id: exaslidenotes.cls 631 2012-01-21 18:35:47Z herbert $ +% +%% +%% +%% Praesentationen, 1st edition +%% +%% Prasentationen mit LaTeX +%% +%% Copyright (C) 2009 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. +%% +% +\RequirePackage{DEoptions} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{slidenotes}} +\ProcessOptions\relax +\LoadClass{slidenotes} +\RequirePackage[T1]{fontenc} +\input{exa-fontconfig} +\let\StartShownPreambleCommands\relax +\let\StopShownPreambleCommands\relax + +% ignore second documentclass command for display in book: + +\renewcommand\documentclass[2][]{} + +\endinput + +\AtBeginDocument{ +\ifx\selectcolormodel\@undefined +\else + \selectcolormodel{cmyk} +\fi + + +\special{ps: + /setcmykcolor { exch 0.11 mul add + exch 0.59 mul add + exch 0.3 mul add + dup 1 gt { pop 1 } if neg 1 add setgray } def + /setrgbcolor { 0.11 mul + exch 0.59 mul add + exch 0.3 mul add setgray } def + /sethsbcolor { /b exch def /s exch def 6 mul dup cvi dup /i exch def sub /f exch def + /F [[0 1 f sub 1][f 0 1][1 0 1 f sub][1 f 0][1 f sub 1 0][0 1 f][0 1 1]] def + F i get { s mul neg 1 add b mul} forall + 0.11 mul + exch 0.59 mul add + exch 0.3 mul add setgray } def + } +} + +\endinput + diff --git a/Master/texmf-dist/doc/luatex/luaintro/exasymbol.cls b/Master/texmf-dist/doc/luatex/luaintro/exasymbol.cls new file mode 100644 index 00000000000..c915b58f61c --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/exasymbol.cls @@ -0,0 +1,36 @@ +% +% $Id: exasymbol.cls 633 2012-01-21 21:05:45Z herbert $ +% +%% +%% LaTeX für wissenschaftliche Arbeiten +%% +%% Copyright (C) 2009 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. +%% +% +\RequirePackage{DEoptions} +\LoadClass[10pt]{article} +% ignore second documentclass command for display in book: +\let\ps@origplain\ps@plain +\let\ps@plain\ps@empty % this class doesn't produces page numbers + % since this would make examples too big + % but if necessary there is origplain +\setlength\tabcolsep{4pt} +\def\Lcs#1{\texttt{\small\textbackslash#1}} +\def\mathsymbol#1{$\csname#1\endcsname $ & \Lcs{#1} & } +\def\mathSymbol#1{$ \csname#1\endcsname $ & \Lcs{#1} + & $ \csname big#1\endcsname $ & \Lcs{big#1} &} +\let\StartShownPreambleCommands\relax +\let\StopShownPreambleCommands\relax + +% ignore second documentclass command for display in book: + +\renewcommand\documentclass[2][]{} + +\endinput + diff --git a/Master/texmf-dist/doc/luatex/luaintro/exaxetex.cls b/Master/texmf-dist/doc/luatex/luaintro/exaxetex.cls new file mode 100644 index 00000000000..5e9944d7d41 --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/exaxetex.cls @@ -0,0 +1,44 @@ +%% +%% Das LaTeX Buch +%% +%% Example class for use with the book examples. +%% +%% Copyright (C) 2009 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. +%% +% +\RequirePackage{DEoptions} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} +\ProcessOptions\relax +\LoadClass[twoside,10pt]{article} +\input{exa-fontconfig} + +\let\StartShownPreambleCommands\relax +\let\StopShownPreambleCommands\relax +% ignore second documentclass command for display in book: +\renewcommand\documentclass[2][]{} + +\let\ps@origplain\ps@plain +\let\ps@plain\ps@empty % this class doesn't produces page numbers + % since this would make examples too big + % but if necessary there is origplain + +\endinput + + +\AtBeginDocument{ +\ifx\color\@undefined +\else + \definecolor{blue}{cmyk}{1,0.56,0,0} + \definecolor{red}{cmyk}{0,0,0,.3} + \definecolor{green}{cmyk}{0,0,0,.2} + \definecolor{yellow}{cmyk}{0,0,0,.1} +\fi +} + + diff --git a/Master/texmf-dist/doc/luatex/luaintro/screxa.cls b/Master/texmf-dist/doc/luatex/luaintro/screxa.cls new file mode 100644 index 00000000000..868001b482f --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/screxa.cls @@ -0,0 +1,43 @@ +%% +%% LaTeX für wissenschaftliche Arbeiten +%% +%% Copyright (C) 2011 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. +%% +% +\RequirePackage{DEoptions} +\DeclareOptionExa*{\PassOptionsToClass{\CurrentOption}{scrartcl}} +\ProcessOptionsExa\relax +\LoadClass[headings=small]{scrartcl} +\RequirePackage{DEexa} +\RequirePackage[ngerman]{babel} + +\let\StartShownPreambleCommands\relax +\let\StopShownPreambleCommands\relax +% ignore second documentclass command for display in book: +\renewcommand\documentclass[2][]{} + +\let\ps@origplain\ps@plain +\let\ps@plain\ps@empty % this class doesn't produces page numbers + % since this would make examples too big + % but if necessary there is origplain + +\endinput + + +\AtBeginDocument{ +\ifx\color\@undefined +\else + \definecolor{blue}{cmyk}{1,0.56,0,0} + \definecolor{red}{cmyk}{0,0,0,.3} + \definecolor{green}{cmyk}{0,0,0,.2} + \definecolor{yellow}{cmyk}{0,0,0,.1} +\fi +} + + diff --git a/Master/texmf-dist/doc/luatex/luaintro/screxabook.cls b/Master/texmf-dist/doc/luatex/luaintro/screxabook.cls new file mode 100644 index 00000000000..bfd22313c1f --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/screxabook.cls @@ -0,0 +1,39 @@ +%% +%% Das LaTeX Buch +%% +%% Copyright (C) 2009 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. +%% +% +\RequirePackage{DEoptions} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrbook}} +\ProcessOptions\relax +\LoadClass[twoside,10pt,headings=small]{scrbook} + +\RequirePackage{DEexa} + +\RequirePackage[ngerman]{babel} + +\let\StartShownPreambleCommands\relax +\let\StopShownPreambleCommands\relax +% ignore second documentclass command for display in book: +\renewcommand\documentclass[2][]{} + +\endinput + +\AtBeginDocument{ +\ifx\color\@undefined +\else + \definecolor{blue}{cmyk}{1,0.56,0,0} + \definecolor{red}{cmyk}{0,0,0,.3} + \definecolor{green}{cmyk}{0,0,0,.2} + \definecolor{yellow}{cmyk}{0,0,0,.1} +\fi +} + + diff --git a/Master/texmf-dist/doc/luatex/luaintro/screxareport.cls b/Master/texmf-dist/doc/luatex/luaintro/screxareport.cls new file mode 100644 index 00000000000..e45bc7b6a4f --- /dev/null +++ b/Master/texmf-dist/doc/luatex/luaintro/screxareport.cls @@ -0,0 +1,42 @@ +%% +%% Wiss, 1st edition +%% +%% LaTeX für wissenschaftliche Arbeiten +%% +%% Copyright (C) 2009 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. +%% +% +\RequirePackage{DEoptions} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrreprt}} +\ProcessOptions\relax +\LoadClass[twoside,openany,10pt]{scrreprt} + +\RequirePackage{DEexa} + +\RequirePackage[ngerman]{babel} + +\let\StartShownPreambleCommands\relax +\let\StopShownPreambleCommands\relax +\makeatletter +%\let\ps@plain\ps@empty +\makeatother +\renewcommand\documentclass[2][]{} +\endinput + +\AtBeginDocument{ +\ifx\color\@undefined +\else + \definecolor{blue}{cmyk}{1,0.56,0,0} + \definecolor{red}{cmyk}{0,0,0,.3} + \definecolor{green}{cmyk}{0,0,0,.2} + \definecolor{yellow}{cmyk}{0,0,0,.1} +\fi +} + + diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index b85982d9648..0dff3ad91bb 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -259,7 +259,8 @@ my @TLP_working = qw( ltxdockit ltxfileinfo ltxindex ltxkeys ltxmisc ltxnew ltxtools lua-alt-getopt lua-check-hyphen lua-visual-debug lua2dox luabibentry luacode - luaindex luainputenc lualatex-doc lualatex-math lualibs luamplib luaotfload + luaindex luainputenc luaintro lualatex-doc lualatex-math lualibs + luamplib luaotfload luasseq luatexbase luatexja luatextra luaxml lxfonts ly1 m-tx macqassign macros2e mafr magaz magyar mailing mailmerge @@ -418,6 +419,7 @@ my @TLP_working = qw( ticket tikz-cd tikz-3dplot tikz-dependency tikz-inet tikz-qtree tikz-timing tikzinclude tikzorbital tikzpagenodes tikzpfeile tikzposter tikzscale + tikzsymbols timetable tipa tipa-de titlefoot titlepages titlepic titleref titlesec titling tkz-base tkz-berge tkz-doc tkz-euclide tkz-fct tkz-graph diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds index dcfa5003f0b..5a100e6cf6f 100755 --- a/Master/tlpkg/libexec/ctan2tds +++ b/Master/tlpkg/libexec/ctan2tds @@ -1367,6 +1367,7 @@ $standardtex='\.(.bx|cfg|sty|clo|ldf|cls|def|fd|cmap|4ht)$'; 'lua-check-hyphen', '\.lua|' . $standardtex, 'lua-visual-debug', '\.lua|' . $standardtex, 'lua2dox', 'NULL', # .def is lua code + 'luaintro', 'NULL', # doc pkg 'lualatex-math', '\.sty', # not phst-doc.cls 'luaxml', '\.lua|' . $standardtex, 'magyar', 'NULL', # do not install in runtime, conflicts with babel @@ -1649,6 +1650,7 @@ $standardtex='\.(.bx|cfg|sty|clo|ldf|cls|def|fd|cmap|4ht)$'; 'latex-notes-zh-cn', 'generic', 'lua-alt-getopt', 'support', 'lua2dox', 'support', + 'luaintro', 'luatex', 'luatexja', 'luatex', 'marvosym', 'fonts', 'mathabx', 'fonts', @@ -2059,6 +2061,7 @@ $standardinsrunner="latex -interaction=nonstopmode"; 'apprends-latex' => 'NULL', # doc 'bigints' => 'NULL', # doc 'einfuehrung' => 'NULL', # doc + 'luaintro' => 'NULL', # doc 'mpman-ru' => 'NULL', # doc 'musuos' => 'NULL', # gind.ist conflict 'pst-eucl-translation-bg' => 'NULL', # doc diff --git a/Master/tlpkg/tlpsrc/collection-luatex.tlpsrc b/Master/tlpkg/tlpsrc/collection-luatex.tlpsrc index 094eb547821..db54305b491 100644 --- a/Master/tlpkg/tlpsrc/collection-luatex.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-luatex.tlpsrc @@ -15,6 +15,7 @@ depend luabibentry depend luacode depend luaindex depend luainputenc +depend luaintro depend lualatex-doc depend lualatex-math depend lualibs diff --git a/Master/tlpkg/tlpsrc/luaintro.tlpsrc b/Master/tlpkg/tlpsrc/luaintro.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/luaintro.tlpsrc |