Opened 10 years ago
Closed 14 months ago
#13332 closed defect (invalid)
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: |
Description (last modified by )
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)
Change History (11)
Changed 10 years ago by
comment:1 Changed 10 years ago by
- Description modified (diff)
comment:2 Changed 10 years ago by
- Description modified (diff)
comment:3 Changed 9 years ago by
- Milestone changed from sage-5.11 to sage-5.12
comment:4 Changed 9 years ago by
- Milestone changed from sage-6.1 to sage-6.2
comment:5 Changed 8 years ago by
- Milestone changed from sage-6.2 to sage-6.3
comment:6 Changed 8 years ago by
- Milestone changed from sage-6.3 to sage-6.4
comment:7 Changed 2 years ago by
- 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 15 months ago by
- Reviewers set to Dima Pasechnik
- Status changed from needs_review to positive_review
comment:9 Changed 15 months ago by
comment:10 Changed 14 months ago by
- Resolution set to invalid
- Status changed from positive_review to closed
Note: See
TracTickets for help on using
tickets.
Change to fix the bug that LaTeX can not deal with Chinese