diff options
author | Karl Berry <karl@freefriends.org> | 2023-04-05 20:01:44 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-04-05 20:01:44 +0000 |
commit | 57c72a89bd8f3f4f8087aae1ceaa901d7427a4eb (patch) | |
tree | 3b788c810d565d7e1f82efded1b6ebed1e8fda4b | |
parent | 609c33069313159275d5ca40618aecdace382e2c (diff) |
realhats (5apr23)
git-svn-id: svn://tug.org/texlive/trunk@66775 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/realhats/README.md | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/realhats/readme_images/hats.png | bin | 18890 -> 22983 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/realhats/realhats.pdf | bin | 2030450 -> 2034010 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/realhats/realhats.dtx | 34 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-blue.pdf | bin | 0 -> 1193 bytes | |||
-rw-r--r-- | Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-gray.pdf | bin | 0 -> 1184 bytes | |||
-rw-r--r-- | Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-light-blue.pdf | bin | 0 -> 1191 bytes | |||
-rw-r--r-- | Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-white.pdf | bin | 0 -> 1181 bytes | |||
-rw-r--r-- | Master/texmf-dist/tex/latex/realhats/realhats.sty | 20 |
9 files changed, 49 insertions, 7 deletions
diff --git a/Master/texmf-dist/doc/latex/realhats/README.md b/Master/texmf-dist/doc/latex/realhats/README.md index b30d25a9cb5..bd3e69b5d75 100644 --- a/Master/texmf-dist/doc/latex/realhats/README.md +++ b/Master/texmf-dist/doc/latex/realhats/README.md @@ -13,6 +13,8 @@ Regretfully brought into the world by [Matthew Scroggs](https://github.com/mscro ![Letters with hats on](readme_images/hats.png) ## Changelog +### Version 7.0 (2023-04-04) +* Added aperiodic tile hat ### Version 6.0 (2022-06-13) * Added Scottish hat * Added police hat diff --git a/Master/texmf-dist/doc/latex/realhats/readme_images/hats.png b/Master/texmf-dist/doc/latex/realhats/readme_images/hats.png Binary files differindex e3eeb1422c6..16226b9a13f 100644 --- a/Master/texmf-dist/doc/latex/realhats/readme_images/hats.png +++ b/Master/texmf-dist/doc/latex/realhats/readme_images/hats.png diff --git a/Master/texmf-dist/doc/latex/realhats/realhats.pdf b/Master/texmf-dist/doc/latex/realhats/realhats.pdf Binary files differindex 086bce845f7..2680bf90cf3 100644 --- a/Master/texmf-dist/doc/latex/realhats/realhats.pdf +++ b/Master/texmf-dist/doc/latex/realhats/realhats.pdf 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 % diff --git a/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-blue.pdf b/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-blue.pdf Binary files differnew file mode 100644 index 00000000000..06f84d16bab --- /dev/null +++ b/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-blue.pdf diff --git a/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-gray.pdf b/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-gray.pdf Binary files differnew file mode 100644 index 00000000000..c8aba8b8dde --- /dev/null +++ b/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-gray.pdf diff --git a/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-light-blue.pdf b/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-light-blue.pdf Binary files differnew file mode 100644 index 00000000000..76e02e51da6 --- /dev/null +++ b/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-light-blue.pdf diff --git a/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-white.pdf b/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-white.pdf Binary files differnew file mode 100644 index 00000000000..1cfaf2076aa --- /dev/null +++ b/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-white.pdf 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 % |