TLJH (Jupyter Hub)对含中文notebook的pdf导出

服务器环境:ubuntu 20.04, Jupyterlab 3.3.2

目前上课使用jupyterlab进行辅助教学,学生在导出notebook为pdf时发现若存在中文,则pdf中所有汉字都会消失。

网上搜索一圈后,发现之前的解决方案基本都已经失效。多次尝试后,发现解决方案如下:安装ctex环境、调整默认latex模板。

sudo apt install texlive-xetex texlive-fonts-recommended texlive-plain-generic texlive-lang-chinese 

然后,找到默认的latex模板进行修改,我服务器环境是在/opt/tljh/user/share/jupyter/nbconvert/templates/latex目录下,然后修改index.tex.j2文件,替换其中:

\documentclass[11pt]{article}

为:

\documentclass[11pt]{ctexart}


已发布

分类

来自

标签:

评论

《 “TLJH (Jupyter Hub)对含中文notebook的pdf导出” 》 有 13 条评论

  1. acheter kamagra sans ordonnance

    generique kamagra pharmacie au rabais vallee d aoste

  2. cheapest buy enclomiphene canadian sales

    order enclomiphene us prices

  3. order androxal for sale usa

    androxal compare price washington dc

  4. flexeril cyclobenzaprine online

    cheap flexeril cyclobenzaprine cheap from usa

  5. cheap dutasteride cost per tablet

    buy cheap dutasteride price prescription

  6. purchase gabapentin retail price

    order gabapentin cheap in canada

  7. itraconazole overnight no consult

    purchase itraconazole australia where to buy

  8. canadian pharmacies without prescriptions fildena

    generic fildena quick shipping

  9. buying staxyn price prescription

    staxyn lowest prices

  10. get avodart cheap

    cheapest buy avodart cheap alternatives

  11. ordering rifaximin uk delivery

    discount rifaximin generic canada

  12. ordering xifaxan buy online canada

    buy cheap xifaxan lowest price viagra

  13. levné kamagra sobotní dodací kód

    levnテゥ kamagra pナ凖ュナ。tテュ den dodテ。nテュ

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注