Skip to content

Commit 23ecb21

Browse files
XiangyunHuangyihui
andauthored
close #275: rticles::ctex uses Pandoc's built-in template now, which supports keywords (#307)
Co-authored-by: Yihui Xie <xie@yihui.name>
1 parent 0567006 commit 23ecb21

File tree

3 files changed

+7
-222
lines changed

3 files changed

+7
-222
lines changed

NEWS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
rticles 0.15
22
---------------------------------------------------------------------
33

4-
54
- Added article template for journal *Bioinformatics*. (thanks, @ShixiangWang, #297)
65

76
- Update Copernicus Publications template to version 5.8 (thanks, @nuest, #274).
@@ -16,6 +15,8 @@ rticles 0.15
1615

1716
- Update to OUP format to use `pandoc-citeproc` by default for citations (thanks, @dmkaplan2000, #289).
1817

18+
- Deleted the LaTeX template of the `rticles::ctex` format. This format will use Pandoc's built-in template instead, which works well with the LaTeX package **ctex** (thanks, @XiangyunHuang, #307).
19+
1920
rticles 0.14
2021
---------------------------------------------------------------------
2122

inst/rmarkdown/templates/ctex/resources/template.tex

Lines changed: 0 additions & 218 deletions
This file was deleted.

inst/rmarkdown/templates/ctex/skeleton/skeleton.Rmd

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ author:
55
- 邱怡轩
66
- 于淼
77
documentclass: ctexart
8+
keywords:
9+
- 中文
10+
- R Markdown
11+
documentclass: ctexart
812
output:
913
rticles::ctex:
1014
fig_caption: yes
@@ -75,9 +79,7 @@ abline(fit, col = 'red')
7579

7680
# 源代码控
7781

78-
这里提供的rticles模板可能由于种种原因不能满足客官的要求,LaTeX用户就是这样永无止境地调格式(唉,跟Word用户到底有啥区别呢)。若真是需要调整,你可以复制一份默认模板去改,如前面所说,本文档的模板是`rticles::ctex_template()`,它是一个文本文件。若熟悉LaTeX的话一看就明白,只不过里面有些Pandoc变量而已;若不熟悉LaTeX我们在这里说了也白说,花几天时间好好啃一啃LaTeX入门手册吧。
79-
80-
本文档所用的模板是从Pandoc默认LaTeX模板基础上做了少许改动而来的:https://github.com/yihui/pandoc-templates/blob/ctex/default.latex 具体改动从GIT提交消息日志中可以看到,主要就是去掉了mathspec包和hyperref包。
82+
这里提供的rticles模板可能由于种种原因不能满足客官的要求,LaTeX用户就是这样永无止境地调格式(唉,跟Word用户到底有啥区别呢)。若真是需要调整,你可以复制一份默认模板去改。默认模板来自 Pandoc:https://github.com/jgm/pandoc/blob/master/data/templates/default.latex 它是一个文本文件。若熟悉LaTeX的话一看就明白,只不过里面有些Pandoc变量而已;若不熟悉LaTeX我们在这里说了也白说,花几天时间好好啃一啃LaTeX入门手册吧。
8183

8284
# 小结
8385

0 commit comments

Comments
 (0)