Created
January 24, 2022 13:49
-
-
Save aminophen/f3731df2ffb296b27ef4eb969e7b9b68 to your computer and use it in GitHub Desktop.
[ptex] \mathcode 128--255 が正しく効かない
This file contains 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
%#!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 | |
\font\IC=ec-lmtti10 at 5pt | |
\font\IB=ec-lmtti10 at 7pt | |
\font\IA=ec-lmtti10 | |
\textfont1=\IA \scriptfont1=\IB \scriptscriptfont1=\IC | |
\font\SC=cmsy5 | |
\font\SB=cmsy7 | |
\font\SA=cmsy10 % math symbols | |
\textfont2=\SA \scriptfont2=\SB \scriptscriptfont2=\SC | |
\font\EA=cmex10 % math extension | |
\textfont3=\EA \scriptfont3=\EA \scriptscriptfont3=\EA | |
\fam0 \FA | |
\mathcode"79="5AB | |
\mathcode"80="5CD | |
\message{\fontname\textfont5}% => nullfont | |
\chardef\AB="79 | |
\chardef\CD="80 | |
\hsize=300pt \vbox{$[^^79][^^80]\AB\CD$} | |
\end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See texjporg/tex-jp-build#129