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

查看:26
本文介绍了未找到与 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 .
otebook.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.
<*> .
otebook
              .tex -quiet
? 
! Emergency stop.
<*> .
otebook
              .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) at 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
sudo tlmgr install collection-fontsrecommended

此外,使用将笔记本导出为"将文档呈现为 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天全站免登陆