本篇博客主要用于记录Atom编辑器同时支持markdown和latex;

1.安装

安装方法1:

(Windows系统)File->Settings->Install中搜索markdown-preview-plus,点击Install;

(Linux系统)Edit->Preferences->Install中搜索markdown-preview-plus,点击Install;

安装方法2: 在cmd中输入,

apm install markdown-preview-plus

2.设置

安装后"Enable" markdown-preview-plus,

"Disable" markdown-preview,

3.使用

新建test.md,输入如下内容,

Test Markdown & Latex

1.Markdown

Hello World!

import caffe
dir(caffe)

2.Latex

\(t=\sqrt{ma}\)

\(t = \sqrt{\frac{2h}{g}\qquad}\)

Crtl+Shift+m:分栏显示Markdown预览,但不编译Latex公式;

Crtl+Shift+x:开始Latex公式;

显示效果如下:

posted on 2016-05-20 17:36  老顽童2007  阅读(1726)  评论(0)    收藏  举报