Latex CJK and tex use Chinese

Source: Internet
Author: User
CJKCJK is short for Chinese, Japanese, and Korean. As the name suggests, it supports these three types of text. In fact, CJK supports the use of multiple Asian dual-byte characters including Chinese, Japanese, and Korean in LaTeX. (For details, refer to: source; Phodal's
Blog) about TEX
TEX (officially written in TEX, Greek:/t ɛ x/, which is commonly used in English "), it is a powerful typographical software written by American computer professor Donald Ervin Knuth. It is very popular in academic circles, especially in mathematics, physics and computer scientific circles. TEX is widely regarded as an excellent typographical tool, especially when dealing with complex mathematical formulas. Using terminal software such as LaTeX, TEX can produce exquisite texts.
For Windows, we recommend that you use texlive or CTEX, which is suitable for Chinese users. You can save a lot of effort and remember to install the cjk package. The zypper installation package is required for openSUSE, for example
zypper install latex-cjk
Example program:
%! 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 wocould be 10pt \ usepackage [utf8] {inputenc} % set input encoding (not needed with XeLaTeX) % Examples of Article customizations % These packages are optional, depending whether you wa Nt 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 geometryry for detailed page lay Out information \ marginparsep = 7pt \ usepackage {graphicx} % support the \ your degraphics command and options % \ usepackage [parfill] {parskip} % Activate to begin paragraphs with an empty line rather than 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 ininitialized in the memoir class to one degree or another... % HEADERS & FOOTERS \ usepackage {fancyhdr} % This shocould be set AFTER setting up the page g Eometry \ 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 \ use Package [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 {2 Gether} \ 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 {directory} \ tableofcontents \ newpage \ section {before the start} \ subsection {required) \ large requires the following materials: \ begin {itemize} \ item {server (Linux )} \ end {itemize} \ large software and development environment \ begin {enumerate} \ item {Eclipse} \ item {Vim/Emacs} \ item {other suitable text editors} \ end {enumerate} \ large uses the following languages but is not limited to \ begin {itemize} \ item {C/C ++} \ item {Processing} \ item {Python} \ item {Javascript} \ item {HTML/CSS} \ item {Shell} \ item {Java} \ item {SQL} \ end {itemize} \ large about the server, \ begin {itemize} \ item {uWSGI} \ item {Django} \ item {Nginx} \ item {Centos} \ item {Mysql} \ end {itemize} \ newpage \ subsection {material preparation} \ section {fd} \ shortdegraphics {dot. eps} \ end {CJK *} \ end {document}

Note that:

\begin{CJK*}{UTF8}{gbsn}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.