summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/realhats/realhats.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/realhats/realhats.dtx')
-rw-r--r--Master/texmf-dist/source/latex/realhats/realhats.dtx34
1 files changed, 29 insertions, 5 deletions
diff --git a/Master/texmf-dist/source/latex/realhats/realhats.dtx b/Master/texmf-dist/source/latex/realhats/realhats.dtx
index 4a2ef490586..973da1e0683 100644
--- a/Master/texmf-dist/source/latex/realhats/realhats.dtx
+++ b/Master/texmf-dist/source/latex/realhats/realhats.dtx
@@ -19,7 +19,6 @@
%OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
%SOFTWARE.
%\fi
-
%\lstinline{realhats} is a package for \LaTeX{} that makes the \lstinline{\hat} command
%put real hats on symbols.
%For example, the input \lstinline@\hat{a}=\hat{b}@ will produce the output:
@@ -27,7 +26,7 @@
%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 thirteen hats:
+%The command \lstinline{\hat} will choose a hat randomly from eighteen hats:
%\begin{center}
%\begin{tabular}{cp{4cm}cl}
%\(\hatn{a}{beret}\) & beret &
@@ -43,7 +42,11 @@
%\(\hatn{a}{policeman}\) & policeman's hat \qquad&
%\(\hatn{a}{scottish}\) & Scottish hat \\
%\(\hatn{a}{birthday}\) & birthday hat &
-%\(\hatn{a}{mortarboard}\) & mortarboard
+%\(\hatn{a}{mortarboard}\) & mortarboard \\
+%\(\hatn{a}{tile-white}\) & aperiodic tile (white) &
+%\(\hatn{a}{tile-gray}\) & aperiodic tile (gray)\\
+%\(\hatn{a}{tile-light-blue}\) & aperiodic tile (light blue) &
+%\(\hatn{a}{tile-blue}\) & aperiodic tile (blue)
%\end{tabular}
%\end{center}
%
@@ -64,7 +67,11 @@
% \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}\)
+% \lstinline@\hat[mortarboard]{a}@ & \(\hat[mortarboard]{a}\) \\
+% \lstinline@\hat[tile-white]{a}@ & \(\hat[tile-white]{a}\) &
+% \lstinline@\hat[tile-gray]{a}@ & \(\hat[tile-gray]{a}\) \\
+% \lstinline@\hat[tile-light-blue]{a}@ & \(\hat[tile-light-blue]{a}\) &
+% \lstinline@\hat[tile-blue]{a}@ & \(\hat[tile-blue]{a}\)
%\end{tabular}
%\end{center}
%
@@ -96,7 +103,7 @@
\RequirePackage{amsmath}
\RequirePackage{graphicx}
\RequirePackage{ifthen}
-\RequirePackage[first=0, last=11, counter=hat]{lcg}
+\RequirePackage[first=0, last=14, counter=hat]{lcg}
\RequirePackage{calc}
\RequirePackage{stackengine}
@@ -120,6 +127,10 @@
\DeclareOption{scottish}{\global\def\hatused{scottish}}
\DeclareOption{birthday}{\global\def\hatused{birthday}}
\DeclareOption{mortarboard}{\global\def\hatused{mortarboard}}
+\DeclareOption{tile-white}{\global\def\hatused{tile-white}}
+\DeclareOption{tile-gray}{\global\def\hatused{tile-gray}}
+\DeclareOption{tile-light-blue}{\global\def\hatused{tile-light-blue}}
+\DeclareOption{tile-blue}{\global\def\hatused{tile-blue}}
\ProcessOptions\relax
\newcommand{\gethat}{%
@@ -137,6 +148,10 @@
\or scottish%
\or birthday%
\or mortarboard%
+ \or tile-white%
+ \or tile-gray%
+ \or tile-light-blue%
+ \or tile-blue%
\fi
}
@@ -160,6 +175,10 @@
\ifthenelse{\equal{#1}{scottish}}{\hatn{#2}{scottish}}{}%
\ifthenelse{\equal{#1}{birthday}}{\hatn{#2}{birthday}}{}%
\ifthenelse{\equal{#1}{mortarboard}}{\hatn{#2}{mortarboard}}{}%
+ \ifthenelse{\equal{#1}{tile-white}}{\hatn{#2}{tile-white}}{}%
+ \ifthenelse{\equal{#1}{tile-gray}}{\hatn{#2}{tile-gray}}{}%
+ \ifthenelse{\equal{#1}{tile-light-blue}}{\hatn{#2}{tile-light-blue}}{}%
+ \ifthenelse{\equal{#1}{tile-blue}}{\hatn{#2}{tile-blue}}{}%
}%
}
@@ -182,6 +201,11 @@
\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} }{}%
+\ifthenelse{\equal{#2}{tile-white}}{\renewcommand\myhat{hats/realhats-tile-white}\setlength{\vshif}{-0.3ex} \setlength{\hshif}{0ex} }{}%
+\ifthenelse{\equal{#2}{tile-gray}}{\renewcommand\myhat{hats/realhats-tile-gray}\setlength{\vshif}{-0.3ex} \setlength{\hshif}{0ex} }{}%
+\ifthenelse{\equal{#2}{tile-light-blue}}{\renewcommand\myhat{hats/realhats-tile-light-blue}\setlength{\vshif}{-0.3ex} \setlength{\hshif}{0ex} }{}%
+\ifthenelse{\equal{#2}{tile-blue}}{\renewcommand\myhat{hats/realhats-tile-blue}\setlength{\vshif}{-0.3ex} \setlength{\hshif}{0ex} }{}%
+\ifthenelse{\equal{#2}{,1}}{\renewcommand\myhat{hats/realhats-,1}\setlength{\vshif}{-0.15ex} \setlength{\hshif}{0ex} }{}%
\addtolength{\hshif}{#3}%
\addtolength{\vshif}{#4}%
\stackMath %