Skip to content

Commit

Permalink
Create dual_language_caption.md
Browse files Browse the repository at this point in the history
  • Loading branch information
flaribbit authored Jan 19, 2025
1 parent a91431f commit 0771c0c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/FAQ/dual_language_caption.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
tags: [figure, show]
---

# figure 的 caption 如何实现双语?

我个人推荐封装一个myfig(body, zhcaption, encaption)

然后调用figure(body, kind: 'myfig', caption: metadata((.......zhcaption......encaption)))

然后show figure.where(kind: 'myfig')从metadata里把双语拿出来

```typst
等人来写()
```

0 comments on commit 0771c0c

Please sign in to comment.