LaTeXのkey-value方式のオプション引数をイメージ
LaTeXでの例:
\scsnowman
\scsnowmanscsnowman[adjustbaseline,scale=1]
\includegraphics[width=100mm]{hoge.jpg}
\NeedsTeXFormat{LaTeX2e} | |
\ProvidesPackage{demo-puzzle}[2018/09/05 v1.1]%イラロジ対応 | |
\RequirePackage{tikz} | |
\newcommand{\zahyo}[2]{#1,-#2} | |
\newcommand{\@sen}[2]{\draw[very thick](#1) -- (#2);} | |
\newcommand{\sankaku@nuri}[3]{\draw[fill=black] (#1) -- (#2) -- (#3);} |
% scarticle.satyh: An essential docuemnt class for SATySFi | |
% | |
% Copyright (c) 2018 Takayuki YATO (aka. "ZR") | |
% GitHub: https:%github.com/zr-tex8r | |
% Twitter: @zr_tex8r | |
% Distributed under the MIT License. | |
@require: pervasives | |
@require: list | |
@require: math |
@require: stdjabook | |
let-rec fact n = n * fact (n - 1) | |
in | |
document (| | |
title = {\SATySFi;概説}; | |
author = {Takashi SUWA}; |
% Author : T.Suwa and puripuri2100 | |
% LICENSE : LGPL v3 | |
@require: math | |
@require: color | |
let half-length hgt dpt hgtaxis fontsize = | |
let minhalflen = fontsize *' 0.5 in | |
let lenappend = fontsize *' 0.1 in | |
length-max minhalflen ((length-max (hgt -' hgtaxis) (hgtaxis +' dpt)) +' lenappend) |
let-mutable it-num <- 0 | |
let add-num-list it-list = | |
let () = it-num <- 0 in | |
let add-num it = | |
let () = it-num <- !it-num + 1 in | |
(it, !it-num) | |
in | |
List.map add-num it-list |