summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/realhats/realhats.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-04-05 20:01:44 +0000
committerKarl Berry <karl@freefriends.org>2023-04-05 20:01:44 +0000
commit57c72a89bd8f3f4f8087aae1ceaa901d7427a4eb (patch)
tree3b788c810d565d7e1f82efded1b6ebed1e8fda4b /Master/texmf-dist/tex/latex/realhats/realhats.sty
parent609c33069313159275d5ca40618aecdace382e2c (diff)
realhats (5apr23)
git-svn-id: svn://tug.org/texlive/trunk@66775 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/realhats/realhats.sty')
-rw-r--r--Master/texmf-dist/tex/latex/realhats/realhats.sty20
1 files changed, 18 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/realhats/realhats.sty b/Master/texmf-dist/tex/latex/realhats/realhats.sty
index 35f1cbab5c4..16c2dcb5ad0 100644
--- a/Master/texmf-dist/tex/latex/realhats/realhats.sty
+++ b/Master/texmf-dist/tex/latex/realhats/realhats.sty
@@ -26,14 +26,13 @@
%% SOFTWARE.
%%
-
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{realhats}[2022/06/13 realhats 6.0]
\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}
@@ -57,6 +56,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}{%
@@ -74,6 +77,10 @@
\or scottish%
\or birthday%
\or mortarboard%
+ \or tile-white%
+ \or tile-gray%
+ \or tile-light-blue%
+ \or tile-blue%
\fi
}
@@ -97,6 +104,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}}{}%
}%
}
@@ -119,6 +130,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 %