找不到与tcolorbox.sty相关的LaTeX错误 [英] LaTeX error related to tcolorbox.sty not found

查看:461
本文介绍了找不到与tcolorbox.sty相关的LaTeX错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我尝试以PDF格式下载文件时,LaTeX都会出现问题. 当我尝试这样做时,它给了我以下错误:

I have a problem with LaTeX whenever I try to download the file in PDF. When I try to do that, it gives me the following error:

! LaTeX Error: File `tcolorbox.sty' not found.
Type X to quit or <RETURN> to proceed ,or enter new name.
(Default extension: sty)Enter file name:! Emergency stop.<read > \usepackage

我已经下载了 tcolorbox zip文件,并将目录拖到tex/latex树中,如README文件中所述,但这两个都不起作用.

I've already downloaded the tcolorbox zip file and dragged the directory into the tex/latex tree, as said in README file, but neither that worked.

最初,我曾经尝试从Jupiter Notebook下载pdf,但这也给了我一个错误:

Originally I used to try to download the pdf from Jupiter Notebook, but also that gave me an error:

nbconvert failed: PDF creating failed, captured latex output:
Failed to run "xelatex .\notebook.tex -quiet" command:
This is XeTeX, Version 3.14159265-2.6-0.999991 (TeX Live 2019/W32TeX) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
! Undefined control sequence.
<*> .\notebook
              .tex -quiet
? 
! Emergency stop.
<*> .\notebook
              .tex -quiet
No pages of output.
Transcript written on ?.

有什么建议吗?

推荐答案

使用LaTex的程序包管理器tlmgr安装tcolorbox之后,对于其他依赖项,我也遇到了类似的错误.下面的解决方案通过终端在Ubuntu 18.04(64位)上为我工作:

After installing tcolorbox using LaTex's package manager tlmgr, I was getting similar errors for other dependencies. The solution below worked for me on Ubuntu 18.04 (64 bit) via the terminal:

tlmgr update --all --self
tlmgr install tcolorbox
tlmgr install pgf
tlmgr install xcolor
tlmgr install environ
tlmgr install trimspaces
tlmgr install mathpazo
tlmgr install parskip
tlmgr install adjustbox
tlmgr install collectbox
tlmgr install eurosym
tlmgr install ecs
tlmgr install ucs
tlmgr install enumitem
tlmgr install ulem
tlmgr install mathrsfs
tlmgr install jknapltx rsfs

此外,使用将笔记本导出为"选项将文档呈现为PDF不适用于我.我是在命令行上完成的:jupyter nbconvert --to pdf my_document.ipynb.如果没有的话,您可能需要安装 nbconvert .

Also, rendering the document to PDF using the "export notebook as" option didn't work for me. I did it at the command line: jupyter nbconvert --to pdf my_document.ipynb. You may need to install nbconvert if you don't have it.

如果缺少其他依赖项,请在缺少依赖项的情况下继续运行tlmgr install,直到它起作用为止.我还没有弄清楚那些依赖项属于哪个程序包,因此我对此肮脏的修复程序表示歉意.

If missing other dependencies, keep running tlmgr install with the missing dependencies until it works. I haven't figured out yet to which packages those dependencies belong, so my apologies for the dirty fix.

这篇关于找不到与tcolorbox.sty相关的LaTeX错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆