Skip to content

Instantly share code, notes, and snippets.

View aminophen's full-sized avatar
☃️
☃️⛄️🍣🦆🐦🤯🤮😱🤔🙃

Hironobu Yamashita aminophen

☃️
☃️⛄️🍣🦆🐦🤯🤮😱🤔🙃
View GitHub Profile
@aminophen
aminophen / mathcode-128.tex
Created January 24, 2022 13:49
[ptex] \mathcode 128--255 が正しく効かない
%#!ptex -ini
\catcode`\{=1
\catcode`\}=2
\catcode`\$=3
\catcode`\^=7
\font\FC=ec-lmtt10 at 5pt
\font\FB=ec-lmtt10 at 7pt
\font\FA=ec-lmtt10
\textfont0=\FA \scriptfont0=\FB \scriptscriptfont0=\FC
@aminophen
aminophen / chardef-math-256.tex
Created January 23, 2022 13:27
文字コード256の \chardef が化ける
%#!uptex -ini
\catcode`\{=1
\catcode`\}=2
\catcode`\$=3
\catcode`\^=7
\font\FC=ec-lmtt10 at 5pt
\font\FB=ec-lmtt10 at 7pt
\font\FA=ec-lmtt10
\textfont0=\FA \scriptfont0=\FB \scriptscriptfont0=\FC
@aminophen
aminophen / showcjk.tex
Created October 28, 2019 14:42
upTeX の \...cjktoken の状態取得
%#!euptex
\font\x=ec-lmr10\x
\def\SHOWCJKTOKEN{{%
\kansujichar1="2603\relax
\kcatcode"2603=18\relax
{\forcecjktoken \xdef\Xa{\kansuji1}}%
{\disablecjktoken \xdef\Xb{\kansuji1}}%
\edef\Xc{\kansuji1}%
\kcatcode"2603=15\relax
@aminophen
aminophen / jpbase.ist
Last active June 6, 2021 11:47
索引スタイルのベース
% jpbook.ist - general settings, part of mendex package.
% also works with makeindex.
% これは mendex スタイルファイルのサンプルです
%% Use general commands (M. Yamamoto, @munepi)
headings_flag 1
heading_prefix "\n\\makeidxhead{"
heading_suffix "}"
%
delim_0 "\\idxdelim "
@aminophen
aminophen / allkana-jisx0208.idx
Created June 3, 2021 13:32
mendex: 仮名文字の並べ替えテスト用
\indexentry{ぁ}{1}
\indexentry{あ}{2}
\indexentry{ぃ}{3}
\indexentry{い}{4}
\indexentry{ぅ}{5}
\indexentry{う}{6}
\indexentry{ぇ}{7}
\indexentry{え}{8}
\indexentry{ぉ}{9}
\indexentry{お}{10}
@aminophen
aminophen / latex-develop-83f0f81-26bbad2-all.diff
Created May 23, 2021 03:09
LaTeX2e develop branch 83f0f81 -- 26bbad2 変更点(フォント関係のみ)
diff --git a/base/ltfssaxes.dtx b/base/ltfssaxes.dtx
index 4e3b4d98..86c84b11 100644
--- a/base/ltfssaxes.dtx
+++ b/base/ltfssaxes.dtx
@@ -35,7 +35,7 @@
%
%
\ProvidesFile{ltfssaxes.dtx}
- [2020/12/22 v1.0h LaTeX Kernel (NFSS Axes handing)]
+ [2021/03/18 v1.0i LaTeX Kernel (NFSS Axes handing)]
@aminophen
aminophen / cjk-gs-integrate.md
Last active December 23, 2020 15:17
cjk-gs-integrate の仕様 (2016/12/03 03:10)

cjk-gs-integrate.pl のデータベースと symlink / snippet 作成の仕様

拡張子 otf のファイルの場合

データベースのかきかた:

  • 【必須】Name エントリには「TEXMFLOCAL に作りたい symlink 名(dvipdfmx 用 map などにある名称)」を書く。
  • PSName エントリは、Name エントリの内容と実フォントの PostScript Name が異なる場合に書く。
  • 【必須】Class エントリは Adobe-ナントカ1-[Supplement] の「ナントカ」を書く(Japan / GB / CNS / Korea)。
  • Provides エントリは、当該の実フォントを代表的な PostScript 標準フォントへのエイリアスに採用したい場合に書く。
@aminophen
aminophen / 20160916-AtEndOfPackage-RequirePackage-test.tex
Last active October 2, 2020 23:34
\AtEndOfPackage{\RequirePackage{hoge}} の困ったエラーをなんとかするアレ
%%% Code updated (2016-09-16 19:02 GMT+09:00)
\begin{filecontents}{test.sty}
\DeclareOption{TEST}{\typeout{*** TEST OPTION ***}}
\ProcessOptions
\AtEndOfPackage{\RequirePackage{xspace}} % some package without \ProcessOptions
\end{filecontents}
% !!! TeX code BEGIN
\makeatletter
@aminophen
aminophen / ipapmin-h.pl
Created June 24, 2017 21:12
「IPA P 明朝」の仮名文字や記号類をプロポーショナルで扱う JFM を作るための JPL ソース
(FAMILY UNKNOWN)
(FACE F MRR)
(CODINGSCHEME TEX KANJI TEXT)
(DESIGNSIZE R 10.000000)
(CHECKSUM O 0)
(SEVENBITSAFEFLAG TRUE)
(FONTDIMEN
(SLANT R 0.0)
(SPACE R 0.0)
(STRETCH R 0.091641)
@aminophen
aminophen / labels.tex
Created June 7, 2020 02:21
\box\@labels and macrocode environment
% \iffalse
\documentclass{article}
\usepackage{doc}
\begin{document}
\DocInput{\jobname}
\end{document}
% \fi
%
% \makeatletter
% \tracingonline1