我在使用以下最小代码时遇到了一些问题:
\documentclass{article}
\usepackage{adjustbox}
\begin{document}
hello world
\end{document}
我尝试通过命令提示符使用 pdflatex 和 xelatex(不是同时进行)进行编译。但它一直尝试安装ltxmisc
(并失败),即使我已经安装了它。这是一个错误吗?
我在 Windows 10,64 位,MikTeX 上。
日志:
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (MiKTeX 2.9.6670 64-bit)
entering extended mode
(document.tex
LaTeX2e <2018-04-01> patch level 3
Babel <3.18> and hyphenation patterns for 75 language(s) loaded.
("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex\latex\base\size10.clo"))
("C:\Program Files\MiKTeX 2.9\tex\latex\adjustbox\adjustbox.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\xkeyval\xkeyval.sty"
("C:\Program Files\MiKTeX 2.9\tex\generic\xkeyval\xkeyval.tex"
("C:\Program Files\MiKTeX 2.9\tex\generic\xkeyval\xkvutils.tex"
("C:\Program Files\MiKTeX 2.9\tex\generic\xkeyval\keyval.tex"))))
("C:\Program Files\MiKTeX 2.9\tex\latex\adjustbox\adjcalc.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\adjustbox\trimclip.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphics.sty"
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\trig.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics-cfg\graphics.cfg")
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics-def\pdftex.def")))
("C:\Program Files\MiKTeX 2.9\tex\latex\collectbox\collectbox.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\adjustbox\tc-pdftex.def"))
("C:\Program Files\MiKTeX 2.9\tex\latex\ifoddpage\ifoddpage.sty")
======================================================================
starting package maintenance...
installation directory: "C:\Program Files\MiKTeX 2.9"
package repository: ftp://mirror.ox.ac.uk/sites/ctan.org/systems/win32/miktex/tm/packages/
visiting repository ftp://mirror.ox.ac.uk/sites/ctan.org/systems/win32/miktex/tm/packages/...
repository type: remote package repository
loading lightweight database...
downloading ftp://mirror.ox.ac.uk/sites/ctan.org/systems/win32/miktex/tm/packages/miktex-zzdb1-2.9.tar.lzma...
177070 bytes, 153.30 KB/Sec
lightweight database digest: 4c0605cf53b263d2fd3caf876df2daec
going to download 23515 bytes
going to install 18 file(s) (1 package(s))
downloading ftp://mirror.ox.ac.uk/sites/ctan.org/systems/win32/miktex/tm/packages/ltxmisc.tar.lzma...
23515 bytes, 168.85 KB/Sec
extracting files from ltxmisc.tar.lzma...
Unfortunately, the package ltxmisc could not be installed.Please check the log file:
C:/Users/user/AppData/Local/MiKTeX/2.9/miktex/log/pdflatex.log
======================================================================
)
No file document.aux.
("C:\Program Files\MiKTeX 2.9\tex\context\base\supp-pdf.mkii"
[Loading MPS to PDF converter (version 2006.09.02).]
) ("C:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\epstopdf-base.sty"
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\infwarerr.sty")
("C:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\grfext.sty"
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\kvdefinekeys.sty"
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ltxcmds.sty")))
("C:\Program Files\MiKTeX 2.9\tex\latex\oberdiek\kvoptions.sty"
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\kvsetkeys.sty"
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\etexcmds.sty"
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ifluatex.sty"))))
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\pdftexcmds.sty"
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ifpdf.sty"))) [1{C:/Users/us
er/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map}] (document.aux) )<C:/Prog
ram Files/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on document.pdf (1 page, 11892 bytes).
Transcript written on document.log.
ltxmisc
已经安装的证明: