当前位置:网站首页>Jupyter notebook compiles ipynb files into latex and then converts them into PDF
Jupyter notebook compiles ipynb files into latex and then converts them into PDF
2022-06-21 19:43:00 【WihauShe】
Plug in installation
- nbconvert
- pandoc
- miktex
- A series of macro packages
After configuring the environment variables, be sure to close the command line and restart notebook, otherwise path No entry into force
Image compilation problem
jupyter notebook notebook.tex:403: Unable to load picture or PDF file ’
solve
Will want to load into latex Download the pictures in the file to the local ( And ipynb file ), Also note the file name and ipynb The pictures loaded in brackets are consistent , Because the parentheses are in latex A link to a picture loaded in a file
Chinese compilation problems
ipython nbconvert --to latex name.ipynb
【 Temporary method 】
stay tex The introduction to the document includes
\usepackage{fontspec, xunicode, xltxtra}
\setmainfont{Microsoft YaHei}
\usepackage{ctex}
xelatex name.tex
tex Documents can be passed through notebook Download can also be converted from the command line , But compile tex Files can only be compiled from the command line , And by TeXworks There will be various garbled code problems during typesetting
【 Permanent method 】
Modify the template
py3.6 You can modify ,3.8 Above use nbconvert Convert to tex The template of the document is subcontracted , Only use tex Editor to edit or create a new template
边栏推荐
- 文献分析 Citespace 6.1.2 下载及安装教程
- 动态规划【二】(线性dp)
- nacos-配置中心-源码
- Shang Silicon Valley Shang Silicon Valley | what is Clickhouse table engine memory and merge
- R language uses the statstack function of epidisplay package to view the statistics (mean, median, etc.) and corresponding hypothesis tests of continuous variables in a hierarchical manner based on fa
- homeassistant addons
- WMS仓库仓储管理系统源码
- gorm数据库是否需要设置外键
- Dynamic programming [II] (linear DP)
- 【面试高频题】难度 1.5/5,常见的二分双指针面试题
猜你喜欢

Gartner 网络研讨会 “九问数字化转型” 会后感

SQL operation: with expression and its application

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

Forwarding to remind metamask how to deal with the potential private key disclosure of the expansion program

Nebula Graph入驻阿里云计算巢,助力企业打造云上超大规模图数据库

2022年下半年传统产品经理国际资格认证招生简章(NPDP)

11 brève introduction et installation de la Bibliothèque d'analyse de soup beautiful

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

尚硅谷 尚硅谷 | 什么是ClickHouse表引擎 Memory和Merge

vivo 容器集群监控系统架构与实践
随机推荐
298th weekly match
Kubernetes 跨 StorageClass 迁移 Persistent Volumes 完全指南
Selection skills of national production reinforced Ethernet switch
2022年6月25日PMP考试通关宝典-5
gorm数据库是否需要设置外键
动态规划【二】(线性dp)
GetEmptyBlcoksPre Info
An accident caused by a MySQL misoperation, and the "high availability" cannot withstand it!
The R language uses the DOTPLOT function of epidisplay package to visualize the frequency of data points in different intervals in the form of point graph, uses the by parameter to specify the groupin
【一起上水硕系列】Day One
Yolov5 trains its own data set to report error records
6月25日PMP考前指南,你需要做好这些
Nebula Graph入驻阿里云计算巢,助力企业打造云上超大规模图数据库
Easy introduction to naturallanguageprocessing series topic 6 code practice -- spelling correction based on language model
Codeforces Round #394 (Div. 2) E. Dasha and Puzzle
pnpm 中无法使用 patch-package 打补丁
网管型全国产加固交换机如何创建网络冗余
Literature analysis CiteSpace 6.1.2 download and installation tutorial
Delete the specified screen
将图片背景设置为透明的方法介绍