bubifengyun / SJTUThesis-Rmd

基于https://github.com/sjtug/SJTUThesis 使用 bookdown 改编。迁移到 https://gitee.com/bubifengyun/SJTUThesis-Rmd 本网址不再更新
20 stars 7 forks source link

win10,在Rstudio里怎么运行啊?配置好后运行报错 #4

Open pubTools opened 5 years ago

pubTools commented 5 years ago

image

bubifengyun commented 5 years ago

能不能把错误信息贴出来。我这边没有试过在windows下编译。一直是深度deepin操作系统下操作的。

pubTools commented 5 years ago

image

bubifengyun commented 5 years ago

从报错来看,应该是没有配置 cran, 之前我也遇到过,参见这里,https://github.com/rstudio/bookdown/pull/599 但是,我早已经在这个代码里配置了cran的,你试试修改一下这里呢?

深度截图_deepin-terminal_20190611150820 深度截图_选择区域_20190611150849

有问题,再讨论。另外你第一幅图里,那个是乱码,是不是字体没有设置为 UTF-8的原因?

pubTools commented 5 years ago

image image image 全都设置了的,在build下build All会显示那个乱码;在index.rmd下knit会显示那个error。

bubifengyun commented 5 years ago

抱歉,我的电脑上,现在也无法编译通过,说是

tlmgr search --file --global '/gb7714-2015.dbx'
tlmgr: Remote repository is newer than local (2018 < 2019)
Cross release updates are only supported with
  update-tlmgr-latest(.sh/.exe) --update
Please see https://tug.org/texlive/upgrade.html for details.
tlmgr search --file --global '/biblatex-dm.cfg'
tlmgr: Remote repository is newer than local (2018 < 2019)
Cross release updates are only supported with
  update-tlmgr-latest(.sh/.exe) --update
Please see https://tug.org/texlive/upgrade.html for details.
tlmgr search --file --global '/sjtu-thesis-rmd.bbl'
tlmgr: Remote repository is newer than local (2018 < 2019)
Cross release updates are only supported with
  update-tlmgr-latest(.sh/.exe) --update
Please see https://tug.org/texlive/upgrade.html for details.
INFO - This is Biber 2.11
INFO - Logfile is 'sjtu-thesis-rmd.blg'
ERROR - sjtu-thesis-rmd.bcf is malformed, last biblatex run probably failed. Deleted sjtu-thesis-rmd.bbl
INFO - ERRORS: 1
错误: Failed to build the bibliography via biber
此外: Warning messages:
1: In readLines(log) : 读'sjtu-thesis-rmd.log'时最后一行未遂
2: 运行命令''tlmgr' search --file --global '/gb7714-2015.dbx''的状态是1 
3: 运行命令''tlmgr' search --file --global '/biblatex-dm.cfg''的状态是1 
4: 运行命令''tlmgr' search --file --global '/sjtu-thesis-rmd.bbl''的状态是1 
停止执行
错误: Failed to compile the book to bookdown::pdf_book
停止执行
make: *** [Makefile:2:pdf] 错误 1

等我重新安装一下 texlive2019,再来看看咋回事。

pubTools commented 5 years ago

万分感谢!

bubifengyun commented 5 years ago

你的使用是哪个tex? texlive2019吗?

pubTools commented 5 years ago

texlive2018 miktex2.9 texstudio R Rstudio pandoc

bubifengyun commented 5 years ago

现在能够编译了,但是需要 sudo make 才可以,也是一头雾水。我先更新一下最新的SJTU模板,马上推送。

bubifengyun commented 5 years ago

@izinngo 你在RStudio里安装这么几个包呢?

'DT', 'citr', 'formatR', 'svglite', 'webshot', 'devtools', 'tinytex', 'diagram', 'shape'

bubifengyun commented 5 years ago

这边反应有点慢,方便的话,可以QQ 402229566

bubifengyun commented 5 years ago

https://github.com/bubifengyun/deepin-bible/releases 非常抱歉,我下载之前的版本,现在也无法编译了。可能是我现在的编译环境被破坏了。如果你急着毕业的话,可以把在 _bookdown里面 生成的 tex 文件复制到交大模板里面。这边我估计得一段时间才能修复好这个问题。

bubifengyun commented 5 years ago

https://github.com/bubifengyun/deepin-bible 有兴趣的话,可以关注这个。