![字体大小](https://linux22.com/image/271186/%E5%AD%97%E4%BD%93%E5%A4%A7%E5%B0%8F.png)
我必须重写此处的文本,但找不到相同“大小”的字体。我这样做:
\fontsize{10.4pt}{16pt}\selectfont
它接近结果,但仍然不一样。我无法更改字体,但它会发出警告(请参阅下面的评论)。
这是我的序言:
\documentclass[a4paper, 10pt]{article}
\usepackage{czech,amsmath,amsthm,amsfonts,multicol}
\pagestyle{empty}
\topmargin0pt \headheight0pt \headsep0pt
\oddsidemargin0pt \evensidemargin0pt
\setlength{\textwidth}{\paperwidth}
\addtolength{\textwidth}{-2in}
\setlength{\textheight}{\paperheight}
\addtolength{\textheight}{-2in}
如何才能改变呢?
答案1
请始终发布完整的文档,而不仅仅是片段。下面显示了如何重新定义字体声明以允许指定任意大小的字体。
日志\showoutput
跟踪确认
....\IL2/cmr/m/n/10.4 h
....\IL2/cmr/m/n/10.4 e
....\IL2/cmr/m/n/10.4 l
....\IL2/cmr/m/n/10.4 l
....\IL2/cmr/m/n/10.4 o
因此hello
在10.4中该字体的字体大小。
注意我改变了调用,czech
因为 TexLive 2013 babel 在你的序言中产生了一个错误
! Package babel Error: You have used an old interface to call babel
(babel) You may expect compatibility problems wit other packages
.
测试文档:
\documentclass[a4paper, 10pt]{article}
\usepackage{amsmath,amsthm,amsfonts,multicol}
\usepackage[czech]{babel}
\pagestyle{empty}
\topmargin0pt \headheight0pt \headsep0pt
\oddsidemargin0pt \evensidemargin0pt
\setlength{\textwidth}{\paperwidth}
\addtolength{\textwidth}{-2in}
\setlength{\textheight}{\paperheight}
\addtolength{\textheight}{-2in}
\input{il2enc.def}
\DeclareFontFamily{IL2}{cmr}{\hyphenchar\font45 }
\DeclareFontShape{IL2}{cmr}{m}{n}
{<-5> csr5
<6-7> csr6
<7-8> csr8
<8-9> csr9
<9-12> csr10
<12-17> csr12
<17-> csr17
}{}
\begin{document}
\fontencoding{IL2}\fontsize{10.4pt}{16pt}\selectfont\showoutput
hello
\end{document}