mt-book.tex 6.37 KB
Newer Older
xiaotong committed
1 2 3
% !Mode:: "TeX:UTF-8"
% !TEX encoding = UTF-8 Unicode

曹润柘 committed
4 5 6 7 8 9
%----------------------------------------------------------------------------------------
%	PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------
\documentclass[11pt]{book} % Default font size and left-justified equations
\input{structure.tex} % Insert the commands.tex file which contains the majority of the structure behind the template

曹润柘 committed
10
\usepackage{CJKutf8}%CJK用的包
曹润柘 committed
11 12 13
\usepackage{hyperref}
%\hypersetup{pdftitle={Title},pdfauthor={Author}} % Uncomment and fill out to include PDF metadata for the author and title of the book

曹润柘 committed
14 15 16 17 18 19
%\usepackage {xeCJK}%xelatex用的包
%\usepackage{ctex}
%\setCJKmainfont{SimSun}
%\setCJKmonofont{SimSun}
%\setmainfont{Times New Roman} 

曹润柘 committed
20 21
%----------------------------------------------------------------------------------------

曹润柘 committed
22
%\IfFileExists{C:/WINDOWS/win.ini}
曹润柘 committed
23
{\newcommand{\mycfont}{song}}
曹润柘 committed
24
{\newcommand{\mycfont}{gbsn}}
曹润柘 committed
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47

%公式字体设置为计算机现代罗马
\AtBeginDocument{
\SetSymbolFont{operators}   {normal}{OT1}{cmr} {m}{n}
\SetSymbolFont{letters}     {normal}{OML}{cmm} {m}{it}
\SetSymbolFont{symbols}     {normal}{OMS}{cmsy}{m}{n}
\SetSymbolFont{largesymbols}{normal}{OMX}{cmex}{m}{n}
\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}

\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}
\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}
}
\renewcommand{\baselinestretch}{1.2}%设置行间距
\begin{document}
曹润柘 committed
48 49 50 51 52 53 54 55 56 57 58 59 60
\begin{CJK}{UTF8}{song}%使用xelatex的话需要注释掉

%----------------------------------------------------------------------------------------
%	TITLE PAGE
%----------------------------------------------------------------------------------------

\begingroup
\thispagestyle{empty} % Suppress headers and footers on the title page
%\begin{tikzpicture}[remember picture,overlay]
\begin{tikzpicture}[remember picture,overlay]
\node[inner sep=0pt] (background) at (current page.center) {\includegraphics[width=\paperwidth]{background.pdf}};
\draw (current page.center) node [fill=ocre!30!white,fill opacity=0.6,text opacity=1,inner sep=1cm]{\Huge\centering\bfseries\sffamily\parbox[c][][t]{\paperwidth}{\centering 机器翻译:统计建模与深度学习方法\\[15pt] % Book title
%{\Large 副标题是否需要}\\[20pt] % Subtitle
曹润柘 committed
61
{\LARGE 肖桐\ \ 朱靖波}}}; % Author name
曹润柘 committed
62 63 64 65 66 67 68 69 70 71 72 73
\end{tikzpicture}
\vfill
\endgroup

%----------------------------------------------------------------------------------------
%	COPYRIGHT PAGE
%----------------------------------------------------------------------------------------

\newpage
~\vfill
\thispagestyle{empty}

曹润柘 committed
74
\noindent Copyright \copyright\ 2020 肖桐\ \ 朱靖波\\ % Copyright notice
曹润柘 committed
75

曹润柘 committed
76
\noindent \textsc{东北大学自然语言处理实验室\ /\ 小牛翻译}\\ % Publisher
曹润柘 committed
77

xiaotong committed
78
\noindent \textsc{\url{https://github.com/NiuTrans/MTBook}}\\ % URL
曹润柘 committed
79

xiaotong committed
80
\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.}}\\ % License information, replace this with your own license (if any)
曹润柘 committed
81

曹润柘 committed
82
\noindent \textit{First Edition, April 2020}
曹润柘 committed
83

曹润柘 committed
84
%----------------------------------------------------------------------------------------
曹润柘 committed
85
%	ACKNOWLEDGE PAGE
曹润柘 committed
86 87
%----------------------------------------------------------------------------------------

曹润柘 committed
88 89 90
\newpage
~\vfill
\thispagestyle{empty}
曹润柘 committed
91

曹润柘 committed
92 93
{\large
\noindent {\color{red} 在此感谢所有为本书做出贡献的人} \\
曹润柘 committed
94

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


曹润柘 committed
99 100 101 102 103 104 105 106
%----------------------------------------------------------------------------------------
%	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
\chapterimage{chapter_head_1.pdf} %目录标题的图案
\pagestyle{empty} % Disable headers and footers for the following pages
\tableofcontents % 打印目录
\cleardoublepage %保证章节页在奇数页
曹润柘 committed
107 108 109 110 111
\pagestyle{fancy} % Enable headers and footers again

%----------------------------------------------------------------------------------------
%	CHAPTERS
%----------------------------------------------------------------------------------------
曹润柘 committed
112
%\include{Chapter1/chapter1}
曹润柘 committed
113
\include{Chapter2/chapter2}
曹润柘 committed
114 115 116 117 118
%\include{Chapter3/chapter3}
%\include{Chapter4/chapter4}
%\include{Chapter5/chapter5}
%\include{Chapter6/chapter6}
%\include{ChapterAppend/chapterappend}
曹润柘 committed
119 120 121 122 123


%----------------------------------------------------------------------------------------
%	BIBLIOGRAPHY
%----------------------------------------------------------------------------------------
曹润柘 committed
124
\cleardoublepage % Make sure the index starts on an odd (right side) page
125
\printbibliography
曹润柘 committed
126 127 128



曹润柘 committed
129 130 131 132 133 134 135 136 137 138 139 140 141
%----------------------------------------------------------------------------------------
%	INDEX
%----------------------------------------------------------------------------------------

\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
\printindex % Output the index




曹润柘 committed
142
%--------------------------------------------------------------------------------------
曹润柘 committed
143 144
\end{CJK}
\end{document}