Forgot password?
 Create new account
View 24|Reply 0

在beamer类中用tikz-cd须加fragile解决宏展开的问题

[Copy link]

3148

Threads

8489

Posts

610K

Credits

Credits
66148
QQ

Show all posts

hbghlyj Posted at 6 days ago |Read mode
beamerでtikzcdが使えないです
Beamer Tikz-cd Problem
在使用 LaTeX 的 beamer 类时,若在幻灯片中插入 tikz-cd 绘制的交换图,通常需要为对应的 frame 添加 fragile 选项,即使用如下结构:
  1. \begin{frame}[fragile]
  2.   \frametitle{交换图示例}
  3.   \[
  4.     \begin{tikzcd}
  5.       A \arrow[r] \arrow[d] & B \arrow[d] \\
  6.       C \arrow[r] & D
  7.     \end{tikzcd}
  8.   \]
  9. \end{frame}
Copy the Code

因为 tikz-cd 中的命令涉及 &

手机版Mobile version|Leisure Math Forum

2025-4-20 12:32 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list