Skip to content

Commit

Permalink
Fixed #35754 -- Mapped full-width characters in latex to half-width.
Browse files Browse the repository at this point in the history
  • Loading branch information
khanxmetu authored and sarahboyce committed Sep 13, 2024
1 parent ccd6e13 commit 1f3f0cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ answer newbie questions, and generally made Django that much better:
Anubhav Joshi <[email protected]>
Anvesh Mishra <[email protected]>
Anže Pečar <[email protected]>
A. Rafey Khan <[email protected]>
Aram Dulyan
arien <[email protected]>
Arjun Omray <[email protected]>
Expand Down
6 changes: 5 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,12 @@ def django_release():
\setmainfont{Symbola}
""",
"preamble": r"""
\usepackage{newunicodechar}
\usepackage[UTF8]{ctex}
\xeCJKDeclareCharClass{HalfLeft}{"2018, "201C}
\xeCJKDeclareCharClass{HalfRight}{
"00B7, "2019, "201D, "2013, "2014, "2025, "2026, "2E3A
}
\usepackage{newunicodechar}
\newunicodechar{π}{\ensuremath{\pi}}
\newunicodechar{≤}{\ensuremath{\le}}
\newunicodechar{≥}{\ensuremath{\ge}}
Expand Down

0 comments on commit 1f3f0cd

Please sign in to comment.