Replies: 3 comments 5 replies
-
|
@ptram it would be appreciated for the future if you could make your example more complete and using code blocks to make it easy for everyone to use/help. This being said that's Pandoc: echo "* This is just an example of a bullet point. " > index.qmd
quarto pandoc index.qmd --from markdown --to docx -o index.docxYou can share a self-contained "working" (reproducible) Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four If you have multiple files (and if it is absolutely required to have multiple files), please share as a Git repository.
Additionally and if not already given, please share the output of |
Beta Was this translation helpful? Give feedback.
-
|
@mcanouil very sorry, but I'm very primitive in using GitHub. This is an example of the code: You can also find the DOCX template in the attached zip file, together with the Markdown code and the resulting DOCX output. If I understand correctly from your answer, I'm doing the right thing with lists. Only, I wonder why the Compact paragraph style is assigned to the lists, instead of a dedicated Numbered and Bulleted style. This is my quarto check output: Quarto 1.4.551 [✓] Checking tools....................OK [✓] Checking LaTeX....................OK [✓] Checking basic markdown render....OK [✓] Checking Python 3 installation....OK [✓] Checking Jupyter engine render....OK [✓] Checking R installation...........(None) |
Beta Was this translation helpful? Give feedback.
-
|
If you use the loose format to create the list, then you'll get Normal as paragraph style in default template ---
title: A test about lists
author: Me Myself
format: docx
---
This is a bulletted list:
* A first item.
* A second item.
And this is a numbered list:
1. This is the first one.
2. This is the second one.
3. And this is the third.
All the above have the Compact paragraph style assigned.
This is a bulletted list in loose form:
* A first item.
* A second item.
And this is a numbered list in loose form:
1. This is the first one.
2. This is the second one.
3. And this is the third.
All the above have the Normal paragraph style assigned.
Note the two ways to create lists (as shown in the doc share in linked in previous thread) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hi,
When converting a Markdown document to DOCX, using the standard DOCX template generated by Quarto, lists are converted to Compact-type paragraphs. This is both with bulleted and numbered lists.
For example, this code:
* This is just an example of a bullet point.or this:
1. And this is an example of a numbered point.are converted to paragraphs with the Compact paragraph style applied. A bullet is prefixed to the first example, and the shown number to the second one.
and
I know that I can create the relevant fenced styles for Bulleted and Numbered paragraphs, but I wonder if – being these very basic styling – something is already available, and I'm just doing something wrong with my syntax.
Beta Was this translation helpful? Give feedback.
All reactions