Share here how to build a latex editing environment under your Mac
First of course, Google Mac latex looking for an existing blog tutorial, and then found on Mac commonly used sublime text to edit, so search Mac sublime Latex, found the following two pages:
Http://www.readern.com/sublime-text-latex-chinese-under-mac.html
http://economistry.com/2013/01/installing-and-using-latex-for-mac/
Then the building method is basically here.
My environment is Mac OS X Yosemite 10.10, Xcode 6.1
Summarize my method of building:
Step 1: Download MacTeX I ended up using the full package http://tug.org/mactex/
Step 2: Download sublime Text 3 Beta HTTP://WWW.SUBLIMETEXT.COM/3
Step 3: Download and install skim http://skim-app.sourceforge.net
Step 4: Install the package Control https://sublime.wbond.net/installation in sublime text
The method is simple, open sublime Text 3, press CTRL + ' Open the console, copy the above Python code to run, you can complete the installation
Step 5: Install Latextools in sublime text
In sublime text command+shift+p bring up the command window, enter install, then select Latextools, complete the installation:
Step 6: Configure the Latextools in the sublime Text, click Reconfigure and migrate settings to complete the reconfiguration, as well as the installation situation
Step 7:skim Sync Configuration
Click skim-"option
In the command, enter:/applications/sublime TEXT.APP/CONTENTS/SHAREDSUPPORT/BIN/SUBL
Parameters as above input: "%file":%line
Step 8: Modify the compilation and Chinese environment
This step completely refers to the method of the page listed above,
Click Browse Package, and then
Open edit ~/library/application\ support/sublime\ text/packages/users/latex.sublime-settings, and change the "builder" entry to:
"Builder": "Simple"
Then open the editor ~/library/application\ support/sublime\ text/packages/latextools/builders/simplebuilder.py
Find out about the 41st of them.
Pdflatex = ["Pdflatex", "-interaction=nonstopmode", "-synctex=1″")
Revision changed to
Pdflatex = ["Xelatex", "-interaction=nonstopmode", "-synctex=1″")
Save after closing, recompile, Chinese normal!
OK, after the above steps, the entire latex environment is set up, the following to do a test:
In Sublime Text, enter the following code:
\documentclass{article}
\usepackage{fontspec, Xunicode, Xltxtra}
\setmainfont{hiragino Sans GB}
\title{title}
\author{}
\begin{document}
\maketitle{}
\section{introduction}
This is the where you'll write your content. Write the content here.
\end{document}
After saving press Command+b compile, skim direct display:
Build a latex editing environment under Mac OS X