Debian: Install Latex-Linux Release Technology-Debian information. For more information, see. I have recorded an article about installing Latex In Debian before. However, at that time, the Latex source files were all written in GBK encoding. Although the system uses UTF8 encoding, at that time, the font was copied from Simsun in Windows, and there were still some strange characters in the heart, not too comfortable.
Recently, I tried to develop Latex in my own book and found that it is much more convenient to install Latex in the Debian system. You can use UTF8 encoding without any configuration, the most important thing is that you can write beautiful articles without relying on the Simsun font. How to do it? Let's take a look at the convenience of Debian.
1. Install texlive latex
# Apt-get install texlive-latex-base
Khan, I have always used this method to install the software, and apt automatically solves the installation dependency, which is the convenience provided by apt.
After these software packages are installed, We can compile a simple test file to test whether our Latex can work normally.
Write the following Latex test file:
\ Documentclass {article}
\ Begin {document}
Hello, \ LaTeXe
\ End {document}
Save the preceding content as Hello. tex and run the following command:
$ Latex Hello. tex
If everything works normally, a Hello. dvi file will be generated. We can use xdvi or other corresponding tools to open the file, and we will see the generated results.
Now we can test the support for Chinese characters. We use the following test file:
\ Documentclass {article}
\ Usepackage {CJKutf8}
\ Begin {document}
\ Begin {CJK *} {UTF8} {gbsn}
Hello, \ LaTeXe
\ End {CJK *}
\ End {document}
Save and exit. Run the latex command to view the generated results.
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