From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Mon, 2 Sep 2019 13:46:59 +0900
Subject: Initial commit

---
 macros/latex/contrib/mff/table.tex | 113 +++++++++++++++++++++++++++++++++++++
 1 file changed, 113 insertions(+)
 create mode 100644 macros/latex/contrib/mff/table.tex

(limited to 'macros/latex/contrib/mff/table.tex')

diff --git a/macros/latex/contrib/mff/table.tex b/macros/latex/contrib/mff/table.tex
new file mode 100644
index 0000000000..fe15414dbf
--- /dev/null
+++ b/macros/latex/contrib/mff/table.tex
@@ -0,0 +1,113 @@
+\def\mmp{{${}^{\vrule height 12pt}_{\vrule height 12pt}$}}
+\def\mmpi{{${}^{\vrule height 20pt}_{\vrule height 8pt}$}}
+\def\mp{}%\hphantom{\hbox{\vrule width 3pt}}}
+\def\mpi{\hphantom{\hbox{\vrule width 24pt}}}
+\def\np#1{\vphantom{\mmp}{\footnotesize\tt #1}}
+\def\npi#1{\vphantom{\mmpi}{\footnotesize\em #1}}
+
+
+\def\cp#1#2{&{#2\hfill\char#1\hfill}}
+\def\pc#1#2{&{#2\fill\char#1\hfill}}
+\def\cph#1#2#3{\np{"#2#1x}
+           \cp{"#10}{#3}\cp{"#11}{#3}\cp{"#12}{#3}\cp{"#13}{#3}
+           \cp{"#14}{#3}\cp{"#15}{#3}\cp{"#16}{#3}\cp{"#17}{#3}
+           \cp{"#18}{#3}\cp{"#19}{#3}\cp{"#1A}{#3}\cp{"#1B}{#3}
+           \cp{"#1C}{#3}\cp{"#1D}{#3}\cp{"#1E}{#3}\cp{"#1F}{#3}\\
+           }
+\def\cpo#1#2#3{\npi{'#2#1x}
+           \pc{'#10}{#3}\pc{'#11}{#3}\pc{'#12}{#3}\pc{'#13}{#3}
+           \pc{'#14}{#3}\pc{'#15}{#3}\pc{'#16}{#3}\pc{'#17}{#3}\\
+           }
+
+\def\Table#1{%
+\centerline{\Large Font \fontname#1}%
+\bigskip\hrule\bigskip
+\TableH{}{#1}%
+%\TableO{}{#1}%
+}
+
+\def\TableH#1#2{%
+\centerline{\begin{tabular}{||c||c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c||}
+\hline
+ &\mp      & \mp     &\mp      &\mp      & \mp     & \mp     & \mp     & \mp     & \mp     & \mp     & \mp     & \mp     & \mp     & \mp     & \mp     & \mp     \\
+ & \np{x0} & \np{x1} & \np{x2} & \np{x3} & \np{x4} & \np{x5} & \np{x6} & \np{x7} & \np{x8} & \np{x9} & \np{xA} & \np{xB} & \np{xC} & \np{xD} & \np{xE} & \np{xF} \\
+\hline\hline
+\cph{0}{#1}{#2}\hline
+\cph{1}{#1}{#2}\hline
+\cph{2}{#1}{#2}\hline
+\cph{3}{#1}{#2}\hline
+\cph{4}{#1}{#2}\hline
+\cph{5}{#1}{#2}\hline
+\cph{6}{#1}{#2}\hline
+\cph{7}{#1}{#2}\hline\hline
+\cph{8}{#1}{#2}\hline
+\cph{9}{#1}{#2}\hline
+\cph{A}{#1}{#2}\hline
+\cph{B}{#1}{#2}\hline
+\cph{C}{#1}{#2}\hline
+\cph{D}{#1}{#2}\hline
+\cph{E}{#1}{#2}\hline
+\cph{F}{#1}{#2}
+\hline\hline
+ & \np{x0} & \np{x1} & \np{x2} & \np{x3} & \np{x4} & \np{x5} & \np{x6} & \np{x7} & \np{x8} & \np{x9} & \np{xA} & \np{xB} & \np{xC} & \np{xD} & \np{xE} & \np{xF} \\
+ &\mp      & \mp     &\mp      &\mp      & \mp     & \mp     & \mp     & \mp     & \mp     & \mp     & \mp     & \mp     & \mp     & \mp     & \mp     & \mp     \\
+\hline
+\end{tabular}}
+}
+
+\def\TableO#1#2{%
+\centerline{\em\begin{tabular}{||c||c|c|c|c|c|c|c|c||}
+\hline
+ &\mpi     & \mpi    &\mpi     &\mpi     & \mpi    & \mpi    & \mpi    & \mpi    \\
+ & \npi{x0}& \npi{x1}& \npi{x2}& \npi{x3}& \npi{x4}& \npi{x5}& \npi{x6}& \npi{x7}\\
+\hline\hline
+\cpo{00}{#1}{#2}\hline
+\cpo{01}{#1}{#2}\hline\hline
+\cpo{02}{#1}{#2}\hline
+\cpo{03}{#1}{#2}\hline\hline
+\cpo{04}{#1}{#2}\hline
+\cpo{05}{#1}{#2}\hline\hline
+\cpo{06}{#1}{#2}\hline
+\cpo{07}{#1}{#2}\hline\hline
+\cpo{10}{#1}{#2}\hline
+\cpo{11}{#1}{#2}\hline\hline
+\cpo{12}{#1}{#2}\hline
+\cpo{13}{#1}{#2}\hline\hline
+\cpo{14}{#1}{#2}\hline
+\cpo{15}{#1}{#2}\hline\hline
+\cpo{16}{#1}{#2}\hline
+\cpo{17}{#1}{#2}
+\hline\hline
+ & \npi{x0}& \npi{x1}& \npi{x2}& \npi{x3}& \npi{x4}& \npi{x5}& \npi{x6}& \npi{x7}\\
+ &\mpi     & \mpi    &\mpi     &\mpi     & \mpi    & \mpi    & \mpi    & \mpi    \\
+\hline
+\end{tabular}}
+
+\centerline{\em\begin{tabular}{||c||c|c|c|c|c|c|c|c||}
+\hline
+ &\mpi     & \mpi    &\mpi     &\mpi     & \mpi    & \mpi    & \mpi    & \mpi    \\
+ & \npi{x0}& \npi{x1}& \npi{x2}& \npi{x3}& \npi{x4}& \npi{x5}& \npi{x6}& \npi{x7}\\
+\hline\hline
+\cpo{20}{#1}{#2}\hline
+\cpo{21}{#1}{#2}\hline\hline
+\cpo{22}{#1}{#2}\hline
+\cpo{23}{#1}{#2}\hline\hline
+\cpo{24}{#1}{#2}\hline
+\cpo{25}{#1}{#2}\hline\hline
+\cpo{26}{#1}{#2}\hline
+\cpo{27}{#1}{#2}\hline\hline
+\cpo{30}{#1}{#2}\hline
+\cpo{31}{#1}{#2}\hline\hline
+\cpo{32}{#1}{#2}\hline
+\cpo{33}{#1}{#2}\hline\hline
+\cpo{34}{#1}{#2}\hline
+\cpo{35}{#1}{#2}\hline\hline
+\cpo{36}{#1}{#2}\hline
+\cpo{37}{#1}
+\hline\hline
+ & \npi{x0}& \npi{x1}& \npi{x2}& \npi{x3}& \npi{x4}& \npi{x5}& \npi{x6}& \npi{x7}\\
+ &\mpi     & \mpi    &\mpi     &\mpi     & \mpi    & \mpi    & \mpi    & \mpi    \\
+\hline
+\end{tabular}}
+}
+
-- 
cgit v1.2.3

