Posts Tagged ‘博客’
2011-08-04 往wordpress博客里插入代码
今天学会了往博客里插入编程代码,方法是:
[sourcecode language="r"] 你的R代码在这里[/sourcecode]
具体参见http://en.support.wordpress.com/code/posting-source-code/。
还可以插入代码,方法是:
$latex 你的latex代码放在这里$
具体参见http://en.support.wordpress.com/latex/。
这个网页给了个插入公式的例子:
终于有可能写一些关于编程的博客了。
### Step by step example: ### library(BRugs) # loading BRugs ## Now setting the working directory to the examples' one: oldwd setwd(options()$OpenBUGSExamples)