Source

Learning_Go_Chinese / go_a4.tex

Full commit
\documentclass[a4paper,twoside,openleft]{blocksbook}
\usepackage[cm-default]{fontspec}% provides font selecting commands
\usepackage{xunicode}% provides unicode character macros
\usepackage{xltxtra} % provides some fixes/extras
\usepackage[answerdelayed,lastexercise]{exercise}
\usepackage[labelsep=period,labelfont=it,textfont=it]{caption}
\usepackage{alltt}
\usepackage{url}
\usepackage{listings} 
\usepackage{color}
\usepackage{graphicx}
\usepackage{relsize}
\usepackage{xCJK}
\usepackage{scalefnt}
\usepackage{wrapfig}
\usepackage{everypage}
% Tables from Gnumeric.
\usepackage{array} 
\usepackage{longtable}
\usepackage{calc}
\usepackage{multirow}
\usepackage{hhline} 
\usepackage{ifthen} 
\usepackage{upquote}

\usepackage{tikz}
\usetikzlibrary{arrows,decorations.pathreplacing}
\usepackage{float}
%\usepackage{natbib}
%% Local tex stuff.
\usepackage{coderemarks}
%% Must go last.
\usepackage{hyperref}
\input{go-setup.tex}
\input{go-cc-license.tex}

\begin{document}
\begin{cjkc}
\thispagestyle{empty}
\newcommand{\version}{1.0}
%% Title page
\begin{center}
\hspace{1.0cm}{\scalefont{6.00}{\sffamily{\mbox{\vspace{1.0cm}学习~Go 语言}}}}\\
\vspace{0.5cm}
{\scalefont{3.0}\sffamily{Go 1}}
\end{center}
\vspace*{0.5cm}
\begin{figure}[h!]
\begin{center}
    \includegraphics[scale=0.65]{fig/bumper-inverse.png}
\end{center}
\end{figure}
\vspace*{0.02\stockheight}
\begin{minipage}{0.4\textwidth}
\begin{flushleft} \large
\hspace*{2,0cm}作者:\\
\hspace*{2.0cm}\emph{Miek Gieben}\\
\hspace*{2.0cm}译者:\\
\hspace*{2.0cm}\emph{邢星}\\
\vfill
\end{flushleft}
\end{minipage}
\hspace{5mm}
\begin{minipage}{0.4\textwidth}
\begin{flushright} \large
感谢:\\
\emph{Go 作者}\emph{Google}\\
\vfill
\end{flushright}
\end{minipage}
\vspace*{0.5cm}
\begin{center}
下朋友提供了帮助和贡献:

{\small 按字母顺序}
\input{go-contributors.tex}
\end{center}
\vfill
\begin{center}
    \hspace*{1cm}\CcGroupByNcSa{0.83}{0.95ex}\\[2.5ex]
    \hspace*{1cm}{\tiny\CcNote{\CcLongnameByNcSa}}
\end{center}
\begin{center}
\hspace*{1cm}\emph{Miek Gieben -- \copyright 2010 - 2012} \\
\hspace*{1cm}\emph{邢星~-- \copyright 2011,2012}
\end{center}
\vspace{-3em}
%% End title page %%

\newpage

\thispagestyle{empty}
\begin{figure}[H]
\begin{center}
\emph{
本作品依照署名-非商业性使用-相同方式共享~3.0 Unported 许可证发布。
访问~\url{http://creativecommons.org/licenses/by-nc-sa/3.0/} 
查看该许可证副本,或写信到~
Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA。}    
\vspace{2em}

\emph{本书所有实例代码依此方式放入公共领域。}
\end{center}

\end{figure}

\begin{center}
``学习~Go 语言'' 已经被翻译为:
\begin{itemize}
\item 中文,邢星;
\item 俄文,Michael Davydenko 且即将发布\texttrademark\end{itemize}
\end{center}

\begin{center}
\vfill
\emph{让我们开始学习~Go 吧。}
\emph{\version}
\tiny{支持~Go 1 版本}
\vspace{.2\stockheight}
\end{center}

\clearpage

\pagenumbering{roman}
\tableofcontents*
\listoffigures*
%%\listoftables* %% there are so few
\listofcode* 
\listofex* 
\clearpage

\chapter*{前言}
\label{chap:preface}
\input{go-preface.tex}

\chapter{简介}
\pagenumbering{arabic}
\label{chap:intro}
\input{go-intro.tex}

\chapter{基础}
\label{chap:basics}
\input{go-basics.tex}

\chapter{函数}
\label{chap:functions}
\input{go-functions.tex}

\chapter{}
\label{chap:packages}
\input{go-packages.tex}

\chapter{进阶}
\label{chap:beyond}
\input{go-beyond.tex}

\chapter{接口}
\label{chap:interfaces}
\input{go-interfaces.tex}

\chapter{并发}
\label{chap:channels}
\input{go-channels.tex}

\chapter{通讯}
\label{chap:communication}
\input{go-communication.tex}

%%\chapter{Miscellaneous}
%%\label{chap:miscellaneous}
%%\input{go-misc.tex}

\appendix

\chapter{版权}
\input{go-colophon}

\begin{twocolumn}
\chapter{索引}
\printindex
\end{twocolumn}
\begin{onecolumn}

\bibliographystyle{plain}
\bibliography{go}
\newpage
\thispagestyle{empty}
\begin{center}
\emph{当前页留空。}
\end{center}
\end{onecolumn}
\end{cjkc}
\end{document}