Skip to content

Instantly share code, notes, and snippets.

@zr-tex8r
Created August 9, 2026 03:30
Show Gist options
  • Select an option

  • Save zr-tex8r/d458d4eb1e1c6a5e65d3261516ea8869 to your computer and use it in GitHub Desktop.

Select an option

Save zr-tex8r/d458d4eb1e1c6a5e65d3261516ea8869 to your computer and use it in GitHub Desktop.
LaTeX: pLaTeXで令和☃年☃月☃日
% pLaTeX+dvipdfmx
\documentclass[platex,dvipdfmx,a4paper]{jsarticle}
\usepackage[svgnames]{xcolor}
\usepackage[noalphabet]{pxchfon}
\usepackage{bxnewfont}
\newfontjascale{*}
\newcommand*\cNewJaFont[3]{%
\newfontx*#1{#2}%
\usefontmapline{#2 unicode #3}%
}
% 和文フォント命令定義
\cNewJaFont\jYomo{niceA-h}{Yomogi-Regular.ttf}% Yomogi
\cNewJaFont\jKiwi{niceB-h}{KiwiMaru-Regular.ttf}% Kiwi Maru
\cNewJaFont\jYuji{niceC-h}{YujiSyuku-Regular.ttf}% Yuji Syuku
\begin{document}
\noautoxspacing % 和欧文間空白を消す
{\jYomo\symbol{"1132FF}}% "Yomogi"で"㋿"(U+32FF)
\textcolor{Red} {\jKiwi\symbol{"112603}}.% "Kiwi Maru"で"☃"(U+2603)
\textcolor{Blue} {\jYuji\symbol{"112603}}.% "Yuji Syuku"で"☃"(U+2603)
% 実は"Yomogi"ではU+2501の位置にゆきだるまの字形がある(素敵😊)
\textcolor{Green}{\jYomo\symbol{"112501}}% "Yomogi"でU+2501
\end{document}
@zr-tex8r

zr-tex8r commented Aug 9, 2026

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment