1、官网下载MacTeX,网址http://tug.org/mactex/。可以选择完整版或者BasicTeX,初学者选择完整版。
2、BibDesk用于将参考文献导入(通过手动或web方式如Google Scholar)和导出为.bib文件,LaTeXiT用于生成各类公式,TexShop是文本编辑器,Excalibur用于拼写检查,TeXLive Utitily用于添加宏包。
3、在TeXShop中编辑,点击排版即可生成pdf文档。如果有引用,先在BibDesk中将文档导入到某一个Group,然后导出.bib,将其和.tex放入一个文件夹,在TeXShop中插入\citep{***Cite key***}
\bibliographystyle{plain}
\bibliography{***yourbibname***}
在TexShop选择XeLaTeX点击排版,再选择BibTex点击排版,再选择XeLaTeX点击排版,再点击排版,即可得到正常输出。
4、可使用在线LaTex,例如https://www.sharelatex.com/,但不适用文章结构复杂时。
5、样例:
\documentclass{article}
\usepackage[utf8]{inputenc}
\title{new}
\author{zzz }
\date{July 2017}
\usepackage{natbib}
\usepackage{graphicx}
\begin{document}
\maketitle
\section{Introduction}
There is a theory which states that if ever anyone discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable.
There is another theory which states that this has already happened.
\begin{figure}[h!]
\centering
\includegraphics[scale=1.7]{universe.jpg}
\caption{The Universe}
\label{fig:univerise}
\end{figure}
\section{Conclusion}
``I always thought something was fundamentally wrong with the universe'' \citep{adams1995hitchhiker}
\bibliographystyle{plain}
\bibliography{references}
\end{document}