Created
August 9, 2026 03:30
-
-
Save zr-tex8r/d458d4eb1e1c6a5e65d3261516ea8869 to your computer and use it in GitHub Desktop.
LaTeX: pLaTeXで令和☃年☃月☃日
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| % 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} |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
記事→(u)pLaTeXでもイロイロなフォントで☃したい話