跳到主要内容

文字排版

阅读指南

导航

  • 顶部导航 nav
  • 文档列表 sidebar
  • 目录大纲
  • cid 链接:位于文章底部,点击可复制文档的永久链接,用于分享文档。

标题

  • <h2>、<h3> 为有序标题,可以体现文章的段落层次、阅读进度和快速导航。

  • <h4> 为无序标题,可以将一个大的 <h3> 章节分割为数个小的 <h4 > 章节。

  • 内容块小标题:期望使用组件,给某些内容块打上一个(居中的)小标题。暂时使用 <h5> 实现居中小标题。

下划线

  • <u> 用于实现填空题的效果。

问苍茫大地,谁主沉浮

tip

将鼠标放到下划线上,将出现动画。

提示框

  • Markdown 风格和语法的提示框
tip

偶尔要在文章中给读者写一些提示。

note

作者要经常写点笔记,记录感悟。

warning

格式化磁盘需谨慎,确保数据备份后再操作!

caution

Caution 和 Warning 被认为是一样的提示效果。

important
  • Important 重要的事情说三遍
  • Important 重要的事情说三遍
  • Important 重要的事情说三遍
danger

不断电维修电器真的很危险!

dialog

dialog 模拟对话。

info

info 解释专业名词。

快捷键

  • 模仿机械键盘
Excel 快捷键示例
  1. 快速保存文档: Ctrl + S
  2. 复制选中内容: Ctrl + C
  3. 粘贴内容: Ctrl + V

表格

  • 仿 Excel 风格

表格数据使用 AI 生成,仅供演示排版:

排名书名作者推荐理由
1《计算机程序的构造和解释》(SICP)Harold Abelson / Gerald Jay Sussman编程思想的圣经,训练抽象与分层思维。
2《计算机程序设计艺术》(TAOCP)Donald E. Knuth算法经典巨著,数学与编程的结合。
3《深入理解计算机系统》(CSAPP)Randal E. Bryant / David R. O’Hallaron计算机系统原理必读,从汇编到操作系统、网络。
4《操作系统概念》Abraham Silberschatz 等操作系统入门与进阶的权威教材。
5《计算机网络:自顶向下方法》James F. Kurose / Keith W. Ross网络学习首选,层次清晰、实例丰富。
6《算法导论》Thomas H. Cormen 等数据结构与算法必备参考,覆盖面广。
7《编译原理》(龙书)Alfred V. Aho 等编译器设计的经典教材,计算机语言基础。
8《代码大全》Steve McConnell软件工程与编程实践,写出高质量代码。
9《人月神话》Frederick P. Brooks软件工程与团队管理的必读经典。
10《程序员修炼之道》Andrew Hunt / David Thomas关于程序员思维方式和职业发展的启发。

列表

无序列表示例:

  • 苹果
  • 香蕉
  • 橘子
    • 血橙
    • 柚子
  • 葡萄

有序列表示例:

  1. 学习
  2. 练习
  3. 总结
    1. 写笔记
    2. 做项目
  4. 复盘

混排列表示例:

  1. 学习
  2. 练习
  3. 总结
    • 写笔记
    • 做项目
  4. 复盘

列表标题

代码块

  • 行高亮、图形字符、标题
bashlsd 是一个 ls 增强命令
zxzsk@debian:~$ lsd
 appimage  apps  desktop  download 󰉏 pictures  public  SiYuan  videos
 Applications  Arduino  documents 󱍙 music  project  script  templates
zxzsk@debian:~$ lsd -1
 appimage
 Applications
 apps
 Arduino
 desktop
 documents
 download
󱍙 music
󰉏 pictures
 project
 public
 script
 SiYuan
 templates
 videos
  • 行高亮拓展
bash
$ apt update
正在读取软件包列表... 完成
E: 无法打开锁文件 /var/lib/apt/lists/lock - open (13: 权限不够)
E: 无法对目录 /var/lib/apt/lists/ 加锁
W: 用 unlink 删除文件 /var/cache/apt/pkgcache.bin 出错 - RemoveCaches (13: 权限不够)
W: 用 unlink 删除文件 /var/cache/apt/srcpkgcache.bin 出错 - RemoveCaches (13: 权限不够)

$ sudo apt update
[sudo] zxzsk 的密码:
命中:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu noble InRelease
获取:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates InRelease [126 kB]
获取:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-backports InRelease [126 kB]
获取:4 https://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/main amd64 Components [164 kB]
获取:5 https://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/restricted amd64 Components [212 B]
获取:6 https://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/universe amd64 Components [377 kB]
获取:7 https://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/multiverse amd64 Components [940 B]
获取:8 https://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-backports/main amd64 Components [7,084 B]
获取:9 https://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-backports/restricted amd64 Components [212 B]
获取:10 https://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-backports/universe amd64 Components [30.8 kB]
获取:11 https://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-backports/multiverse amd64 Components [212 B]
已下载 832 kB,耗时 2秒 (428 kB/s)
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成
有 222 个软件包可以升级。请执行 ‘apt list --upgradable’ 来查看它们。

tab 块

html
这是html代码块

公式

  • latex
示例 单摆周期实验

研究单摆的周期 TT 与长度 LL 的关系。理论公式为:

T=2πLgT = 2\pi \sqrt{\frac{L}{g}}

其中,gg 为重力加速度。实验中测量不同长度的单摆周期,结果与理论值接近:

  • L=0.5mL = 0.5\,\mathrm{m}Texp=1.42sT_\text{exp} = 1.42\,\mathrm{s}
  • L=1.0mL = 1.0\,\mathrm{m}Texp=2.01sT_\text{exp} = 2.01\,\mathrm{s}

实验验证了 TLT \propto \sqrt{L},符合理论预测。

draw.io

x
x