Skip to content

some minor revisions #45

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Mar 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion basic/09-drive-your-computer-5.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ int mian()

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

```arduino
```shell
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以用普通文本?

> g++ example.cpp -o example.exe
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':
C:/M/B/src/mingw-w64/mingw-w64-crt/crt/crtexewin.c:70: undefined reference to `WinMain'
Expand Down
18 changes: 9 additions & 9 deletions basic/12-text-editing.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ int main()

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

::: 注意
::: tip 特别注意

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

```plaintext
这样写:
Expand All @@ -189,11 +189,11 @@ int main()

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

::: tips
::: tip 特别提醒

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

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

:::

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

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

::: tips
::: tip 特别提醒

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

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

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

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

> 有时间会写的, 不过现在暂时还是咕了罢
:::

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

Expand Down