ref. https://h20y6m.github.io/posts/2023-12-02-texadvent2023/
- zrotfdump.pl を入手
- zrotfdump.pl を使用して ipamjm.ttf からグリフ一覧を取得
$ perl zrotfdump.pl name ipamjm.ttf > ipamjm-name.txt
- この ipamjm.py を使って ZVP ファイルを作成
/* A simple wrapper to invoke the extractbb mode of xdvipdfmx | |
Copyright 2024 Yukimasa Morimi (@h20y6m) | |
Permission is hereby granted, free of charge, to any person obtaining a | |
copy of this software and associated documentation files (the "Software"), | |
to deal in the Software without restriction, including without limitation | |
the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
and/or sell copies of the Software, and to permit persons to whom the | |
Software is furnished to do so, subject to the following conditions: |
% https://h20y6m.github.io/posts/2023-12-11-texadvent2023-2/ | |
\documentclass[a4paper,twocolumn]{article} | |
% https://github.com/h20y6m/latex-biguint | |
\usepackage{biguint} | |
\ExplSyntaxOn | |
% https://en.wikipedia.org/wiki/Mersenne_Twister |
--- C:/texlive/texmf-local/tex/platex/ipamjm/ipamjm-2022-01-09.sty Thu Jan 9 22:42:00 2020 | |
+++ C:/texlive/texmf-local/tex/platex/ipamjm/ipamjm.sty Sun Nov 26 20:39:04 2023 | |
@@ -29,6 +29,7 @@ | |
\ifnum \@tempcntb<65536 | |
\divide\@tempcntb by "1000 | |
\kanjishape{\ifcase\@tempcntb0\or1\or2\or3\or4\or5\or6\or7\or8\or9\or a\or b\or c\or d\or e\or f\fi}% | |
+ \selectfont | |
\multiply\@tempcntb by "1000 | |
\advance\@tempcnta by -\@tempcntb | |
\else |
ref. https://h20y6m.github.io/posts/2023-12-02-texadvent2023/
$ perl zrotfdump.pl name ipamjm.ttf > ipamjm-name.txt
#!/bin/sh -x | |
# Ubuntu 22.04 LTS on WSL2, TeX Live 2023 | |
# | |
# sudo apt install build-essential libexpat1-dev libfontconfig-dev libicu-dev libteckit-dev libgraphite2-dev libmpfr-dev libzzip-dev libgmp-dev libcairo2-dev libpixman-1-dev libgd-dev libfreetype-dev libpng-dev zlib1g-dev | |
NPTEX_WORK=`pwd` | |
NPTEX_SRCDIR=./texlive-source | |
NPTEX_TEXMFROOT=`kpsewhich -var-value=TEXMFROOT` |
-- File: build-platex-on-euptex.lua | |
-- | |
-- usage: | |
-- ```build.lua | |
-- kpse.set_program_name("kpsewhich") | |
-- ... | |
-- dofile("build-platex-on-euptex.lua") | |
-- ``` | |
-- Check if a file contains lines matching a pattern |
\NeedsTeXFormat{pLaTeX2e} | |
\ProvidesExplPackage{pl3str-convert}{2023-06-05}{} | |
{Patch for l3str-convert for (u)pLaTeX} | |
% Check if pTeX is old. | |
% Needs pTeX p3.10.0 or latar. | |
\msg_new:nnn { pl3str-convert } { old-ptex } | |
{ Your~pTeX~is~too~old. } | |
\token_if_primitive:NF \toucs | |
{ \msg_error:nn { pl3str-convert } { old-ptex } } | |
% Check that the expl3 function definitions are what we expect. |
%#!uplatex | |
%% upLaTeX で min10 してみる | |
%% TeX Live 2023 以降の uplatex が必要 | |
% ---------------------------------------------------------------------- | |
% どうして uplatex じゃないの? | |
\ifnum\jis"2121="3000 \else | |
\typeout{Why not run `uplatex'?} |
%#! ptex2pdf -u -l | |
% | |
% (u)pLaTeX + dvipdfmxで縦組みでtcolorboxを使ってみる。 | |
% | |
% 【警告】 | |
% 下記のコードはtcolorboxではなくTikZ/PGFのsystemlayerに変更を加えます! | |
% 最悪TikZ/PGF関連のすべてが壊れます! | |
% 「わかっている人」以外は使わないように! | |
% | |
% 【注意】 |
%% | |
%% This is file 'zenkaku.sty'. | |
%% | |
%% Copyright (c) 2022 Yukimasa Morimi (h20y6m) | |
%% GitHub: https://github.com/h20y6m | |
%% | |
%% This package is distributed under the MIT License. | |
%% | |
\NeedsTeXFormat{LaTeX2e} |