latex在數學建模的時候用到了,開始的時候感覺很煩。但是在后面就感到很好用了。不由得驚嘆起latex的設計者的驚人才智來。和latex相比,markdown就顯得簡單多了。下面就以個人的經驗寫一下如何快速入門。
定義標題##
# 一級標題
## 二級標題
### 三級標題
引用##
引用需要注意文本的格式。只需要在前面加上>即可。
像這樣>
鏈接與圖片##
鏈接為: []() 圖片為: ![]()
區別在于需要在前面加一個!小括號里面為對應的網址。像這樣申炳宇。
[申炳宇](http://shenbingyu.com)
插入表格##
Tables | Are | Cool |
---|---|---|
col 3 is | right-aligned | $1600 |
col 2 is | centered | $12 |
zebra stripes | are neat | $1 |
表格的格式與latex差不多。
`
Tables | Are | Cool |
---|---|---|
col 3 is | right-aligned | $1600 |
col 2 is | centered | $12 |
zebra stripes | are neat | $1 |
`
Tables | Are | Cool |
---|---|---|
col 3 is | right-aligned | $1600 |
col 2 is | centered | $12 |
zebra stripes | are neat | $1 |
效果就是
Tables | Are | Cool |
---|---|---|
col 3 is | right-aligned | $1600 |
col 2 is | centered | $12 |
zebra stripes | are neat | $1 |
我去表格也不支持。。。
插入代碼##
插入代碼很簡單的,只需要兩個'把中間的代碼包起來~
int main(){ cout<<"helllo world"<<endl; return 0; }
插入latex代碼##
latex最方便的莫過于輸入公式了。
測試
This expression $\sqrt{3x-1}+(1+x)^2$ is an example of a $\LaTeX$ inline equation.
he Lorenz Equations:
$$
\begin{aligned}
\dot{x} & = \sigma(y-x) \\
\dot{y} & = \rho x - y - xz \\
\dot{z} & = -\beta z + xy
\end{aligned}
$$
簡書不支持段內換行,可能是開發者考慮到大多數用戶可能不易>理解這種LATEX風格的語法吧,這其實也無所謂的,但是缺乏自動縮進,也不能用tab鍵,這就真的讓人捉急>了。其他高級功能比如LATEX公式,顯示行號的源代碼區塊,腳注等都不支持。不過簡書還提供了博客和社交的功能,已經不止是一個在線編輯器了。
真是醉了。
簡書還是給文科生用的多一些吧~
大概就是這些了。。