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.