summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-01-22 22:34:35 +0000
committerKarl Berry <karl@freefriends.org>2017-01-22 22:34:35 +0000
commit4c6b58ab43e9ecce8fea120a3c918f0e7c1a10d8 (patch)
treee542eadad741a8e983a2bf067c5a9462e584b672 /Master/texmf-dist/tex/latex
parent4f70a140932277cc2ef6292e47ebe25c5d8c3230 (diff)
scsnowman (22jan17)
git-svn-id: svn://tug.org/texlive/trunk@43017 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/scsnowman/scsnowman-normal.def12
-rw-r--r--Master/texmf-dist/tex/latex/scsnowman/scsnowman.sty10
-rw-r--r--Master/texmf-dist/tex/latex/scsnowman/sctkzsym-base.sty9
3 files changed, 21 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/scsnowman/scsnowman-normal.def b/Master/texmf-dist/tex/latex/scsnowman/scsnowman-normal.def
index e8205179c2b..8c42db598fb 100644
--- a/Master/texmf-dist/tex/latex/scsnowman/scsnowman-normal.def
+++ b/Master/texmf-dist/tex/latex/scsnowman/scsnowman-normal.def
@@ -3,16 +3,22 @@
%% Maintained on GitHub:
%% https://github.com/aminophen/scsnowman
%%
-%% Copyright (c) 2015-2016 Hironobu Yamashita
+%% Copyright (c) 2015-2017 Hironobu Yamashita
%% Email : h.y.acetaminophen[a t]gmail.com
%% GitHub : https://github.com/aminophen
%% Blog : http://acetaminophen.hatenablog.com/
%% Twitter : @aminophen
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesFile{scsnowman-normal.def}[2016/12/22 v1.0 scsnowman definition (normal)]
+\ProvidesFile{scsnowman-normal.def}[2017/01/22 v1.1 scsnowman definition (normal)]
\def\sctkzsym@snowman@normal{%
- \begin{tikzpicture}[x=1.8ex,y=1.8ex,line width=0.025ex*\sctkzsym@coord@scl,line join=round,line cap=round,scale=\sctkzsym@snowman@scale]
+ \setlength{\sctkzsym@coord@baseline}{%
+ \ifsctkzsym@snowman@adjustbaseline
+ \dimexpr0.144ex*\sctkzsym@snowman@scale\relax
+ \else
+ \z@
+ \fi}%
+ \begin{tikzpicture}[x=1.8ex,y=1.8ex,line width=0.025ex*\sctkzsym@coord@scl,line join=round,line cap=round,scale=\sctkzsym@snowman@scale,baseline=\sctkzsym@coord@baseline]
\useasboundingbox(0,0) rectangle (1,1);
\sctkzsym@snowman@bodypath % body (IPA-like)
(0.5,0.72) .. controls (0.64,0.72) and (0.76,0.65) ..
diff --git a/Master/texmf-dist/tex/latex/scsnowman/scsnowman.sty b/Master/texmf-dist/tex/latex/scsnowman/scsnowman.sty
index b3d2866b551..77d2ab22d3c 100644
--- a/Master/texmf-dist/tex/latex/scsnowman/scsnowman.sty
+++ b/Master/texmf-dist/tex/latex/scsnowman/scsnowman.sty
@@ -3,17 +3,17 @@
%% Maintained on GitHub:
%% https://github.com/aminophen/scsnowman
%%
-%% Copyright (c) 2015-2016 Hironobu Yamashita
+%% Copyright (c) 2015-2017 Hironobu Yamashita
%% Email : h.y.acetaminophen[a t]gmail.com
%% GitHub : https://github.com/aminophen
%% Blog : http://acetaminophen.hatenablog.com/
%% Twitter : @aminophen
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{scsnowman}[2016/12/22 v1.0 Snowman variants using TikZ]
+\ProvidesPackage{scsnowman}[2017/01/22 v1.1 Snowman variants using TikZ]
\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{sctkzsym-base}}
\ProcessOptions\relax
-\RequirePackage{sctkzsym-base}[2016/08/08]
+\RequirePackage{sctkzsym-base}[2017/01/22]
%
% make document snowman (joke)
\ifsctkzsym@document
@@ -116,6 +116,7 @@
\def\sctkzsym@snowman@muffler{false}%
\def\sctkzsym@snowman@buttons{false}%
\def\sctkzsym@snowman@snow{false}%
+ \def\sctkzsym@snowman@adjustbaseline{false}%
}
\newcommand{\sctkzsym@snowman@defaultkeys}{%
\sctkzsym@snowman@initkeys
@@ -135,6 +136,7 @@
\sctkzsym@define@key@withbool{snowman}{muffler}
\sctkzsym@define@key@withbool{snowman}{buttons}
\sctkzsym@define@key@withbool{snowman}{snow}
+\sctkzsym@define@key@withbool{snowman}{adjustbaseline}
%
% count definitions for \sctkzsym@hndl@key@wodefault
\newcount\sctkzsym@snowman@mouthshape@c
@@ -213,6 +215,8 @@
\def\sctkzsym@snowman@buttonpath{\path[draw=\sctkzsym@snowman@buttonstroke,fill=\sctkzsym@snowman@buttonfill]}%
% check snow
\sctkzsym@hndl@key@withbool{snowman}{snow}%
+ % check adjustbaseline
+ \sctkzsym@hndl@key@onlybool{snowman}{adjustbaseline}%
%
% drawing snowman
\set@sctkzsym@coord@scl{\sctkzsym@snowman@scale}%
diff --git a/Master/texmf-dist/tex/latex/scsnowman/sctkzsym-base.sty b/Master/texmf-dist/tex/latex/scsnowman/sctkzsym-base.sty
index 1f313f015c5..4f8eadd01d4 100644
--- a/Master/texmf-dist/tex/latex/scsnowman/sctkzsym-base.sty
+++ b/Master/texmf-dist/tex/latex/scsnowman/sctkzsym-base.sty
@@ -3,14 +3,14 @@
%% Maintained on GitHub:
%% https://github.com/aminophen/scsnowman
%%
-%% Copyright (c) 2015-2016 Hironobu Yamashita
+%% Copyright (c) 2015-2017 Hironobu Yamashita
%% Email : h.y.acetaminophen[a t]gmail.com
%% GitHub : https://github.com/aminophen
%% Blog : http://acetaminophen.hatenablog.com/
%% Twitter : @aminophen
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{sctkzsym-base}[2016/12/22 v1.0 Base for emoji variants using TikZ]
+\ProvidesPackage{sctkzsym-base}[2017/01/22 v1.1 Base for emoji variants using TikZ]
\RequirePackage{tikz}
\RequirePackage{keyval}
%
@@ -84,7 +84,7 @@
\expandafter\ifx\csname sctkzsym@#1@#2\endcsname\sctkzsym@true\relax
\csname sctkzsym@#1@#2true\endcsname % <key>=true
\else
- \PackageError{sctkzsym-base}{Only true/false allowed for key `#2'}\@ehc
+ \PackageError{sc#1}{Only true/false allowed for key `#2'}\@ehc
\csname sctkzsym@#1@#2false\endcsname % <key>=false
\fi
\fi
@@ -102,7 +102,7 @@
\expandafter\ifx\csname sctkzsym@#1@#2\endcsname\@tempa\relax
\csname sctkzsym@#1@#2@c\endcsname\thr@@
\else
- \PackageError{sctkzsym-base}{Unsupported value `\csname sctkzsym@#1@#2\endcsname' for #2}\@ehc
+ \PackageError{sc#1}{Unsupported value `\csname sctkzsym@#1@#2\endcsname' for #2}\@ehc
\csname sctkzsym@#1@#2@c\endcsname\z@
\fi
\fi
@@ -110,6 +110,7 @@
}
%
% setup for tikzpicture
+\newlength{\sctkzsym@coord@baseline}
\newlength{\sctkzsym@coord@scl}
\newcommand*{\set@sctkzsym@coord@scl}[1]{\pgfmathsetlength{\sctkzsym@coord@scl}{#1pt}}
\newcommand{\sctkzsym@defaultcolor}{black}