- \kansujiref{‹ラベル›}:[命令]カウンタ値を漢数字で出力する- \ref。
- \kansujipageref{‹ラベル›}:[命令]カウンタ値を漢数字で出力する- \pageref。
- \kansujiref・- \kansujipagerefは完全展開可能ではない。
| % 準備 | |
| \newif\ifIsOdd | |
| \newcount\myCount | |
| \newbox\myBox | |
| %% \CheckOdd<整数n>: nが奇数であるかを判定し, 結果を | |
| % スイッチ \ifIsOdd に返す. | |
| \def\CheckOdd#1{% | |
| \IsOddfalse | |
| % nが奇数 ⇔ 5nのローマ数字の末尾が'v' | |
| % であるため, ボックス中でローマ数字を出力した上で | 
| % plain pTeX文書 | |
| % 準備 | |
| \newif\ifIsOdd | |
| \newcount\myCount | |
| \newbox\myBox | |
| \font\myFont=jis | |
| %% \CheckOdd<整数n>: nが奇数であるかを判定し, 結果を | |
| % スイッチ \ifIsOdd に返す. | |
| \def\CheckOdd#1{% | 
| %#!lualatex | |
| \documentclass{article} | |
| \usepackage[a6paper, scale=0.88]{geometry} | |
| \usepackage{fontspec} | |
| % Font available at https://github.com/zr-tex8r/SCVarSnowman | |
| \newfontface\fSCVS{SCVarSnowman.ttf}[Renderer=HarfBuzz] | |
| \newcommand*{\cItem}[1]{% | |
| \item \makebox[5em][l]{\ttfamily MOOD=#1}% | |
| % 'MOOD' axis: +100=smiling .. 0=neutral .. -100=frowning | |
| {\fSCVS\addfontfeatures{RawFeature={+axis={MOOD=#1}}}% | 
Compile with:
pdflatex "\catcode37=9 \input texmas2024.saty"
| -- This is file 'scspeddy.lua'. | |
| local module_name = 'scspeedy' | |
| local version = '2024-12-08' | |
| -- the module | |
| scspeedy = {} | |
| ---------------------------------------- | |
| -- logging | |
| local function make_message(...) | |
| return module_name..": "..table.concat({...}, ": ") | 
| %% This is file 'tcmathbold.sty'. | |
| %% Copyright (c) 024 Takayuki YATO (aka. "ZR") | |
| %% This package is distributed under the MIT License. | |
| \NeedsTeXFormat{LaTeX2e} | |
| \ProvidesPackage{tcmathbold}[2024/10/10 v0.1] | |
| % とりあえず, "極太"ウェイトの書体として | |
| % "Crimson Pro Black"のフォントを借りることにする. | |
| % Crimson Pro Black (立体) = OT1/CrimsonPro-TLF/ub/n | |
| % Crimson Pro Black (斜体) = OT1/CrimsonPro-TLF/ub/it | 
| %% | |
| %% This is file 'tcnicenumber.sty'. | |
| %% | |
| %% Copyright (c) 2024 Takayuki YATO (aka. "ZR") | |
| %% GitHub: https://github.com/zr-tex8r | |
| %% Twitter: @zr_tex8r | |
| %% | |
| %% This package is distributed under the MIT License. | |
| %% | 
| # ZRJCode.pm | |
| # | |
| #### start package | |
| package ZRJCode; | |
| use strict qw( refs vars subs ); | |
| our $VERSION = 0.002_03; | |
| our $mod_date = "2024/07/20"; | |
| require Exporter; | |
| our @ISA = qw( Exporter ); |