The host environment is: Ubuntu 12.04 LTS. For the RH series, the name of the Yum package may be different, but the Yum Lenovo capability is stronger and should not be a problem.
Install Pandoc, install Tex-live
sudo apt-get install Pandoc texlive
Installation
EnglishFont
You can use the "fc-list" command to view installed fonts. Use the following command to install the Gnome Chinese font.
Apt-get Install Apt-get Install language-pack-gnome-zh*
If you have TTF files, such as Windows font files under (windows\fonts), double-click to install.
Customizing Latex templates
Use the following command to export the Pandoc standard Template:
Pandoc-d Latex > Template.tex
Find "% if LuaTeX or XeTeX" in the template and insert the following code below the statement:
% support for Chinese
\USEPACKAGE[BOLDFONT,SLANTFONT,CJKSETSPACES,CJKCHECKSINGLE]{XECJK}
\usepackage{fontspec,xltxtra,xunicode}
\defaultfontfeatures{mapping=tex-text,scale=matchlowercase}
\punctstyle{quanjiao}
\setcjkmainfont{Wen Quan Shu-micron Black}
where "\setcjkmainfont" set the font part, according to the system installed font self-modification.
Configuring Pandoc Command Parameters
Add the following code under. BASHRC
Alias pandoc= "Pandoc--template= $HOME/templates/template.tex--latex-engine=xelatex"
Where the template parameter represents the custom template path used by Pandoc, I put it under ~/templates.
Allow Pandoc to output PDF when supporting Chinese