Skip to content
Discussion options

You must be logged in to vote

The Source Code style gets created dynamically by Pandoc depending on the selected syntax highlighting style when the output is created -- see #10646. The Source Code paragraph style will be based on the Verbatim Char character style, so if you want to change the font used in Source Code paragraphs, you need to modify the Verbatim Char style and specify the desired font there.

Note that inline code elements (Code in pandoc's AST) have to use a character style (Verbatim Char) and cannot use a paragraph style, since a paragraph style always applies to a whole paragraph, as the name suggests.

This article may also contain some useful tips for generating DOCX files with pandoc (shameless plug…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@PlainMartin
Comment options

Answer selected by PlainMartin
Comment options

You must be logged in to vote
1 reply
@rnwst
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants