未找到 Archivo(字体)?TeX Live 2019

未找到 Archivo(字体)?TeX Live 2019

我使用 Debian Buster 的 TeX Live 2019。我安装了texlive-fonts-recommendedtexlive-fonts-extra,并更新了字体缓存。我想使用档案馆如果我尝试

\documentclass[11pt,a4paper,oneside]{article}

\usepackage[utf8]{inputenc}

\usepackage{Archivo}
\usepackage[T1]{fontenc}

\begin{document}
Hello
\end{document}

我使用 pdflatex 得到:

! LaTeX Error: File `Archivo.sty' not found.

我该如何实现它?最好使用我已经安装的 TeX?我可以从字体目录中下载 zip 文件,然后以某种方式将其安装在我的用户目录中吗?


以下是我手动安装的进展情况

$ kpsewhich --var-value=TEXMFLOCAL
/usr/local/share/texmf

$ cd /usr/local/share/texmf
$ mkdir fonts
$ mkdir tex
$ sudo unzip ~/Downloads/archivo.zip -d .
Archive:  ~/Downloads/archivo.zip
   creating: ./archivo/
   creating: ./archivo/vf/
  inflating: ./archivo/vf/Archiv0-Bold-lf-t1.vf  
  inflating: ./archivo/vf/Archiv0-Bold-tlf-ly1.vf  
...
$ sudo mv archivo/latex tex/
$ sudo mv archivo/* fonts/
$ sudo mktexlsr
mktexlsr: Updating /usr/local/share/texmf/ls-R... 
mktexlsr: Updating /var/lib/texmf/ls-R-TEXLIVEDIST... 
mktexlsr: Updating /var/lib/texmf/ls-R-TEXMFMAIN... 
mktexlsr: Updating /var/lib/texmf/ls-R... 
mktexlsr: Done.
$ sudo fc-cache
$ sudo updmap-sys --enable Map=archivo.map
updmap will read the following updmap.cfg files (in precedence order):
  /etc/texmf/web2c/updmap.cfg
  /usr/share/texmf/web2c/updmap.cfg
  /usr/share/texlive/texmf-dist/web2c/updmap.cfg
updmap may write changes to the following updmap.cfg file:
  /etc/texmf/web2c/updmap.cfg
dvips output dir: "/var/lib/texmf/fonts/map/dvips/updmap"
pdftex output dir: "/var/lib/texmf/fonts/map/pdftex/updmap"
dvipdfmx output dir: "/var/lib/texmf/fonts/map/dvipdfmx/updmap"
updmap [ERROR]: The following map file(s) couldn't be found:
updmap [ERROR]:     Archivo.map (in /etc/texmf/web2c/updmap.cfg)
updmap [ERROR]:     archivo.map (in /etc/texmf/web2c/updmap.cfg)
updmap [ERROR]: Did you run mktexlsr?

    You can disable non-existent map entries using the option
      --syncwithtrees.

$ sudo mktexlsr
mktexlsr: Updating /usr/local/share/texmf/ls-R... 
mktexlsr: Updating /var/lib/texmf/ls-R-TEXLIVEDIST... 
mktexlsr: Updating /var/lib/texmf/ls-R-TEXMFMAIN... 
mktexlsr: Updating /var/lib/texmf/ls-R... 
mktexlsr: Done.
$ sudo updmap-sys --enable Map=archivo.map
updmap will read the following updmap.cfg files (in precedence order):
  /etc/texmf/web2c/updmap.cfg
  /usr/share/texmf/web2c/updmap.cfg
  /usr/share/texlive/texmf-dist/web2c/updmap.cfg
updmap may write changes to the following updmap.cfg file:
  /etc/texmf/web2c/updmap.cfg
/etc/texmf/web2c/updmap.cfg unchanged.  Map files not recreated.
updmap: Updating ls-R files.

但仍然无法渲染乳胶:

This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2019/dev/Debian) (preloaded format=pdflatex 2019.8.9)  26 MAY 2021 19:55
entering extended mode
 restricted \write18 enabled.
 %&-line parsing enabled.
**test.tex
(./test.tex
LaTeX2e <2018-12-01>
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2018/09/03 v1.4i Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size11.clo
File: size11.clo 2018/09/03 v1.4i Standard LaTeX file (size option)
)
\c@part=\count80
\c@section=\count81
\c@subsection=\count82
\c@subsubsection=\count83
\c@paragraph=\count84
\c@subparagraph=\count85
\c@figure=\count86
\c@table=\count87
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty
Package: inputenc 2018/08/11 v1.3c Input encoding file
\inpenc@prehook=\toks14
\inpenc@posthook=\toks15
)
(/usr/local/share/texmf/tex/latex/Archivo.sty
Package: Archivo 2020/12/30 (Carl-Clemens Ebinger autoinst) Style file for Arch
ivZero fonts.

(/usr/share/texlive/texmf-dist/tex/latex/xkeyval/xkeyval.sty
Package: xkeyval 2014/12/03 v2.7a package option processing (HA)

(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkvutils.tex
\XKV@toks=\toks16
\XKV@tempa@toks=\toks17

(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/keyval.tex))
\XKV@depth=\count88
File: xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)
))
(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2018/08/11 v2.0j Standard LaTeX package
)
(/usr/share/texlive/texmf-dist/tex/latex/base/textcomp.sty
Package: textcomp 2018/08/11 v2.0j Standard LaTeX package
Package textcomp Info: Sub-encoding information:
(textcomp)               5 = only ISO-Adobe without \textcurrency
(textcomp)               4 = 5 + \texteuro
(textcomp)               3 = 4 + \textohm
(textcomp)               2 = 3 + \textestimated + \textcurrency
(textcomp)               1 = TS1 - \textcircled - \t
(textcomp)               0 = TS1 (full)
(textcomp)             Font families with sub-encoding setting implement
(textcomp)             only a restricted character set as indicated.
(textcomp)             Family '?' is the default used for unknown fonts.
(textcomp)             See the documentation for details.
Package textcomp Info: Setting ? sub-encoding to TS1/1 on input line 79.

(/usr/share/texlive/texmf-dist/tex/latex/base/ts1enc.def
File: ts1enc.def 2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file
Now handling font encoding TS1 ...
... processing UTF-8 mapping file for font encoding TS1

(/usr/share/texlive/texmf-dist/tex/latex/base/ts1enc.dfu
File: ts1enc.dfu 2018/10/05 v1.2f UTF-8 support for inputenc
   defining Unicode char U+00A2 (decimal 162)
   defining Unicode char U+00A3 (decimal 163)
   defining Unicode char U+00A4 (decimal 164)
   defining Unicode char U+00A5 (
...
))
LaTeX Info: Redefining \oldstylenums on input line 334.
Package textcomp Info: Setting cmr sub-encoding to TS1/0 on input line 349.
Package textcomp Info: Setting cmss sub-encoding to TS1/0 on input line 350.
Package textcomp Info: Setting cmtt sub-encoding to TS1/0 on input line 351.
Package textcomp Info: Setting cmvtt sub-encoding to TS1/0 on input line 352.
Package textcomp Info: Setting cmbr sub-encoding to TS1/0 on input line 353.
...
)
(/usr/share/texlive/texmf-dist/tex/latex/base/ifthen.sty
Package: ifthen 2014/09/29 v1.1c Standard LaTeX ifthen package (DPC)
)
(/usr/share/texlive/texmf-dist/tex/latex/mweights/mweights.sty
Package: mweights 2017/03/30 (Bob Tennent) Support package for multiple-weight 
font packages. 
LaTeX Info: Redefining \bfseries on input line 22.
LaTeX Info: Redefining \mdseries on input line 30.
LaTeX Info: Redefining \rmfamily on input line 38.
LaTeX Info: Redefining \sffamily on input line 66.
LaTeX Info: Redefining \ttfamily on input line 94.
)
(/usr/share/texlive/texmf-dist/tex/latex/fontaxes/fontaxes.sty
Package: fontaxes 2014/03/23 v1.0d 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 \scshape on input line 37.
))
(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2018/08/11 v2.0j Standard LaTeX package

(/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.def
File: t1enc.def 2018/08/11 v2.0j Standard LaTeX file
LaTeX Font Info:    Redeclaring font encoding T1 on input line 48.
)) (./test.aux)
\openout1 = `test.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for TS1/cmr/m/n on input line 8.
LaTeX Font Info:    Try loading font information for TS1+cmr on input line 8.

(/usr/share/texlive/texmf-dist/tex/latex/base/ts1cmr.fd
File: ts1cmr.fd 2014/09/29 v2.5h Standard LaTeX font definitions
)
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Try loading font information for T1+ArchivZero-OsF on input
 line 8.

(/usr/local/share/texmf/tex/latex/T1ArchivZero-OsF.fd
File: T1ArchivZero-OsF.fd 2020/12/30 (autoinst) Font definitions for T1/ArchivZ
ero-OsF.
)
LaTeX Font Info:    Font shape `T1/ArchivZero-OsF/m/n' will be
(Font)              scaled to size 10.95pt on input line 8.
\c@mv@tabular=\count89
\c@mv@boldtabular=\count90
 [1

{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./test.aux) ) 
Here is how much of TeX's memory you used:
 1503 strings out of 494394
 21750 string characters out of 6172449
 68686 words of memory out of 5000000
 5224 multiletter control sequences out of 15000+600000
 6474 words of font info for 18 fonts, out of 8000000 for 9000
 81 hyphenation exceptions out of 8191
 27i,4n,33p,215b,113s stack positions out of 5000i,500n,10000p,200000b,80000s

!pdfTeX error: /usr/bin/pdflatex (file Archiv0-Regular-osf-t1--base): Font Arch
iv0-Regular-osf-t1--base at 657 not found
 ==> Fatal error occurred, no output PDF file produced!

怎么办...?

答案1

因此手动安装这里,以下是我的步骤:

$ kpsewhich --var-value=TEXMFLOCAL
/usr/local/share/texmf

$ cd /usr/local/share/texmf
$ sudo mkdir fonts
$ sudo mkdir tex
$ sudo unzip ~/Downloads/archivo.zip -d .
Archive:  ~/Downloads/archivo.zip
   creating: ./archivo/
   creating: ./archivo/vf/
  inflating: ./archivo/vf/Archiv0-Bold-lf-t1.vf  
  inflating: ./archivo/vf/Archiv0-Bold-tlf-ly1.vf  
...
$ sudo mv archivo/latex tex/
$ sudo mv archivo/* fonts/
$ sudo mktexlsr
mktexlsr: Updating /usr/local/share/texmf/ls-R... 
mktexlsr: Updating /var/lib/texmf/ls-R-TEXLIVEDIST... 
mktexlsr: Updating /var/lib/texmf/ls-R-TEXMFMAIN... 
mktexlsr: Updating /var/lib/texmf/ls-R... 
mktexlsr: Done.
$ sudo fc-cache
$ sudo updmap-sys --enable Map=ArchivZero.map
...
$ sudo mktexlsr
...

当您在中输入错误的名称时Map=,最终会在中得到错误的内容/etc/texmf/web2c/updmap.cfg,因此您必须编辑该文件并删除无效的地图名称。

相关内容