[英]How to create an automatic nested list and sub-lists with letters and/or Roman numerals in R-markdown?
我正在嘗試生成包含數字,字母和羅馬數字的嵌套列表。 R-Markdown速查表顯示
但是,這會生成帶有無序項目符號的子列表。 取而代之的是,我需要帶有字母的子列表和帶有羅馬數字的子子列表,如下所示:
1. What geoms would you use to draw the followings?
a. A line chart
i) `geom_line()`
b. A boxplot
ii) `geom_boxplot()`
有什么辦法嗎? 謝謝,
幸運的是,我在另一個R-Markdown速查表中找到了問題的答案。 關鍵是在子列表項之前放置4個空格或2個縮進 ,在子子列表項之前放置8個空格或4個縮進 。 以下是我在R-Markdown中的代碼:
1. What geoms would you use to draw the followings?
a. A line chart
i. `geom_bar()`
i. `geom_line()`
a. A boxplot
i. `geom_boxplot()`
i. box
a. A histogram: `geom_histogram()`
a. An area chart: `geom_area()`
輸出是這樣的:
1. What geoms would you use to draw the followings?
a. A line chart
i. `geom_bar()`
ii. `geom_line()`
b. A boxplot
iii. `geom_boxplot()`
iv. box
c. A histogram: `geom_histogram()`
d. An area chart: `geom_area()`
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.