3

In R-Markdown you can automatically create lettered lists using the following code:

---
title: "Untitled"
author: "Author"
date: "2022-07-21"
output: html_document
---

# Example

a) something
a) something

Output:

enter image description here

I tried using the same commands in Quarto:

---
title: "Untitled"
format: html 
editor: visual
---

a) something

a) something

Output:

enter image description here

So I was wondering if it is possible to automatically create lettered lists in Quarto?

Quinten
  • 35,235
  • 5
  • 20
  • 53
  • Though for some reason, I can't see the images (most probably, due to a network issue from my end), Your code actually working for me, that is, I am getting numbered list – shafee Jul 25 '22 at 01:40
  • Hi @shafee, thank you for your response. I know that it generates a lettered list, but now you should manually change the letters every time like a,b,c for example, while in rmarkdown you can do a,a,a which returns in a,b,c as you could see on the image (if your network is fixed maybe). Another thing is that in Quarto the list is not aligned that well, while in rmarkdown you can see that is nicely aligned. – Quinten Jul 25 '22 at 07:54
  • 1
    No, even if I use a, a, a, quarto rendering it as a, b, c in the output for my case, also I am not seeing any problem with alignment. Should I post an answer with the image of my output? @Quinten – shafee Jul 25 '22 at 07:58
  • @shafee, That would be great if possible, thanks for your input! – Quinten Jul 25 '22 at 09:02
  • I have added the pic of the rendered output, hopefully I got it right – shafee Jul 25 '22 at 09:30

1 Answers1

3
---
title: "Untitled"
format: html 
---

this is a numbered list

1) something 1 
1) something 2

this is lettered list

a) something
a) something
a) something
a) something

list in quarto

shafee
  • 15,566
  • 3
  • 19
  • 47
  • Thanks for your answer! Do you run this in a separate chunk? When I run this in a chunk, I don't get your results like that. – Quinten Jul 25 '22 at 10:09
  • I ran this exactly as it is posted here. Sorry, I don't get it. What do you mean by separate chunk here ?? – shafee Jul 25 '22 at 10:13
  • it works thanks! I meant that it didn't work if I run your code outside the chunk. – Quinten Jul 25 '22 at 10:16