安装 mtpro2lite

安装 mtpro2lite

尝试使用此链接中给出的步骤安装 mtpro2lite 字体:https://github.com/jamespfennell/mathtime-installer/

但我收到以下错误。请帮忙。

https://github.com/jamespfennell/mathtime-installer/

Wednesday 26 May 2021 06:55:19 AM IST
TeX information:
TeX 3.14159265 (TeX Live 2019/Debian)
kpathsea version 6.3.1
Copyright 2019 D.E. Knuth.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the TeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the TeX source.
Primary author of TeX: D.E. Knuth.
updmap.cfg is at /etc/texmf/web2c/updmap.cfg
The texmf directory for fonts is /usr/local/share/texmf
confirm_input(): Checking mtp2lite.zip.
File exists and is a zip file.
require_comment(): testing to see if unzip is installed
Output of command -v: /usr/bin/unzip
Command found
Temporary directory at ./mtpro2-texlive_tmpdir_GCUhXVQf.
Running command `unzip mtp2lite.zip -d ./mtpro2-texlive_tmpdir_GCUhXVQf`.
------------------------[ OUTPUT OF: unzip ]---------------------------------------------
Archive:  mtp2lite.zip
   creating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/EULA-MTPro2Lite.txt  
   creating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/templates/
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/templates/LaTeX Article MTPro2.tex  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/templates/LaTeX Article MTPro2Lite.tex  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/templates/MTPro2 LaTeX test.tex  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/templates/Plain MTPro2.tex  
   creating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/
   creating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/doc/
   creating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/doc/fonts/
   creating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/doc/fonts/mtpro2/
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/doc/fonts/mtpro2/EULA-MTPro2.txt  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/doc/fonts/mtpro2/EULA-MTPro2Lite.txt  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/doc/fonts/mtpro2/guide2.pdf  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/doc/fonts/mtpro2/mtpro2.pdf  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/doc/fonts/mtpro2/testMTP2LaTeX.pdf  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/doc/fonts/mtpro2/testMTP2LaTeX.tex  
   creating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/dvips/
   creating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/dvips/mtpro2/
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/dvips/mtpro2/mtpro2.map  
   creating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/
   creating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/map/
   creating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/map/dvips/
   creating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/map/dvips/mtpro2/
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/map/dvips/mtpro2/mtpro2.map  
   creating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/tfm/
   creating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/tfm/pctex/
   creating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/tfm/pctex/mtpro2/
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/tfm/pctex/mtpro2/mt2exa.tfm  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/tfm/pctex/mtpro2/mt2exe.tfm  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/tfm/pctex/mtpro2/mt2exf.tfm  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/tfm/pctex/mtpro2/mt2exg.tfm  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/tfm/pctex/mtpro2/mt2mbf.tfm  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/tfm/pctex/mtpro2/mt2mbs.tfm  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/tfm/pctex/mtpro2/mt2mbt.tfm  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/tfm/pctex/mtpro2/mt2mif.tfm  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/tfm/pctex/mtpro2/mt2mis.tfm  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/tfm/pctex/mtpro2/mt2mit.tfm  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/tfm/pctex/mtpro2/mt2syf.tfm  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/tfm/pctex/mtpro2/mt2sys.tfm  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/tfm/pctex/mtpro2/mt2syt.tfm  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/tfm/pctex/mtpro2/mt2xl.tfm  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/tfm/pctex/mtpro2/mt2xxxl.tfm  
   creating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/
   creating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/pctex/
   creating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/pctex/mtpro2/
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/pctex/mtpro2/mt2exa.pfb  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/pctex/mtpro2/mt2exa.pfm  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/pctex/mtpro2/mt2exe.pfb  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/pctex/mtpro2/mt2exe.pfm  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/pctex/mtpro2/mt2exf.pfb  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/pctex/mtpro2/mt2exf.pfm  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/pctex/mtpro2/mt2exg.pfb  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/pctex/mtpro2/mt2exg.pfm  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/pctex/mtpro2/mt2mbf.pfb  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/pctex/mtpro2/mt2mbf.pfm  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/pctex/mtpro2/mt2mbs.pfb  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/pctex/mtpro2/mt2mbs.pfm  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/pctex/mtpro2/mt2mbt.pfb  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/pctex/mtpro2/mt2mbt.pfm  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/pctex/mtpro2/mt2mif.pfb  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/pctex/mtpro2/mt2mif.pfm  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/pctex/mtpro2/mt2mis.pfb  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/pctex/mtpro2/mt2mis.pfm  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/pctex/mtpro2/mt2mit.pfb  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/pctex/mtpro2/mt2mit.pfm  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/pctex/mtpro2/mt2syf.pfb  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/pctex/mtpro2/mt2syf.pfm  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/pctex/mtpro2/mt2sys.pfb  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/pctex/mtpro2/mt2sys.pfm  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/pctex/mtpro2/mt2syt.pfb  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/pctex/mtpro2/mt2syt.pfm  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/pctex/mtpro2/mt2xl.pfb  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/pctex/mtpro2/mt2xl.pfm  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/pctex/mtpro2/mt2xxxl.pfb  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/fonts/type1/pctex/mtpro2/mt2xxxl.pfm  
   creating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/source/
   creating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/source/latex/
   creating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/source/latex/mtpro2/
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/source/latex/mtpro2/mtpro2.dtx  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/source/latex/mtpro2/mtpro2.ins  
   creating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/tex/
   creating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/tex/latex/
   creating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/tex/latex/mtpro2/
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/tex/latex/mtpro2/mtpro2.sty  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/tex/latex/mtpro2/omslbm.fd  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/tex/latex/mtpro2/umt2bb.fd  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/tex/latex/mtpro2/umt2hrb.fd  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/tex/latex/mtpro2/umt2mf.fd  
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/tex/latex/mtpro2/umt2ms.fd  
   creating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/tex/plain/
   creating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/tex/plain/mtpro2/
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/tex/plain/mtpro2/mtp2.tex  
   creating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/tpm/
   creating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/tpm/package/
  inflating: ./mtpro2-texlive_tmpdir_GCUhXVQf/mtp2lite/texmf/tpm/package/mtp2lite.tpm  
-----------------------------------------------------------------------------------------
Removing previous MTPro2 files, as a precaution.
Removing MTPro2 files from /usr/local/share/texmf.
Coping all files in ./mtpro2-texlive_tmpdir_GCUhXVQf/texmf/ to /usr/local/share/texmf/.
Removing the temporary directory.
Updating TeX Live
------------------------[ OUTPUT OF: texhash ]---------------------------------------------
texhash: Updating /usr/local/share/texmf/ls-R... 
texhash: Updating /var/lib/texmf/ls-R-TEXLIVEDIST... 
texhash: Updating /var/lib/texmf/ls-R-TEXMFMAIN... 
texhash: Updating /var/lib/texmf/ls-R... 
texhash: Done.
------------------------[ OUTPUT OF: updmap-sys --disable mt-belleek.map --nomkmap ]-------
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
updmap [WARNING]: map file not present, nothing to disable: mt-belleek.map
/etc/texmf/web2c/updmap.cfg unchanged.  Map files not recreated.
updmap: Updating ls-R files.
------------------------[ OUTPUT OF: updmap-sys --disable mt-belleek.map --nomkmap ]-------
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.
------------------------[ OUTPUT OF: updmap-sys --disable mt-yy.map --nomkmap ]------------
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
updmap [WARNING]: map file not present, nothing to disable: mt-yy.map
/etc/texmf/web2c/updmap.cfg unchanged.  Map files not recreated.
updmap: Updating ls-R files.
------------------------[ OUTPUT OF: updmap-sys --disable mt-plus.map --nomkmap ]----------
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
updmap [WARNING]: map file not present, nothing to disable: mt-plus.map
/etc/texmf/web2c/updmap.cfg unchanged.  Map files not recreated.
updmap: Updating ls-R files.
------------------------[ OUTPUT OF: updmap-sys --enable Map mtpro2.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.
-------------------------------------------------------------------------------------------
Map mtpro2 present in updcfg file.
------------------------[ OUTPUT OF: updmap-sys ]------------------------------------------
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]:     mtpro2.map (in /etc/texmf/web2c/updmap.cfg)
updmap [ERROR]: Did you run mktexlsr?

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

-------------------------------------------------------------------------------------------
Installed.
Temporary file at ./mtpro2-texlive_tmptex_JQHaGFU4.tex.
Running pdflatex on the following code in ./mtpro2-texlive_tmptex_JQHaGFU4.tex:
        \documentclass[11pt,oneside,a4paper]{article}
        \usepackage[varg]{txfonts}
        \usepackage[lite,subscriptcorrection,slantedGreek,nofontinfo]{mtpro2}
        \selectfont
        \begin{document}
        \section{New LaTeX document}
        Your new LaTeX document is ready to edit.
        $$x=\frac{-b \pm \sqrt{b^2-4ac}}{2a}$$
        \end{document}
./mtpro2-texlive_tmptex_JQHaGFU4.tex:4: Emergency stop. ./mtpro2-texlive_tmptex_JQHaGFU4.tex:4: ==> Fatal error occurred, no output PD
Error in compilation; outputting now
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded format=pdflatex)
 \write18 enabled.
entering extended mode
(./mtpro2-texlive_tmptex_JQHaGFU4.tex
LaTeX2e <2020-02-02> patch level 2
L3 programming layer <2020-02-14>
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size11.clo))
(/usr/share/texlive/texmf-dist/tex/latex/txfonts/txfonts.sty)

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

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
./mtpro2-texlive_tmptex_JQHaGFU4.tex:4: Emergency stop.
<read *> 
         
l.4         \selectfont
                 ^^M
./mtpro2-texlive_tmptex_JQHaGFU4.tex:4:  ==> Fatal error occurred, no output PD
F file produced!
Transcript written on mtpro2-texlive_tmptex_JQHaGFU4.log.

答案1

您有一个 zip 文件。将其解压到某处(tex 系统之外)。它包含一个 texmf 文件夹:

在此处输入图片描述

注意这个 texmf 的路径。它应该是这样的/usr/whatever/something/mtp2lite/texmf/

然后在终端中运行

 tlmgr conf auxtrees add /usr/whatever/something/mtp2lite/texmf

用 texmf 的真实路径替换该路径。

然后使用以下方法检查是否找到样式

 kpsewhich mtpro2.sty

如果成功运行

 updmap-sys --enable Map mtpro2.map

 

相关内容