texlive[46223] Master/texmf-dist: scsnowman (5jan18)

commits+karl at tug.org commits+karl at tug.org
Fri Jan 5 22:48:56 CET 2018


Revision: 46223
          http://tug.org/svn/texlive?view=revision&revision=46223
Author:   karl
Date:     2018-01-05 22:48:55 +0100 (Fri, 05 Jan 2018)
Log Message:
-----------
scsnowman (5jan18)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/scsnowman/LICENSE
    trunk/Master/texmf-dist/doc/latex/scsnowman/README.md
    trunk/Master/texmf-dist/doc/latex/scsnowman/scsnowman-sample.pdf
    trunk/Master/texmf-dist/doc/latex/scsnowman/scsnowman-sample.tex
    trunk/Master/texmf-dist/doc/latex/scsnowman/scsnowman.pdf
    trunk/Master/texmf-dist/doc/latex/scsnowman/scsnowman.tex
    trunk/Master/texmf-dist/tex/latex/scsnowman/scsnowman-normal.def
    trunk/Master/texmf-dist/tex/latex/scsnowman/scsnowman.sty
    trunk/Master/texmf-dist/tex/latex/scsnowman/sctkzsym-base.sty

Modified: trunk/Master/texmf-dist/doc/latex/scsnowman/LICENSE
===================================================================
--- trunk/Master/texmf-dist/doc/latex/scsnowman/LICENSE	2018-01-05 18:51:32 UTC (rev 46222)
+++ trunk/Master/texmf-dist/doc/latex/scsnowman/LICENSE	2018-01-05 21:48:55 UTC (rev 46223)
@@ -1,6 +1,6 @@
 (The BSD 2-Clause License)
 
-Copyright (c) 2015-2017 Hironobu Yamashita
+Copyright (c) 2015-2018 Hironobu Yamashita
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without

Modified: trunk/Master/texmf-dist/doc/latex/scsnowman/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/scsnowman/README.md	2018-01-05 18:51:32 UTC (rev 46222)
+++ trunk/Master/texmf-dist/doc/latex/scsnowman/README.md	2018-01-05 21:48:55 UTC (rev 46223)
@@ -27,5 +27,5 @@
 This package is distributed under the BSD 2-Clause License.
 See [LICENSE](./LICENSE).
 
-Copyright (c) 2015-2017 Hironobu Yamashita
+Copyright (c) 2015-2018 Hironobu Yamashita
 http://acetaminophen.hatenablog.com/

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

Modified: trunk/Master/texmf-dist/doc/latex/scsnowman/scsnowman-sample.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/scsnowman/scsnowman-sample.tex	2018-01-05 18:51:32 UTC (rev 46222)
+++ trunk/Master/texmf-dist/doc/latex/scsnowman/scsnowman-sample.tex	2018-01-05 21:48:55 UTC (rev 46223)
@@ -3,7 +3,7 @@
 %% Maintained on GitHub:
 %% https://github.com/aminophen/scsnowman
 %%
-%% Copyright (c) 2015-2017 Hironobu Yamashita
+%% Copyright (c) 2015-2018 Hironobu Yamashita
 %%   Email   :  h.y.acetaminophen[a t]gmail.com
 %%   GitHub  :  https://github.com/aminophen
 %%   Blog    :  http://acetaminophen.hatenablog.com/
@@ -156,4 +156,8 @@
 {\color{red}色が\scsnowman[body]ついても、勿論大丈夫。}
 \end{minipage}
 
+\scsnowmandefault{adjustbaseline,scale=5.5}%
+お正月:\scsnowman[eyes=false,mouth=false,mikan]%
+\scsnowman[eyes=false,mouth=false,mikan=DarkOrange,leaf=DarkOliveGreen]
+
 \end{document}

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

Modified: trunk/Master/texmf-dist/doc/latex/scsnowman/scsnowman.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/scsnowman/scsnowman.tex	2018-01-05 18:51:32 UTC (rev 46222)
+++ trunk/Master/texmf-dist/doc/latex/scsnowman/scsnowman.tex	2018-01-05 21:48:55 UTC (rev 46223)
@@ -1,10 +1,10 @@
 %%
 %% This is the documentation of scsnowman package.
-%% (Last Update: 2017/01/22)
+%% (Last Update: 2018/01/05)
 %% Maintained on GitHub:
 %% https://github.com/aminophen/scsnowman
 %%
-%% Copyright (c) 2015-2017 Hironobu Yamashita
+%% Copyright (c) 2015-2018 Hironobu Yamashita
 %%   Email   :  h.y.acetaminophen[a t]gmail.com
 %%   GitHub  :  https://github.com/aminophen
 %%   Blog    :  http://acetaminophen.hatenablog.com/
@@ -16,6 +16,7 @@
 \usepackage{scsnowman}
 \GetFileInfo{scsnowman.sty}
 \usepackage{array}
+\usepackage{amsthm}
 \usepackage{luatexja}
 \usepackage{luatexja-fontspec}
 \def\BigSnowman#1{\fontsize{60pt}{60pt}\selectfont\symbol{"#1}}
@@ -290,8 +291,10 @@
 If you have created a fancy snowman, please contact me, so that I can incorporate it
 into the official release!
 
-\section{Changing Item Labels and QED Symbols}
+\section{Funny Usages}
 
+\subsection{Changing Item Labels and QED Symbols}
+
 For those who want more snowmen in the documents, currently \Lpack{scsnowman} provides
 the following additional commands:
 \begin{quote}
@@ -372,8 +375,31 @@
 The names of these commands are, of course, named after the \LaTeX\ \verb+\makeatletter+
 and \verb+\makeatother+;-)
 
-\newpage
+\subsection{Drawing ``\emph{Kagami-mochi}''}
 
+Using \Lpack{scsnowman} package, you can also draw ``\emph{kagami-mochi}''
+(mirror rice cake). It is a traditional Japanese New Year decoration,
+which usually consists of two round ``\emph{mochi}'' (rice cakes), the smaller
+placed atop the larger, and a ``\emph{daidai}'' (a Japanese bitter orange)
+with an attached leaf on top.
+
+Following \emph{key}s are implemented for this usage:\footnote{Strictly speaking,
+the orange on top of rice cakes should be ``\emph{daidai}''; however,
+a ``\emph{mikan}'' is often substituted for the original ``\emph{daidai}''.}
+\begin{quote}
+  \Lopt{mikan}, \Lopt{leaf}
+\end{quote}
+The \emph{key} \Lopt{leaf} is effective only when \Lopt{mikan} is specified.
+Here is an example:\\[1ex]
+\begin{minipage}{.85\textwidth}\begin{verbatim}
+  \scsnowmandefault{scale=5.5}
+  \scsnowman[eyes=false,mouth=false,mikan=orange,leaf=green]
+\end{verbatim}\end{minipage}
+\begin{minipage}{.1\textwidth}
+  \scsnowmandefault{scale=5.5}
+  \scsnowman[eyes=false,mouth=false,mikan=orange,leaf=green]
+\end{minipage}
+
 \section*{Version History}
 
 This is the summary of changes. For more detail, see GitHub repository.
@@ -390,7 +416,9 @@
             &            & Support vertical writing on (u)p\TeX\ and Lua\TeX-ja \\
             &            & Add a new key \Lopt{shape} \\
             &            & Add a new command \verb+\usescsnowmanlibrary+ \\
-Version 1.2a & 2017-11-25 & Fix a bug in scaling with \Lopt{adjustbaseline}
+Version 1.2a & 2017-11-25 & Fix a bug in scaling with \Lopt{adjustbaseline} \\
+Version 1.2b & 2018-01-05 & Add new keys \Lopt{mikan}, \Lopt{leaf} for drawing `kagami-mochi' \\
+             &            & Stopped loading \Lpack{amsthm} by default
 \end{tabular}
 \end{table}
 

Modified: trunk/Master/texmf-dist/tex/latex/scsnowman/scsnowman-normal.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/scsnowman/scsnowman-normal.def	2018-01-05 18:51:32 UTC (rev 46222)
+++ trunk/Master/texmf-dist/tex/latex/scsnowman/scsnowman-normal.def	2018-01-05 21:48:55 UTC (rev 46223)
@@ -3,7 +3,7 @@
 %% Maintained on GitHub:
 %% https://github.com/aminophen/scsnowman
 %%
-%% Copyright (c) 2015-2017 Hironobu Yamashita
+%% Copyright (c) 2015-2018 Hironobu Yamashita
 %%   Email   :  h.y.acetaminophen[a t]gmail.com
 %%   GitHub  :  https://github.com/aminophen
 %%   Blog    :  http://acetaminophen.hatenablog.com/
@@ -10,7 +10,7 @@
 %%   Twitter :  @aminophen
 %%
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesFile{scsnowman-normal.def}[2017/11/25 v1.2a scsnowman definition (normal)]
+\ProvidesFile{scsnowman-normal.def}[2018/01/05 v1.2b scsnowman definition (normal)]
 \def\sctkzsym at snowman@shape at normal{%
   \setlength{\sctkzsym at coord@baseline}{%
     \ifsctkzsym at snowman@adjustbaseline
@@ -58,6 +58,17 @@
         (0.58,0.90) --
         cycle;
     \fi
+    \ifsctkzsym at snowman@mikan
+      \sctkzsym at snowman@mikanpath % mikan
+        (0.50,0.80) circle (0.15 and 0.12);
+    \ifsctkzsym at snowman@leaf
+      \sctkzsym at snowman@leafpath
+        (0.50,0.93) .. controls (0.58,0.95) ..
+        (0.65,0.88) .. controls (0.50,0.87) ..
+        (0.50,0.93) --
+        cycle;
+    \fi
+    \fi
     \ifsctkzsym at snowman@arms
       \sctkzsym at snowman@armspath % right arm (SourceHanSans-like)
         (0.20,0.31) .. controls (0.19,0.33) and (0.14,0.41) ..

Modified: trunk/Master/texmf-dist/tex/latex/scsnowman/scsnowman.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/scsnowman/scsnowman.sty	2018-01-05 18:51:32 UTC (rev 46222)
+++ trunk/Master/texmf-dist/tex/latex/scsnowman/scsnowman.sty	2018-01-05 21:48:55 UTC (rev 46223)
@@ -3,7 +3,7 @@
 %% Maintained on GitHub:
 %% https://github.com/aminophen/scsnowman
 %%
-%% Copyright (c) 2015-2017 Hironobu Yamashita
+%% Copyright (c) 2015-2018 Hironobu Yamashita
 %%   Email   :  h.y.acetaminophen[a t]gmail.com
 %%   GitHub  :  https://github.com/aminophen
 %%   Blog    :  http://acetaminophen.hatenablog.com/
@@ -10,7 +10,7 @@
 %%   Twitter :  @aminophen
 %%
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{scsnowman}[2017/11/25 v1.2a Snowman variants using TikZ]
+\ProvidesPackage{scsnowman}[2018/01/05 v1.2b Snowman variants using TikZ]
 \DeclareOption*{\PassOptionsToPackage{\CurrentOption}{sctkzsym-base}}
 \ProcessOptions\relax
 \RequirePackage{sctkzsym-base}[2017/08/08]
@@ -118,6 +118,8 @@
   \def\sctkzsym at snowman@buttons{false}%
   \def\sctkzsym at snowman@snow{false}%
   \def\sctkzsym at snowman@adjustbaseline{false}%
+  \def\sctkzsym at snowman@mikan{false}%
+  \def\sctkzsym at snowman@leaf{false}%
 }
 \newcommand{\sctkzsym at snowman@defaultkeys}{%
   \sctkzsym at snowman@initkeys
@@ -139,6 +141,8 @@
 \sctkzsym at define@key at withbool{snowman}{buttons}
 \sctkzsym at define@key at withbool{snowman}{snow}
 \sctkzsym at define@key at withbool{snowman}{adjustbaseline}
+\sctkzsym at define@key at withbool{snowman}{mikan}
+\sctkzsym at define@key at withbool{snowman}{leaf}
 %
 % definition of \scsnowman[...]
 \DeclareRobustCommand\scsnowman[1][]{%
@@ -216,6 +220,15 @@
   \sctkzsym at hndl@key at withbool{snowman}{snow}%
   % check adjustbaseline
   \sctkzsym at hndl@key at onlybool{snowman}{adjustbaseline}%
+  % check mikan
+  \sctkzsym at hndl@key at withbool{snowman}{mikan}%
+  \sctkzsym at hndl@key at withbool{snowman}{leaf}%
+  \def\sctkzsym at snowman@mikanstroke{\sctkzsym at snowman@mikan}%
+  \def\sctkzsym at snowman@mikanfill{\sctkzsym at snowman@mikan}%
+  \def\sctkzsym at snowman@mikanpath{\path[draw=\sctkzsym at snowman@mikanstroke,fill=\sctkzsym at snowman@mikanfill]}%
+  \def\sctkzsym at snowman@leafstroke{\sctkzsym at snowman@leaf}%
+  \def\sctkzsym at snowman@leaffill{\sctkzsym at snowman@leaf}%
+  \def\sctkzsym at snowman@leafpath{\path[draw=\sctkzsym at snowman@leafstroke,fill=\sctkzsym at snowman@leaffill]}%
   %
   % drawing snowman
   \set at sctkzsym@coord at scl{\sctkzsym at snowman@scale}%

Modified: trunk/Master/texmf-dist/tex/latex/scsnowman/sctkzsym-base.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/scsnowman/sctkzsym-base.sty	2018-01-05 18:51:32 UTC (rev 46222)
+++ trunk/Master/texmf-dist/tex/latex/scsnowman/sctkzsym-base.sty	2018-01-05 21:48:55 UTC (rev 46223)
@@ -3,7 +3,7 @@
 %% Maintained on GitHub:
 %% https://github.com/aminophen/scsnowman
 %%
-%% Copyright (c) 2015-2017 Hironobu Yamashita
+%% Copyright (c) 2015-2018 Hironobu Yamashita
 %%   Email   :  h.y.acetaminophen[a t]gmail.com
 %%   GitHub  :  https://github.com/aminophen
 %%   Blog    :  http://acetaminophen.hatenablog.com/
@@ -10,7 +10,7 @@
 %%   Twitter :  @aminophen
 %%
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{sctkzsym-base}[2017/11/25 v1.2a Base for emoji variants using TikZ]
+\ProvidesPackage{sctkzsym-base}[2018/01/05 v1.2b Base for emoji variants using TikZ]
 \RequirePackage{tikz}
 \RequirePackage{keyval}
 %
@@ -35,9 +35,17 @@
 %
 % save QED symbol before change (joke)
 \ifsctkzsym at qed
-  \RequirePackage{amsthm}
+  \def\sctkzsym at saving@qedsymbol{%
+    \ifx\qedsymbol\@undefined\else
+      \let\sctkzsym at saved@qedsymbol\qedsymbol
+    \fi
+  }
+  % if `amsthm' is already loaded, save it now
+  \sctkzsym at saving@qedsymbol
+  % otherwise, saving is delayed till \begin{document}
+  % (hope \makeqed... is not already executed...)
   \ifx\sctkzsym at saved@qedsymbol\@undefined
-    \let\sctkzsym at saved@qedsymbol\qedsymbol
+    \AtBeginDocument{\sctkzsym at saving@qedsymbol}
   \fi
   \newcommand{\makeqedother}{%
     \let\qedsymbol\sctkzsym at saved@qedsymbol



More information about the tex-live-commits mailing list