summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/scsnowman/scsnowman-sample.tex
blob: 58fc8a476f79395d60e584e4cbfc733dc17f0b66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
%%
%% This is file `scsnowman-sample.tex', part of scsnowman package.
%% Maintained on GitHub:
%% https://github.com/aminophen/scsnowman
%%
%% Copyright (c) 2015-2018 Hironobu Yamashita
%%   Email   :  h.y.acetaminophen[a t]gmail.com
%%   GitHub  :  https://github.com/aminophen
%%   Blog    :  http://acetaminophen.hatenablog.com/
%%   Twitter :  @aminophen
%%
% platex + dvipdfmx
\documentclass[dvipdfmx,twocolumn]{jsarticle}
\usepackage{plext}
\usepackage[margin=21truemm]{geometry}
\usepackage[svgnames]{xcolor}
\usepackage{scsnowman}
\title{\textsf{scsnowman}パッケージの実用例}
\author{Hironobu Yamashita}
\begin{document}
\maketitle

% ふつうのゆきだるま
これはゆきだるま\scsnowman です。

% 雪ありゆきだるま
今日の天気は\scsnowman[snow]です。

% 帽子をかぶったゆきだるま
ゆきだるま\scsnowman[hat]が帽子をかぶりました。

% 帽子をかぶったゆきだるま(帽子の色は青)
私は青い帽子をかぶった\scsnowman[hat=blue]が大好きです。

% 帽子とマフラー付(マフラーの色は赤)
マフラー\scsnowman[hat=true,muffler=red]を付けてあげましょう。

% 腕あり
腕も作って\scsnowman[hat=true,muffler=red,arms=true]あげましょう。

% サイズ変更
小\scsnowman、
中\scsnowman[scale=3]、
大\scsnowman[scale=5]。

% ゆきだるま三兄弟
\begin{table}[htb]
  \begin{tabular}{ccc}
    \texttt{U+2603} & \texttt{U+26C4} & \texttt{U+26C7} \\
    \texttt{\small SNOWMAN} & \texttt{\small SNOWMAN WITHOUT SNOW} & \texttt{\small BLACK SNOWMAN} \\
    \scsnowman[scale=5,body=false,snow=true] & \scsnowman[scale=5,body=false,snow=false] & \scsnowman[scale=5,body=true,snow=true]
  \end{tabular}
\end{table}

\begin{table}[htb]
  \begin{tabular}{ccc}
    \texttt{U+2603} & \texttt{U+26C4} & \texttt{U+26C7} \\
    \texttt{\small SNOWMAN} & \texttt{\small SNOWMAN WITHOUT SNOW} & \texttt{\small BLACK SNOWMAN} \\
    \scsnowman[scale=5,body=false,snow=true,muffler=true] & \scsnowman[scale=5,body=false,snow=false,muffler=true] & \scsnowman[scale=5,body=true,snow=true,muffler=true]
  \end{tabular}
\end{table}

\begin{table}[htb]
  \begin{tabular}{ccc}
    \texttt{U+2603} & \texttt{U+26C4} & \texttt{U+26C7} \\
    \texttt{\small SNOWMAN} & \texttt{\small SNOWMAN WITHOUT SNOW} & \texttt{\small BLACK SNOWMAN} \\
    \scsnowman[scale=5,body=false,snow=true,hat=true,arms=true] & \scsnowman[scale=5,body=false,snow=false,hat=true,arms=true] & \scsnowman[scale=5,body=true,snow=true,hat=true,arms=true]
  \end{tabular}
\end{table}

\begin{table}[htb]
  \begin{tabular}{ccc}
    \texttt{U+????} & \texttt{U+????} & \texttt{U+????} \\
    \texttt{\small RED SNOWMAN} & \texttt{\small BLUE SNOWMAN} & \texttt{\small GREEN SNOWMAN} \\
    \scsnowman[scale=5,body=red,snow=red,hat=red] & \scsnowman[scale=5,body=blue,hat=blue,arms=blue,muffler=blue] & \scsnowman[scale=5,body=green,snow=green,arms=green]
  \end{tabular}
\end{table}

% 周囲の色に追随
テキストが黒色の場合\scsnowman[hat,muffler=red]、
{\color{blue}テキストが青色の場合\scsnowman[hat,muffler=red]、
{\color{green}テキストが緑色の場合\scsnowman[hat,muffler=red]}}、
元通り\scsnowman[hat,muffler=red]。

\newpage

\scsnowmandefault{body,hat,snow,muffler}%
私、黒\scsnowman 大輔は、1950年に黒\scsnowman 太郎の長男として
誕生しました。その後、黒\scsnowman 家には…

\scsnowmandefault{hat,snow,arms}%
お隣には白\scsnowman さんが住んでいました。白\scsnowman さんは、
宛名の文字を「\scsnowman」でなく「\scsnowman[arms=false,muffler]」
と書いてしまうとお手紙を読まずに食べてしまうような変わった方でした。
ただし、\scsnowman[hat=red]のように帽子に色が付いた宛名を見ると、
白\scsnowman さんは喜んでいました。

\medskip
% buttons で「ボタン」(マフラーの有無で微妙に位置が変わる)
\scsnowmandefault{scale=4,hat=Green,arms=Brown,snow=SkyBlue}%
\scsnowman[buttons=RoyalBlue,muffler=Red]%
\scsnowman[buttons=RoyalBlue]%
% mouthshape で「口の形」
\scsnowmandefault{scale=4,hat,muffler=Red}%
\scsnowman[mouthshape=smile]% にっこり
\scsnowman[mouthshape=frown]% しかめっ面
\scsnowman[mouthshape=tight]% 真一文字
% sweat で「汗」
\scsnowmandefault{scale=4,hat}%
\scsnowman[mouthshape=tight,arms,buttons,sweat]

ゆきだるまで箇条書き:
\makeitemsnowman
\begin{itemize}
  \item 動物
  \begin{itemize}
    \item 哺乳類
    \item 鳥類
    \item …
  \end{itemize}
  \item 植物
  \begin{itemize}
    \item 裸子植物
    \item 被子植物
    \begin{itemize}
      \item 単子葉類
      \item 双子葉類
      \begin{itemize}
        \item 合弁花類
        \item 離弁花類
      \end{itemize}
    \end{itemize}
  \end{itemize}
\end{itemize}
\makeitemother

\medskip
\begin{minipage}{16zw}
ベースラインの調節なし:\par
Text,
\scsnowman[scale=1]%
\scsnowman[scale=4]%
\scsnowman[scale=7],
T.\par
ベースラインの調節あり:\par
Text,
\scsnowman[adjustbaseline,scale=1]%
\scsnowman[adjustbaseline,scale=4]%
\scsnowman[adjustbaseline,scale=7],
T.
\end{minipage}\quad
\begin{minipage}<t>{12zw}
\scsnowmandefault{}
縦書ーきで\scsnowman[hat,muffler=red]のテスト。
私の大好きな\scsnowman[scale=2,muffler]\scsnowman[scale=2,hat]がたくさん。
{\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]

The World Day of Snowman:
\scsnowman[muffler=Red,arms=Brown,buttons=Green,broom=DarkGoldenrod]

\end{document}