Skip to content

Commit

Permalink
add example, and cover template usage guide
Browse files Browse the repository at this point in the history
  • Loading branch information
du33169 committed Jan 22, 2022
1 parent 3fc8cb8 commit 1ad39e7
Show file tree
Hide file tree
Showing 10 changed files with 131 additions and 39 deletions.
25 changes: 17 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@

- essay.css:普通课程论文可用主题
- article.css:仿学术期刊主题(更新没那么及时)
- cover_template/cover_template.md:简单的论文封面模板
- essay.docx: 用于导出为word文档的模板
- templates/cover_page/cover_template.md:简单的论文封面模板
- templates/Word_style/word_ref.docx: 用于导出为word文档的模板
- examples/essay_sample/essay_sample.md:一个简单的示例文档

## 细节展示

Expand All @@ -51,13 +52,13 @@

#### 编辑器内

如下是编辑器内样式,可以注意到尾注的标识符可以自定便于查找,而且内容可以直接附在引用位置附近便于编辑;
如下是编辑器内样式,typora中尾注的标识符可以自定便于查找,而且内容可以直接附在引用位置附近便于编辑;

![尾注,编辑器内](README.assets/footnote-edit.png)

#### 导出效果

如下是导出为PDF后的效果,可以发现自定义的标识符已经自动转换为标号,引用的内容也自动归集到了文章最后:
如下是导出为PDF后的效果,typora会将自定义的标识符自动转换为标号,引用的内容也自动归集到了文章最后:

![尾注,导出效果](README.assets/footnote-export.png)

Expand All @@ -67,18 +68,26 @@

## 封面模板

cover_template目录下的cover_template.md为论文封面模板,利用了Markdown对内嵌HTML的支持。复制其中的HTML粘贴到你的Markdown文档开头,并修改校标、校名、论文各项信息,导出时即可拥有美观的封面页。(设置了自动分页,正文内容不会挤到封面中)
templates/cover_page目录下的cover_template.md为论文封面模板,利用了Markdown对内嵌HTML的支持。

### 封面使用方式

复制其中的HTML,粘贴到你的Markdown文档开头,并修改校标、校名、论文各项信息,导出时即可拥有美观的封面页。(设置了自动分页,正文内容不会挤到封面中)

步骤如下所示(除校标和校名图片外,使用中括号[ ]标注的字段均可修改):

![cover_usage](templates/cover_page/cover_usage.png)

### 效果图

![cover](README.assets/cover_template_sample.png)
![cover](templates/cover_page/cover_sample.png)

## Word转换模板

essay.docx是按本主题设计的word模板文件,可以使用pandoc将markdown源文件导出为**基本**符合主题格式的docx文件,命令如下(参见[pandoc's user guide](https://pandoc.org/MANUAL.html#option--reference-doc)):
word_ref.docx是按本主题设计的word模板文件,可以使用pandoc将markdown源文件导出为**基本**符合主题格式的docx文件,命令如下(参见[pandoc's user guide](https://pandoc.org/MANUAL.html#option--reference-doc)):

```bash
pandoc -i xxx.md --reference-doc essay.docx xxx.docx
pandoc -i xxx.md --reference-doc word_ref.docx xxx.docx
```

也可以利用新版typora的自定义导出功能将本命令添加到导出菜单中。
Expand Down
93 changes: 93 additions & 0 deletions examples/essay_sample/essay_sample.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
<div class="cover" style="page-break-after:always;font-family:仿宋;width:100%;height:100%;border:none;margin: 0 auto;text-align:center;">
<div style="width:80%;;margin: 0 auto;height:0;padding-bottom:25%;">
<img src="校名.png" alt="校名" style="width:100%;"/>
</div>
<br><br>
<div style="width:40%;margin: 0 auto;height:0;padding-bottom:40%;">
<img src="校标.png" alt="校徽" style="width:100%;"/>
</div>
<br><br>
<p style="text-align:center;font-size:24pt;margin: 0 auto">《论文写作技巧I》</p>
<p style="text-align:center;font-size:24pt;margin: 0 auto">课程报告 </p>
<br><br>
<table style="border:none;text-align:center;width:80%;font-family:仿宋;margin: 0 auto;">
<tbody style="font-family:仿宋;font-size:16pt;">
<tr style="font-weight:bold;">
<td style="width:25%;text-align:right;">题&emsp;&emsp;目</td><td style="width:5%">:</td>
<td style="font-weight:normal;border-bottom: 2px solid;text-align:center;">学术垃圾生产能力的转型过程</td></tr>
<tr style="font-weight:bold;">
<td style="width:25%;text-align:right;">姓&emsp;&emsp;名</td><td style="width:5%">:</td>
<td style="font-weight:normal;border-bottom: 2px solid;text-align:center;">张三</td></tr>
<tr style="font-weight:bold;">
<td style="width:25%;text-align:right;">学&emsp;&emsp;号</td><td style="width:5%">:</td>
<td style="font-weight:normal;border-bottom: 2px solid;text-align:center;">007</td></tr>
<tr style="font-weight:bold;">
<td style="width:25%;text-align:right;">专&emsp;&emsp;业</td><td style="width:5%">:</td>
<td style="font-weight:normal;border-bottom: 2px solid;text-align:center;">麻瓜研究</td></tr>
<tr style="font-weight:bold;">
<td style="width:25%;text-align:right;">上课时间</td><td style="width:5%">:</td>
<td style="font-weight:normal;border-bottom: 2px solid;text-align:center;">周一1,2,3节</td></tr>
<tr style="font-weight:bold;">
<td style="width:25%;text-align:right;">授课教师</td><td style="width:5%">:</td>
<td style="font-weight:normal;border-bottom: 2px solid;text-align:center;">李四</td></tr>
</tbody>
</table>
<br><br><p style="text-align:center;">
20XX 年 X 月 XX 日</p>
</div>



# 学术垃圾生产能力的转型过程

[toc]

## 引言

生产学术垃圾,到底应该如何实现。 本人也是经过了深思熟虑,在每个日日夜夜思考这个问题。这不禁令我深思。 这种事实对本人来说意义重大,相信对这个世界也是有一定意义的。 既然如此, 带着这些问题,我们来审视一下生产学术垃圾。

## 学术垃圾的定义

### 学术垃圾的起源

……

### 学术垃圾的分类

#### 常见的学术垃圾及其种类

| 低级学术垃圾 | 普通学术垃圾 | 高级学术垃圾 |
| ------------ | ------------ | ------------ |
||||
||||
||||

## 学术垃圾生产的传统方式

### 复制与粘贴

复制与粘贴,是指通过重用已有的资料来充实自身文章的方法。例如在计算机领域常见的CV大法:

```c++
#include <iostream>
using namespace std;
int main()
{
cout<<"Hello, World!"<<endl;
return 0;
}
```

### 废话与扩写

废话与扩写,是指在已有的文句中插入看似相关实则可有可无的名人名言,或以近义词替换的形式在不改变句子原有含义的情况下增加长度。例如歌德曾说过:读一本好书,就如同和一个高尚的人在交谈[^Goethe]

[^Goethe]:歌德全集(某某出版社某某年版)某某页

## 学术垃圾生产的新方式

……

---

参考文献:
File renamed without changes
File renamed without changes
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,44 +1,34 @@
<div class="cover" style="page-break-after:always;font-family:仿宋;width:100%;height:100%;border:none;margin: 0 auto;text-align:center;">
<div style="width:80%;;margin: 0 auto;height:0;padding-bottom:25%;">
<img src="校名.png" alt="校名" style="width:100%;"/>
</div>
</br></br>
<img src="校名.png" alt="校名" style="width:100%;"/></div>
<br><br>
<div style="width:40%;margin: 0 auto;height:0;padding-bottom:40%;">
<img src="校标.png" alt="校徽" style="width:100%;"/>
</div>
</br></br>
<p style="text-align:center;font-size:24pt;margin: 0 auto">《课程名称》</p>
<p style="text-align:center;font-size:24pt;margin: 0 auto">论文类型 </p>
</br>
</br>
<img src="校标.png" alt="校徽" style="width:100%;"/></div>
<br><br>
<p style="text-align:center;font-size:24pt;margin: 0 auto">《[课程名称]》</p>
<p style="text-align:center;font-size:24pt;margin: 0 auto">[论文类型] </p>
<br><br>
<table style="border:none;text-align:center;width:80%;font-family:仿宋;margin: 0 auto;">
<tbody style="font-family:仿宋;font-size:16pt;">
<tr style="font-weight:bold;">
<td style="width:25%;text-align:right;">题&emsp;&emsp;目</td>
<td style="width:5%">:</td>
<td style="font-weight:normal;border-bottom: 2px solid;text-align:center;"> 论文题目</td> </tr>
<td style="width:25%;text-align:right;">题&emsp;&emsp;目</td><td style="width:5%">:</td>
<td style="font-weight:normal;border-bottom: 2px solid;text-align:center;">[论文题目]</td></tr>
<tr style="font-weight:bold;">
<td style="width:25%;text-align:right;">姓&emsp;&emsp;名</td>
<td style="width:5%">:</td>
<td style="font-weight:normal;border-bottom: 2px solid;text-align:center;"> 你的名字</td> </tr>
<td style="width:25%;text-align:right;">姓&emsp;&emsp;名</td><td style="width:5%">:</td>
<td style="font-weight:normal;border-bottom: 2px solid;text-align:center;">[你的名字]</td></tr>
<tr style="font-weight:bold;">
<td style="width:25%;text-align:right;">学&emsp;&emsp;号</td>
<td style="width:5%">:</td>
<td style="font-weight:normal;border-bottom: 2px solid;text-align:center;">你的学号 </td> </tr>
<td style="width:25%;text-align:right;">学&emsp;&emsp;号</td><td style="width:5%">:</td>
<td style="font-weight:normal;border-bottom: 2px solid;text-align:center;">[你的学号] </td></tr>
<tr style="font-weight:bold;">
<td style="width:25%;text-align:right;">专&emsp;&emsp;业</td>
<td style="width:5%">:</td>
<td style="font-weight:normal;border-bottom: 2px solid;text-align:center;"> 你的专业</td> </tr>
<td style="width:25%;text-align:right;">专&emsp;&emsp;业</td><td style="width:5%">:</td>
<td style="font-weight:normal;border-bottom: 2px solid;text-align:center;">[你的专业]</td></tr>
<tr style="font-weight:bold;">
<td style="width:25%;text-align:right;">上课时间</td>
<td style="width:5%">:</td>
<td style="font-weight:normal;border-bottom: 2px solid;text-align:center;"> 上课时间</td> </tr>
<td style="width:25%;text-align:right;">上课时间</td><td style="width:5%">:</td>
<td style="font-weight:normal;border-bottom: 2px solid;text-align:center;">[上课时间]</td></tr>
<tr style="font-weight:bold;">
<td style="width:25%;text-align:right;">授课教师</td>
<td style="width:5%">:</td>
<td style="font-weight:normal;border-bottom: 2px solid;text-align:center;">教师姓名 </td> </tr>
</tbody>
</table>
<br><br><p style="text-align:center;">20XX 年 X 月 XX 日</p>
<td style="width:25%;text-align:right;">授课教师</td><td style="width:5%">:</td>
<td style="font-weight:normal;border-bottom: 2px solid;text-align:center;">[教师姓名]</td></tr>
</tbody></table>
<br><br><p style="text-align:center;">20[XX][X][XX] 日</p>
</div>

Binary file added templates/cover_page/cover_usage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added templates/cover_page/校名.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added templates/cover_page/校标.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1ad39e7

Please sign in to comment.