Forgot password
 Register account
View 101|Reply 0

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

[Copy link]

3156

Threads

7932

Posts

45

Reputation

Show all posts

hbghlyj posted 2025-4-14 10:12 |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 中的命令涉及 &

Quick Reply

Advanced Mode
B Color Image Link Quote Code Smilies
You have to log in before you can reply Login | Register account

$\LaTeX$ formula tutorial

Mobile version

2025-6-8 15:57 GMT+8

Powered by Discuz!

Processed in 0.018017 second(s), 21 queries

× Quick Reply To Top Edit