Skip to content

Commit

Permalink
测试手机termux编译本书成功
Browse files Browse the repository at this point in the history
  • Loading branch information
bubifengyun committed Sep 5, 2022
1 parent 2b04724 commit 86c00af
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 21 deletions.
4 changes: 2 additions & 2 deletions _output.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ bookdown::pdf_book:
quote_footer: ["\\VA{", "}{}"]
# md_extensions: -smart
# output_extensions: -smart
bookdown::epub_book:
stylesheet: css/style.css
#bookdown::epub_book:
#stylesheet: css/style.css
2 changes: 1 addition & 1 deletion _render.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if (system.file(package = 'bookdown') == '')

# 填上你需要用到的包

err = lapply(c('Cairo', 'DT', 'citr', 'formatR', 'svglite', 'webshot', 'devtools', 'tinytex','magick'), function(pkg) {
err = lapply(c('DT', 'citr', 'formatR', 'svglite', 'webshot', 'tinytex','magick'), function(pkg) {
if (system.file(package = pkg) == '') install.packages(pkg)
})

Expand Down
42 changes: 25 additions & 17 deletions bib/packages.bib
Original file line number Diff line number Diff line change
Expand Up @@ -3,56 +3,64 @@ @Manual{R-base
author = {{R Core Team}},
organization = {R Foundation for Statistical Computing},
address = {Vienna, Austria},
year = {2020},
year = {2022},
url = {https://www.R-project.org/},
}

@Manual{R-bookdown,
title = {bookdown: Authoring Books and Technical Documents with R Markdown},
author = {Yihui Xie},
year = {2020},
note = {R package version 0.21},
url = {https://github.com/rstudio/bookdown},
year = {2022},
note = {R package version 0.28},
url = {https://CRAN.R-project.org/package=bookdown},
}

@Manual{R-DT,
title = {DT: A Wrapper of the JavaScript Library DataTables},
author = {Yihui Xie and Joe Cheng and Xianying Tan},
year = {2020},
note = {R package version 0.16},
year = {2022},
note = {R package version 0.24},
url = {https://github.com/rstudio/DT},
}

@Manual{R-htmlwidgets,
title = {htmlwidgets: HTML Widgets for R},
author = {Ramnath Vaidyanathan and Yihui Xie and JJ Allaire and Joe Cheng and Carson Sievert and Kenton Russell},
year = {2020},
note = {R package version 1.5.2},
year = {2021},
note = {R package version 1.5.4},
url = {https://github.com/ramnathv/htmlwidgets},
}

@Manual{R-knitr,
title = {knitr: A General-Purpose Package for Dynamic Report Generation in R},
author = {Yihui Xie},
year = {2020},
note = {R package version 1.30},
year = {2022},
note = {R package version 1.39},
url = {https://yihui.org/knitr/},
}

@Manual{R-magick,
title = {magick: Advanced Graphics and Image-Processing in R},
author = {Jeroen Ooms},
year = {2021},
note = {R package version 2.7.3},
url = {https://CRAN.R-project.org/package=magick},
}

@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 = {2020},
note = {R package version 2.5},
url = {https://github.com/rstudio/rmarkdown},
year = {2022},
note = {R package version 2.16},
url = {https://CRAN.R-project.org/package=rmarkdown},
}

@Manual{R-webshot,
title = {webshot: Take Screenshots of Web Pages},
author = {Winston Chang},
year = {2019},
note = {R package version 0.5.2},
url = {https://github.com/wch/webshot/},
year = {2022},
note = {R package version 0.5.3},
url = {https://CRAN.R-project.org/package=webshot},
}

@Book{bookdown2016,
Expand All @@ -62,7 +70,7 @@ @Book{bookdown2016
address = {Boca Raton, Florida},
year = {2016},
note = {ISBN 978-1138700109},
url = {https://github.com/rstudio/bookdown},
url = {https://bookdown.org/yihui/bookdown},
}

@Book{knitr2015,
Expand Down
1 change: 1 addition & 0 deletions index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,5 @@ github-repo: bubifengyun/deepin-bible
href2footnote: false
cover-image: images/cover.jpg
publisher: 尚未出版
always_allow_html: true
---
3 changes: 2 additions & 1 deletion rmd/899-appendix-history.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
- 2018-11-22 完成第二部分,现实太残酷,一月一章吧。
- 2018-12-04 家庭事务繁多,今年到此为止,明年开春后再更新。
- 2020-01-13 今年继续一月一章吧。争取2020年草稿完成。
- 2020-07-16 停滞了很长时间,要抓紧时间了,今年写的太少了。
- 2020-07-16 停滞了很长时间,要抓紧时间了,今年写的太少了。
- 2022-09-05 适配手机,在Termux下,成功编译本书。
1 change: 1 addition & 0 deletions sjtuthesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
% Segment 1. Import LaTeX packages.
%==========

\RequirePackage{zref-abspage}
\RequirePackage{etoolbox}
\RequirePackage{geometry} %设置版面
\RequirePackage{fancyhdr}
Expand Down

0 comments on commit 86c00af

Please sign in to comment.