LATEX を使っていて、 ずっと以前から出ていた
LaTeX Font Warning: Font shape `JY1/mc/m/it' undefined |
あっという間に解決策が見つかる。 “LaTeX Font Warning: Font shape `JY1/mc/m/it' undefined” といった警告が出る
pLaTeX の場合 |
\DeclareFontShape{JY1}{mc}{m}{it}{<->ssub*mc/m/n}{} \DeclareFontShape{JY1}{mc}{m}{sl}{<->ssub*mc/m/n}{} \DeclareFontShape{JY1}{mc}{m}{sc}{<->ssub*mc/m/n}{} \DeclareFontShape{JY1}{gt}{m}{it}{<->ssub*gt/m/n}{} \DeclareFontShape{JY1}{gt}{m}{sl}{<->ssub*gt/m/n}{} \DeclareFontShape{JY1}{mc}{bx}{it}{<->ssub*gt/m/n}{} \DeclareFontShape{JY1}{mc}{bx}{sl}{<->ssub*gt/m/n}{} \DeclareFontShape{JT1}{mc}{m}{it}{<->ssub*mc/m/n}{} \DeclareFontShape{JT1}{mc}{m}{sl}{<->ssub*mc/m/n}{} \DeclareFontShape{JT1}{mc}{m}{sc}{<->ssub*mc/m/n}{} \DeclareFontShape{JT1}{gt}{m}{it}{<->ssub*gt/m/n}{} \DeclareFontShape{JT1}{gt}{m}{sl}{<->ssub*gt/m/n}{} \DeclareFontShape{JT1}{mc}{bx}{it}{<->ssub*gt/m/n}{} \DeclareFontShape{JT1}{mc}{bx}{sl}{<->ssub*gt/m/n}{} |
upLaTeX の場合は JY1, JT1 を JT2, JT2 に置き換える。
警告がすごく減った。
自動判定するか。
% https://okumuralab.org/tex/mod/forum/discuss.php?d=3571 \ifnum\jis"2121="3000 % upLaTeX \DeclareFontShape{JY2}{mc}{m}{it}{<->ssub*mc/m/n}{} \DeclareFontShape{JY2}{mc}{m}{sl}{<->ssub*mc/m/n}{} \DeclareFontShape{JY2}{mc}{m}{sc}{<->ssub*mc/m/n}{} \DeclareFontShape{JY2}{gt}{m}{it}{<->ssub*gt/m/n}{} \DeclareFontShape{JY2}{gt}{m}{sl}{<->ssub*gt/m/n}{} \DeclareFontShape{JY2}{mc}{bx}{it}{<->ssub*gt/m/n}{} \DeclareFontShape{JY2}{mc}{bx}{sl}{<->ssub*gt/m/n}{} \DeclareFontShape{JT2}{mc}{m}{it}{<->ssub*mc/m/n}{} \DeclareFontShape{JT2}{mc}{m}{sl}{<->ssub*mc/m/n}{} \DeclareFontShape{JT2}{mc}{m}{sc}{<->ssub*mc/m/n}{} \DeclareFontShape{JT2}{gt}{m}{it}{<->ssub*gt/m/n}{} \DeclareFontShape{JT2}{gt}{m}{sl}{<->ssub*gt/m/n}{} \DeclareFontShape{JT2}{mc}{bx}{it}{<->ssub*gt/m/n}{} \DeclareFontShape{JT2}{mc}{bx}{sl}{<->ssub*gt/m/n}{} \else % pLaTeX \DeclareFontShape{JY1}{mc}{m}{it}{<->ssub*mc/m/n}{} \DeclareFontShape{JY1}{mc}{m}{sl}{<->ssub*mc/m/n}{} \DeclareFontShape{JY1}{mc}{m}{sc}{<->ssub*mc/m/n}{} \DeclareFontShape{JY1}{gt}{m}{it}{<->ssub*gt/m/n}{} \DeclareFontShape{JY1}{gt}{m}{sl}{<->ssub*gt/m/n}{} \DeclareFontShape{JY1}{mc}{bx}{it}{<->ssub*gt/m/n}{} \DeclareFontShape{JY1}{mc}{bx}{sl}{<->ssub*gt/m/n}{} \DeclareFontShape{JT1}{mc}{m}{it}{<->ssub*mc/m/n}{} \DeclareFontShape{JT1}{mc}{m}{sl}{<->ssub*mc/m/n}{} \DeclareFontShape{JT1}{mc}{m}{sc}{<->ssub*mc/m/n}{} \DeclareFontShape{JT1}{gt}{m}{it}{<->ssub*gt/m/n}{} \DeclareFontShape{JT1}{gt}{m}{sl}{<->ssub*gt/m/n}{} \DeclareFontShape{JT1}{mc}{bx}{it}{<->ssub*gt/m/n}{} \DeclareFontShape{JT1}{mc}{bx}{sl}{<->ssub*gt/m/n}{} \fi |