惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Threatpost
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Engineering at Meta
Engineering at Meta
T
The Blog of Author Tim Ferriss
Recent Announcements
Recent Announcements
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
The Register - Security
The Register - Security
MongoDB | Blog
MongoDB | Blog
U
Unit 42
B
Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
L
LangChain Blog
Stack Overflow Blog
Stack Overflow Blog
P
Privacy International News Feed
L
LINUX DO - 最新话题
博客园_首页
博客园 - Franky
大猫的无限游戏
大猫的无限游戏
小众软件
小众软件
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Tor Project blog
V
Visual Studio Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
P
Privacy & Cybersecurity Law Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
K
Kaspersky official blog
C
Cisco Blogs
博客园 - 【当耐特】
阮一峰的网络日志
阮一峰的网络日志
I
Intezer
罗磊的独立博客
MyScale Blog
MyScale Blog
Last Week in AI
Last Week in AI
A
About on SuperTechFans
G
GRAHAM CLULEY
Y
Y Combinator Blog
Microsoft Security Blog
Microsoft Security Blog
GbyAI
GbyAI
T
Threat Research - Cisco Blogs
P
Proofpoint News Feed
D
DataBreaches.Net
The Hacker News
The Hacker News
Spread Privacy
Spread Privacy
AWS News Blog
AWS News Blog
I
InfoQ
T
The Exploit Database - CXSecurity.com
Simon Willison's Weblog
Simon Willison's Weblog
博客园 - 叶小钗
Project Zero
Project Zero

博客园_首页

Linux实操--组管理、权限管理和定时任务 Java + EasyExcel 实现单个接口导出多个Excel Mem0 源码解析系列(二):提示词工程的深度剖析 Openclaw TaskFlow究竟是什么?和普通Skill技能有什么区别 博文阅读密码验证 - 博客园 嘉立创开源:应该是全网MicroPython教程最多的开发板 Hermes Agent 集成实践:从协议到生产 2026年AI编程工具横评:Cursor、Codex、Claude Code、Zed、Windsurf Java程序员必看的RAG入门教程 2026 AI效率神器:Superpowers + Claude Code 保姆级教程 本地大模型部署全攻略:从 0 到 1 玩转 Ollama 【从0到1构建一个ClaudeAgent】内存管理-上下文压缩 .NET 高级开发 | 设计、实现一个事件总线框架 电子小白入门之NE555 3. WorkBuddy:隐藏玩法,一键召唤专家,让 AI 以"专家身份"给你干活 和AI一起搞事情#3:Claude Teammate 游戏开发翻车实录 【OpenClaw】通过 Nanobot 源码学习架构---(7)Memory C# .NET 周刊|2026年3月3期 我在 Debian 11 上把 K8s 单机搭起来了,过程没你想的那么顺(/opt 目录版) 深度学习进阶(七)Data-efficient Image Transformer CLI+Skill搭建浏览器AI自动化框架,告别一切重复枯燥任务 告别Token账单无底洞:OpenClaw本地部署,重塑企业数据主权的唯一解 FastAPI+Vue:文件分片上传+秒传+断点续传,这坑我帮你踩平了! SBTI 爆火后,我做了个程序员版的 CBTI。。已开源 + 附开发过程 多模态检索开始进入工程期:用 Sentence Transformers 搭建可落地的 Multimodal RAG 100多行代码实现一个最简单的Agent(用ReAct) Claude Code 通关手册(八):推荐 5 个 Hooks,代码质量提升 3 倍 老板:“有人截图了!”。安全部门:“收到,马上查暗水印!” - why技术 技术之外,皆是人间 C#/.NET/.NET Core技术前沿周刊 | 第 69 期(2026年4.01-4.12) Snack JSONPath 项目架构分析 Claude Code Buddy 小析:一个非核心功能,如何体现产品的细节完成度 AI新时代下的图床管理方案-Cloudflare图床+MCP+Skills方案指南 化繁为简:顺丰速运App如何通过 HarmonyOS SDK实现专业级空间测量 从零实现富文本编辑器#13-React非编辑节点的内容渲染 AI开发-python-langchain框架(3-23-OpenAI Functions风格Tool Calling智能助手) .NET + AI 进阶实战:基于类的技能开发 - 打造可治理的 Agent 能力模块 【从0到1构建一个ClaudeAgent】规划与协调-技能 上周热点回顾(4.6-4.12) 电子小白的工具三件套:面包板、杜邦线、万能板 单表五亿数据的查询优化 | Mysql、StarRocks 2. WorkBuddy:从“我是谁”到“帮我干活” C# 如何减少代码运行时间:7 个实战技巧 基于HelixToolkit.SharpDX 渲染3D模型 - 笺上知微 从零开始的双臂具身VLA起源及现阶段发展综述 - SkyXZ 记对 xonsh shell 的使用, 脚本编写, 迁移及调优 - pluvium27 受够了Vibe Coding的失控?换个起点,让AI事半功倍 从开始配置漏洞环境到漏洞复现流程 - 難しい 关于10年工作经验的程序员对OpenClaw的实战经验分享以及看法 - 虚无境 Any metadata 的内存布局 C# .NET 周刊|2026年3月2期 - InCerry 我帮你测过了,测试圈排名第二的 Skill 依然很牛逼 Skill Discovery | 无监督技能发现的经典工作总结 - MoonOut PbootCMS 网站内容数量多导致访问慢?这些实用优化方案帮你提速! - 家兴网络技术工作室 上下文工程是什么?过时了么?一文讲明白! - 一枫说码 网站漏洞怎么发现并修复?一篇实用指南(附完整流程) - 家兴网络技术工作室 开了 TUN 模式还是直连?90% 的人都踩过这个坑 Github日报|2026年04月12日 - AI一族 AScript扩展多种脚本语言 - rockey627 AI 学习笔记:Agent 的记忆机制 你能被装进一个文件里吗?——7 万人把同事"蒸馏"成了 AI - 我没有三颗心脏 Claude Code 通关手册(七):给 AI 装上技能包——Skills 完全指南 - 暮色之狐 在浏览器中快速编辑代码:VSCode Web 集成实践 - Newbe36524 蒸馏自己 skill?基于 Deepseek 的蒸馏器,丐版蒸馏方式,简单便捷 - To_Carpe_Diem Spring AI Aliababa和AgentScope,哪个更好? - 苏三说技术 Etsy 把 1000 个 MySQL 分片迁进 Vitess:425TB 数据背后的真正问题不是性能,而是运维规模 MicroPython LVGL基础知识和概念:底层渲染与性能优化 - FreakStudio 数据库草图算法 Python 潮流周刊#146:CPython 引入 Rust 的进展 - 豌豆花下猫 最小生成树 - mofei1116 红日靶场七:从外网入口、容器逃逸到 AD 接管的完整利用链复盘 - YouDiscovered1t 分享四款开源且实用的 Kafka 管理工具 - 追逐时光者 vLLM 权重加载机制全解析:从挑战到理想架构 LCT 学习笔记 - ACehomoxue Avalonia UI 12.0.0 正式发布:架构演进和性能飞跃 - 张善友 当 AI Agent 把调用链拉长,延迟开始成为一门生意 conhost.exe 无法显示 U+2717 - 145a 太秀了,我把自己蒸馏成了 Skill!已开源 - 程序员鱼皮 ASP.NET Core 内存缓存实战:一篇搞懂该怎么配、怎么避坑 基于 Ghostty 带有分割标签页和为 Claude 编程设计的通知终端 - BugShare AI 焊死入口:教育的“操作系统级”重塑 - 郝hai 初级Java开发工程师使用sql脚本编写代码的过程是简单而且不糊涂 - CoderOilStation Claude Code通关手册(六):MCP协议完全指南 - 暮色之狐 边框灯光环绕动画特效实现指南 - Newbe36524 开源:子木蒸馏版的 SEO 审计工具 seo-audit-skill v1.0 我所理解的Python元模型 【从0到1构建一个ClaudeAgent】规划与协调-TodoWrite - 程序员Seven Claude 和 Codex 在审计 Skill 上性能差异探究 - ACai_sec AScript如何实现中文脚本引擎 - rockey627 【渗透测试】HTB Season10 Garfield 全过程wp - dynasty_chenzi Android 开发者为什么必须掌握 AI 能力?端侧视角下的技术变革 树状数组正确性证明 - AC-wyr 你的 AI 焦虑,可能比 AI 本身更危险——ATM 机没有消灭银行柜员,但恐慌消灭了你的判断力 - 我没有三颗心脏 一个拉胯的分库分表方案有多绝望?整个部门都在救火! - 冰河团队 动态规划入门必学之走方格问题 - Ofnoname PostgREST 与 PostgreSQL 角色权限配置全解析(生产级实践) - SheepDog1998 使用 UEFI 图形输出协议 GOP 在屏幕上显示图像的方法 - 阿源- Claude Code通关手册(五):组建你的AI专家团队,子代理系统 - 暮色之狐 一个程序员到架构师的催婚路之感悟(整整10年后的催婚相亲感悟) - MisterLip 用 Agent Skill 自动生成工作周报 - 赵康
正式出版物: typst vs markdown(pandoc) vs latex
Nolca · 2026-05-05 · via 博客园_首页

当时typst还不成熟,所以采用了 pandoc模板 的方案。
折腾这个pandoc方案还需要维护一个比较复杂的模板框架与年久失修的filter插件。
目前也在学习typst,感觉适合有编程基础的学,毕竟 #开头 的都是代码/命令。
希望typst能变成pandoc的替代品,pandoc的ppt转译器或其架构不太好调整了,也比较久没维护了,没有新功能。

需求

先总结

  • pandoc虽然支持格式广泛,但如果要做到正式出版物的程度,要折腾,消耗很多精力,找各种第三方插件,还有各种坑。可能会出现,我明明在写文章,但我得先去修复插件的bug 😂。如果一定需要支持可编辑的doc/ppt,再考虑pandoc+markdown吧。
    • slidev支持从markdown生成网页交互式ppt,也可以折腾一个slidev模板。
  • latex 尾大不掉,我没用过所以无法深入评价。
  • typst,性能新星,官方云服务支持多人编辑,排版够用,但对中文支持欠缺。相对markdown要学更多,是一种可编程的文章格式(mdx: 有人说我吗)。
    • 仍然需要用pandoc从typst转doc
    • 插件导出的ppt是烘焙图片的只读形式,缺乏动态的交互。

导出doc&ppt:pandoc胜出

楼主用过pandoc折腾过毕业论文,所以必须要支持导出到docx给老师看,如果支持ppt方便答辩展示则是一个加分项。

  • pandoc: 双向转换,支持最多的格式,生成可编辑的pptx与docx
  • typst: 官方支持 PDF, PNG, SVG, HTML. 插件支持 图片烘焙的静态只读PPT, DOC
  • latex: 貌似官方只能导出pdf,latex与其他格式互转需要借助pandoc

TOC目录生成

TODO: 不知道 自定义目录样式 谁的上限高,不过应该都挺折腾的,不评价。
pandoc导出的 docx 还需要进 word 二次编辑。

引用:typst胜出

联动生成参考文献

typst和latex很方便,pandoc折腾好了还行

  • pandoc, 需2个独立文件

    这里引用AClon的文献。 [@ref_2026]
    
    <!-- 参考文献 -->
    
    ::: {#refs}
    :::
    
  • typst, 参考文献

    这里引用AClon的文献。@ref_2026 @cite_id.
    你也可以显式地调用`cite`命令: #cite(<ref_2026>)
    
    #bibliography("ref.bib")
    
  • latex

    这里引用AClon的文献。\citet{ref_2026}
    

脚注

语法上都各有所好,有的长点,有的短点,不评价。

  • pandoc

    Here is a footnote reference,[^1] and another.[^longnote]
    [^1]: Here is the footnote.
    [^longnote]: Here's one with multiple blocks.
    
  • typst

    You can edit Typst documents online.
    #footnote[https://typst.app/app] <fn>
    Checkout Typst's website. @fn
    And the online app. #footnote(<fn>)
    
  • latex

    \footnote[number]{text for footnote}
    

图表&自动标注:typst胜出

pandoc这里完全依赖第三方插件,不推荐,很折腾。
latex语法太冗长了。
typst的表格没有markdown的表格语法直观,但typst的表格排版更好控制。

  • 第三方插件 pandoc-crossref
    如果要将 mermaid, plantuml 的代码块变成标号图,就需要自己折腾。
    我的方法是convert.py里的正则替换来自动给区分开,自动编号。需配合pandoc-figure-caption-patch

    ---
    ## pandoc-figure-caption-patch
    autoFigLabels: true
    
    ## crossref
    chapters: true
    chaptersDepth: 1
    figureTitle: "图"
    tableTitle: "表"
    titleDelim: " "
    chapDelim: "-"
    figPrefix: [""]
    tblPrefix: [""]
    ---
    
    ```mermaid
    graph LR
    A --> B
    ```
    
    : mermaid's caption {#fig:mermaid}
    
    ```plantuml
    A -> B
    ```
    
    : uml's caption {#fig:uml}
    
  • typst

    @glacier shows a glacier. Glaciers are complex systems.
    
    #figure(
      image("glacier.jpg", width: 80%),
      caption: [A curious figure.],
    ) <glacier>
    
    #figure(
    table(
      columns: 4,
      [t], [1], [2], [3],
      [y], [0.3s], [0.4s], [0.8s],
    ),
    caption: [Timing results],
    )
    
  • latex

    \begin{figure}[ht]        % [ht] 控制图片位置 (here, top)
    \centering              % 图片居中
    \includegraphics[width=0.5\textwidth]{example.jpg}
    
    \caption{这是标题内容}   % 自动生成 "Figure 1: 这是标题内容"
    \label{fig:my_image}    % 用于文中引用的标签
    \end{figure}
    

代码引用自动更新:typst胜出

typst原生支持代码同步!

  • 我自研的第三方插件 pandoc-code-include

    ```{.py include=convert.py snippet=main .numberLines}
    
    ```
    
  • typst

    #let text = read("code.py")
    #raw(text, block: true, lang: "python")
    
  • latex

    \usepackage{listings}
    
    \begin{lstlisting}[caption={我的 Python 代码}, label={lst:example}, language=Python]
    print("Hello World")
    \end{lstlisting}
    
    % 文中引用
    如代码 \ref{lst:example} 所示...
    

语法

markdown

## 必读文档 Must Read

[👍 draw.io 流程图后期编辑](https://app.diagrams.net/): 支持导入 mermaid plantuml sql csv

[default table style 默认表格样式,✅MS-Word,❌WPS](https://github.com/jgm/pandoc/issues/3275#issuecomment-369198726)

[markdown转markdown:\$toc\$自定义目录位置](https://github.com/jgm/pandoc/wiki/Pandoc-Tricks#using-markdown-templates)

[用markdown写论文@geChunYu](https://ge-chunyu.github.io/posts/2019-11-pandoc-large-document/)

[用markdown写论文@st1020](https://st1020.com/write-thesis-with-markdown-part1/)

**关键词:** Markdown; Pandoc

\newpage

<div custom-style="Title">
Based on pandoc word template
</div><div custom-style="Abstract Title">
Abstract
</div>

Write abstract here.

**Key Words:** Markdown; Pandoc

</div>

<br section>

# Heading 1

## Heading 2

### Heading 3

#### Heading 4

##### Heading 5

###### Heading 6

首段落 First Paragraph.
正文Normal, 正文字体Body Text. `Verbatim Char代码字体` [超链接Hyperlink](https://github.com/AClon314 "mouse-over-hint") 脚注Footnote [^1]

[^1]: footnote.

**Bold** _Italic_ ~~Delete~~

1. 有序列表
   1. 11
      1. 111
         1. 1111
            1. 11111
               1. 111111
   1. 12
1. 2

- 无序列表
  - 11
    - 111
      - 1111
        - 11111
          - 111111
  - 12
- 2

如表[@tbl:table]。如图[@fig:ID]。

| Compact |  b  |
| :-----: | :-: |
|    1    |  2  |

: simple_tables see https://pandoc.org/chunkedhtml-demo/8.9-tables.html {#tbl:table}

::: {custom-style="Figure"}
| a | b |
| :---: | :---: |
| 1 | 2 |
表{} 表名
:::

![invert](https://images7.memedroid.com/images/UPLOADED819/64a1d3e2c44ae.jpeg){#fig:ID}

```dot
digraph G {
    rankdir=TB;
    subgraph L {
        rank = same;
        b -> a [dir=back];  // b ← a
    }
    subgraph R {
        rank = same;
        c -> d;  // c → d
    }
    b -> c
}
```

```plantuml
@startuml
Bob->Alice: Hi Alice
@enduml
```

```{.py include=convert.py snippet=main .numberLines}

```

> quote

```python {.numberLines}
#!/bin/env python
if __name__ == "__main__":
    print("👻")
```

\newpage

# 参考文献

::: {#refs}
:::

typst

== 必读文档 Must Read

- #link("https://app.diagrams.net/")[👍 draw.io 流程图后期编辑]: 支持导入 mermaid plantuml sql csv
- #link("https://github.com/jgm/pandoc/issues/3275#issuecomment-369198726")[default table style 默认表格样式,✅MS-Word,❌WPS]
- #link("https://github.com/jgm/pandoc/wiki/Pandoc-Tricks#using-markdown-templates")[markdown转markdown:$toc$自定义目录位置]
- #link("https://ge-chunyu.github.io/posts/2019-11-pandoc-large-document/")[用markdown写论文@geChunYu]
- #link("https://st1020.com/write-thesis-with-markdown-part1/")[用markdown写论文@st1020]

*关键词:* Markdown; Pandoc

#pagebreak()

#align(center)[
  #text(size: 18pt, weight: "bold")[Based on pandoc word template]
]

#align(center)[
  #text(size: 14pt, weight: "bold")[Abstract]
]

Write abstract here.

*Key Words:* Markdown; Pandoc

// Pandoc 的 <br section> 通常需要模板层处理,这里略去

= Heading 1
== Heading 2
=== Heading 3
==== Heading 4
===== Heading 5
====== Heading 6

首段落 First Paragraph.

正文Normal, 正文字体Body Text. `Verbatim Char代码字体` #link("https://github.com/AClon314")[超链接Hyperlink] 脚注Footnote#footnote[footnote.]

*Bold* _Italic_ #strike[Delete]

+ 有序列表
  + 11
    + 111
      + 1111
        + 11111
          + 111111
  + 12
+ 2

- 无序列表
  - 11
    - 111
      - 1111
        - 11111
          - 111111
  - 12
- 2

如表 @tbl:table。 如图 @fig:ID。

#figure(
  table(
    columns: 2,
    align: center,
    table.header([Compact], [b]),
    [1], [2],
  ),
  caption: [simple_tables see https://pandoc.org/chunkedhtml-demo/8.9-tables.html],
) <tbl:table>

#figure(
  table(
    columns: 2,
    align: center,
    table.header([a], [b]),
    [1], [2],
  ),
  caption: [表名],
)

#figure(
  image("https://images7.memedroid.com/images/UPLOADED819/64a1d3e2c44ae.jpeg"),
  caption: [invert],
) <fig:ID>

#raw(
  "digraph G {\n    rankdir=TB;\n    subgraph L {\n        rank = same;\n        b -> a [dir=back];  // b ← a\n    }\n    subgraph R {\n        rank = same;\n        c -> d;  // c → d\n    }\n    b -> c\n}",
  block: true,
  lang: "dot",
)

#raw(
  "@startuml\nBob->Alice: Hi Alice\n@enduml",
  block: true,
  lang: "plantuml",
)

// Pandoc 的 include/snippet 属性没有直接等价物,通常改为手动读取或预处理
#let text = read("code.py")
#raw(text, block: true, lang: "py")

#quote[
  quote
]

#raw(
  "#!/bin/env python\nif __name__ == \"__main__\":\n    print(\"👻\")",
  block: true,
  lang: "python",
)

#pagebreak()

= 参考文献

// 例如:#bibliography("refs.bib")

latex

\usepackage{hyperref}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{listings}
\usepackage[normalem]{ulem} % \sout

\section{必读文档 Must Read}

\begin{itemize}
  \item \href{https://app.diagrams.net/}{👍 draw.io 流程图后期编辑}: 支持导入 mermaid plantuml sql csv
  \item \href{https://github.com/jgm/pandoc/issues/3275#issuecomment-369198726}{default table style 默认表格样式,✅MS-Word,❌WPS}
  \item \href{https://github.com/jgm/pandoc/wiki/Pandoc-Tricks#using-markdown-templates}{markdown转markdown:\$toc\$自定义目录位置}
  \item \href{https://ge-chunyu.github.io/posts/2019-11-pandoc-large-document/}{用markdown写论文@geChunYu}
  \item \href{https://st1020.com/write-thesis-with-markdown-part1/}{用markdown写论文@st1020}
\end{itemize}

\textbf{关键词:} Markdown; Pandoc

\newpage

\begin{center}
  {\LARGE\bfseries Based on pandoc word template\par}
  \vspace{1em}
  {\large\bfseries Abstract\par}
\end{center}

Write abstract here.

\textbf{Key Words:} Markdown; Pandoc

% Pandoc 的 <br section> 通常需要文档类或模板层处理

\section{Heading 1}
\subsection{Heading 2}
\subsubsection{Heading 3}
\paragraph{Heading 4}
\subparagraph{Heading 5}
\textbf{Heading 6}

首段落 First Paragraph.

正文Normal, 正文字体Body Text. \texttt{Verbatim Char代码字体} \href{https://github.com/AClon314}{超链接Hyperlink} 脚注Footnote\footnote{footnote.}

\textbf{Bold} \textit{Italic} \sout{Delete}

\begin{enumerate}
  \item 有序列表
  \begin{enumerate}
    \item 11
    \begin{enumerate}
      \item 111
      \begin{enumerate}
        \item 1111
        \begin{enumerate}
          \item 11111
          \begin{enumerate}
            \item 111111
          \end{enumerate}
        \end{enumerate}
      \end{enumerate}
    \end{enumerate}
    \item 12
  \end{enumerate}
  \item 2
\end{enumerate}

\begin{itemize}
  \item 无序列表
  \begin{itemize}
    \item 11
    \begin{itemize}
      \item 111
      \begin{itemize}
        \item 1111
        \begin{itemize}
          \item 11111
          \begin{itemize}
            \item 111111
          \end{itemize}
        \end{itemize}
      \end{itemize}
    \end{itemize}
    \item 12
  \end{itemize}
  \item 2
\end{itemize}

如表~\ref{tbl:table}。如图~\ref{fig:ID}。

\begin{table}[htbp]
  \centering
  \begin{tabular}{cc}
    \toprule
    Compact & b \\
    \midrule
    1 & 2 \\
    \bottomrule
  \end{tabular}
  \caption{simple\_tables see \url{https://pandoc.org/chunkedhtml-demo/8.9-tables.html}}
  \label{tbl:table}
\end{table}

\begin{table}[htbp]
  \centering
  \begin{tabular}{cc}
    \toprule
    a & b \\
    \midrule
    1 & 2 \\
    \bottomrule
  \end{tabular}
  \caption{表名}
\end{table}

\begin{figure}[htbp]
  \centering
  % 远程图片通常需要先下载到本地再插入
  \includegraphics[width=.6\linewidth]{invert.jpeg}
  \caption{invert}
  \label{fig:ID}
\end{figure}

\begin{lstlisting}[caption={Graphviz DOT}, language={}]
digraph G {
    rankdir=TB;
    subgraph L {
        rank = same;
        b -> a [dir=back];  % b <- a
    }
    subgraph R {
        rank = same;
        c -> d;  % c -> d
    }
    b -> c
}
\end{lstlisting}

\begin{lstlisting}[caption={PlantUML}, language={}]
@startuml
Bob->Alice: Hi Alice
@enduml
\end{lstlisting}

% Pandoc 的 include/snippet 属性通常要改成预处理或 \lstinputlisting
\lstinputlisting[language=Python]{convert.py}

\begin{quote}
quote
\end{quote}

\begin{lstlisting}[language=Python, numbers=left]
#!/bin/env python
if __name__ == "__main__":
    print("👻")
\end{lstlisting}

\newpage

\section{参考文献}

% 例如:\bibliographystyle{plain}
% \bibliography{refs}