lsb_release -a
sudo apt-get install texlive
\documentclass[11pt, a4paper]{book}
\begin{document}
This is the content
\end{document}
xelatex test.tex
evince test.pdf
\title{Linux Guide for Chinese Beginners}
\author{Peter Wang}
\date{2012.4.1}
\maketitle
\chapter{name of chapter}
\section{name of section}
text go here
\subsection{name of subsection}
text go here
\usepackage[urlcolor = blue, colorlinks = true]{hyperref}
...
\url{http://google.com}
texdoc hyperref
\usepackage{graphicx}
...
\begin{figure}[htb]
\centering
\includegraphics{./figures/1.1.png}
\caption{Local version control diagram}
\end{figure}
\usepackage{fullpage}
{\footnotesize \begin{quote}\begin{verbatim}
#include <stdio.h>
int main()
{
printf("hello\n");
return 0;
}
\end{verbatim}\end{quote}}
\tableofcontents\newpage
NOTE: need to run xelatex test.tex
twice!!
so you need to re-run LaTeX one extra time to ensure that all ToC pagenumber references are correctly calculated.
fc-list :lang=zh|grep CN
sudo apt-get install ttf-arphic-uming
\usepackage{xeCJK}
\setCJKmainfont{AR PL UMing CN}
\documentclass[11pt, a4paper]{book}
\usepackage[urlcolor = blue, colorlinks = true, linkcolor = black ]{hyperref}
\usepackage{graphicx}
\usepackage{fullpage}
\usepackage{xeCJK}
\setCJKmainfont{AR PL UMing CN}
\begin{document}
\title{Linux Guide for Chinese Beginners}
\author{Peter Wang}
\date{2012.4.1}
\maketitle
\tableofcontents\newpage
\chapter{ 中文 name of chapter}
\section{name of section}
text go here 中文 中文 中文
\begin{figure}[htb]
\centering
\includegraphics{./figures/1.1.png}
\caption{Local version control diagram}
\end{figure}
\subsection{name of subsection}
text go here
{\footnotesize \begin{quote}\begin{verbatim}
#include <stdio.h>
int main()
{
printf("hello\n");
return 0;
}
\end{verbatim}\end{quote}}
\end{document}