LaTex Chinese environment configuration in Ubuntu

Source: Internet
Author: User
LaTeX is a powerful typographical software, but it was initially designed for English typographical purposes. In order to make it competent for Chinese typographical tasks, we still need some additional adjustments. In this article, we will talk about how to configure LaTeX Chinese Environment In Ubuntu (using 12.04. Step 1: Install the basic LaTeX environment: sudoapt-getinstalltexlive Step 2. Install the Chinese character pack. The font package contains bsmi, bkai, gkai, and gbsn.

LaTeX is a powerful typographical software, but it was initially designed for English typographical purposes. In order to make it competent for Chinese typographical tasks, we still need some additional adjustments. In this article, we will talk about how to configure LaTeX Chinese Environment In Ubuntu (using 12.04.

Step 1: Install the basic LaTeX environment:

Sudoapt-get install texlive

Step 2: Install the Chinese character pack. The font package contains four Chinese fonts: bsmi, bkai, gkai, and gbsn. Bsmi and bkai are Big5 encoded in simplified Chinese Simplified and simplified Simplified Chinese Simplified.

Sudoapt-get install latex-cjk-all

Now, the basic configuration is complete. In this case, you can create a new tex file and enter the following test content. Under normal circumstances, compile this tex file to display Chinese characters in the document. It is worth noting that these fonts do not support italic format, but support bold. In fact, in the formal Chinese typographical layout, if you want to emphasize some parts, it is achieved through the use of imitation or, rather than using italic as in English.

\ Documentclass {article}
\ Usepackage {CJKutf8}
\ Begin {document}
\ Begin {CJK} {UTF8} {gkai}
This is a simplified Chinese character test.
\ End {CJK}
\ Begin {CJK} {UTF8} {gbsn}
This is a simplified Chinese character test for.
\ End {CJK}
\ Begin {CJK} {UTF8} {bkai}
This is a big5 simplified Chinese character used to handle traditional Chinese characters.
\ End {CJK}
\ Begin {CJK} {UTF8} {bsmi}
This is a big5 Simplified Chinese plain, handling traditional Chinese characters.
\ End {CJK}
\ End {document}

Next, we need to further set the Chinese layout.

First, set the first line indent for each row.

/Usepackage {indentfirst}
/Setlength {/parindent} {2em}

Second, chinese documents are used to the words "directory", "illustration directory", "Table directory", "references", "abstract", "Index", "table", and "Graph ". as the title of the special part of the article, laTeX uses English by default for titles of these parts. Therefore, you can redefine the title as a Chinese character by redefining the macro.

/Renewcommand {/contentsname} {directory}/renewcommand {/listfigurename} {illustration directory}/renewcommand {/listtablename} {table directory}/renewcommand {/refname} {references }/ renewcommand {/abstractname} {abstract}/renewcommand {/indexname} {index}/renewcommand {/tablename} {table}/renewcommand {/figurename} {figure}

Here, it is no problem to use LaTeX for daily Chinese formatting. Finally, I hope everyone will like LaTeX, a powerful typographical software.

Related Article

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.