当前位置:网站首页>Jupyter Notebook 将ipynb文件编译成latex再转为pdf
Jupyter Notebook 将ipynb文件编译成latex再转为pdf
2022-06-21 18:08:00 【WihauShe】
插件安装
- nbconvert
- pandoc
- miktex
- 一系列宏包
配置环境变量后一定要关闭命令行再重新启动notebook,否则path没有生效
图像编译问题
jupyter notebook notebook.tex:403: Unable to load picture or PDF file ’
解决
将想要加载到latex文件中的图片下载到本地(与ipynb文件),同时注意文件名与ipynb中加载的图片括号内的一致,因为括号内是在latex文件中加载图片的链接
中文编译问题
ipython nbconvert --to latex name.ipynb
【临时方法】
在tex文件导言部分加入
\usepackage{fontspec, xunicode, xltxtra}
\setmainfont{Microsoft YaHei}
\usepackage{ctex}
xelatex name.tex
tex文件可以通过notebook下载也可以命令行下转换,但编译tex文件只能通过命令行执行编译,而通过TeXworks执行排版会出现各种乱码问题
【永久方法】
修改模版
py3.6可以修改,3.8以上使用nbconvert转换为tex文件的模版被分包,只能使用tex编辑器编辑或创建新的模版
边栏推荐
- API interface for discharge summary identification - medical bill OCR identification / discharge diagnosis record / electronic medical record / claim settlement service
- [high frequency interview questions] linked list interview questions with 1/5 difficulty and lower difficulty
- In the same process of go question bank · 9, what is the problem with sending and receiving data at the same time for unbuffered channels
- How many correct answers can you get to Huawei Hongmeng certification test questions?
- 谷歌浏览器80版本以后,如何处理出现的问题SameSite跨域问题
- Delete the specified screen
- SQL operation: with expression and its application
- Ogg-21.3 error reporting ogg-00768 failed to map database character to ulibcharaset
- 力扣每日一练之双指针1Day8
- mocklog_模拟日志
猜你喜欢

力扣今日题1108. IP 地址无效化

动态规划【一】(背包问题)

Use the uniapp framework to build the zheliban micro application (single sign on, embedded point, aging adaptation, RPC gateway)

An accident caused by a MySQL misoperation, and the "high availability" cannot withstand it!

Second cloud's original fully compatible solution for Xinchuang is upgraded to help accelerate the implementation of Xinchuang industry

数据库主键一定要自增吗?有哪些场景不建议自增?

Flink 系例 之 TableAPI & SQL 與 示例模塊

yolov5训练自己的数据集报错记录

【一起上水硕系列】Day One

Nacos configuration center source code
随机推荐
11 introduction and installation of beautiful soup parsing library
ThreadLocal与线程池在使用中可能会出现的两个问题
How to use devaxpress WPF to create the first MVVM application in winui?
What is the process of futures account opening? Is it safe to open an account online
NPDP|如何做好产品生命周期管理?
Experience sharing of Sanye's friends: Qianqiu Shu (general manager of Qianqiu)
Security框架中使用FastJson反序列化SimpleGrantedAuthority
R语言glm函数构建二分类logistic回归模型(family参数为binomial)、使用summary函数查看模型汇总统计信息并解读特征
298th weekly match
《Go题库·9》同一个协程里面,对无缓冲channel同时发送和接收数据有什么问题
The R language catiols package divides the data, randomforest package constructs the random forest model, uses the importance function to calculate the importance of each feature in the random forest
在 KubeSphere 上部署 Apache Pulsar
WMS仓库仓储管理系统源码
R语言使用plyr包的rbind.fill函数纵向合并两个数据列不同的dataframe数据
[interval and topic prefix and] prefix and + hash table application questions
Dynamic programming [II] (linear DP)
根据数据中的key获取value值
第298场周赛
Qt Creator 7.0常见问题和常见用法
[high frequency interview questions] difficulty 1/5, popular enumeration simulation questions