#12559: Chinese translation of "A tour of Sage"
-------------------------+-------------------------------------------------
Reporter: mvngu | Owner: Kehengsite
Type: | Status: needs_work
enhancement | Milestone: sage-6.4
Priority: major | Resolution:
Component: | Merged in:
translations | Reviewers: Volker Braun, Dmitrii Pasechnik,
Keywords: | Karl-Dieter Crisman, Frédéric Chapoton
chinese | Work issues:
Authors: Liu | Commit:
Xiang (廖祥) | 3b19812bb21f9328d09efadf06ccdd845f8638e0
Report Upstream: N/A | Stopgaps:
Branch: |
u/kcrisman/12559 |
Dependencies: |
#14669, #14571 |
-------------------------+-------------------------------------------------
Comment (by kcrisman):
I have pdf success! The real problem is that !TeXlive 2012 assumes some
Windows default fonts. Unfortunately, those are different from both the
Linux defaults and the Mac defaults, which are ''themselves'' not the
same!
{{{#!diff
--- a/src/doc/zh_CN/a_tour_of_sage/conf.py
+++ b/src/doc/zh_CN/a_tour_of_sage/conf.py
@@ -41,9 +41,12 @@ latex_elements['utf8extra'] = ''
latex_elements['preamble'] = """
\usepackage[noindent,UTF8]{ctexcap}
-\setCJKmainfont{AR PL UMing CN}
-\setCJKsansfont{WenQuanYi Zen Hei}
-\setCJKmonofont{WenQuanYi Zen Hei Mono}
+\setCJKmainfont[BoldFont=STHeiti,ItalicFont=STKaiti]{STSong}
+\setCJKsansfont[BoldFont=STHeiti]{STXihei}
+\setCJKmonofont{STFangsong}
+%\setCJKmainfont{AR PL UMing CN}
+%\setCJKsansfont{WenQuanYi Zen Hei}
+%\setCJKmonofont{WenQuanYi Zen Hei Mono}
\usepackage{amsmath}
\usepackage{amssymb}
"""
}}}
I couldn't find a good font that both support without extra work.
Unfortunately, that means that Volker's workaround for auto-detecting
xelatex isn't good enough, because even with this not all of them will
work the same. What do you guys think?
--
Ticket URL: <http://trac.sagemath.org/ticket/12559#comment:51>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.