常用软件 使用笔记
2019-12-09
- 使用 RMarkdown 的
child
参数,进行文档拼接。 - 这样拼接以后的笔记方便复习。
- 相关问题提交到 Issue
1 MathPix
参考 超模君 (2019) 使用 Mathpix,并且配合 RMarkdown 包完成 Latex 显示。 不需要安装任何其他非 RStudio 官方的包,直接就可以执行。
---
author: Jiaxiang Li
date: "2019-12-09"
output: html_document
---
定义下 Rmd 文档的 yaml 参数。
![image](https://user-images.githubusercontent.com/15884785/62215461-99231880-b3d9-11e9-80bd-0c1f4e64c430.png)
image
接下来试着输入一个 LaTex 和相关文本,用 mathpix 截图复制 Latex 代码,用$$
框住即可。
接下来输入一个简单的一元一次方程 OLS 回归。
$$y = \beta_0 + \beta_1 X + \mu$$
![image](https://user-images.githubusercontent.com/15884785/62215791-2bc3b780-b3da-11e9-9a7a-d20cf29b5d78.png)
image
这里注意输入 $$
用于 Rmd 识别 Latex。
然后我们测试 Latex 是否成功,选择 Knit
![image](https://user-images.githubusercontent.com/15884785/62215919-67f71800-b3da-11e9-97b4-7b9ff4aa9584.png)
image
查看生成的 HTML 文件,测试成功。
![image](https://user-images.githubusercontent.com/15884785/62215968-7cd3ab80-b3da-11e9-8915-4aa77add7d95.png)
image
![image](https://user-images.githubusercontent.com/15884785/62274536-a6d8ac80-b472-11e9-8a31-68fdfe9e09b4.png)
image
附录
参考文献
超模君. 2019. “收藏!本、硕、博、程序员必备神器.” 超级数学建模. 2019. https://mp.weixin.qq.com/s/PiBgI9HwCP3R20eMrJvSPw.