
Я использую программу 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.
Проверяя вывод TeX от Anki, мы видим:
\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.
У меня также установлены libertine, libertinegc, libertinus, libertinus-fonts, libertinus-otf, libertinus-type1 и libertinust1math в MiKTeX, которые являются единственными пакетами шрифтов, связанными с семейством шрифтов libertine. Я также вручную установил libertine-type1 и biolinium-type1 с локальным texmf
деревом.
Я нигде не могу найти шрифт libertineMono-type1, поэтому не знаю, что делать. Любая помощь была бы здоровой!
решение1
Вы можете \usepackage[type1]{libertine}
загрузить версии Libertine, Biolinum и Libertine Mono Типа 1.
В противном случае загрузите \usepackage[type1]{libertineRoman, biolinum, libertineMono}
. Этот файл является частью libertine
пакета на CTAN.
Вы можете исключить [type1]
возможность загрузки fontspec
версий шрифтов OpenType в LuaLaTeX или XeLaTeX.
Файл libertinusMono-type1.sty
был добавлен в libertine
пакетеще в 2013 году,и, по-видимому, в какой-то момент его удалили, хотя это изменение так и не было отмечено ни в одном журнале изменений.