Testing zh_hant Characters for readthedocs.org

This project tests traditional Chinese characters with ctex in fontset=ubuntu.

The followings are the settings in conf.py.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# -- Options for LaTeX output ------------------------------------------------
latex_engine = 'xelatex'
latex_use_xindy = False

latex_docclass = {
   'manual': 'ctexbook'
}

latex_elements = {
    # The paper size ('letterpaper' or 'a4paper').
    #
    'papersize': 'a4paper',

    # The font size ('10pt', '11pt' or '12pt').
    #
    'pointsize': '10pt',

    'extraclassoptions': r'fontset = none',

    # Additional stuff for the LaTeX preamble.
    #
    'preamble': r'''

    \usepackage{ctex}
    \ctexset{fontset = ubuntu}

    \usepackage{zhlipsum}

    \usepackage{indentfirst}
    \setlength{\parindent}{2em}
    '''

    # Latex figure (float) alignment
    #
    # 'figure_align': 'htbp',
}