Skip to content

Commit 171a8e1

Browse files
djdjz7ZangXuanyi炫懿 臧000lbh炫懿 臧
authored
fix: some minor revisions on char12
* Update README.md * Adds Markdown guide and image asset Introduces documentation on text editing with Markdown. LaTeX, and Typst hadn't introduced yet. Includes a new image asset for visual support. * 新增 LaTeX 示例图片和文档信息 * 更新 LaTeX 文档,添加下级标题和公式展示示例 * 更新 12-text-editing.md,添加 AMS 系列、geometry、graphicx、listings、algorithm2e 和 cases 宏包的使用说明 * 删除不再使用的 LaTeX 示例图片,并更新文档内容以增加对 `beamer` 和 `report` 包的介绍 * Update .nvmrc * 删除 README.md 中的 Fork 说明, 并进行prettier * doc: final doc 12 added * doc: doc12 final commit * doc: a little refresh * doc: avoiding a bug of prettier * doc; doc12 slightly changed as requested * chore: minor revisions: * fix: incorrect lang tag * doc: minor revisions --------- Co-authored-by: TheOnlyEthene <[email protected]> Co-authored-by: 炫懿 臧 <[email protected]> Co-authored-by: Li Bohai <[email protected]> Co-authored-by: 炫懿 臧 <�[email protected]> Co-authored-by: 炫懿 臧 <�[email protected]> Co-authored-by: ZangXuanyi <[email protected]>
1 parent 3450f1a commit 171a8e1

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

basic/09-drive-your-computer-5.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ int mian()
7575

7676
以下是笔者电脑上给出的报错信息:
7777

78-
```arduino
78+
```shell
7979
> g++ example.cpp -o example.exe
8080
D:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../lib/libmingw32.a(lib64_libmingw32_a-crtexewin.o): in function `main':
8181
C:/M/B/src/mingw-w64/mingw-w64-crt/crt/crtexewin.c:70: undefined reference to `WinMain'

basic/12-text-editing.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,9 @@ int main()
173173

174174
使用 `$ $` 框住对应的 $\LaTeX$ 公式, 即可将对应的公式按照 $\LaTeX$ 格式编译出来, 使用方法和 $\LaTeX$ 完全一致. 如果需要进一步教学, 请移步 $\LaTeX$ 相关篇章.
175175

176-
::: 注意
176+
::: tip 特别注意
177177

178-
特别注意: 公式的前后应该有空格, 否则不会编译. 这是 Markdown 的自动转义特性导致的.
178+
公式的前后应该有空格, 否则不会编译. 这是 Markdown 的自动转义特性导致的.
179179

180180
```plaintext
181181
这样写:
@@ -189,11 +189,11 @@ int main()
189189

190190
例如: 调和级数 $\sum_{i=1}^n \frac{1}{i}$ 可以使用 `$\sum_{i=1}^n \frac{1}{i}$` 进行编译.
191191

192-
::: tips
192+
::: tip 特别提醒
193193

194194
1. 一定要用半角标点符号, 否则你会见到臭名昭著的 ¥¥ 类错误.
195195

196-
1. 虽然大多数的 Markdown 渲染器都会正确渲染 $\LaTeX$ 公式,但是也有少数的渲染器不会正确渲染(具体渲染出什么我也不知道)。此处建议遵照渲染器的要求来进行
196+
2. 大多数的 Markdown 编译器都会正确渲染 $\LaTeX$ 公式,但是不排除少数编译器不支持渲染 $\LaTeX$,一般而言,不支持渲染的编译器将会原样显示公式内容。开始写作前试试编辑器能否正常渲染公式总是好的选择
197197

198198
:::
199199

@@ -528,17 +528,17 @@ Beamer 提供了多种主题和颜色主题,可以通过 \usetheme 和 \usecol
528528

529529
![report](../assets/basic/12-text-editing/latex6.png)
530530

531-
::: tips
531+
::: tip 特别提醒
532532

533533
1. 写 report 时请远离 Ctrl+S 成瘾症: 因为文章超长, 每次保存后重新编译的时间足够你思考人生三遍。这边建议关掉自动编译, 写完以后一口气编完, 把等待时间用来补觉~~或植发~~
534534

535-
1.`\tableofcontents` 自动生成目录后,可用 `tocloft` 包调整行距/缩进,防止目录页比正文还长 ~~(被暴打力)(悲)~~
535+
2.`\tableofcontents` 自动生成目录后,可用 `tocloft` 包调整行距/缩进,防止目录页比正文还长 ~~(被暴打力)(悲)~~
536536

537-
:::
537+
什么, 你想让我写怎么用 `tocloft` 包? (╯‵□′)╯︵┻━┻
538538

539-
什么, 你想让我写怎么用 `tocloft` 包? (╯‵□′)╯︵┻━┻
539+
> 有时间会写的, 不过现在暂时还是咕了罢
540540
541-
> 有时间会写的, 不过现在暂时还是咕了罢
541+
:::
542542

543543
### `moderncv` 简述: 不用排版的简历? 还有这等好事?
544544

0 commit comments

Comments
 (0)