我使用抽认卡程序 Anki,它允许用 LaTeX 编写数学方程式。
我遇到了'libertineMono-type1.sty'
无法找到文件的错误。为了便于理解,我尝试渲染的方程式是$y=x$
以下是更多详细信息。
tmp.log
显示错误消息的文件内容如下:
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 20.7) (preloaded format=latex 2020.8.24) 24 AUG 2020 10:59
entering extended mode
**./tmp.tex
(tmp.tex
LaTeX2e <2020-02-02> patch level 5
L3 programming layer <2020-08-07>
("C:\Program Files\MiKTeX\tex/latex/base\article.cls"
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
("C:\Program Files\MiKTeX\tex/latex/base\size12.clo"
File: size12.clo 2019/12/20 v1.4l Standard LaTeX file (size option)
)
\c@part=\count168
\c@section=\count169
\c@subsection=\count170
\c@subsubsection=\count171
\c@paragraph=\count172
\c@subparagraph=\count173
\c@figure=\count174
\c@table=\count175
\abovecaptionskip=\skip47
\belowcaptionskip=\skip48
\bibindent=\dimen134
)
("C:\Program Files\MiKTeX\tex/latex/base\fontenc.sty"
Package: fontenc 2020/02/11 v2.0o Standard LaTeX package
)
("C:\Program Files\MiKTeX\tex/latex/base\inputenc.sty"
Package: inputenc 2018/08/11 v1.3c Input encoding file
\inpenc@prehook=\toks15
\inpenc@posthook=\toks16
("C:\Program Files\MiKTeX\tex/latex/ucs\utf8x.def"
File: utf8x.def 2004/10/17 UCS: Input encoding UTF-8
))
("C:\Program Files\MiKTeX\tex/latex/ucs\ucs.sty"
Package: ucs 2013/05/11 v2.2 UCS: Unicode input support
("C:\Program Files\MiKTeX\tex/latex/ucs\uni-global.def"
File: uni-global.def 2013/05/13 UCS: Unicode global data
)
\uc@secondtry=\count176
\uc@combtoks=\toks17
\uc@combtoksb=\toks18
\uc@temptokena=\toks19
)
("C:\Program Files\MiKTeX\tex/latex/libertine-type1\libertine-type1.sty"
Package: libertine-type1 2012/10/27 (autoinst) Style file for LinuxLibertineO.
("C:\Program Files\MiKTeX\tex/latex/base\textcomp.sty"
Package: textcomp 2020/02/02 v2.0n Standard LaTeX package
)
("C:\Program Files\MiKTeX\tex/latex/fontaxes\fontaxes.sty"
Package: fontaxes 2020/07/21 v1.0e Font selection axes
LaTeX Info: Redefining \upshape on input line 29.
LaTeX Info: Redefining \itshape on input line 31.
LaTeX Info: Redefining \slshape on input line 33.
LaTeX Info: Redefining \swshape on input line 35.
LaTeX Info: Redefining \scshape on input line 37.
LaTeX Info: Redefining \sscshape on input line 39.
LaTeX Info: Redefining \ulcshape on input line 41.
LaTeX Info: Redefining \textsw on input line 47.
LaTeX Info: Redefining \textssc on input line 48.
LaTeX Info: Redefining \textulc on input line 49.
)
("C:\Program Files\MiKTeX\tex/latex/xkeyval\xkeyval.sty"
Package: xkeyval 2014/12/03 v2.7a package option processing (HA)
("C:\Program Files\MiKTeX\tex/generic/xkeyval\xkeyval.tex"
("C:\Program Files\MiKTeX\tex/generic/xkeyval\xkvutils.tex"
\XKV@toks=\toks20
\XKV@tempa@toks=\toks21
("C:\Program Files\MiKTeX\tex/generic/xkeyval\keyval.tex"))
\XKV@depth=\count177
File: xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)
)))
("C:\Program Files\MiKTeX\tex/latex/biolinium-type1\biolinum-type1.sty"
Package: biolinum-type1 2012/10/30 (autoinst) Style file for LinuxBiolinumO.
LaTeX Info: Redefining \textsu on input line 17.
)
! LaTeX Error: File `libertineMono-type1.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
Enter file name:
! Emergency stop.
<read *>
l.1 ...usepackage{libertineMono-type1} \usepackage
[libertine]{newtxmath} \re...
*** (cannot \read from terminal in nonstop modes)
Here is how much of TeX's memory you used:
1105 strings out of 481175
17175 string characters out of 2914384
258573 words of memory out of 3000000
16757 multiletter control sequences out of 15000+200000
536150 words of font info for 31 fonts, out of 3000000 for 9000
1141 hyphenation exceptions out of 8191
30i,0n,35p,882b,38s stack positions out of 5000i,500n,10000p,200000b,50000s
No pages of output.
检查 Anki 的 TeX 输出,它显示:
\documentclass[12pt]{article}
\special{papersize=3in,5in}
\usepackage[T1]{fontenc}
\usepackage[utf8x]{inputenc}
\usepackage{libertine-type1}
\usepackage{biolinum-type1}
\usepackage{libertineMono-type1}
\usepackage[libertine]{newtxmath}
\renewcommand{\familydefault}{\sfdefault}
\usepackage{amssymb,amsmath, amsfonts} \usepackage{booktabs} \usepackage{color} \usepackage{multirow} \usepackage{rotating} \usepackage{graphicx} \usepackage{wasysym}
\pagestyle{empty}
\setlength{\parindent}{0in} \newcommand{\noun}[1]{\textsc{#1}} \definecolor{blue}{RGB}{0,130,255} \begin{document}
$y=x$
\end{document}
控制台输出内容如下
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 20.7)
entering extended mode
(C:/Users/parag/AppData/Local/Temp/anki_temp/tmp.tex
LaTeX2e <2020-02-02> patch level 5
L3 programming layer <2020-08-07>
("C:\Program Files\MiKTeX\tex/latex/base\article.cls"
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
("C:\Program Files\MiKTeX\tex/latex/base\size12.clo"))
("C:\Program Files\MiKTeX\tex/latex/base\fontenc.sty")
("C:\Program Files\MiKTeX\tex/latex/base\inputenc.sty"
("C:\Program Files\MiKTeX\tex/latex/ucs\utf8x.def"))
("C:\Program Files\MiKTeX\tex/latex/ucs\ucs.sty"
("C:\Program Files\MiKTeX\tex/latex/ucs\uni-global.def"))
("C:\Program Files\MiKTeX\tex/latex/libertine-type1\libertine-type1.sty"
("C:\Program Files\MiKTeX\tex/latex/base\textcomp.sty")
("C:\Program Files\MiKTeX\tex/latex/fontaxes\fontaxes.sty")
("C:\Program Files\MiKTeX\tex/latex/xkeyval\xkeyval.sty"
("C:\Program Files\MiKTeX\tex/generic/xkeyval\xkeyval.tex"
("C:\Program Files\MiKTeX\tex/generic/xkeyval\xkvutils.tex"
("C:\Program Files\MiKTeX\tex/generic/xkeyval\keyval.tex")))))
("C:\Program Files\MiKTeX\tex/latex/biolinium-type1\biolinum-type1.sty")
! LaTeX Error: File `libertineMono-type1.sty' not found.
我在 MiKTeX 中还安装了 libertine、libertinegc、libertinus、libertinus-fonts、libertinus-otf、libertinus-type1 和 libertinust1math,这是我拥有的唯一与 libertine 字体系列相关的字体包。我还使用本地树手动安装了 libertine-type1 和 biolinium-type1 texmf
。
我真的找不到 libertineMono-type1 字体,所以我不知道该怎么办。任何帮助都很好!
答案1
您可以\usepackage[type1]{libertine}
加载 Libertine、Biolinum 和 Libertine Mono 的 Type 1 版本。
否则,加载。此文件是CTAN 上包\usepackage[type1]{libertineRoman, biolinum, libertineMono}
的一部分。libertine
您可以消除在 LuaLaTeX 或 XeLaTeX 上[type1]
加载fontspec
字体的选项和 OpenType 版本。
该文件libertinusMono-type1.sty
已添加到libertine
包中早在 2013 年,并且似乎从那时起就被删除了,而任何变更日志中都没有记录这一变化。