首页 > 其他分享 >nbconvert failed: PDF creating failed, captured latex output:

nbconvert failed: PDF creating failed, captured latex output:

时间:2023-10-08 09:25:17浏览次数:42  
标签:latex creating tlmgr tex failed install texlive

 

 

 LaTex's package manager tlmgr

 tlmgr是TeX Live中包含的包和配置管理器的名称。它完全独立于操作系统可能提供的任何包管理器。您可以运行 tlmgr --help 查看命令

 

 

yum -y install texlive-xetex texlive-fonts-recommended texlive-plain-generic

 

nbconvert failed: PDF creating failed, captured latex output:
Failed to run "['xelatex', 'notebook.tex', '-quiet']" command:
This is XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013)
 restricted \write18 enabled.
entering extended mode
(./notebook.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, lo
aded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size11.clo))

! 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 *> 
         
l.4     \usepackage
                   {parskip} % Stop auto-indenting (to mimic markdown behavi...

No pages of output.
Transcript written on notebook.log.

 

 

解决方案:
1、如果文件路径有带中文,将中文去掉
2、找到安装路径下的pdf.py 文件打开
即…\site-packages\nbconvert\exporters\pdf.py

将’build_directory’: ‘.’ 改为 ‘build_directory’: ‘’,如下所示:

#writer = Instance("nbconvert.writers.FilesWriter", args=(), kw={'build_directory': '.'})
writer = Instance("nbconvert.writers.FilesWriter", args=(), kw={'build_directory': ''})

 

================================

# locate pdf.py | grep exporters | grep my
/home/software/anaconda3/envs/mydlenv/lib/python3.8/site-packages/nbconvert/exporters/pdf.py

# conda activate mydlenv
# conda list | grep nb
nbclassic                 0.5.1                    pypi_0    pypi
nbclient                  0.7.2                    pypi_0    pypi
nbconvert                 7.2.9                    pypi_0    pypi
nbformat                  5.7.3                    pypi_0    pypi

# conda activate  tf115
# conda list |grep nb

=====================================

nbconvert failed: PDF creating failed, captured latex output:
Failed to run "['xelatex', 'notebook.tex', '-quiet']" command:
This is XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013)
 restricted \write18 enabled.
entering extended mode
(./notebook.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, lo
aded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size11.clo))

! 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 *> 
         
l.4     \usepackage
                   {parskip} % Stop auto-indenting (to mimic markdown behavi...

No pages of output.
Transcript written on notebook.log.

=====================================

tlmgr update --all --self
bash: tlmgr: 未找到命令...

在centos 7 直接使用 root 安装 texlive

 yum -y install texlive texlive-latex texlive-xetex
 yum -y install texlive-collection-latex
 yum -y install texlive-collection-latexrecommended
 yum -y install texlive-xetex-def
 yum -y install texlive-collection-xetex
 Only if needed:
 yum -y install texlive-collection-latexextra

 ---------------------------------------------------------------------

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

 


————————————————

原文链接:https://blog.csdn.net/weixin_43214141/article/details/105832847

 

标签:latex,creating,tlmgr,tex,failed,install,texlive
From: https://www.cnblogs.com/emanlee/p/17115024.html

相关文章

  • idea报错:Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:exec (d
    idea版本:​​2020.3​​idea报错:在查阅了资料以后发现是​​IDEA2020​​的兼容问题 Failedtoexecutegoalorg.codehaus.mojo:exec-maven-plugin:3.0.0:exec(default-cli)onprojectsms:Commandexecutionfailed.解决方法:1、测试不要用​​main​​方法测试,使用​​......
  • Go - Creating One - Time Structs
     person:=struct{IdintNamestringEmailstring}{1,"ChangSauSheong","[email protected]"} person=struct{IdintNamestringEmails......
  • Go - Creating Struct Instances
    Problem: Youwanttocreateaninstanceofastruct.Solution: Createastructinstancedirectlyusingthenameofthestruct,orapointertoastructinstanceusingthenewkeyword. Therearetwowaystocreateaninstanceofastruct.Thefirstist......
  • 陶哲轩新论文秘密武器曝光:用AI写LaTeX巨丝滑
    数学大神陶哲轩发帖称,自己的写论文神器终于升级了!此前,他经常使用的工具是TeXnicCenter+MiKTeX,并且已经保持了这个习惯将近十年。现在,根据读者的建议,他升级了一波工具,现在用的是VSCode+TeXLive+LaTeXworkshop+GitHubCopilot。VSCode初印象陶哲轩表示,每隔五到十年,自己都会试图将Te......
  • nvidia-smi指令报错:Failed to initialize NVML: Driver/library version mismatch NVM
    nvidia-smi指令报错:FailedtoinitializeNVML:Driver/libraryversionmismatchNVMLlibraryversion:535.113我是刚开始没有nvidia-smi命令,输入后,提示我安装。aptinstallnvidia-340#version340.108-0ubuntu5.20.04.2,oraptinstallnvidia-utils-390......
  • 0基础入门overleaf (latex)
    首先是官方文档,可以通过官方文档进行简单了解LearnLaTeXin30minutes-Overleaf,在线LaTeX编辑器Latex是一个编码式的排版工具,一切内容均通过  LaTeX命令 实现。在开头会对文章格式等内容进行设置,\documentclass{article}  %规定了文章类型\usepackage{...} ......
  • 关于 Failed to bind properties under 'sky.alioss.access-key-id' to java.lang.Str
    问题描述废话不多说,上截图解决方案问题出现的原因:因为自己没有按照格式去运行程序,在yml中把他们得位置向前一个单位就解决问题了......
  • Module build failed (from ./node_modules/css-loader/dist/cjs.js): CssSyntaxError
    问题描述在webpack的时候报错ERRORin./packages/theme-chalk/mixins/mixins.scss(./node_modules/css-loader/dist/cjs.js!./packages/theme-chalk/mixins/mixins.scss)Modulebuildfailed(from./node_modules/css-loader/dist/cjs.js):CssSyntaxError(14:8)......
  • Go - Creating JSON Data Streams from Structs
    Problem: YouwanttocreatestreamingJSONdatafromstructs.Solution: CreateanencoderusingNewEncoderintheencoding/jsonpackage,passingitanio.Writer.ThencallEncodeontheencodertoencodestructsdatatoastream. Theio.Writerinterfa......
  • Go - Creating JSON Data Byte Arrays from Structs
    Problem: YouwanttocreateJSONdatafromastruct.Solution: Createthestructsthenusethejson.Marshalorjson.MarshalIndenttomarshalthedataintoaJSONsliceofbytes. funcmain(){person:=struct{}data,err:=......