mt-book-xelatex.tex 6.96 KB
Newer Older
曹润柘 committed
1 2 3
% !Mode:: "TeX:UTF-8"
% !TEX encoding = UTF-8 Unicode

xiaotong committed
4 5 6 7 8 9 10
%----------------------------------------------------------------------------------------
% 机器翻译:统计建模与深度学习方法
% Machine Translation: Statistical Modeling and Deep Learning Methods
%
% Copyright 2020
% 肖桐(xiaotong@mail.neu.edu.cn) 朱靖波 (zhujingbo@mail.neu.edu.cn)
%----------------------------------------------------------------------------------------
曹润柘 committed
11 12

%----------------------------------------------------------------------------------------
xiaotong committed
13
%	BASIC CONFIGURATIONS
曹润柘 committed
14
%----------------------------------------------------------------------------------------
xiaotong committed
15 16 17

\documentclass[11pt]{book} % font and book template
\input{structure.tex} % self-defined template
曹润柘 committed
18 19 20 21 22 23 24 25

\usepackage{hyperref}
%\hypersetup{pdftitle={Title},pdfauthor={Author}} % Uncomment and fill out to include PDF metadata for the author and title of the book

\usepackage {xeCJK}
\usepackage{ctex}
\setCJKmainfont{SimSun}
\setCJKmonofont{SimSun}
曹润柘 committed
26
\setmainfont{Times New Roman}
曹润柘 committed
27

曹润柘 committed
28
%----------------------------------------------------------------------------------------
xiaotong committed
29 30 31
%	CHINESE FONTS AND MATH FONTS
%----------------------------------------------------------------------------------------

曹润柘 committed
32 33 34
{\newcommand{\mycfont}{song}}
{\newcommand{\mycfont}{gbsn}}

xiaotong committed
35
% math fount = Computer Modern Roman
曹润柘 committed
36
\AtBeginDocument{
曹润柘 committed
37 38 39
\SetSymbolFont{operators}{normal}{OT1}{cmr} {m}{n}
\SetSymbolFont{letters}{normal}{OML}{cmm} {m}{it}
\SetSymbolFont{symbols}{normal}{OMS}{cmsy}{m}{n}
曹润柘 committed
40
\SetSymbolFont{largesymbols}{normal}{OMX}{cmex}{m}{n}
曹润柘 committed
41 42 43 44
\SetSymbolFont{operators}{bold}{OT1}{cmr} {bx}{n}
\SetSymbolFont{letters}{bold}{OML}{cmm} {b}{it}
\SetSymbolFont{symbols}{bold}{OMS}{cmsy}{b}{n}
\SetSymbolFont{largesymbols}{bold}{OMX}{cmex}{m}{n}
曹润柘 committed
45 46 47 48 49

\SetMathAlphabet{\mathbf}{normal}{OT1}{cmr}{bx}{n}
\SetMathAlphabet{\mathsf}{normal}{OT1}{cmss}{m}{n}
\SetMathAlphabet{\mathit}{normal}{OT1}{cmr}{m}{it}
\SetMathAlphabet{\mathtt}{normal}{OT1}{cmtt}{m}{n}
曹润柘 committed
50 51 52 53
\SetMathAlphabet{\mathbf}{bold}{OT1}{cmr}{bx}{n}
\SetMathAlphabet{\mathsf}{bold}{OT1}{cmss}{bx}{n}
\SetMathAlphabet{\mathit}{bold}{OT1}{cmr}{bx}{it}
\SetMathAlphabet{\mathtt}{bold}{OT1}{cmtt}{m}{n}
曹润柘 committed
54
}
xiaotong committed
55 56 57 58 59 60
\renewcommand{\baselinestretch}{1.2} % spacing

%----------------------------------------------------------------------------------------
%	MAIN BODY OF THE BOOK
%----------------------------------------------------------------------------------------

曹润柘 committed
61 62
\begin{document}
%\begin{CJK}{UTF8}{\mycfont}%原来的CJK
xiaotong committed
63

曹润柘 committed
64 65 66 67 68
%----------------------------------------------------------------------------------------
%	TITLE PAGE
%----------------------------------------------------------------------------------------

\begingroup
xiaotong committed
69
\thispagestyle{empty}
曹润柘 committed
70

曹润柘 committed
71
\begin{tikzpicture}[remember picture,overlay]
曹润柘 committed
72 73
\node[inner sep=0pt] (background) at (current page.center) {\includegraphics[width=\paperwidth,height=\paperheight]{fig-cover.jpg}};

曹润柘 committed
74 75
\end{tikzpicture}
\vfill
xiaotong committed
76
\endgroup·
曹润柘 committed
77 78

%----------------------------------------------------------------------------------------
曹润柘 committed
79
%	COPYRIGHT PAGE
曹润柘 committed
80 81
%----------------------------------------------------------------------------------------

曹润柘 committed
82 83 84
\newpage
~\vfill
\thispagestyle{empty}
曹润柘 committed
85

xiaotong committed
86
\noindent Copyright \copyright\ 2020 肖桐\ \ 朱靖波\\
曹润柘 committed
87

xiaotong committed
88
\noindent \textsc{东北大学自然语言处理实验室\ $\cdot$\ 小牛翻译}\\
曹润柘 committed
89

xiaotong committed
90 91
\noindent 顾问:姚天顺\ \ 王宝库\\

xiaotong committed
92
\noindent \textsc{\url{https://opensource.niutrans.com/mtbook/index.html}}\\
xiaotong committed
93
\noindent \textsc{\url{https://github.com/NiuTrans/MTBook}}\\
曹润柘 committed
94

xiaotong committed
95
\noindent {\red{Licensed under the Creative Commons Attribution-NonCommercial 4.0 Unported License (the ``License''). You may not use this file except in compliance with the License. You may obtain a copy of the License at \url{http://creativecommons.org/licenses/by-nc/4.0}. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \textsc{``as is'' basis, without warranties or conditions of any kind}, either express or implied. See the License for the specific language governing permissions and limitations under the License.}}\\
曹润柘 committed
96

xiaotong committed
97
\noindent \textit{\today}
曹润柘 committed
98 99 100 101 102 103 104 105 106 107

%----------------------------------------------------------------------------------------
%	ACKNOWLEDGE PAGE
%----------------------------------------------------------------------------------------

\newpage
~\vfill
\thispagestyle{empty}

{\large
xiaotong committed
108
\noindent {\color{red} 在此感谢为本书做出贡献的小牛团队(部分)成员} \\
曹润柘 committed
109

110
\noindent 曹润柘、曾信、孟霞、单韦乔、姜雨帆、王子扬、刘辉、许诺、李北、刘继强、张哲旸、周书含、周涛、李炎洋、林野、陈贺轩、刘晓倩、牛蕊、田丰宁、杜权、李垠桥、许晨、张裕浩、胡驰、冯凯、王泽洋、刘腾博、刘兴宇、徐萍、赵闯、高博、张春良、王会珍、张俐、杨木润、宁义明、李洋、秦浩、胡明涵 \\
曹润柘 committed
111
}
曹润柘 committed
112

xiaotong committed
113 114 115 116 117
%----------------------------------------------------------------------------------------
%	PREFACE PAGES
%----------------------------------------------------------------------------------------
\newpage
\include{ChapterPreface/ChapterPreface}
曹润柘 committed
118

曹润柘 committed
119 120 121 122
%----------------------------------------------------------------------------------------
%	TABLE OF CONTENTS
%----------------------------------------------------------------------------------------
%\usechapterimagefalse % If you don't want to include a chapter image, use this to toggle images off - it can be enabled later with \usechapterimagetrue
xiaotong committed
123
\chapterimage{fig-NEU-1.jpg} % Image of the content page
曹润柘 committed
124
\pagestyle{empty} % Disable headers and footers for the following pages
xiaotong committed
125 126 127
\tableofcontents % Show contents
\cleardoublepage % Place the first page of each chapter on odd pages
\pagestyle{fancy} % Enable headers and footers
曹润柘 committed
128

曹润柘 committed
129

曹润柘 committed
130 131 132
%----------------------------------------------------------------------------------------
%	CHAPTERS
%----------------------------------------------------------------------------------------
曹润柘 committed
133

134 135 136
\include{Chapter1/chapter1}
\include{Chapter2/chapter2}
\include{Chapter3/chapter3}
xiaotong committed
137
\include{Chapter4/chapter4}
138 139 140 141
\include{Chapter5/chapter5}
\include{Chapter6/chapter6}
\include{Chapter7/chapter7}
\include{ChapterAppend/chapterappend}
曹润柘 committed
142 143 144 145


%----------------------------------------------------------------------------------------
%	BIBLIOGRAPHY
曹润柘 committed
146
%----------------------------------------------------------------------------------------
xiaotong committed
147
\chapterimage{fig-NEU-10.jpg} % Image of the header
曹润柘 committed
148
\cleardoublepage % Make sure the index starts on an odd (right side) page
曹润柘 committed
149 150 151
\printbibliography


曹润柘 committed
152 153 154
%----------------------------------------------------------------------------------------
%	INDEX
%----------------------------------------------------------------------------------------
xiaotong committed
155
\chapterimage{fig-NEU-10.jpg} % Image of the header
曹润柘 committed
156 157 158 159
\cleardoublepage % Make sure the index starts on an odd (right side) page
%\phantomsection
%\setlength{\columnsep}{0.75cm} % Space between the 2 columns of the index
%\addcontentsline{toc}{chapter}{\textcolor{ocre}{Index}} % Add an Index heading to the table of contents
xiaotong committed
160
\printindex % Show index
曹润柘 committed
161 162 163 164 165

%-------------------------

%\end{CJK}
\end{document}