texlive[66775] Master/texmf-dist: realhats (5apr23)

commits+karl at tug.org commits+karl at tug.org
Wed Apr 5 22:01:44 CEST 2023


Revision: 66775
          http://tug.org/svn/texlive?view=revision&revision=66775
Author:   karl
Date:     2023-04-05 22:01:44 +0200 (Wed, 05 Apr 2023)
Log Message:
-----------
realhats (5apr23)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/realhats/README.md
    trunk/Master/texmf-dist/doc/latex/realhats/readme_images/hats.png
    trunk/Master/texmf-dist/doc/latex/realhats/realhats.pdf
    trunk/Master/texmf-dist/source/latex/realhats/realhats.dtx
    trunk/Master/texmf-dist/tex/latex/realhats/realhats.sty

Added Paths:
-----------
    trunk/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-blue.pdf
    trunk/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-gray.pdf
    trunk/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-light-blue.pdf
    trunk/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-white.pdf

Modified: trunk/Master/texmf-dist/doc/latex/realhats/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/realhats/README.md	2023-04-05 20:01:20 UTC (rev 66774)
+++ trunk/Master/texmf-dist/doc/latex/realhats/README.md	2023-04-05 20:01:44 UTC (rev 66775)
@@ -13,6 +13,8 @@
 ![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

Modified: trunk/Master/texmf-dist/doc/latex/realhats/readme_images/hats.png
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/realhats/realhats.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/realhats/realhats.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/realhats/realhats.dtx	2023-04-05 20:01:20 UTC (rev 66774)
+++ trunk/Master/texmf-dist/source/latex/realhats/realhats.dtx	2023-04-05 20:01:44 UTC (rev 66775)
@@ -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 %

Added: trunk/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-blue.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-blue.pdf
===================================================================
--- trunk/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-blue.pdf	2023-04-05 20:01:20 UTC (rev 66774)
+++ trunk/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-blue.pdf	2023-04-05 20:01:44 UTC (rev 66775)

Property changes on: trunk/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-blue.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-gray.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-gray.pdf
===================================================================
--- trunk/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-gray.pdf	2023-04-05 20:01:20 UTC (rev 66774)
+++ trunk/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-gray.pdf	2023-04-05 20:01:44 UTC (rev 66775)

Property changes on: trunk/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-gray.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-light-blue.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-light-blue.pdf
===================================================================
--- trunk/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-light-blue.pdf	2023-04-05 20:01:20 UTC (rev 66774)
+++ trunk/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-light-blue.pdf	2023-04-05 20:01:44 UTC (rev 66775)

Property changes on: trunk/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-light-blue.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-white.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-white.pdf
===================================================================
--- trunk/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-white.pdf	2023-04-05 20:01:20 UTC (rev 66774)
+++ trunk/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-white.pdf	2023-04-05 20:01:44 UTC (rev 66775)

Property changes on: trunk/Master/texmf-dist/tex/latex/realhats/hats/realhats-tile-white.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Modified: trunk/Master/texmf-dist/tex/latex/realhats/realhats.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/realhats/realhats.sty	2023-04-05 20:01:20 UTC (rev 66774)
+++ trunk/Master/texmf-dist/tex/latex/realhats/realhats.sty	2023-04-05 20:01:44 UTC (rev 66775)
@@ -26,7 +26,6 @@
 %% SOFTWARE.
 %% 
 
-
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{realhats}[2022/06/13 realhats 6.0]
 
@@ -33,7 +32,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}
 
@@ -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 %



More information about the tex-live-commits mailing list.