Skip to content

Commit

Permalink
version0.2,添加新主题
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaHI-Robot committed May 2, 2024
1 parent 6b7dd75 commit 4da2a53
Show file tree
Hide file tree
Showing 35 changed files with 266 additions and 98 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"markdown.marp.themes": [
"./themes/academic-sustech.css", //写自己想用的css文件名就可以了
"./themes/academic-sustech-1.css", //写自己想用的css文件名就可以了
"./themes/academic-sustech-2.css",
]
}
27 changes: 19 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
# 南方科技大学Marp学术汇报主题



> Based on ["marp-theme-academic"](https://github.com/kaisugi/marp-theme-academic).
> 该仓库包含两个主题,主题一适合简短汇报,主题二适合组会
>
> 借鉴了 https://github.com/kaisugi/marp-theme-academichttps://github.com/liyunwei-3558/MyMd2PPT
>
>
>
Expand All @@ -13,12 +14,22 @@


---
## 主题一演示效果


![](./export/demo-1/0.jpg)
![](./export/demo-1/1.jpg)
![](./export/demo-1/2.jpg)
![](./export/demo-1/3.jpg)
![](./export/demo-1/4.jpg)
![](./export/demo-1/5.jpg)
---

![](./export/png/demo_01.png)
![](./export/png/demo_02.png)
![](./export/png/demo_03.png)
![](./export/png/demo_04.png)
![](./export/png/demo_05.png)
![](./export/png/demo_06.png)
## 主题二演示效果
![](./export/demo-2/0.jpg)
![](./export/demo-2/1.jpg)
![](./export/demo-2/2.jpg)
![](./export/demo-2/3.jpg)
![](./export/demo-2/4.jpg)
![](./export/demo-2/5.jpg)
![](./export/demo-2/6.jpg)
7 changes: 4 additions & 3 deletions demo.md → demo-1.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
marp: true
theme: academic-sustech
css: themes/academic.css
theme: academic-sustech-1
paginate: true
math: katex
---
Expand All @@ -12,6 +11,7 @@ math: katex

#### *"每天叫醒我们的不是闹钟,而是中国高教改革的梦想"*

>
<br>
<br>
Expand All @@ -20,7 +20,7 @@ math: katex
南方科技大学创校校长
YYYY/MM/DD

<!-- ![w:300 top right](./images/logo/logo_en.png) -->


---

Expand Down Expand Up @@ -72,6 +72,7 @@ tokenizer.convert_ids_to_tokens(outputs.logits[0][1:-1].argmax(axis=-1))
---

<!-- _header: 公式 -->
<br>

$$ I_{xx}=\int\int_Ry^2f(x,y)\cdot{}dydx $$

Expand Down
109 changes: 109 additions & 0 deletions demo-2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
---
marp: true
theme: academic-sustech-2
paginate: false
math: katex
---

<!-- _class: lead -->

# 南方科技大学汇报


<br>

#### *"每天叫醒我们的不是闹钟,而是中国高教改革的梦想"*


<br>

<br>

<br>

**朱清时**
南方科技大学创校校长
YYYY/MM/DD



---
<!-- backgroundImage: url("./images/theme/background.png") -->
<!-- _header: 目录 -->



#### 1. 简介
#### 2. 代码块
#### 3. 公式
#### 4. 插图

---

<!-- _header: 简介 -->

- Marp 是一款用于在 **Markdown** 中创建**幻灯片**的软件。
- 支持基本 Markdown 语法。
- 您只需在 Markdown 中插入“---”分隔符即可移动到下一页$^1$。
- 该主题参考了[marp-theme-academic](https://github.com/kaisugi/marp-theme-academic)$^2$


> 1: Marp 是根据 CommonMark Markdown 规范开发的,因此它不提供 CommonMark 中未包含的“脚注”语法(使用 '[^1]')。 因此,我们参考了 https://github.com/marp-team/marp/discussions/150#discussioncomment-1302384 并实现了一个伪脚注。
> 2:一个无聊的脚注
---

<!-- _header: 代码块 -->

```python
import torch
print(torch.cuda.is_available())
```

你可以编写这样的代码块。

```python
from transformers import AutoModelForMaskedLM, AutoTokenizer
model = AutoModelForMaskedLM.from_pretrained("cl-tohoku/bert-base-japanese-whole-word-masking")
tokenizer = AutoTokenizer.from_pretrained("cl-tohoku/bert-base-japanese-whole-word-masking")

inputs = tokenizer.encode_plus("私はとても[MASK]です。", return_tensors='pt')
outputs = model(**inputs)
tokenizer.convert_ids_to_tokens(outputs.logits[0][1:-1].argmax(axis=-1))
```

宽度是可自行缩放的(请参阅 [auto-scaling](https://github.com/marp-team/marp-core#auto-scaling-features) 文档中的自动缩放)。

---

<!-- _header: 公式 -->
<br>

$$ I_{xx}=\int\int_Ry^2f(x,y)\cdot{}dydx $$

$$
f(x) = \int_{-\infty}^\infty
\hat f(\xi)\,e^{2 \pi i \xi x}
\,d\xi
$$

你可以写一个这样的公式。 当然,您也可以使用内联 $LaTeX$。

顺便说一句,您还可以使用表情符号:smile: :art: :fire:


<!-- _footer: 总结框模板! 在这里进行单行总结! -->
---

<!-- _header: 插图 -->

1. 首先,右键单击从 [链接](https://www.irasutoya.com/2018/10/blog-post_723.html) 下载图像('kenkyu_woman_seikou.png')。
2. 在此 Markdown 目录中创建一个名为“images”的目录,并放置您刚刚下载的图片。 现在你已经准备好了。

<br>

![w:300 center](./images/kenkyu_woman_seikou.png)


---
![bg](./images/theme/thanks.png)
Binary file renamed export/demo.pdf → export/demo-1.pdf
Binary file not shown.
Binary file added export/demo-1/0.jpg
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 export/demo-1/1.jpg
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 export/demo-1/2.jpg
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 export/demo-1/3.jpg
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 export/demo-1/4.jpg
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 export/demo-1/5.jpg
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 export/demo-2.pdf
Binary file not shown.
Binary file added export/demo-2/0.jpg
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 export/demo-2/1.jpg
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 export/demo-2/2.jpg
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 export/demo-2/3.jpg
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 export/demo-2/4.jpg
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 export/demo-2/5.jpg
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 export/demo-2/6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
85 changes: 0 additions & 85 deletions export/demo.html

This file was deleted.

Binary file removed export/demo.pptx
Binary file not shown.
Binary file removed export/png/demo_01.png
Binary file not shown.
Binary file removed export/png/demo_02.png
Binary file not shown.
Binary file removed export/png/demo_03.png
Binary file not shown.
Binary file removed export/png/demo_04.png
Binary file not shown.
Binary file removed export/png/demo_05.png
Binary file not shown.
Binary file removed export/png/demo_06.png
Binary file not shown.
Binary file removed images/logo/logo_cn.png
Binary file not shown.
Binary file removed images/logo/logo_cn_white.png
Binary file not shown.
Binary file removed images/logo/logo_en.png
Binary file not shown.
Binary file added images/theme/LOGO.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 images/theme/background.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 images/theme/thanks.png
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,4 +1,4 @@
/* @theme academic-sustech */
/* @theme academic-sustech-1 */
@charset "UTF-8";
@import 'gaia';
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');
Expand Down
131 changes: 131 additions & 0 deletions themes/academic-sustech-2.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
/* @theme academic-sustech-2 */

@charset "UTF-8";
/* @import 'default'; */
@import 'uncover';


/* @import-theme 'default'; */
:root {
--color-background: #fff;
--color-foreground: #0d2023;
--color-highlight: #dc7625;
}

section {
background-image: none;
font-family: Arial, Helvetica, sans-serif;
padding-top: 90px;
padding-left: 40px;
padding-right: 40px;
font-size: 28px;
}

/* https://github.com/marp-team/marpit/issues/271 */
section::after {
font-weight: 800;
content: attr(data-marpit-pagination) '/' attr(data-marpit-pagination-total);
}

ul ul {
font-size: 0.85em;
}

h1 {
text-align:left;
color: #dc7625;
margin-top: 20px;
margin-bottom: 20px;
font-size:50px;
line-height: 25px;
}

h2 {
text-align:left;
margin-top: 12px;
font-size: 30px;
line-height: 25px;
margin-bottom: 15px;
}

h3 {
text-align:left;
margin-top: 10px;
margin-bottom: 12px;
font-size: 27px;
line-height: 25px;
}

h4 {
color: #14363b;
text-align:left;
}

p {
text-align:left;
font-size: 21px;
margin-top: 7px;
margin-bottom: 10px;
/* margin-left: 30px; */
letter-spacing: 1px;
/* text-indent: 50px; */
}




header {
left: 57px;
right: 50px;
top: 15px;
height: 50px;
/* background-image: url("./header.png");
background-position: center;
background-repeat: no-repeat; */
/* background-size: 200px; */
text-align:left;
color: #dc7625;
font-weight: bold;
font-size:44px;
}


footer {
height: auto;
font-size:24px;
border-color: #dc7625;
border-width: 4px;
border-style: solid;
font-weight: bold;
list-style-type: square;
content: 'shsh';
padding-left: 20px;
padding-top: 12px;
padding-bottom: 12px;
color: rgb(37, 64, 97);
/* display:inline-block; */
}

blockquote {
max-width: 85%;
/* border-top: 0.01em dashed #14363b; */
font-size: 50%;
position: absolute;
bottom: 10px;
}

blockquote::before {
content: "";
}
blockquote::after {
content: "";
}

img[alt~="center"] {
display: block;
margin: 0 auto;
}

code {
font-family: 'Source Code Pro', monospace;
}

0 comments on commit 4da2a53

Please sign in to comment.