Transferred from: http://painterlin.com/2014/08/10/Using-LaTeX-with-Sublime-and-Skim-for-Mac.html
Sublime text is a very good editor, fast, simple interface, many plugins. And can be used across platforms, perfect for Mac and Windows. Although it is a paid-for software, the author is very kind to give an indefinite trial period. It's all as advertised in its official website: The text editor you'll fall in love with.
Skim is a free and lightweight PDF reading, labeling tool with a thoughtful layout, and skim can annotate PDF files better than the previewer that comes with OS X.
Latex is an authoritative technology paper typesetting software, not only can write paper, but also to deal with the daily work of various documents, or even make slides. The biggest advantage compared to Word,latex is that it is very beautiful for editing and typesetting complex formulas. And with simple commands, you can create complex structures such as footnotes, indexes, catalogs, and references. All of these advantages make the world's many "scientists" no longer need to be both author and typesetting workers, so that more focus on the content of the article itself.
The purpose of this article is to comprehensively deploy the above three software on the Mac. Once done, you will be able to edit the latex code in sublime text and preview the resulting PDF file with skim. More importantly, to make you feel that writing a paper can also be a very beautiful thing.
Preparatory work:
- At least 4GB of free space on Mac
- High-Speed Internet connection
First step: Install MacTeX
- Enter the MacTeX website to download the
MacTeX.pkg
file. The file is about 2GB and takes a while to complete the download, so take a cup of coffee now.
- When the download is complete, double-click
MacTeX.pkg
to install.
- After the installation is complete, you will see a number of Tex-related program icons, temporarily ignoring them.
Step two: Install sublime Text
- Go to Sublime text website to download the latest version of sublime text. Here I downloaded the sublime Text 3.
- After the download is complete, drag the file into the application folder to install.
Step Three: Install the package Control in sublime text
We need to download the plugin in sublime text to work well with Latex-related files. Plugins are downloaded through the package control.
- Go to the Package control website to copy the code for the gray block.
- Open Sublime Text.
- Use the shortcut key "
control+~
" (~ just below the ESC key) to open Control Panel console. You will see a white window pop up at the bottom of the sublime text.
- Paste the code you just copied into the Control panel.
- Press the "
Enter
" enter key. Then quit and restart sublime Text.
Fourth step: Install Latex Tools
- Sublime text is restarted, press "" to
Command+Shift+P
Open command tray commands Pallet, this step can also be done through the tools drop-down menu.
- Enter "" In the Command tray
Install Package
and press Enter
enter to build.
- When you are finished, enter "
LaTeX Tools
" to find this item and enter the installation.
- Exit and restart Sublime Text.
Fifth Step: Install Skim
- Enter skim download skim and install
- Open Skim, in the menu bar
Skim > Preference(选项) > Sync(同步)
- In the Presets menu, select
Sublime Text
All done,??
Now that we've done all the steps, we can open the sublime Text, Command+N
create a new file and write the latex code in it, and after editing, Command+S
save the file, Command+B
compile and run it, then you can see the PDF preview in the skim.
Edit latex with sublime, skim on Mac