How to reset a continuous list? #7496
-
DescriptionQuarto allows listings with interruptions (a continuous list). This can be achieved using (
My question is regarding having more than one continuous list in the same Quarto file For example:
In my tests, the numbering just continues without resetting. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
-
According to the Pandoc Manual, a ## Ending a list
What if you want to put an indented code block after a list?
- item one
- item two
{ my code block }
Trouble! Here pandoc (like other Markdown implementations) will treat { my code block } as the second paragraph of item two, and not as a code block.
To “cut off” the list after item two, you can insert some non-indented content, like an HTML comment, which won’t produce visible output in any format:
- item one
- item two
<!-- end of list -->
{ my code block }
You can use the same trick if you want two consecutive lists instead of one big list:
1. one
2. two
3. three
<!-- -->
1. uno
2. dos
3. tres Unfortunately, it doesn't seems to work with Quarto. ### Figures
See [Code Cells](https://quarto.org/docs/reference/cells/).
(@) Create a new figure environment.
Name it ` abntfigure` and include an `\quartolegend` in the end.
Use `\notblank` from `etoolbox` package to add a conditional layer.
(@) Add the new environment to `fig-env` in `_extension.yml`.
<!-- -->
### Tables
(@) Add a hook at the end of the `longtable` environment.
Include the `\quartolegend` and utilize `\notblank` from `etoolbox` package to add a conditional layer. Render: |
Beta Was this translation helpful? Give feedback.
Here your question is about using a specific list which example list and the Manual says:
I don't think those can be ended or reset. You can try your code with Pandoc only and see that it will indeed continue.
This should be asked on Pandoc community directly like https://groups.google.com/g/pandoc-discuss/
The part about https://pandoc.org/MANUAL.html#ending-a-list is impacted other type of list where continuation can be stopped. I believe.