Skip to content

Commit

Permalink
latex preamble
Browse files Browse the repository at this point in the history
  • Loading branch information
xulihang committed Apr 23, 2018
1 parent 925cc28 commit 0978f04
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,23 @@
'fontpkg':'',
'fncychap':'',

'preamble': '''
\\usepackage{xeCJK}
\\usepackage{indentfirst}
\\setlength{\\parindent}{2em}
\\setCJKmainfont{SimSun}
\\setCJKmonofont[Scale=0.9]{SimSun}
\\setCJKfamilyfont{song}{SimSun}
\\setCJKfamilyfont{sf}{SimSun}
'''
'preamble': r'''
\hypersetup{unicode=true}
\usepackage{CJKutf8}
\DeclareUnicodeCharacter{00A0}{\nobreakspace}
\DeclareUnicodeCharacter{2203}{\ensuremath{\exists}}
\DeclareUnicodeCharacter{2200}{\ensuremath{\forall}}
\DeclareUnicodeCharacter{2286}{\ensuremath{\subseteq}}
\DeclareUnicodeCharacter{2713}{x}
\DeclareUnicodeCharacter{27FA}{\ensuremath{\Longleftrightarrow}}
\DeclareUnicodeCharacter{221A}{\ensuremath{\sqrt{}}}
\DeclareUnicodeCharacter{221B}{\ensuremath{\sqrt[3]{}}}
\DeclareUnicodeCharacter{2295}{\ensuremath{\oplus}}
\DeclareUnicodeCharacter{2297}{\ensuremath{\otimes}}
\begin{CJK}{UTF8}{gbsn}
\AtEndDocument{\end{CJK}}
''',
}
# Latex figure (float) alignment
#
# 'figure_align': 'htbp',
Expand Down

0 comments on commit 0978f04

Please sign in to comment.