-
下載並安裝Tex Live: 下載頁面
-
下載並安裝atom:下載頁面
-
打開atom
File -> Settings -> Install
搜索並安裝:- language-latex
- latex
- pdf-view
-
新建文件,后綴名為
.tex
,編碼為UTF-8
-
測試:
\documentclass[UTF8]{article}
\author {Author}
\title {Title}
\usepackage{ctex}
\usepackage{amsmath}
\usepackage{amssymb}
\begin{document}
\maketitle
\section{First section} test1.
\subsection{First subsection} test2.
\subsubsection{First double subsection}
\paragraph{Fist paragraph} test3.
\subparagraph{First subparagraph} test4.
\subsection{Second subsection}
\paragraph{段落} 中文測試。
\\
Hello World! \\ % This is comment
Hello \LaTeX ! \\
$\lim\limits_{n \rightarrow +\infty} P\lbrace\frac{\sum\limits_{i=1}{n}Xi - n\cdot EX}{ \sqrt{n \cdot DX} } \leqslant x\rbrace = \Phi(x)$ \\
$P\lbrace a<X<b \rbrace \approx \Phi(\frac{b - n\cdot EX}{\sqrt {n\cdot DX}}) - \Phi(\frac{a - n\cdot EX}{\sqrt{n\cdot DX} })$ \\
$F(x,y) = F_{X}(x)F_{Y}(y)$
\end{document}
- 按Ctrl + Alt + B 生成PDF文檔。
在atom里右鍵PDF文檔,點Split Right
。每當重新生成文檔,會更新預覽。
效果圖:
ps. Ctrl + \
隱藏/展示左邊的目錄樹