晴耕雨讀志

Peng's Blog

Posts Tagged ‘博客

2011-08-04 往wordpress博客里插入代码

leave a comment »

今天学会了往博客里插入编程代码,方法是:
[sourcecode language="r"] 你的R代码在这里[/sourcecode]
具体参见http://en.support.wordpress.com/code/posting-source-code/。

还可以插入\LaTeX代码,方法是:
$latex 你的latex代码放在这里$
具体参见http://en.support.wordpress.com/latex/。
这个网页给了个插入公式的例子:i\hbar\frac{\partial}{\partial t}\left|\Psi(t)\right>=H\left|\Psi(t)\right>

终于有可能写一些关于编程的博客了。

###    Step by step example:    ###
library(BRugs) # loading BRugs

## Now setting the working directory to the examples' one:
oldwd setwd(options()$OpenBUGSExamples)

Written by dapeng

2011-08-05 at 07:02

Posted in 4 软件与网络, 4.1 blog

Tagged with ,