我正在使用 ACM 模板這裡。我用sample-sigconf.tex
。當我打開它並嘗試編譯它時,Tex Studio 會報告以下錯誤:
Process started: pdflatex.exe -synctex=1 -interaction=nonstopmode "sample-sigconf".tex
Unfortunately, the package acmart could not be installed.Please check the log file: C:/Users/username/AppData/Local/MiKTeX/2.9/miktex/log/pdflatex.log
Process exited with error(s)
每次我嘗試編譯時,都會彈出一個標題為 的窗口Package Installation
,顯示acmart
缺少以及是否要安裝它。我總是選擇,yes
但它總是cannot install
像上面那樣報告。
我的安裝有問題嗎?
資訊log
如下:
2017-07-10 17:36:21,388+0800 INFO pdflatex - installing package acmart triggered by tex\latex\acmart\acmart.cls
2017-07-10 17:36:23,589+0800 INFO pdflatex - mpm: starting package maintenance...
2017-07-10 17:36:23,589+0800 INFO pdflatex - mpm: installation directory: "C:\Users\fengchao.pfc\AppData\Local\Programs\MiKTeX 2.9"
2017-07-10 17:36:23,589+0800 INFO pdflatex - mpm: package repository: http://ftp.yzu.edu.tw/CTAN/systems/win32/miktex/tm/packages/
2017-07-10 17:36:23,590+0800 INFO pdflatex - mpm: visiting repository http://ftp.yzu.edu.tw/CTAN/systems/win32/miktex/tm/packages/...
2017-07-10 17:36:23,590+0800 INFO pdflatex - mpm: repository type: remote package repository
2017-07-10 17:36:23,590+0800 INFO pdflatex - mpm: loading lightweight database...
2017-07-10 17:36:23,592+0800 INFO pdflatex - mpm: downloading http://ftp.yzu.edu.tw/CTAN/systems/win32/miktex/tm/packages/miktex-zzdb1-2.9.tar.lzma...
2017-07-10 17:36:45,698+0800 FATAL pdflatex - Couldn't connect to server
這不是整個log
文件。我只是認為這些是相關的訊息。
答案1
我只是覺得很簡單。當我下載 ACM 範本時,有一個名為acmart.ins
.只需cd
進入該目錄並打開命令列並運行:
tex acmart.ins
然後就acmart.cls
被創建了。之後,可能還有其他軟體包等待安裝。只需嘗試編譯該.tex
文件並按照彈出訊息中的說明進行操作即可。