| 1 |
%% |
| 2 |
%% This is file `scsnowman-sample.tex', part of scsnowman package. |
| 3 |
%% Maintained on GitHub: |
| 4 |
%% https://github.com/aminophen/scsnowman |
| 5 |
%% |
| 6 |
%% Copyright (c) 2015-2018 Hironobu Yamashita |
| 7 |
%% Email : h.y.acetaminophen[a t]gmail.com |
| 8 |
%% GitHub : https://github.com/aminophen |
| 9 |
%% Blog : http://acetaminophen.hatenablog.com/ |
| 10 |
%% Twitter : @aminophen |
| 11 |
%% |
| 12 |
% platex + dvipdfmx |
| 13 |
\documentclass[dvipdfmx,twocolumn]{jsarticle} |
| 14 |
\usepackage{plext} |
| 15 |
\usepackage[margin=21truemm]{geometry} |
| 16 |
\usepackage[svgnames]{xcolor} |
| 17 |
\usepackage{scsnowman} |
| 18 |
\title{\textsf{scsnowman}パッケージの実用例} |
| 19 |
\author{Hironobu Yamashita} |
| 20 |
\begin{document} |
| 21 |
\maketitle |
| 22 |
|
| 23 |
% ふつうのゆきだるま |
| 24 |
これはゆきだるま\scsnowman です。 |
| 25 |
|
| 26 |
% 雪ありゆきだるま |
| 27 |
今日の天気は\scsnowman[snow]です。 |
| 28 |
|
| 29 |
% 帽子をかぶったゆきだるま |
| 30 |
ゆきだるま\scsnowman[hat]が帽子をかぶりました。 |
| 31 |
|
| 32 |
% 帽子をかぶったゆきだるま(帽子の色は青) |
| 33 |
私は青い帽子をかぶった\scsnowman[hat=blue]が大好きです。 |
| 34 |
|
| 35 |
% 帽子とマフラー付(マフラーの色は赤) |
| 36 |
マフラー\scsnowman[hat=true,muffler=red]を付けてあげましょう。 |
| 37 |
|
| 38 |
% 腕あり |
| 39 |
腕も作って\scsnowman[hat=true,muffler=red,arms=true]あげましょう。 |
| 40 |
|
| 41 |
% サイズ変更 |
| 42 |
小\scsnowman、 |
| 43 |
中\scsnowman[scale=3]、 |
| 44 |
大\scsnowman[scale=5]。 |
| 45 |
|
| 46 |
% ゆきだるま三兄弟 |
| 47 |
\begin{table}[htb] |
| 48 |
\begin{tabular}{ccc} |
| 49 |
\texttt{U+2603} & \texttt{U+26C4} & \texttt{U+26C7} \\ |
| 50 |
\texttt{\small SNOWMAN} & \texttt{\small SNOWMAN WITHOUT SNOW} & \texttt{\small BLACK SNOWMAN} \\ |
| 51 |
\scsnowman[scale=5,body=false,snow=true] & \scsnowman[scale=5,body=false,snow=false] & \scsnowman[scale=5,body=true,snow=true] |
| 52 |
\end{tabular} |
| 53 |
\end{table} |
| 54 |
|
| 55 |
\begin{table}[htb] |
| 56 |
\begin{tabular}{ccc} |
| 57 |
\texttt{U+2603} & \texttt{U+26C4} & \texttt{U+26C7} \\ |
| 58 |
\texttt{\small SNOWMAN} & \texttt{\small SNOWMAN WITHOUT SNOW} & \texttt{\small BLACK SNOWMAN} \\ |
| 59 |
\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] |
| 60 |
\end{tabular} |
| 61 |
\end{table} |
| 62 |
|
| 63 |
\begin{table}[htb] |
| 64 |
\begin{tabular}{ccc} |
| 65 |
\texttt{U+2603} & \texttt{U+26C4} & \texttt{U+26C7} \\ |
| 66 |
\texttt{\small SNOWMAN} & \texttt{\small SNOWMAN WITHOUT SNOW} & \texttt{\small BLACK SNOWMAN} \\ |
| 67 |
\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] |
| 68 |
\end{tabular} |
| 69 |
\end{table} |
| 70 |
|
| 71 |
\begin{table}[htb] |
| 72 |
\begin{tabular}{ccc} |
| 73 |
\texttt{U+????} & \texttt{U+????} & \texttt{U+????} \\ |
| 74 |
\texttt{\small RED SNOWMAN} & \texttt{\small BLUE SNOWMAN} & \texttt{\small GREEN SNOWMAN} \\ |
| 75 |
\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] |
| 76 |
\end{tabular} |
| 77 |
\end{table} |
| 78 |
|
| 79 |
% 周囲の色に追随 |
| 80 |
テキストが黒色の場合\scsnowman[hat,muffler=red]、 |
| 81 |
{\color{blue}テキストが青色の場合\scsnowman[hat,muffler=red]、 |
| 82 |
{\color{green}テキストが緑色の場合\scsnowman[hat,muffler=red]}}、 |
| 83 |
元通り\scsnowman[hat,muffler=red]。 |
| 84 |
|
| 85 |
\newpage |
| 86 |
|
| 87 |
\scsnowmandefault{body,hat,snow,muffler}% |
| 88 |
私、黒\scsnowman 大輔は、1950年に黒\scsnowman 太郎の長男として |
| 89 |
誕生しました。その後、黒\scsnowman 家には… |
| 90 |
|
| 91 |
\scsnowmandefault{hat,snow,arms}% |
| 92 |
お隣には白\scsnowman さんが住んでいました。白\scsnowman さんは、 |
| 93 |
宛名の文字を「\scsnowman」でなく「\scsnowman[arms=false,muffler]」 |
| 94 |
と書いてしまうとお手紙を読まずに食べてしまうような変わった方でした。 |
| 95 |
ただし、\scsnowman[hat=red]のように帽子に色が付いた宛名を見ると、 |
| 96 |
白\scsnowman さんは喜んでいました。 |
| 97 |
|
| 98 |
\medskip |
| 99 |
% buttons で「ボタン」(マフラーの有無で微妙に位置が変わる) |
| 100 |
\scsnowmandefault{scale=4,hat=Green,arms=Brown,snow=SkyBlue}% |
| 101 |
\scsnowman[buttons=RoyalBlue,muffler=Red]% |
| 102 |
\scsnowman[buttons=RoyalBlue]% |
| 103 |
% mouthshape で「口の形」 |
| 104 |
\scsnowmandefault{scale=4,hat,muffler=Red}% |
| 105 |
\scsnowman[mouthshape=smile]% にっこり |
| 106 |
\scsnowman[mouthshape=frown]% しかめっ面 |
| 107 |
\scsnowman[mouthshape=tight]% 真一文字 |
| 108 |
% sweat で「汗」 |
| 109 |
\scsnowmandefault{scale=4,hat}% |
| 110 |
\scsnowman[mouthshape=tight,arms,buttons,sweat] |
| 111 |
|
| 112 |
ゆきだるまで箇条書き: |
| 113 |
\makeitemsnowman |
| 114 |
\begin{itemize} |
| 115 |
\item 動物 |
| 116 |
\begin{itemize} |
| 117 |
\item 哺乳類 |
| 118 |
\item 鳥類 |
| 119 |
\item … |
| 120 |
\end{itemize} |
| 121 |
\item 植物 |
| 122 |
\begin{itemize} |
| 123 |
\item 裸子植物 |
| 124 |
\item 被子植物 |
| 125 |
\begin{itemize} |
| 126 |
\item 単子葉類 |
| 127 |
\item 双子葉類 |
| 128 |
\begin{itemize} |
| 129 |
\item 合弁花類 |
| 130 |
\item 離弁花類 |
| 131 |
\end{itemize} |
| 132 |
\end{itemize} |
| 133 |
\end{itemize} |
| 134 |
\end{itemize} |
| 135 |
\makeitemother |
| 136 |
|
| 137 |
\medskip |
| 138 |
\begin{minipage}{16zw} |
| 139 |
ベースラインの調節なし:\par |
| 140 |
Text, |
| 141 |
\scsnowman[scale=1]% |
| 142 |
\scsnowman[scale=4]% |
| 143 |
\scsnowman[scale=7], |
| 144 |
T.\par |
| 145 |
ベースラインの調節あり:\par |
| 146 |
Text, |
| 147 |
\scsnowman[adjustbaseline,scale=1]% |
| 148 |
\scsnowman[adjustbaseline,scale=4]% |
| 149 |
\scsnowman[adjustbaseline,scale=7], |
| 150 |
T. |
| 151 |
\end{minipage}\quad |
| 152 |
\begin{minipage}<t>{12zw} |
| 153 |
\scsnowmandefault{} |
| 154 |
縦書ーきで\scsnowman[hat,muffler=red]のテスト。 |
| 155 |
私の大好きな\scsnowman[scale=2,muffler]\scsnowman[scale=2,hat]がたくさん。 |
| 156 |
{\color{red}色が\scsnowman[body]ついても、勿論大丈夫。} |
| 157 |
\end{minipage} |
| 158 |
|
| 159 |
\scsnowmandefault{adjustbaseline,scale=5.5}% |
| 160 |
お正月:\scsnowman[eyes=false,mouth=false,mikan]% |
| 161 |
\scsnowman[eyes=false,mouth=false,mikan=DarkOrange,leaf=DarkOliveGreen] |
| 162 |
|
| 163 |
The World Day of Snowman: |
| 164 |
\scsnowman[muffler=Red,arms=Brown,buttons=Green,broom=DarkGoldenrod] |
| 165 |
\scsnowman[body,muffler=Red,arms=Brown,nose=Orange] |
| 166 |
|
| 167 |
\end{document} |