TeX/fonts

Last-modified: 2013-09-10 (火) 16:03:30

testfont.tex

とりあえず, testfont.tex を探す.

find /usr/share/texmf/ -name testfont.tex

自分の環境では,

/usr/share/texmf/ptex/platex209/testfont.tex

/usr/share/texmf/tex/plain/base/testfont.tex

の二つが見つかった.

実際に testfont.dvi を作成するためには,

tex testfont.dvi

と入力し,

Name of the font to test =

Now type a test command (\help for help):)

*

に対して,

*\table\end

と入力すればよい.

\kcatcode

upLaTeX で

\kcatcode`ç=15% not cjk character
\kcatcode`Ŕ=15
\kcatcode`П=15
\kcatcode`α=15
\kcatcode`ἀ=15
\kcatcode`“=15

のような入力をする。
ここでの、`ç が文字ブロックを表していることの原理がわからない。

\mathchardef

\mathcharde\somecs charcode

\int

\DeclareMathSymbol{\intop}{\mathop}{largesymbols}{"52}
\def\int{\intop\nolimits}
(From fontmath.ltx)
  • 高校生向け教材としては, 地の文においても積分記号が大きいままの方がよい (と思う) ので修正.

    \DeclareMathSymbol{\intop}{\mathop}{largesymbols}{"5A}
    \def\int{\intop\nolimits}

\lim

\def\lim{\mathop{\operator@font lim}}
\def\limsup{\mathop{\operator@font lim\,sup}}
\def\liminf{\mathop{\operator@font lim\,inf}}

(From latex.ltx)

\log

\def\log{\mathop{\operator@font log}\nolimits}
\def\lg{\mathop{\operator@font lg}\nolimits}
\def\ln{\mathop{\operator@font ln}\nolimits}

(From latex.ltx)

\sin, \cos, \tan

三角関数 sin, cos, tan

\def\sin{\mathop{\operator@font sin}\nolimits}
\def\cos{\mathop{\operator@font cos}\nolimits}
\def\tan{\mathop{\operator@font tan}\nolimits}
(From latex.ltx)
\def\arcsin{\mathop{\operator@font arcsin}\nolimits}
\def\arccos{\mathop{\operator@font arccos}\nolimits}
\def\arctan{\mathop{\operator@font arctan}\nolimits}
\def\sinh{\mathop{\operator@font sinh}\nolimits}
\def\cosh{\mathop{\operator@font cosh}\nolimits}
\def\tanh{\mathop{\operator@font tanh}\nolimits}
\def\cot{\mathop{\operator@font cot}\nolimits}
\def\coth{\mathop{\operator@font coth}\nolimits}
\def\sec{\mathop{\operator@font sec}\nolimits}
\def\csc{\mathop{\operator@font csc}\nolimits}
(From latex.ltx)

\sum

\DeclareMathSymbol{\sum}{\mathop}{largesymbols}{"50}

(From fontmath.ltx)

  • 地の文においても, 上下に添字を表示するよう修正.

    \DeclareMathSymbol{\sumop}{\mathop}{largesymbols}{"50}
    \def\sum{\sumop\limits}

\def\max{\mathop{\operator@font max}}
\def\min{\mathop{\operator@font min}}
\def\sup{\mathop{\operator@font sup}}
\def\inf{\mathop{\operator@font inf}}
\def\arg{\mathop{\operator@font arg}\nolimits}
\def\ker{\mathop{\operator@font ker}\nolimits}
\def\dim{\mathop{\operator@font dim}\nolimits}
\def\hom{\mathop{\operator@font hom}\nolimits}
\def\det{\mathop{\operator@font det}}
\def\exp{\mathop{\operator@font exp}\nolimits}
\def\Pr{\mathop{\operator@font Pr}}
\def\gcd{\mathop{\operator@font gcd}}
\def\deg{\mathop{\operator@font deg}\nolimits}
(From latex.ltx)

! Double superscript. / ! Double subscript.

a^b^c や a_b_c のような入力.
解消の仕方は a^{b^c}, {a^b}^c, a_{b_c}, {a_b}_c のように順序を明示すればよい.

{\bar{a}^b}^c が通らない.

\mathaccent まわりを理解しないとなんとも…