summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/scsnowman/scsnowman-sample.tex
blob: 50a9d07c7c8414fb700665d3d534668a264fe891 (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
%%
%% This is file `scsnowman-sample.tex', part of scsnowman package.
%% Maintained on GitHub:
%% https://github.com/aminophen/scsnowman
%%
%% Copyright (c) 2015-2016 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[margin=21truemm]{geometry}
\usepackage[svgnames]{xcolor}
\usepackage{scsnowman}
\title{\textsf{scsnowman}パッケージの実用例}
\author{アセトアミノフェン}
\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{SNOWMAN} & \texttt{SNOWMAN WITHOUT SNOW} & \texttt{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{SNOWMAN} & \texttt{SNOWMAN WITHOUT SNOW} & \texttt{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{SNOWMAN} & \texttt{SNOWMAN WITHOUT SNOW} & \texttt{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{RED SNOWMAN} & \texttt{BLUE SNOWMAN} & \texttt{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}

\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 さんは喜んでいました。

% buttons で「ボタン」(マフラーの有無で微妙に位置が変わる)
\scsnowmandefault{scale=5,hat=Green,arms=Brown,snow=SkyBlue}
\scsnowman[buttons=RoyalBlue,muffler=Red]
\scsnowman[buttons=RoyalBlue]

% mouthshape で「口の形」
\scsnowmandefault{scale=5,hat,muffler=Red}
\scsnowman[mouthshape=smile]% にっこり
\scsnowman[mouthshape=frown]% しかめっ面
\scsnowman[mouthshape=tight]% 真一文字

% sweat で「汗」
\scsnowmandefault{scale=5,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

\end{document}