Code Monkey home page Code Monkey logo

Comments (7)

xaiomoqing avatar xaiomoqing commented on May 27, 2024 4

修改 \Anaconda3\Lib\site-packages\nbconvert\templates\latex\article.tplx 文件
把 \documentclass[11pt]{article}
替换为
\documentclass{article}
\usepackage{ctex}
ctex为中文编译包

from tensorflow-101.

tan800630 avatar tan800630 commented on May 27, 2024

It seems that others also stuck in this issue, and I find some information that might be helpful.

issue: jupyter/notebook#2848
solution posted on the issue: http://www.cnblogs.com/xuanyuyt/p/7471316.html

from tensorflow-101.

nb5p avatar nb5p commented on May 27, 2024

@xaiomoqing 你好,我通过同样的方法修改过模板后,可以解决文档中的中文。但是标题中含有的中文字符在导出TeX文件时,显示为\title{??}。当然编译出的pdf,标题也是???

from tensorflow-101.

xaiomoqing avatar xaiomoqing commented on May 27, 2024

标题的中文显示问题我也没有解决

from tensorflow-101.

nb5p avatar nb5p commented on May 27, 2024

@xaiomoqing 我认为是nbconvert的问题,导致导出时标题中文无法显示

from tensorflow-101.

zhiweio avatar zhiweio commented on May 27, 2024

@xaiomoqing @zhuxiaoxi

solution posted on the issue:
jupyter notebook导出包含中文的PDF并正常显示pandas表格

it works on MacOS

from tensorflow-101.

nb5p avatar nb5p commented on May 27, 2024

@xaiomoqing @zhuxiaoxi

solution posted on the issue:
jupyter notebook导出包含中文的PDF并正常显示pandas表格

it works on MacOS

谢谢你的方法。这里还有一种解决方法 https://www.jianshu.com/p/49a0c9f74d59 亲测可用的
问题的根源在于nbconvert不支持也没有对 CJK 支持的计划。

from tensorflow-101.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.