Markdown 如何使用降价制作字母列表?
允许使用数字排序列表。我如何使用字母来获得有序列表?i、 e 而不是Markdown 如何使用降价制作字母列表?,markdown,Markdown,允许使用数字排序列表。我如何使用字母来获得有序列表?i、 e 而不是 1. the number 1 2. the number 2 3. etc. 标准降价似乎没有这种功能。你可以: 使用CSS,将其放在降价文档中的某个位置(注意,这将影响文档中的所有有序列表) ol{列表样式类型:上alpha;} 使用markdown的扩展版本。Pandoc markdown有一个fancy_List扩展,允许您使用字母和罗马数字标记列表 标准降价似乎没有这种功能。你可以: 使用CSS,将其放在降
1. the number 1
2. the number 2
3. etc.
标准降价似乎没有这种功能。你可以:
ol{列表样式类型:上alpha;}
fancy_List
扩展,允许您使用字母和罗马数字标记列表
标准降价似乎没有这种功能。你可以:
ol{列表样式类型:上alpha;}
fancy_List
扩展,允许您使用字母和罗马数字标记列表
至少对于Pandoc的最新版本(我使用的是1.13.1版),看起来您可以使用一些
fancy_list
语法,而无需启用扩展,例如:
I. One
A. two
1. three
2. four
i. five
ii. six
- seven
* eight
II. Nine
要将其编译为PDF,您可以运行:
pandoc input.md -o output.pdf
注意:要使其起作用,您必须确保在任何字母或罗马数字后添加额外的空格:使用两个空格代替项目符号和文本之间通常的一个空格。(请参阅)至少对于最新版本的Pandoc(我使用的是1.13.1版),看起来您可以使用一些
花式列表
语法,而无需启用扩展,例如:
I. One
A. two
1. three
2. four
i. five
ii. six
- seven
* eight
II. Nine
要将其编译为PDF,您可以运行:
pandoc input.md -o output.pdf
注意:要使其起作用,您必须确保在任何字母或罗马数字后添加额外的空格:使用两个空格代替项目符号和文本之间通常的一个空格。(请参阅)标记本身无法做到这一点,但由于您可以将HTML放入其中,这提供了一种非常简单的方法:
<ol type="a">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
咖啡
茶
牛奶
某些平台上的某些派生可能只解释非常严格的HTML子集。例如,不支持
类型
属性。但确实如此,而且标记本身也不能做到这一点,但由于您可以将HTML放入其中,这提供了一种非常简单的方法:
<ol type="a">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
咖啡
茶
牛奶
某些平台上的某些派生可能只解释非常严格的HTML子集。例如,不支持类型
属性。但是确实如此,而且也确实如此。派对迟到了,但这可能有助于其他人寻找降价的解决方案
在R Markdown中,它是直截了当的。下面的最小示例列出了.rmd
显示了不同的类型:
---
title: "Lists"
output: pdf_document
---
A list with bullet points:
- Something
- Something else
A numeric list:
1. Something
1. Something else
A list using small letters:
a) Something
a) Something else
A list using capital letters:
A) Something
A) Something else
这是为了:
派对迟到,但这可能有助于其他人寻找降价解决方案
在R Markdown中,它是直截了当的。下面的最小示例列出了.rmd
显示了不同的类型:
---
title: "Lists"
output: pdf_document
---
A list with bullet points:
- Something
- Something else
A numeric list:
1. Something
1. Something else
A list using small letters:
a) Something
a) Something else
A list using capital letters:
A) Something
A) Something else
这是为了:
要进行缩进格式设置,我使用以下方法:
<style type="text/css">
/* Indent Formatting */
/* Format: a-1-i-A-1-I */
ol {list-style-type: lower-alpha;}
ol ol { list-style-type: decimal;}
ol ol ol { list-style-type: lower-roman;}
ol ol ol ol { list-style-type: upper-alpha;}
ol ol ol ol ol { list-style-type: decimal;}
ol ol ol ol ol ol { list-style-type: upper-roman;}
/* https://www.w3schools.com/cssref/pr_list-style-type.asp */
/* https://stackoverflow.com/questions/11445453/css-set-li-indent */
/* https://stackoverflow.com/questions/13366820/how-do-you-make-lettered-lists-using-markdown */
</style>
/*缩进格式*/
/*格式:a-1-i-a-1-i*/
ol{list样式类型:lower alpha;}
ol{list样式类型:decimal;}
ol{列表样式类型:下罗马;}
ol{列表样式类型:上alpha;}
ol{列表样式类型:decimal;}
ol{列表样式类型:上罗马;}
/* https://www.w3schools.com/cssref/pr_list-style-type.asp */
/* https://stackoverflow.com/questions/11445453/css-set-li-indent */
/* https://stackoverflow.com/questions/13366820/how-do-you-make-lettered-lists-using-markdown */
底部的链接指向我获取信息的地方。格式在第二行解释。要进行缩进格式设置,我使用的是:
<style type="text/css">
/* Indent Formatting */
/* Format: a-1-i-A-1-I */
ol {list-style-type: lower-alpha;}
ol ol { list-style-type: decimal;}
ol ol ol { list-style-type: lower-roman;}
ol ol ol ol { list-style-type: upper-alpha;}
ol ol ol ol ol { list-style-type: decimal;}
ol ol ol ol ol ol { list-style-type: upper-roman;}
/* https://www.w3schools.com/cssref/pr_list-style-type.asp */
/* https://stackoverflow.com/questions/11445453/css-set-li-indent */
/* https://stackoverflow.com/questions/13366820/how-do-you-make-lettered-lists-using-markdown */
</style>
/*缩进格式*/
/*格式:a-1-i-a-1-i*/
ol{list样式类型:lower alpha;}
ol{list样式类型:decimal;}
ol{列表样式类型:下罗马;}
ol{列表样式类型:上alpha;}
ol{列表样式类型:decimal;}
ol{列表样式类型:上罗马;}
/* https://www.w3schools.com/cssref/pr_list-style-type.asp */
/* https://stackoverflow.com/questions/11445453/css-set-li-indent */
/* https://stackoverflow.com/questions/13366820/how-do-you-make-lettered-lists-using-markdown */
底部的链接指向我获取信息的地方。第二行解释了格式。对于那些坚持标准标记的人,为每一层嵌套的不同列表样式添加css规则,例如
ol{list style-type:lower-alpha;}
和ol-ol{list-style-type:lower-roman;}
。Bitbucket使用HTML安全的标准标记,所以你真的没有任何选择。在这种情况下,我只是将字母名称放在一个项目符号后面,比如*a.列表项
。GitHub显然也忽略了.md
文件中的样式
标记。叹气:如果解决方案是HTML,为什么要急于标记以及所有的怪癖呢?@MichaelScheper Markdown非常棒,它只是有一些奇怪的特性,比如粗暴地忽略您输入的数字并选择自己的。对于那些坚持标准标记的人,添加css规则可能会有所帮助,比如ol{list style type:lower alpha;}
和ol{list style type:lower roman;}
用于不同嵌套级别的不同列表样式。Bitbucket使用HTML安全标准标记,因此您确实没有任何选项。在这种情况下,我只是将字母名称放在一个项目符号后面,比如*a.List item
。GitHub显然也忽略了.md
文件中的样式
标记。叹气:那么如果解决方案是HTML,为什么要急于进行标记及其所有的怪癖呢?@MichaelScheper Markdown's grea