summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/schemata/schematest.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-12-03 21:57:41 +0000
committerKarl Berry <karl@freefriends.org>2020-12-03 21:57:41 +0000
commitba5ae3bc7f23dfe6145a8761e79600435a2c6ca6 (patch)
tree358bcd6fc37bd303bb36cde3341f3dc7ba588a80 /Master/texmf-dist/doc/generic/schemata/schematest.tex
parent1aea9817e4e434c4b8b4569abaa6b216ee2695f3 (diff)
schemata (3dec20)
git-svn-id: svn://tug.org/texlive/trunk@57057 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/schemata/schematest.tex')
-rw-r--r--Master/texmf-dist/doc/generic/schemata/schematest.tex89
1 files changed, 66 insertions, 23 deletions
diff --git a/Master/texmf-dist/doc/generic/schemata/schematest.tex b/Master/texmf-dist/doc/generic/schemata/schematest.tex
index dfe71801498..3fc43a4bbae 100644
--- a/Master/texmf-dist/doc/generic/schemata/schematest.tex
+++ b/Master/texmf-dist/doc/generic/schemata/schematest.tex
@@ -25,32 +25,70 @@
\def\nameoflatex{LaTeX2e}
\def\nameoflollipop{Lollipop}
%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% See README.md for compiling this document.
%
\ifx\fmtname\nameoflatex
\documentclass[10pt]{article}
- \usepackage[T1]{fontenc}
- \usepackage[polutonikogreek,american]{babel}
- \newcommand{\gk}[1]{\foreignlanguage{polutonikogreek}{#1}}
- \usepackage{schemata}
+ \expandafter\ifx \csname Umathchar\endcsname\relax
+ \usepackage[T1]{fontenc}
+ \usepackage[polutonikogreek,american]{babel}
+ \else
+ \usepackage{fontspec}
+ \usepackage{polyglossia}
+ \setdefaultlanguage{american}
+ \setotherlanguage[variant=ancient]{greek}
+ \newfontfamily\greekfont{GFSDidot.otf}
+ \fi
+%
+% Using the default option is a secondary test for mode detection.
+%
+ \usepackage[braces]{schemata}[2020/12/02]
\begin{document}
\else
\ifx\fmtname\nameoflollipop
\input schemata.sty
\font\scshape=cmcsc10
\def\textsc#1{\bgroup\scshape #1\egroup}
- \def\gk#1{\bgroup\it #1\egroup}
\Start
\else
\input schemata.sty
\font\scshape=cmcsc10
\def\textsc#1{\bgroup\scshape #1\egroup}
- \def\gk#1{\bgroup\it #1\egroup}
\fi
\fi
+%
+% Handle various ways of dealing with Greek.
+%
+\def\gk#1#2#3{%
+% Only show Greek text when using LaTeX2e
+ \ifx\fmtname\nameoflatex
+ \expandafter\ifx \csname Umathchar\endcsname\relax
+% pdflatex / latex
+ \foreignlanguage{polutonikogreek}{#2}%
+ \else
+% xelatex / lualatex
+ \textgreek{#1}%
+ \fi
+% All other formats
+ \else
+% Show transliterated equivalents for Greek
+ \bgroup\it #3\egroup%
+ \fi
+}
Format: \fmtname\par
+Test value: \schemataLaTeX\par
+\catcode`@=11\relax
+Internal test value: \@schemata@LaTeX\par
+\catcode`@=12\relax\par
+Due to restrictions for dealing with so many formats,\par
+Greek character text will appear with:\par
+\ \kern 1em pdflatex / latex (babel)\par
+\ \kern 1em xelatex / lualatex (polyglossia)\par
+All other formats will have transliterated text instead of Greek.\par
+\vfil
$$
\Schema{-1ex}{8.7ex}
{
@@ -88,7 +126,11 @@ $$
}
}
$$
+\vfil
+\eject
+\hbox{\ }
+\vfil
$$
\Schema{-25ex}{20.6ex}
{
@@ -178,15 +220,12 @@ $$
}
}
$$
-
+\vfil
\eject
\bgroup
-
-\ifx\fmtname\nameofeplain
-\verbatim \DoParens |endverbatim
-\fi
-\DoParens%
+{\tt\char`\\ DoParens}\DoParens
+\hbox{\ }
\vfil
$$
\Schema{-26ex}{21.5ex}
@@ -235,7 +274,7 @@ $$
\smallskip
\schema
{
- \schemabox{\ifx\fmtname\nameoflatex\gk{logik~hs}\else\gk{logik\=es}\fi, ut}
+ \schemabox{\gk{^^ce^^bb^^ce^^bf^^ce^^b3^^ce^^b9^^ce^^ba^^e1^^bf^^86^^cf^^82}{logik~hs}{logik\=es}, ut}
}
{
\schemabox{Angelorum.} \smallskip \schemabox{Hominum: Ad\ae{},\\ Ev\ae{} \& procreatorum\\ exipsis.}
@@ -298,14 +337,10 @@ $$
}
$$
\vfil
-
\eject
-\ifx\fmtname\nameofeplain
-\verbatim \DoGroups |endverbatim
-\fi
-\DoGroups
-
+{\tt\char`\\ DoGroups}\DoGroups
+\hbox{\ }
\vfil
$$
\Schema{-26.5ex}{21ex}
@@ -354,7 +389,7 @@ $$
\smallskip
\schema
{
- \schemabox{\ifx\fmtname\nameoflatex\gk{logik~hs}\else\gk{logik\=es}\fi, ut}
+ \schemabox{\gk{^^ce^^bb^^ce^^bf^^ce^^b3^^ce^^b9^^ce^^ba^^e1^^bf^^86^^cf^^82}{logik~hs}{logik\=es}, ut}
}
{
\schemabox{Angelorum.} \smallskip \schemabox{Hominum: Ad\ae{},\\ Ev\ae{} \& procreatorum\\ exipsis.\strut}
@@ -418,9 +453,10 @@ $$
$$
\vfil
\egroup
-
\eject
+\hbox{\ }
+\vfil
$$
\Schema{-1.4ex}{10ex}
{
@@ -444,7 +480,7 @@ $$
\NudgeSB\schemabox{Patre,\\ Filio,\\ Spiritui Sancto}
}
{
- \schemabox{\ifx\fmtname\nameoflatex\gk{<omoous'iois}\else\gk{homoousiois}\fi\\ \& co\ae{}ternis}
+ \schemabox{\gk{^^e1^^bd^^81^^ce^^bc^^ce^^bf^^ce^^bf^^cf^^85^^cf^^83^^ce^^af^^ce^^bf^^ce^^b9^^cf^^82}{<omoous'iois}{homoousiois}\\ \& co\ae{}ternis}
}
}
}
@@ -480,7 +516,11 @@ $$
}
$$
-\vfill
+\vfil
+\eject
+
+\hbox{\ }
+\vfil
% Use here in Plain TeX.
\newbox\mybox
$$
@@ -516,6 +556,9 @@ $$
2. Specialized Works}}
}
$$
+\vfil
+\eject
+
\ifx\fmtname\nameoflatex
\end{document}
\else