我设法设置了精确的字体大小memoir
我设法根据以下情况这个答案,normalsize
例如14bp
。
应用tempora
包后我必须重置ttdefault
,例如通过计算机现代打字机。
结果ttdefault
失去了14bp
并且 变成了13,77bp
。
我该如何询问14bp
回来?
梅威瑟:main.tex
\providecommand*{\anyptfilebase}{bpfont} %set new fonts
\providecommand*{\anyptsize}{14} %switch on bpfont14.clo - the copy of mem14.clo
\documentclass[extrafontsizes,a4paper,*pt,oneside,openany]{memoir}
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english, russian]{babel}[2014/03/24]% Языки: русский, английский
\usepackage{tempora} %TemporaLGCUni of Times type
%\renewcommand{\ttdefault}{cmtt}
\renewcommand{\ttdefault}{lcmtt} %bigger
\begin{document}
{\fontsize{14bp}{18bp}\selectfont ха-хаха Book\_name\_ch\_AuthorsSurnames}
{\normalsize\selectfont ха-хаха Book\_name\_ch\_AuthorsSurnames}
{\itshape \verb|ха-хаха Book_name_ch_AuthorsSurnames|}.
{\normalsize\selectfont \verb|ха-хаха Book_name_ch_AuthorsSurnames|}
{\fontsize{14bp}{18bp}\selectfont\texttt{ха-хаха Book\_name\_ch\_AuthorsSurnames}}
{\texttt{\fontsize{14bp}{18bp}\selectfont ха-хаха Book\_name\_ch\_AuthorsSurnames}}
{\small{\texttt{ха-хаха Book\_name\_ch\_AuthorsSurnames}}}
\end{document}
MWE:bpfont14.clo
是mem14.clo
(关联) 中 4 行代码已替换(请将此文件放置在 文件夹中main.tex
):
\@setfontsize\normalsize{14bp}{18bp} % SET 14 Adobe pt and 1,5 Adobe intervals. One can wish to delete all other text for precise result.
\abovedisplayskip 14\p@ \@plus3\p@ \@minus8\p@
\abovedisplayshortskip \z@ \@plus3\p@
\belowdisplayshortskip 7\p@ \@plus3.5\p@ \@minus3\p@
PDF:
答案1
您实际上并没有使用lmodern
,因为它不支持西里尔文;您得到的是 中定义的字体,t2alcmtt.fd
这些字体仅在离散步骤中定义。实际上,您会收到有关
LaTeX Font Warning: Size substitutions with differences
(Font) up to 1.82pt have occurred.
因为这是字体定义:
\ProvidesFile{t2alcmtt.fd}
[2001/08/11 v1.0a Computer Modern Cyrillic font definitions]
\DeclareFontFamily{T2A}{lcmtt}{\hyphenchar\font\m@ne}
\DeclareFontShape{T2A}{lcmtt}{m}{n}{%
<13.82><16.59><19.907><23.89><28.66><34.4><41.28>%
laltt8%
}{}
\DeclareFontShape{T2A}{lcmtt}{m}{In}{%
<13.82><16.59><19.907><23.89><28.66><34.4><41.28>%
ilaltt8%
}{}
\DeclareFontShape{T2A}{lcmtt}{m}{it}{%
<13.82><16.59><19.907><23.89><28.66><34.4><41.28>%
lait1000%
}{}
\endinput
您必须重新定义字体系列。
\providecommand*{\anyptfilebase}{bpfont} %set new fonts
\providecommand*{\anyptsize}{14} %switch on bpfont14.clo - the copy of mem14.clo
\documentclass[extrafontsizes,a4paper,*pt,oneside,openany]{memoir}
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english, russian]{babel}[2014/03/24]% Языки: русский, английский
\usepackage{tempora} %TemporaLGCUni of Times type
\makeatletter
\providecommand{\EC@ttfamily}[5]{%
\DeclareFontShape{#1}{#2}{#3}{#4}{
<-8.5>#50800
<8.5-9.5>#50900
<9.5-10.5>#51000
<10.5-11.5>#51095
<11.5-13>#51200
<13-15.5>#51440
<15.5-18.5>#51728
<18.5-22>#52074
<22-27>#52488
<27-32>#52986
<32->#53583}{}}
\DeclareFontFamily{T2A}{cmtt}{\hyphenchar\font\m@ne}
\EC@ttfamily{T2A}{cmtt}{m}{n}{latt}
\EC@ttfamily{T2A}{cmtt}{m}{sl}{last}
\EC@ttfamily{T2A}{cmtt}{m}{it}{lait}
\EC@ttfamily{T2A}{cmtt}{m}{sc}{latc}
\DeclareFontShape{T2A}{cmtt}{bx}{n}%
{<->ssub*cmtt/m/n}{}
\DeclareFontShape{T2A}{cmtt}{bx}{it}%
{<->ssub*cmtt/m/it}{}
\makeatletter
\renewcommand{\ttdefault}{cmtt}
\begin{document}
\newcommand{\fn}{\expandafter\string\the\font}
{\fontsize{14bp}{18bp}\selectfont ха-хаха Book\_name\_ch\_AuthorsSurnames\fn}
{\normalsize\selectfont ха-хаха Book\_name\_ch\_AuthorsSurnames\fn}
{\fontsize{14bp}{18bp}\selectfont\texttt{ха-хаха Book\_name\_ch\_AuthorsSurnames\fn}}
{\texttt{\fontsize{14bp}{18bp}\selectfont ха-хаха Book\_name\_ch\_AuthorsSurnames\fn}}
{\small{\texttt{ха-хаха Book\_name\_ch\_AuthorsSurnames\fn}}}
14bp=\the\dimexpr14bp\relax
\end{document}
如果您计划使用cmtt
T1 编码的字体,也必须为它们添加类似的代码。