LaTeX environment compiler installation & configuration

A. Installation LaTeX environment

1. Download

Download Link

The following red frame circle to follow a hyperlink click away - step by step

Quietly wait for the download -

2. Install

After downloading Well we open it (open the way inside to find) using Windows Explorer

Click on this pat file

We will come out of this stuff:

Soon he will come out of the installation interface:

Installation root is the installation root directory, you can make changes according to their actual situation

Then click Advanced (lower left corner)


The left side of the English language options in addition to Chinese and others are removed, the installation package the right to remove TeXworks editor (an editor, older is not recommended, will be back on How TeXstudio)

Then click the lower right corner OK, then return to the previous screen, click the bottom right corner of the installation can be friends

Another long wait (you can see a little movie relax)

One hour distant past -

3. Configuration

Then open the cmd environment to see if the installation was successful

You can create a new directory testlatex in the C drive, and then create a new tex file test.tex inside, use Notepad to open

\documentclass{article}

\usepackage{ctex}

\begin{document}

你好 Hello  \LaTeX 

\end{document}

Enter the code above, and then click the file, click on the Save as (or Ctri + Shift + s), the encoding to UTF-8 (a generic set of code, or can not properly display Chinese)

Then save (can not read the code does not matter)

After returning cmd

  1. latex test.tex

    Execute this command you can see the folder will be a few more files

  2. dvipdfm test.dvi

    After performing generation will find a pdf document. At this point you can open the document

Documents found in the Chinese part is garbled, this is why?

Because LaTeX is a TeX format (format), is built on the basis of TeX macro language, that is to say, each is actually LaTeX commands will be finally converted interpreted as hundreds of TeX command. The XeTex is a use of Unicode TeX typesetting engine, and support for some modern font technology. XeLaTeX LaTeX and layout engine is used, but there is also the advantage of the above XeTeX.

At the command, just so that you can generate the corresponding PDF file.

Then you can directly open successfully compile tex we have just written a pdf

So far TeX environment installed ~~

II. Installation TeXstudio compiler

1. Download

Download Link

Once downloaded, install it well ~

2. Configure

2.1 Language

If you feel unfriendly English, you can click here:

Then click on the first Configure TeXstudio

Here can be changed to zh_CN

2.2 default compiler

The default compiler Construction xelatex is selected (in the above specific reasons ~)

Then click on a command bar, you can see all kinds of compiler command

If you find yourself is blank, then only need to fill in the column of XeLaTeX like ~

In this connection we configure TeXstudio friends ~

2.3 Inspection

After you write the code here TeX new file by clicking the green button above compile / build View

End Sahua ~ ~

I hope you have become the god of TeX duck ~~ writing papers changed formats yo

Reference: https://www.bilibili.com/video/av16002978/

Guess you like

Origin www.cnblogs.com/1625--H/p/11524968.html