From 1f3f0cd8cabd201063ac024cb72eea27ea8c4aa8 Mon Sep 17 00:00:00 2001 From: khanxmetu Date: Thu, 12 Sep 2024 14:45:59 +0300 Subject: Fixed #35754 -- Mapped full-width characters in latex to half-width. --- docs/conf.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/conf.py b/docs/conf.py index 2c578d5a8d..b72b1afcf5 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -292,8 +292,12 @@ latex_elements = { \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}} -- cgit v1.3