| 1 |
%# -*- coding: utf-8 -*- |
| 2 |
\ifx\epTeXinputencoding\undefined\else % defined in e-pTeX (> TL2016) |
| 3 |
\epTeXinputencoding utf8 % ensure utf-8 encoding for platex |
| 4 |
\fi |
| 5 |
|
| 6 |
\documentclass[a4paper]{jsarticle} |
| 7 |
\usepackage{doc} |
| 8 |
\usepackage{mathfam256} |
| 9 |
\GetFileInfo{mathfam256.sty} |
| 10 |
\usepackage{array} |
| 11 |
\usepackage{url} |
| 12 |
\newcommand{\OMEGA}{$\Omega$} |
| 13 |
\def\pTeX{p\kern-.15em\TeX} |
| 14 |
\def\upTeX{u\pTeX} |
| 15 |
\def\eTeX{$\varepsilon$-\TeX} |
| 16 |
\def\epTeX{$\varepsilon$-\pTeX} |
| 17 |
\def\eupTeX{$\varepsilon$-\upTeX} |
| 18 |
\title{Package \textsf{mathfam256} \fileversion} |
| 19 |
\author{Hironobu Yamashita} |
| 20 |
\date{\filedate} |
| 21 |
\begin{document} |
| 22 |
|
| 23 |
\maketitle |
| 24 |
|
| 25 |
\parindent15pt |
| 26 |
|
| 27 |
In classic \TeX\ and \eTeX, the upper limit of math groups (\verb+\fam+) |
| 28 |
is limited to 16. However, these days some \TeX\ variants support |
| 29 |
math groups up to 256. |
| 30 |
|
| 31 |
In light of this situation, the \LaTeXe\ kernel 2015/01/01 increased |
| 32 |
the upper limit of math alphabets to 256 for |
| 33 |
Xe\TeX\ and Lua\TeX\ (Unicode \TeX\ variants). |
| 34 |
Also, the \pLaTeXe/\upLaTeXe\ kernel 2016/11/29 introduced the similar |
| 35 |
change for \epTeX/\eupTeX\ (``FAM256'' patch based on \OMEGA\ is applied). |
| 36 |
|
| 37 |
However, the ``native'' kernel support is limited: |
| 38 |
\begin{itemize} |
| 39 |
\item The upper limit for math symbol families is still limited to 16. |
| 40 |
\item Lamed (\LaTeX\ on Aleph) is not supported at all. |
| 41 |
\end{itemize} |
| 42 |
|
| 43 |
The package \textsf{mathfam256} is an attempt to resolve this situation; |
| 44 |
increases the upper limit of math symbols from 16 (\LaTeXe\ default) |
| 45 |
to 256, using \verb+\omath...+ primitives. |
| 46 |
|
| 47 |
The package is maintained on GitHub: |
| 48 |
\begin{quote} |
| 49 |
\url{https://github.com/aminophen/mathfam256} |
| 50 |
\end{quote} |
| 51 |
|
| 52 |
\section*{Requirements} |
| 53 |
|
| 54 |
The \verb+\omath...+ primitives are originally introduced in |
| 55 |
\OMEGA\ (Omega), and are currently available in the followings. |
| 56 |
Without one of these, the package causes an error. |
| 57 |
\begin{itemize} |
| 58 |
\item \pLaTeX/\upLaTeX, run on \epTeX/\eupTeX\ (Japanese \TeX\ engine) |
| 59 |
\item Lamed, run on Aleph (successor of \OMEGA) |
| 60 |
\end{itemize} |
| 61 |
|
| 62 |
\section*{Usage} |
| 63 |
|
| 64 |
Load it in the preamble; it is recommended to load it as fast as |
| 65 |
possible. |
| 66 |
\begin{verbatim} |
| 67 |
\documentclass[a4paper]{article} |
| 68 |
\usepackage{mathfam256} |
| 69 |
\usepackage{...}% other packages |
| 70 |
\begin{document} |
| 71 |
The content |
| 72 |
\end{document} |
| 73 |
\end{verbatim} |
| 74 |
|
| 75 |
\bigskip |
| 76 |
|
| 77 |
\parindent1zw |
| 78 |
|
| 79 |
オリジナルの\TeX や“素”の\eTeX では、数式ファミリ(\verb+\fam+)の |
| 80 |
上限が16個に制限されていました。しかし、最近の新しい\TeX エンジンの中には、 |
| 81 |
256個までの数式ファミリをサポートするものが現れています。 |
| 82 |
|
| 83 |
この状況を鑑み、\LaTeXe カーネル(2015/01/01以降)では、 |
| 84 |
Unicode対応のXe\TeX とLua\TeX について、数式ファミリ(正確には |
| 85 |
\verb+\DeclareMathAlphebet+で使われる数式アルファベット)の上限を256に |
| 86 |
増やしています。同様に、\pLaTeXe/\upLaTeXe カーネル(2016/11/29以降)も、 |
| 87 |
\OMEGA ベースのいわゆる「FAM256パッチ」が適用された\epTeX/\eupTeX について、 |
| 88 |
数式ファミリの上限を256に増やしています。これらにより |
| 89 |
\begin{verbatim} |
| 90 |
! LaTeX Error: Too many math alphabets used in version normal. |
| 91 |
\end{verbatim} |
| 92 |
というエラーが発生しにくくなっています。 |
| 93 |
|
| 94 |
しかし、この“ネイティブな”カーネルのサポートには限界があります: |
| 95 |
\begin{itemize} |
| 96 |
\item 数式シンボルフォントの上限は依然として16のままである(安全のため)。 |
| 97 |
\item Lamed (\LaTeX\ on Aleph)は全く考慮されていない。 |
| 98 |
\end{itemize} |
| 99 |
|
| 100 |
この\textsf{mathfam256}パッケージは、この状況を改善する試みです。 |
| 101 |
すなわち、\OMEGA 由来の\verb+\omath...+プリミティブを用いて、 |
| 102 |
数式シンボルフォントの上限を256に増やします。 |
| 103 |
|
| 104 |
\section*{動作条件} |
| 105 |
|
| 106 |
もともと\OMEGA\ (Omega)に導入された\verb+\omath...+プリミティブが |
| 107 |
必要です。これが実装されているのは、以下のフォーマット(エンジン)です。 |
| 108 |
これ以外でパッケージが使われて場合はエラー終了します。 |
| 109 |
\begin{itemize} |
| 110 |
\item \pLaTeX/\upLaTeX (\epTeX/\eupTeX 上で動作) |
| 111 |
\item Lamed(\OMEGA の後継であるAleph上で動作) |
| 112 |
\end{itemize} |
| 113 |
|
| 114 |
\section*{使い方} |
| 115 |
|
| 116 |
プリアンブルで読み込みます。なるべく早めに読み込むことをお勧めします。 |
| 117 |
\begin{verbatim} |
| 118 |
\documentclass[a4paper]{article} |
| 119 |
\usepackage{mathfam256} |
| 120 |
\usepackage{...}% other packages |
| 121 |
\begin{document} |
| 122 |
…本文… |
| 123 |
\end{document} |
| 124 |
\end{verbatim} |
| 125 |
|
| 126 |
\section*{謝辞} |
| 127 |
|
| 128 |
本パッケージは\cite{yamamoto}〜\cite{yamamoto3}を元に、 |
| 129 |
新しい\LaTeX に対応させることで作られました。 |
| 130 |
|
| 131 |
\begin{thebibliography}{99} |
| 132 |
\bibitem{yamamoto} 山本 和義,「数式famの制限とluatex」, |
| 133 |
掲示板「\TeX\ Q\ \&\ A」,2009/02/12.\\ |
| 134 |
\url{http://oku.edu.mie-u.ac.jp/~okumura/texfaq/qa/52744.html} |
| 135 |
\bibitem{yamamoto2} 山本 和義,「Re: 数式famの制限とluatex」, |
| 136 |
掲示板「\TeX\ Q\ \&\ A」,2009/02/16.\\ |
| 137 |
\url{http://oku.edu.mie-u.ac.jp/~okumura/texfaq/qa/52767.html} |
| 138 |
\bibitem{yamamoto3} 山本 和義,「数式fam拡張マクロ for e-pTeX等」, |
| 139 |
掲示板「\TeX\ Q\ \&\ A」,2009/02/21.\\ |
| 140 |
\url{http://oku.edu.mie-u.ac.jp/~okumura/texfaq/qa/52799.html} |
| 141 |
\bibitem{eptexdoc} 北川 弘典,「\epTeX について」.\\ |
| 142 |
\verb+$TEXMFDIST/doc/ptex/ptex-base/eptexdoc.pdf+ |
| 143 |
\end{thebibliography} |
| 144 |
|
| 145 |
\end{document} |