Edit Latex under Sublime
latex(latex, transliteration "Lateh") is a τεχ-based typesetting system developed by the American computer Science Leslie Lambert (Leslie Lamport) in the early 1980s, using this format, Even if the user does not have the knowledge of typesetting and program design, it can give full play to the powerful functions provided by Tex, and can produce many printed materials with book quality in a few days or even hours. This is especially true for generating complex tables and mathematical formulas. It is therefore well suited for generating high-quality technical and mathematical documents for printing. This system is also useful for generating all other kinds of documents from simple letters to complete books.
Edit Latex Editor Numerous go, among them,, WinEdit TeXworks texStudio , sublime text Of course also includes two great artifacts emacs and vim . This article focuses on how to sublime text edit latex in, and compile and build the appropriate document.
OK, let's start now (by default you have installed Sublime, if not already installed, recommended tutorial: "Sublime Text full Guide": http://zh.lucida.me/blog/sublime-text-complete-guide/ ? utm_source=tuicool)
Use Miktext or texlive
Install Miktext or texlive
Our prepared latex requires the use of miktext and texlive as the engine of compilation, which provide the tools required for word processing, all of which are made up of the Tex/latex logo language. Bo Master Here is the use of textlive, because in the degree Niang find a half-day, official online not to go, other download speed is too slow
-Download textlive: Copy the download link below into your thunderbolt and create a new download task: http://mirrors.ctan.org/systems/texlive/Images/ texlive2014-20140525.iso so download ah download Ah, speed is not slow, average speed 3m/s, in a moment this 2G many image files have been downloaded good
-Unzip the downloaded image file: After the download completes we get such a file Texlive2014-20140525.iso, we unzip it, get the following directory
-Install: We unzipped the directory to find a file called Install-tl-advanced.bat :
Double-click the file to open and pop the following cmd window
After you output something in the cmd window, an interactive installation window pops up.
The first small window prompts you the best is to shut down your what antivirus software and so on, so as to avoid false alarm, you directly point continue on it. In the following configuration window, the rest remains the same, except for the bottom two switches to false, such as:
Next is the click 安装 TexLive , this installation cost Bo Master one hours of time, the computer is too slag, good installation completed close the CMD window! Our first mission is complete.
Using Sumatrapdf
Install sumatrapdf
Sumatra PDF is a lightweight PDF reader developed by Krzysztof Kowalczyk and belongs to open software. The open source sumatrapdf Converts the document that we compiled into a PDF file.
-Download Install Sumatrapdf : This is very simple, the software is small, but also a few megabytes size, but note that sumatrapdf version must be greater than 1.4
- Configure the path to sumatrapdf under Windows: Add the installation path for sumatrapdf to the Windows Path environment variable, which is convenient for direct use under cmd:
We first find the installation directory of Sumatrapdf , the blogger is installed under: C:\Program files\sumatrapdf , and then copy this address
Locate the Control Panel, System and security system entry, locate the advanced system settings on the left
![ Alt text] (./systemsetting.png) "title=" >
point to Find environment variable options
then find the path variable inside the environment variable, in the path Append your sumatrapdf installation path After the variable, remember to add a first; And then paste your path in order to enter the corresponding command. The system searches for these commands in a directory in the order in which the directories appear in path
OK, click Apply OK, end the configuration!
win key +r open cmd , enter the sumatrapdf command, if the error occurred, you configured the wrong, otherwise it will pop up a Sumatrapdf the window drop of the .
Install Latextools on Sublime
Installing and configuring Latextools
latextools is a plugin on the sublime text. The sumatrapdf and texlive that we installed earlier are for this plug-in service
-Install latextools: Plug-in installation is very simple, open sublime, ctrl+shift+P in the popup dialog box input pci , select Package Install, then enter in the New Popup dialog box LaTexTools , OK installation!
-Configure Latextools: Find the Preferences->package settings->latextools->setting User in the sublime menu, We found an option in the open latextools.sublime-setting file Platform settings to configure the following:
texpathis the path you installed Texlive or MiKTeX.
distrois if you installed Texlive or MiKTeX.
sumatrais the command to start the output PDF, which defaults to null
"windows": { // Path used when invoking tex & friends; "" is fine for MiKTeX // For TeXlive 2011 (or other years) use // "texpath"C:\\texlive\\2011\\bin\\win32;$PATH", "texpath"C:/texlive/2014/bin/win32;$PATH", // TeX distro: "miktex" or "texlive" "distro"texlive", // Command to invoke Sumatra. If blank, "SumatraPDF.exe" is used (it has to be on your PATH) "sumatra"" },
All right, all done, restart sublime.
Test
Create a new *.tex file
Enter the following latex test content:
And then ctrl+B compile it, isn't it beautiful?
Edit Latex under Sublime