想知道如何在夸托表示中获得多列夸托。Test1.qmd的代码如下:
---
title: "Test"
author: "A B c"
format:
revealjs:
toc: true
toc_float: true
toc-depth: 2
toc-location: body
toc-title: "Contents"
css: styles.css
---
# Intro1
## Intro11
AS
# Intro2
## Intro21
AS

发布于 2022-04-11 10:23:55
我不知道现有的YAML多列TOC。
为了达到预期的结果,您可以将CSS代码放在styles.css下面。
.reveal ul {
display: flex;
justify-content: space-evenly; /* space-around */
}为了记录在案,我们可以将内容放在并排柱中。
再次运行.qmd
---
title: "Test"
author: "M Yaseen"
format:
revealjs:
toc: true
toc_float: true
toc-depth: 2
toc-location: body
toc-title: "Contents"
css: styles.css
---
# Intro 1
## Intro 1.1
:::: {.columns}
::: {.column width="40%"}
Content in left column
:::
::: {.column width="60%"}
Content in right column
:::
::::
# Intro 2
## Intro 2.1
Content...
# Intro 3
## Intro 3.1
Content...
# Intro 4
## Intro 4.1
Content...输出:

https://stackoverflow.com/questions/71796148
复制相似问题