Skip to content

Commit

Permalink
测试可用
Browse files Browse the repository at this point in the history
  • Loading branch information
bubifengyun committed Mar 4, 2020
1 parent 463a952 commit 9a5d899
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 23 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# 上海交通大学学位论文 Bookdown 模板

**当前改版中,问题非常多,不建议再使用了!!!(2020.02.27)**
当前可以编译运行。

这是为撰写上海交通大学学士、硕士或博士论文而准备的 Bookdown 模板,非官方出品。详细使用说明参见本模板内容。根据最新(2019.06.28)的[上海交通大学学位论文Latex模板](https://github.com/sjtug/SJTUThesis), 参考[谢益辉Bookdown中文模板](https://github.com/yihui/bookdown-chinese),非常感谢[@AlexaraWu](https://github.com/AlexaraWu)的支持,改写而成。在完全兼容[原交大论文LaTeX模板](https://github.com/sjtug/SJTUThesis)的基础上,通过使用 Markdown,大幅度降低撰写论文的难度,引入 R 语言,提高论文作图、数据处理的能力,真正做到让论文能够随着数据变化而变化,而不是数据错误了,要逐个手动改变。对于无法使用 Rmarkdown 实现的内容,完全复制粘贴 LaTeX 代码也能够运行,可能会多一些括号之类的,请删除。
这是为撰写上海交通大学学士、硕士或博士论文而准备的 Bookdown 模板,非官方出品。详细使用说明参见本模板内容。根据最新(2019.10.21)的[上海交通大学学位论文Latex模板1.0.0rc4](https://github.com/sjtug/SJTUThesis), 参考[谢益辉Bookdown中文模板](https://github.com/yihui/bookdown-chinese),非常感谢[@AlexaraWu](https://github.com/AlexaraWu)的支持,改写而成。在完全兼容[原交大论文LaTeX模板](https://github.com/sjtug/SJTUThesis)的基础上,通过使用 Markdown,大幅度降低撰写论文的难度,引入 R 语言,提高论文作图、数据处理的能力,真正做到让论文能够随着数据变化而变化,而不是数据错误了,要逐个手动改变。对于无法使用 Rmarkdown 实现的内容,完全复制粘贴 LaTeX 代码也能够运行,可能会多一些括号之类的,请删除。


## 如何使用

请先阅读[上海交通大学学位论文Latex模板](https://github.com/sjtug/SJTUThesis)的软件要求,这也是本模板的要求,然后安装 Pandoc,R 和 make 即可,如果可以安装 RStudio 更好。

详情参阅[这里](./rmd/101-intro.Rmd)
如果您懒得制作安装环境,也可用参考[这里](https://github.com/bubifengyun/deepin-bible)的虚拟机运行方式,直接编译运行。

## 反馈问题

Expand All @@ -27,7 +27,6 @@ SJTUThesis-Rmd 是一个刚刚启动的开源项目,我们非常欢迎新的

- 兼容最新的SJTUThesis-v1.0.0rc4模板。
- 提供更多 `pandoc` 标准的 markdown 例子。
- 增加虚拟机编译环境,方便众多小白使用。

## 致谢

Expand All @@ -47,4 +46,4 @@ SJTUThesis-Rmd 是一个刚刚启动的开源项目,我们非常欢迎新的

`sjtuthesis.cls` 文档类与相关附属文件,以及 `biblatex-gb7714-2015` 样式文件使用 [LPPL](https://www.latex-project.org/lppl.txt) 授权。

其他部分使用 [Apache License 2.0](LICENSE) 授权。
其他部分使用 [Apache License 2.0](LICENSE) 授权。
72 changes: 55 additions & 17 deletions bib/packages.bib
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,42 @@ @Manual{R-base
author = {{R Core Team}},
organization = {R Foundation for Statistical Computing},
address = {Vienna, Austria},
year = {2018},
year = {2019},
url = {https://www.R-project.org/},
}
@Manual{R-bookdown,
title = {bookdown: Authoring Books and Technical Documents with R Markdown},
author = {Yihui Xie},
year = {2019},
note = {R package version 0.11.1},
url = {https://github.com/rstudio/bookdown},
year = {2020},
note = {R package version 0.17},
url = {https://CRAN.R-project.org/package=bookdown},
}
@Manual{R-citr,
title = {citr: RStudio Add-in to Insert Markdown Citations},
author = {Frederik Aust},
year = {2018},
note = {R package version 0.3.0},
year = {2019},
note = {R package version 0.3.2},
url = {https://CRAN.R-project.org/package=citr},
}
@Manual{R-DT,
title = {DT: A Wrapper of the JavaScript Library 'DataTables'},
author = {Yihui Xie and Joe Cheng and Xianying Tan},
year = {2019},
note = {R package version 0.7},
year = {2020},
note = {R package version 0.12},
url = {https://CRAN.R-project.org/package=DT},
}
@Manual{R-htmlwidgets,
title = {htmlwidgets: HTML Widgets for R},
author = {Ramnath Vaidyanathan and Yihui Xie and JJ Allaire and Joe Cheng and Kenton Russell},
year = {2018},
note = {R package version 1.3},
year = {2019},
note = {R package version 1.5.1},
url = {https://CRAN.R-project.org/package=htmlwidgets},
}
@Manual{R-knitr,
title = {knitr: A General-Purpose Package for Dynamic Report Generation in R},
author = {Yihui Xie},
year = {2019},
note = {R package version 1.23},
year = {2020},
note = {R package version 1.28},
url = {https://CRAN.R-project.org/package=knitr},
}
@Manual{R-miniUI,
Expand All @@ -51,14 +51,52 @@ @Manual{R-miniUI
@Manual{R-rmarkdown,
title = {rmarkdown: Dynamic Documents for R},
author = {JJ Allaire and Yihui Xie and Jonathan McPherson and Javier Luraschi and Kevin Ushey and Aron Atkins and Hadley Wickham and Joe Cheng and Winston Chang and Richard Iannone},
year = {2019},
note = {R package version 1.13.6},
url = {https://github.com/rstudio/rmarkdown},
year = {2020},
note = {R package version 2.1},
url = {https://CRAN.R-project.org/package=rmarkdown},
}
@Manual{R-webshot,
title = {webshot: Take Screenshots of Web Pages},
author = {Winston Chang},
year = {2018},
note = {R package version 0.5.1},
year = {2019},
note = {R package version 0.5.2},
url = {https://CRAN.R-project.org/package=webshot},
}
@Book{bookdown2016,
title = {bookdown: Authoring Books and Technical Documents with {R} Markdown},
author = {Yihui Xie},
publisher = {Chapman and Hall/CRC},
address = {Boca Raton, Florida},
year = {2016},
note = {ISBN 978-1138700109},
url = {https://github.com/rstudio/bookdown},
}
@Book{knitr2015,
title = {Dynamic Documents with {R} and knitr},
author = {Yihui Xie},
publisher = {Chapman and Hall/CRC},
address = {Boca Raton, Florida},
year = {2015},
edition = {2nd},
note = {ISBN 978-1498716963},
url = {https://yihui.org/knitr/},
}
@InCollection{knitr2014,
booktitle = {Implementing Reproducible Computational Research},
editor = {Victoria Stodden and Friedrich Leisch and Roger D. Peng},
title = {knitr: A Comprehensive Tool for Reproducible Research in {R}},
author = {Yihui Xie},
publisher = {Chapman and Hall/CRC},
year = {2014},
note = {ISBN 978-1466561595},
url = {http://www.crcpress.com/product/isbn/9781466561595},
}
@Book{rmarkdown2018,
title = {R Markdown: The Definitive Guide},
author = {Yihui Xie and J.J. Allaire and Garrett Grolemund},
publisher = {Chapman and Hall/CRC},
address = {Boca Raton, Florida},
year = {2018},
note = {ISBN 9781138359338},
url = {https://bookdown.org/yihui/rmarkdown},
}
2 changes: 1 addition & 1 deletion index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ knit_hooks$set(plot = function(x, options) {
title: "上海交通大学论文 Rmd bookdown 模板"
author: "某 \\quad 某"
documentclass: sjtuthesis
classoption: [degree=doctor, unsetfont, openright, twoside]
classoption: [degree=master, zihao=-4]
studentid: B1103492
supervisor: "深度操作系统"
major: "通信与信息系统"
Expand Down

0 comments on commit 9a5d899

Please sign in to comment.