summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/realhats/README.md6
-rw-r--r--Master/texmf-dist/doc/latex/realhats/readme_images/hats.pngbin12620 -> 18890 bytes
-rw-r--r--Master/texmf-dist/doc/latex/realhats/realhats.pdfbin103649 -> 2030450 bytes
-rw-r--r--Master/texmf-dist/source/latex/realhats/realhats.dtx88
-rw-r--r--Master/texmf-dist/tex/latex/realhats/hats/realhats-birthday.pdfbin0 -> 1969 bytes
-rw-r--r--Master/texmf-dist/tex/latex/realhats/hats/realhats-mortarboard.pdfbin0 -> 1382 bytes
-rw-r--r--Master/texmf-dist/tex/latex/realhats/hats/realhats-policeman.pdfbin0 -> 171679 bytes
-rw-r--r--Master/texmf-dist/tex/latex/realhats/hats/realhats-scottish.pdfbin0 -> 1764873 bytes
-rw-r--r--Master/texmf-dist/tex/latex/realhats/realhats.sty20
9 files changed, 82 insertions, 32 deletions
diff --git a/Master/texmf-dist/doc/latex/realhats/README.md b/Master/texmf-dist/doc/latex/realhats/README.md
index adab1056b60..b30d25a9cb5 100644
--- a/Master/texmf-dist/doc/latex/realhats/README.md
+++ b/Master/texmf-dist/doc/latex/realhats/README.md
@@ -13,6 +13,11 @@ Regretfully brought into the world by [Matthew Scroggs](https://github.com/mscro
![Letters with hats on](readme_images/hats.png)
## Changelog
+### Version 6.0 (2022-06-13)
+* Added Scottish hat
+* Added police hat
+* Added birthday hat
+* Added mortarboard
### Version 5.0 (2019-11-19)
* Added Ash's hat
### Version 4.0 (2019-11-02)
@@ -29,6 +34,5 @@ Regretfully brought into the world by [Matthew Scroggs](https://github.com/mscro
* Added five hats
* Added documentation
-
## Licensing
This work may be distributed and/or modified under the conditions of the [MIT license](LICENSE.txt).
diff --git a/Master/texmf-dist/doc/latex/realhats/readme_images/hats.png b/Master/texmf-dist/doc/latex/realhats/readme_images/hats.png
index cbf67805241..e3eeb1422c6 100644
--- a/Master/texmf-dist/doc/latex/realhats/readme_images/hats.png
+++ b/Master/texmf-dist/doc/latex/realhats/readme_images/hats.png
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/realhats/realhats.pdf b/Master/texmf-dist/doc/latex/realhats/realhats.pdf
index 0afc334ec6d..086bce845f7 100644
--- a/Master/texmf-dist/doc/latex/realhats/realhats.pdf
+++ b/Master/texmf-dist/doc/latex/realhats/realhats.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/realhats/realhats.dtx b/Master/texmf-dist/source/latex/realhats/realhats.dtx
index 077c12cb305..4a2ef490586 100644
--- a/Master/texmf-dist/source/latex/realhats/realhats.dtx
+++ b/Master/texmf-dist/source/latex/realhats/realhats.dtx
@@ -27,37 +27,50 @@
%To make a vector with a hat, the input \lstinline@\hat{\mathbf{a}}@ produces:
%\[\hat{\mathbf{a}}\]
%
-%The command \lstinline{\hat} will choose a hat randomly from ten hats:
-%\begin{itemize}
-%\item \(\hatn{a}{beret}\) - A beret
-%\item \(\hatn{a}{santa}\) - A Santa hat
-%\item \(\hatn{a}{sombrero}\) - A sombrero
-%\item \(\hatn{a}{witch}\) - A witch's hat
-%\item \(\hatn{a}{tophat}\) - A top hat
-%\item \(\hatn{a}{ash}\) - Ash's hat
-%\item \(\hatn{a}{fez}\) - A fez
-%\item \(\hatn{a}{cowboy}\) - A cowboy hat
-%\item \(\hatn{a}{crown}\) - A crown
-%\item \(\hatn{a}{dunce}\) - A dunce's cap
-%\end{itemize}
+%The command \lstinline{\hat} will choose a hat randomly from thirteen hats:
+%\begin{center}
+%\begin{tabular}{cp{4cm}cl}
+%\(\hatn{a}{beret}\) & beret &
+%\(\hatn{a}{santa}\) & Santa hat \\
+%\(\hatn{a}{sombrero}\) & sombrero &
+%\(\hatn{a}{witch}\)& witch's hat \\
+%\(\hatn{a}{tophat}\) & top hat &
+%\(\hatn{a}{ash}\) & Ash's hat \\
+%\(\hatn{a}{fez}\) & fez &
+%\(\hatn{a}{cowboy}\) & cowboy hat \\
+%\(\hatn{a}{crown}\) & crown &
+%\(\hatn{a}{dunce}\) & dunce's cap \\
+%\(\hatn{a}{policeman}\) & policeman's hat \qquad&
+%\(\hatn{a}{scottish}\) & Scottish hat \\
+%\(\hatn{a}{birthday}\) & birthday hat &
+%\(\hatn{a}{mortarboard}\) & mortarboard
+%\end{tabular}
+%\end{center}
%
%Variables can be given a non-random hat, using the command \lstinline{\hat} with an optional parameter:
-%\begin{itemize}
-%\item \lstinline@\hat[beret]{a}@ produces \(\hat[beret]{a}\)
-%\item \lstinline@\hat[santa]{a}@ produces \(\hat[santa]{a}\)
-%\item \lstinline@\hat[sombrero]{a}@ produces \(\hat[sombrero]{a}\)
-%\item \lstinline@\hat[witch]{a}@ produces \(\hat[witch]{a}\)
-%\item \lstinline@\hat[tophat]{a}@ produces \(\hat[tophat]{a}\)
-%\item \lstinline@\hat[ash]{a}@ produces \(\hat[ash]{a}\)
-%\item \lstinline@\hat[fez]{a}@ produces \(\hat[fez]{a}\)
-%\item \lstinline@\hat[cowboy]{a}@ produces \(\hat[cowboy]{a}\)
-%\item \lstinline@\hat[crown]{a}@ produces \(\hat[crown]{a}\)
-%\item \lstinline@\hat[dunce]{a}@ produces \(\hat[dunce]{a}\)
-%\end{itemize}
+%\begin{center}
+%\begin{tabular}{lp{2cm}ll}
+% \textbf{command} & \textbf{produces} & % \textbf{command} & \textbf{produces} \\
+% \lstinline@\hat[beret]{a}@ & \(\hat[beret]{a}\) &
+% \lstinline@\hat[santa]{a}@ & \(\hat[santa]{a}\) \\
+% \lstinline@\hat[sombrero]{a}@ & \(\hat[sombrero]{a}\) &
+% \lstinline@\hat[witch]{a}@ & \(\hat[witch]{a}\) \\
+% \lstinline@\hat[tophat]{a}@ & \(\hat[tophat]{a}\) &
+% \lstinline@\hat[ash]{a}@ & \(\hat[ash]{a}\) \\
+% \lstinline@\hat[fez]{a}@ & \(\hat[fez]{a}\) &
+% \lstinline@\hat[cowboy]{a}@ & \(\hat[cowboy]{a}\) \\
+% \lstinline@\hat[crown]{a}@ & \(\hat[crown]{a}\) &
+% \lstinline@\hat[dunce]{a}@ & \(\hat[dunce]{a}\) \\
+% \lstinline@\hat[policeman]{a}@ & \(\hat[policeman]{a}\) &
+% \lstinline@\hat[scottish]{a}@ & \(\hat[scottish]{a}\) \\
+% \lstinline@\hat[birthday]{a}@ & \(\hat[birthday]{a}\) &
+% \lstinline@\hat[mortarboard]{a}@ & \(\hat[mortarboard]{a}\)
+%\end{tabular}
+%\end{center}
%
%You can also pass these same options when loading the package.
-%For example, \verb@\usepackage[ash]{realhats}@ will cause the package to use make {\LaTeX} great again hats
-%everywhere (unless an different hat is given to the \verb@\hat@ command).
+%For example, \verb@\usepackage[cowboy]{realhats}@ will cause the package to use cowboy hats
+%everywhere (unless a different hat is given to the \verb@\hat@ command).
%\iffalse
%<*documentation>
\documentclass{article}
@@ -67,6 +80,7 @@
\lstset{basicstyle=\ttfamily\footnotesize,commentstyle=\color{white},language=TeX}
\title{realhats v\input{VERSION}}
\author{Matthew W.~Scroggs \& Adam K.~Townsend}
+\setlength\parindent{0pt}
\begin{document}
\maketitle
\DocInput{realhats.dtx}
@@ -77,12 +91,12 @@
%\iffalse
%<*realhats>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{realhats}[2019/04/14 realhats 3.0]
+\ProvidesPackage{realhats}[2022/06/13 realhats 6.0]
\RequirePackage{amsmath}
\RequirePackage{graphicx}
\RequirePackage{ifthen}
-\RequirePackage[first=0, last=9, counter=hat]{lcg}
+\RequirePackage[first=0, last=11, counter=hat]{lcg}
\RequirePackage{calc}
\RequirePackage{stackengine}
@@ -102,6 +116,10 @@
\DeclareOption{cowboy}{\global\def\hatused{cowboy}}
\DeclareOption{crown}{\global\def\hatused{crown}}
\DeclareOption{dunce}{\global\def\hatused{dunce}}
+\DeclareOption{policeman}{\global\def\hatused{policeman}}
+\DeclareOption{scottish}{\global\def\hatused{scottish}}
+\DeclareOption{birthday}{\global\def\hatused{birthday}}
+\DeclareOption{mortarboard}{\global\def\hatused{mortarboard}}
\ProcessOptions\relax
\newcommand{\gethat}{%
@@ -115,6 +133,10 @@
\or cowboy%
\or crown%
\or dunce%
+ \or policeman%
+ \or scottish%
+ \or birthday%
+ \or mortarboard%
\fi
}
@@ -134,6 +156,10 @@
\ifthenelse{\equal{#1}{cowboy}}{\hatn{#2}{cowboy}}{}%
\ifthenelse{\equal{#1}{crown}}{\hatn{#2}{crown}}{}%
\ifthenelse{\equal{#1}{dunce}}{\hatn{#2}{dunce}}{}%
+ \ifthenelse{\equal{#1}{policeman}}{\hatn{#2}{policeman}}{}%
+ \ifthenelse{\equal{#1}{scottish}}{\hatn{#2}{scottish}}{}%
+ \ifthenelse{\equal{#1}{birthday}}{\hatn{#2}{birthday}}{}%
+ \ifthenelse{\equal{#1}{mortarboard}}{\hatn{#2}{mortarboard}}{}%
}%
}
@@ -152,6 +178,10 @@
\ifthenelse{\equal{#2}{cowboy}}{\renewcommand\myhat{hats/realhats-cowboy}\setlength{\vshif}{-0.3ex} \setlength{\hshif}{0.2ex}}{}%
\ifthenelse{\equal{#2}{crown}}{\renewcommand\myhat{hats/realhats-crown}\setlength{\vshif}{-0.3ex} \setlength{\hshif}{0.2ex}}{}%
\ifthenelse{\equal{#2}{dunce}}{\renewcommand\myhat{hats/realhats-dunce}\setlength{\vshif}{-0.3ex} \setlength{\hatwidth}{1.4ex}}{}%
+\ifthenelse{\equal{#2}{policeman}}{\renewcommand\myhat{hats/realhats-policeman}\setlength{\vshif}{-0.4ex} \setlength{\hatwidth}{1.8ex} \addtolength{\hshif}{-1pt}}{}%
+\ifthenelse{\equal{#2}{scottish}}{\renewcommand\myhat{hats/realhats-scottish}\setlength{\vshif}{-0.6ex} \setlength{\hshif}{0.5ex} }{}%
+\ifthenelse{\equal{#2}{birthday}}{\renewcommand\myhat{hats/realhats-birthday}\setlength{\vshif}{-0.2ex} \setlength{\hshif}{-0.1ex} }{}%
+\ifthenelse{\equal{#2}{mortarboard}}{\renewcommand\myhat{hats/realhats-mortarboard}\setlength{\vshif}{-0.15ex} \setlength{\hshif}{0ex} }{}%
\addtolength{\hshif}{#3}%
\addtolength{\vshif}{#4}%
\stackMath %
diff --git a/Master/texmf-dist/tex/latex/realhats/hats/realhats-birthday.pdf b/Master/texmf-dist/tex/latex/realhats/hats/realhats-birthday.pdf
new file mode 100644
index 00000000000..4f38a8a4df3
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/realhats/hats/realhats-birthday.pdf
Binary files differ
diff --git a/Master/texmf-dist/tex/latex/realhats/hats/realhats-mortarboard.pdf b/Master/texmf-dist/tex/latex/realhats/hats/realhats-mortarboard.pdf
new file mode 100644
index 00000000000..4a1a9ae5ef8
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/realhats/hats/realhats-mortarboard.pdf
Binary files differ
diff --git a/Master/texmf-dist/tex/latex/realhats/hats/realhats-policeman.pdf b/Master/texmf-dist/tex/latex/realhats/hats/realhats-policeman.pdf
new file mode 100644
index 00000000000..f986ad5a3a5
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/realhats/hats/realhats-policeman.pdf
Binary files differ
diff --git a/Master/texmf-dist/tex/latex/realhats/hats/realhats-scottish.pdf b/Master/texmf-dist/tex/latex/realhats/hats/realhats-scottish.pdf
new file mode 100644
index 00000000000..4e25c196309
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/realhats/hats/realhats-scottish.pdf
Binary files differ
diff --git a/Master/texmf-dist/tex/latex/realhats/realhats.sty b/Master/texmf-dist/tex/latex/realhats/realhats.sty
index 92822a95fdb..35f1cbab5c4 100644
--- a/Master/texmf-dist/tex/latex/realhats/realhats.sty
+++ b/Master/texmf-dist/tex/latex/realhats/realhats.sty
@@ -28,12 +28,12 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{realhats}[2019/04/14 realhats 3.0]
+\ProvidesPackage{realhats}[2022/06/13 realhats 6.0]
\RequirePackage{amsmath}
\RequirePackage{graphicx}
\RequirePackage{ifthen}
-\RequirePackage[first=0, last=9, counter=hat]{lcg}
+\RequirePackage[first=0, last=11, counter=hat]{lcg}
\RequirePackage{calc}
\RequirePackage{stackengine}
@@ -53,6 +53,10 @@
\DeclareOption{cowboy}{\global\def\hatused{cowboy}}
\DeclareOption{crown}{\global\def\hatused{crown}}
\DeclareOption{dunce}{\global\def\hatused{dunce}}
+\DeclareOption{policeman}{\global\def\hatused{policeman}}
+\DeclareOption{scottish}{\global\def\hatused{scottish}}
+\DeclareOption{birthday}{\global\def\hatused{birthday}}
+\DeclareOption{mortarboard}{\global\def\hatused{mortarboard}}
\ProcessOptions\relax
\newcommand{\gethat}{%
@@ -66,6 +70,10 @@
\or cowboy%
\or crown%
\or dunce%
+ \or policeman%
+ \or scottish%
+ \or birthday%
+ \or mortarboard%
\fi
}
@@ -85,6 +93,10 @@
\ifthenelse{\equal{#1}{cowboy}}{\hatn{#2}{cowboy}}{}%
\ifthenelse{\equal{#1}{crown}}{\hatn{#2}{crown}}{}%
\ifthenelse{\equal{#1}{dunce}}{\hatn{#2}{dunce}}{}%
+ \ifthenelse{\equal{#1}{policeman}}{\hatn{#2}{policeman}}{}%
+ \ifthenelse{\equal{#1}{scottish}}{\hatn{#2}{scottish}}{}%
+ \ifthenelse{\equal{#1}{birthday}}{\hatn{#2}{birthday}}{}%
+ \ifthenelse{\equal{#1}{mortarboard}}{\hatn{#2}{mortarboard}}{}%
}%
}
@@ -103,6 +115,10 @@
\ifthenelse{\equal{#2}{cowboy}}{\renewcommand\myhat{hats/realhats-cowboy}\setlength{\vshif}{-0.3ex} \setlength{\hshif}{0.2ex}}{}%
\ifthenelse{\equal{#2}{crown}}{\renewcommand\myhat{hats/realhats-crown}\setlength{\vshif}{-0.3ex} \setlength{\hshif}{0.2ex}}{}%
\ifthenelse{\equal{#2}{dunce}}{\renewcommand\myhat{hats/realhats-dunce}\setlength{\vshif}{-0.3ex} \setlength{\hatwidth}{1.4ex}}{}%
+\ifthenelse{\equal{#2}{policeman}}{\renewcommand\myhat{hats/realhats-policeman}\setlength{\vshif}{-0.4ex} \setlength{\hatwidth}{1.8ex} \addtolength{\hshif}{-1pt}}{}%
+\ifthenelse{\equal{#2}{scottish}}{\renewcommand\myhat{hats/realhats-scottish}\setlength{\vshif}{-0.6ex} \setlength{\hshif}{0.5ex} }{}%
+\ifthenelse{\equal{#2}{birthday}}{\renewcommand\myhat{hats/realhats-birthday}\setlength{\vshif}{-0.2ex} \setlength{\hshif}{-0.1ex} }{}%
+\ifthenelse{\equal{#2}{mortarboard}}{\renewcommand\myhat{hats/realhats-mortarboard}\setlength{\vshif}{-0.15ex} \setlength{\hshif}{0ex} }{}%
\addtolength{\hshif}{#3}%
\addtolength{\vshif}{#4}%
\stackMath %