diff options
Diffstat (limited to 'Master/texmf-dist/doc')
-rw-r--r-- | Master/texmf-dist/doc/latex/pigpen/README | 10 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/pigpen/pigpendoc.pdf | bin | 0 -> 54679 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/pigpen/pigpendoc.tex | 108 |
3 files changed, 118 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/pigpen/README b/Master/texmf-dist/doc/latex/pigpen/README new file mode 100644 index 00000000000..c7a466c045a --- /dev/null +++ b/Master/texmf-dist/doc/latex/pigpen/README @@ -0,0 +1,10 @@ +The Pigpen Cipher is a simple substitution cipher originally used by Freemasons. +It is also known as masonic cipher, and was in fairly wide use in the 18th +century, for writing personal notes as well as complete books. It does not +provide any meaningful protection against cryptanalysis, though. Today +it is still used by schoolchildren. + +The pigpen cipher package provides the font and the necessary wrappers +(style file, etc.) in order to write Pigpen ciphers. + +Oliver Corff, December 2008 diff --git a/Master/texmf-dist/doc/latex/pigpen/pigpendoc.pdf b/Master/texmf-dist/doc/latex/pigpen/pigpendoc.pdf Binary files differnew file mode 100644 index 00000000000..faa2ffa4e2e --- /dev/null +++ b/Master/texmf-dist/doc/latex/pigpen/pigpendoc.pdf diff --git a/Master/texmf-dist/doc/latex/pigpen/pigpendoc.tex b/Master/texmf-dist/doc/latex/pigpen/pigpendoc.tex new file mode 100644 index 00000000000..4da7d93ffa4 --- /dev/null +++ b/Master/texmf-dist/doc/latex/pigpen/pigpendoc.tex @@ -0,0 +1,108 @@ +\documentclass[a4paper]{article} +\usepackage{pigpen} + +\newcommand\exa{\nopagebreak \begin{flushleft}\smallskip \nopagebreak + \begin{minipage}[t]{6cm}\sloppy} +\newcommand\exb{\end{minipage}\kern 1cm\begin{minipage}[t]{8cm}\sloppy } +\newcommand\exc{\end{minipage}\kern -3cm \smallskip\end{flushleft}} + +\title{{\pigpenfont PIG PEN FOR TEX}\\[0.5cm] + The Pigpen Cipher for \TeX\ 0.2} +\author{Oliver Corff} +\date{December 07, 2008} +\begin{document} +\maketitle + + +\section{The Pigpen cipher} + +The \TeX\ Pigpen cipher font is a small hack\footnote{% + The \TeX\ Pigpen cipher was inspired by a discussion on + \texttt{comp.text.tex} in December 2008.} +to type the so-called masonic cipher, or Freemason's cipher, +which is a simple substitution cipher based on a grid. +A 3x3 grid is filled with the letters A to I and J to R. +\begin{center} +\begin{minipage}[t]{3cm}% +\begin{tabular}{c|c|c} + A&B&C\\ + \hline + D&E&F\\ + \hline + G&H&I\\ +\end{tabular}\end{minipage}% +\begin{minipage}[t]{3cm}% +\begin{tabular}{c|c|c} + J.&K.&L.\\ + \hline + M.&N.&O.\\ + \hline + P.&Q.&R.\\ +\end{tabular}\end{minipage} +\begin{minipage}[t]{3cm}% +\begin{tabular}{ccc} + &S& \\ + T&$\times$&U\\ + &V& \\ +\end{tabular}\end{minipage}% +\begin{minipage}[t]{3cm}% +\begin{tabular}{ccc} + &W.& \\ + X.&$\times$&Y.\\ + &Z.&\\ +\end{tabular}\end{minipage} +\end{center} + +\begin{center} +{\pigpenfont +\begin{minipage}[t]{3cm}% +\begin{tabular}{ccc} + A&B&C\\ + D&E&F\\ + G&H&I\\ +\end{tabular}\end{minipage}% +\begin{minipage}[t]{3cm}% +\begin{tabular}{ccc} + J&K&L\\ + M&N&O\\ + P&Q&R\\ +\end{tabular}\end{minipage} +\begin{minipage}[t]{3cm}% +\begin{tabular}{ccc} + &S& \\ + T&$\times$&U\\ + &V& \\ +\end{tabular}\end{minipage}% +\begin{minipage}[t]{3cm}% +\begin{tabular}{ccc} + &W&\\ + X&$\times$&Y\\ + &Z&\\ +\end{tabular}\end{minipage}} +\end{center} + +The letters in this grid are simply replaced by the inner edges +of their box within the grid. The subset of letters J to R is marked +by a dot. + +The letters S, T, U and V are arranged in the four quadrants of an X, +the letters W, X, Y and Z follow this arragement but are marked with +a dot. Again, the letters are substituted by the inner edges of their +respective corner. + +\section{Usage} + +In the preamble of a \LaTeXe\ document, the package is declared by +saying \verb|\usepackage{pigpen}|. Options are not available. +There is only one user command, \verb|\pigpenfont|: +\exa + {\pigpenfont LUCAS} +\exb + \begin{verbatim} + {\pigpenfont LUCAS} + \end{verbatim} +\exc + + + +\end{document} |