關於CJKCJK 是中文(Chinese)、日文(Japanese)、韓文(Korean)三國文字的縮寫。顧名思義,它能夠支援這三種文字。實際上,CJK 能夠支援在 LaTeX 中使用包括中文、日文、韓文在內的多種亞洲雙位元組文字。(轉載請標註:源自;Phodal's
Blog)關於TEX
TEX(正式寫法TEX,希臘語:/tɛx/,在英語中常用 /ˈtɛk/ ,音譯“泰赫”),是一個由美國電腦教授高德納(Donald Ervin Knuth)編寫的功能強大的排版軟體。它在學術界十分流行,特別是數學、物理學和電腦科學界。TEX被普遍認為是一個優秀的排版工具,特別是在處理複雜的數學公式時。利用諸如是LaTeX等終端軟體,TEX就能夠排版出精美的文本
Windows上使用建議使用texlive或者是國內用得比較多的,比較適合國人使用的CTEX。可以少去很多痛苦同時記得安裝上cjk包。openSUSE上使用需要用zypper安裝包,比如
zypper install latex-cjk
使用方法樣本程式:
% !TEX TS-program = pdflatex% !TEX encoding = UTF-8 Unicode% This is a simple template for a LaTeX document using the "article" class.% See "book", "report", "letter" for other types of document.\documentclass[11pt]{article} % use larger type; default would be 10pt\usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)%%% Examples of Article customizations% These packages are optional, depending whether you want the features they provide.% See the LaTeX Companion or other references for full information.%%% PAGE DIMENSIONS\usepackage{geometry} % to change the page dimensions\geometry{a4paper} % or letterpaper (US) or a5paper or....% \geometry{margin=2in} % for example, change the margins to 2 inches all round% \geometry{landscape} % set up the page for landscape% read geometry.pdf for detailed page layout information\marginparsep = 7pt\usepackage{graphicx} % support the \includegraphics command and options% \usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent%%% PACKAGES\usepackage{booktabs} % for much better looking tables\usepackage{array} % for better arrays (eg matrices) in maths\usepackage{paralist} % very flexible & customisable lists (eg. enumerate/itemize, etc.)\usepackage{verbatim} % adds environment for commenting out blocks of text & for better verbatim\usepackage{subfig} % make it possible to include more than one captioned figure/table in a single float% These packages are all incorporated in the memoir class to one degree or another...%%% HEADERS & FOOTERS\usepackage{fancyhdr} % This should be set AFTER setting up the page geometry\pagestyle{fancy} % options: empty , plain , fancy\renewcommand{\headrulewidth}{0pt} % customise the layout...\lhead{}\chead{}\rhead{}\lfoot{}\cfoot{\thepage}\rfoot{}\graphicspath{{dot/}}%%% SECTION TITLE APPEARANCE\usepackage{sectsty}\allsectionsfont{\sffamily\mdseries\upshape} % (See the fntguide.pdf for font help)% (This matches ConTeXt defaults)%%% ToC (table of contents) APPEARANCE\usepackage[nottoc,notlof,notlot]{tocbibind} % Put the bibliography in the ToC\usepackage[titles,subfigure]{tocloft} % Alter the style of the Table of Contents\usepackage{CJK}\renewcommand{\cftsecfont}{\rmfamily\mdseries\upshape}\renewcommand{\cftsecpagefont}{\rmfamily\mdseries\upshape} % No bold!%%% END Article customizations%%% The "real" document content comes below...\title{}\author{2Gether }\date{1 28,2013} % Activate to display a given date or no date (if empty), % otherwise the current date is printed \begin{document}\begin{CJK*}{UTF8}{gbsn}\maketitle\newpage\renewcommand\abstractname{}\begin{abstract}content...\end{abstract}\newpage\renewcommand\contentsname{目錄}\tableofcontents\newpage\section{開始之前}\subsection{所需如下}\large 需要準備的材料有以下:\begin{itemize}\item{伺服器 (Linux)}\end{itemize}\large 其中涉及到的軟體及開發環境\begin{enumerate}\item{Eclipse}\item{Vim/Emacs}\item{其他適合的文字編輯器} \end{enumerate}\large 使用到以下語言但不限於此\begin{itemize}\item{C/C++}\item{Processing}\item{Python}\item{Javascript}\item{HTML/CSS}\item{Shell}\item{Java}\item{SQL}\end{itemize}\large 關於伺服器,\begin{itemize}\item{uWSGI}\item{Django}\item{Nginx}\item{Centos}\item{Mysql}\end{itemize}\newpage\subsection{材料準備}\section{fd}\includegraphics{dot.eps}\end{CJK*}\end{document}
需要注意的是這裡可能用的是:
\begin{CJK*}{UTF8}{gbsn}