-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ctex: 默认字号设置会破坏 LaTeX logo #467
Comments
最小示例: \documentclass{minimal}
\DeclareMathSizes{15.05624}{15.05624}{12.045}{9.03374}
\begin{document}
\fontsize{15.05624}{18.06749}\selectfont
\LaTeX{} \textbf{\LaTeX{}}
\end{document} 用 pdffonts 查看,得到:
而如果改为
因为,问题就在于, Lines 9148 to 9167 in dacf770
|
从「向后兼容旧文档」的角度来说,不应该更改 这些字号设定的合理性,可以从 LaTeX2e 的 \DeclareMathSizes{5}{5}{5}{5}
\DeclareMathSizes{6}{6}{5}{5}
\DeclareMathSizes{7}{7}{5}{5}
\DeclareMathSizes{8}{8}{6}{5}
\DeclareMathSizes{9}{9}{6}{5}
\DeclareMathSizes{\@xpt}{\@xpt}{7}{5}
\DeclareMathSizes{\@xipt}{\@xipt}{8}{6}
\DeclareMathSizes{\@xiipt}{\@xiipt}{8}{6}
\DeclareMathSizes{\@xivpt}{\@xivpt}{\@xpt}{7}
\DeclareMathSizes{\@xviipt}{\@xviipt}{\@xiipt}{\@xpt}
\DeclareMathSizes{\@xxpt}{\@xxpt}{\@xivpt}{\@xiipt}
\DeclareMathSizes{\@xxvpt}{\@xxvpt}{\@xxpt}{\@xviipt} \DeclareMathSizes{13.82}{13.82}{10}{7}
\DeclareMathSizes{16.59}{16.59}{12}{7}
\DeclareMathSizes{19.907}{19.907}{16.59}{13.82}
\DeclareMathSizes{23.89}{23.89}{19.907}{16.59}
\DeclareMathSizes{28.66}{28.66}{23.89}{19.907}
\DeclareMathSizes{34.4}{34.4}{28.66}{23.89}
\DeclareMathSizes{41.28}{41.28}{34.4}{28.66} 基层 classes 设定数学一二级角标的字号,基本上是参考以下数值 https://github.com/latex3/latex2e/blob/abb82c1299b37a12ab40779ee4b64db717f6004b/base/ltfssbas.dtx#L1794-L1795 \def\defaultscriptratio{.7}
\def\defaultscriptscriptratio{.5} 除非: % 字号不宜低于 5pt,例如:
\DeclareMathSizes{6}{6}{5}{5}
% 整数 pt 优先,例如:
\DeclareMathSizes{\@xiipt}{\@xiipt}{8}{6} % 而不是 \DeclareMathSizes{\@xiipt}{\@xiipt}{8.4}{6}
% 大字号时,已经是几何 1.2 倍增长,则直接挑选已有字号,例如:
\DeclareMathSizes{\@xxpt}{\@xxpt}{\@xivpt}{\@xiipt}
\DeclareMathSizes{23.89}{23.89}{19.907}{16.59} 另 1, \def\defaultscriptratio{.7}
\def\defaultscriptscriptratio{.55}
...
\DeclareMathSizes{9}{9}{7}{5.5}
\DeclareMathSizes{\@xpt}{\@xpt}{7}{5.5}
... 另 2, 总结:设定 |
移除
zihao=false
后(右),\Large
和\LARGE
中的「A」明显变大,与其他字母不能很好地匹配:The text was updated successfully, but these errors were encountered: