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


%----------------------------------------------------------------------------------------
xiaotong committed
6
%	BASIC CONFIGURATIONS
曹润柘 committed
7
%----------------------------------------------------------------------------------------
xiaotong committed
8 9 10

\documentclass[11pt]{book} % font and book template
\input{structure.tex} % self-defined template
曹润柘 committed
11 12 13 14 15 16 17 18

\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
19
\setmainfont{Times New Roman}
曹润柘 committed
20

曹润柘 committed
21
%----------------------------------------------------------------------------------------
xiaotong committed
22 23 24
%	CHINESE FONTS AND MATH FONTS
%----------------------------------------------------------------------------------------

曹润柘 committed
25 26 27
{\newcommand{\mycfont}{song}}
{\newcommand{\mycfont}{gbsn}}

xiaotong committed
28
% math fount = Computer Modern Roman
曹润柘 committed
29
\AtBeginDocument{
曹润柘 committed
30 31 32
\SetSymbolFont{operators}{normal}{OT1}{cmr} {m}{n}
\SetSymbolFont{letters}{normal}{OML}{cmm} {m}{it}
\SetSymbolFont{symbols}{normal}{OMS}{cmsy}{m}{n}
曹润柘 committed
33
\SetSymbolFont{largesymbols}{normal}{OMX}{cmex}{m}{n}
曹润柘 committed
34 35 36 37
\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
38 39 40 41 42

\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
43 44 45 46
\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
47
}
xiaotong committed
48 49 50 51 52 53
\renewcommand{\baselinestretch}{1.2} % spacing

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

曹润柘 committed
54 55
\begin{document}
%\begin{CJK}{UTF8}{\mycfont}%原来的CJK
xiaotong committed
56

曹润柘 committed
57 58 59 60 61
%----------------------------------------------------------------------------------------
%	TITLE PAGE
%----------------------------------------------------------------------------------------

\begingroup
xiaotong committed
62
\thispagestyle{empty}
曹润柘 committed
63

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

曹润柘 committed
67 68
\end{tikzpicture}
\vfill
xiaotong committed
69
\endgroup·
曹润柘 committed
70 71

%----------------------------------------------------------------------------------------
曹润柘 committed
72
%	COPYRIGHT PAGE
曹润柘 committed
73 74
%----------------------------------------------------------------------------------------

曹润柘 committed
75 76 77
\newpage
~\vfill
\thispagestyle{empty}
曹润柘 committed
78

xiaotong committed
79
\noindent Copyright \copyright\ 2020 肖桐\ \ 朱靖波\\
曹润柘 committed
80

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

xiaotong committed
83
\noindent \textsc{\url{https://github.com/NiuTrans/MTBook}}\\
曹润柘 committed
84

xiaotong committed
85
\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
86

xiaotong committed
87
\noindent \textit{\today}
曹润柘 committed
88 89 90 91 92 93 94 95 96 97 98 99

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

\newpage
~\vfill
\thispagestyle{empty}

{\large
\noindent {\color{red} 在此感谢所有为本书做出贡献的人} \\

曹润柘 committed
100
\noindent 曹润柘、曾信、孟霞、单韦乔、姜雨帆、王子扬、刘辉、许诺、李北、刘继强、张哲旸、周书含、周涛、张裕浩、李炎洋、林野、刘晓倩、牛蕊 \\
曹润柘 committed
101
}
曹润柘 committed
102

xiaotong committed
103 104 105 106 107
%----------------------------------------------------------------------------------------
%	PREFACE PAGES
%----------------------------------------------------------------------------------------
\newpage
\include{ChapterPreface/ChapterPreface}
曹润柘 committed
108

曹润柘 committed
109 110 111 112
%----------------------------------------------------------------------------------------
%	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
113
\chapterimage{fig-NEU-1.jpg} % Image of the content page
曹润柘 committed
114
\pagestyle{empty} % Disable headers and footers for the following pages
xiaotong committed
115 116 117
\tableofcontents % Show contents
\cleardoublepage % Place the first page of each chapter on odd pages
\pagestyle{fancy} % Enable headers and footers
曹润柘 committed
118

曹润柘 committed
119

曹润柘 committed
120 121 122
%----------------------------------------------------------------------------------------
%	CHAPTERS
%----------------------------------------------------------------------------------------
曹润柘 committed
123

xiaotong committed
124 125
%\include{Chapter1/chapter1}
%\include{Chapter2/chapter2}
zengxin committed
126
\include{Chapter3/chapter3}
xiaotong committed
127
%\include{Chapter4/chapter4}
zengxin committed
128
%\include{Chapter5/chapter5}
xiaotong committed
129 130 131
%\include{Chapter6/chapter6}
%\include{Chapter7/chapter7}
%\include{ChapterAppend/chapterappend}
曹润柘 committed
132 133 134 135


%----------------------------------------------------------------------------------------
%	BIBLIOGRAPHY
曹润柘 committed
136
%----------------------------------------------------------------------------------------
xiaotong committed
137
\chapterimage{fig-NEU-10.jpg} % Image of the header
曹润柘 committed
138
\cleardoublepage % Make sure the index starts on an odd (right side) page
曹润柘 committed
139 140 141
\printbibliography


曹润柘 committed
142 143 144
%----------------------------------------------------------------------------------------
%	INDEX
%----------------------------------------------------------------------------------------
xiaotong committed
145
\chapterimage{fig-NEU-10.jpg} % Image of the header
曹润柘 committed
146 147 148 149
\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
150
\printindex % Show index
曹润柘 committed
151 152 153 154 155

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

%\end{CJK}
\end{document}