Opened 9 years ago

Last modified 3 weeks ago

#13332 positive_review defect

Chinese characters are missing in LaTeX system

Reported by: shahuwang Owned by: jason, mpatel, was
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: notebook Keywords: latex chinese
Cc: shahuwang, chapoton Merged in:
Authors: Reviewers: Dima Pasechnik
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by shahuwang)

When use the LaTeX system,the Chinese characters are missing.For example:

%latex

This is English,$\sqrt{a!^!{2} + b!^!{2}}$. now it is Chinese: 中文测试! But they are missing!

In the result,these Chinese characters is missing.

The cause for this is that the CJK package is not included in SAGE/devel/sage-main/build/sage/misc/latex.py .The CJK package is to deal with Chinese,Japanese and Korean.

Fix it:
Add :

\usepackage{CJKutf8}

in COMMON_HEADER.
Add :

\\begin{CJK}{UTF8}{gbsn}\n


after :

\\begin{document}\n

in line 1041,1045,1083.

Add :

\n\n\\end{CJK}\n



before:

\n\\end{document}

in line 1050,1052,1071.

Attachments (1)

latex.py (93.6 KB) - added by shahuwang 9 years ago.
Change to fix the bug that LaTeX can not deal with Chinese

Download all attachments as: .zip

Change History (10)

Changed 9 years ago by shahuwang

Change to fix the bug that LaTeX can not deal with Chinese

comment:1 Changed 9 years ago by shahuwang

  • Description modified (diff)

comment:2 Changed 9 years ago by shahuwang

  • Description modified (diff)

comment:3 Changed 8 years ago by jdemeyer

  • Milestone changed from sage-5.11 to sage-5.12

comment:4 Changed 7 years ago by vbraun_spam

  • Milestone changed from sage-6.1 to sage-6.2

comment:5 Changed 7 years ago by vbraun_spam

  • Milestone changed from sage-6.2 to sage-6.3

comment:6 Changed 7 years ago by vbraun_spam

  • Milestone changed from sage-6.3 to sage-6.4

comment:7 Changed 10 months ago by mkoeppe

  • Cc chapoton added
  • Milestone changed from sage-6.4 to sage-duplicate/invalid/wontfix
  • Status changed from new to needs_review

Proposing to close all sagenb tickets as outdated, so that all remaining open tickets in the notebook component are about the Jupyter notebook.

comment:8 Changed 3 weeks ago by dimpase

  • Reviewers set to Dima Pasechnik
  • Status changed from needs_review to positive_review

comment:9 Changed 3 weeks ago by mkoeppe

  • Authors shahuwang deleted
Note: See TracTickets for help on using tickets.