Install and configure Latex in ubuntu

Source: Internet
Author: User
1. Install sudoapt-getinstalltetex-bincjk-latexdvipdfm-cjkdvipdfmxcmap-adobe-cns1cmap-adobe-gb1gs-cjk-resourcetetex-extratetex-doctfm-arphic-* libttf2ttf2pt1ttf2pt1-chinese2. Download executable push for gbkfonts 1. Install

Sudo apt-get install tetex-bin cjk-latex dvipdfm-cjk dvipdfmx cmap-adobe-cns1 gs-cjk-resource tetex-extra tetex-doc tfm-arphic-* libttf2 ttf2pt1 cmap-adobe-gb1

2. Download the executable file of gbkfonts
We recommend that you download the gbkfonts file he created from the personal website of Bo Liang. This file is also available at http://ftp.ubuntu.org.cn:
Wget http://ftp.ubuntu.org.cn/gbkfonts
You can also download the attachment.
Then
Chmod a + x gbkfonts
Cp gbkfonts/usr/local/bin

3. Copy the font

Sudo cp/windows/sda1/windows/Fonts/SIM */usr/share/fonts/zh_CN/TrueType/
Sudo cp/windows/sda1/windows/Fonts/sim */usr/share/fonts/zh_CN/TrueType/

4. Create texmf-local

Mkdir ~ /Texmf
# If you do not create a directory here, for example ~ /. Texmf, see Appendix 2 for relevant modifications

Cd ~ /Texmf
Gbkfonts/usr/share/fonts/zh_CN/TrueType/simli. ttf li
Gbkfonts/usr/share/fonts/zh_CN/TrueType/simyou. ttf you
Gbkfonts/usr/share/fonts/zh_CN/TrueType/simsun. ttc song
Gbkfonts/usr/share/fonts/zh_CN/TrueType/simfang. ttf fs
Gbkfonts/usr/share/fonts/zh_CN/TrueType/simkai. ttf kai
Gbkfonts/usr/share/fonts/zh_CN/TrueType/simhei. ttf hei
Mktexlsr

If you have any changes, you can use the mktexlsr command.
In the tex system, these six Chinese fonts must be defined and the above names must be used.
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.