![]() ![]() However, this means, you have to have lua installed, learn the language, and it is up to you if you think its worth the time investment. On pandoc github you can check out a sample lua script file for custom html output. I haven't tried this out but it would be worth investigating. meaning you could potentially define section breaks and page layout for a specific block inserting the sectPr tag into the document. Recently the custom writer has been added that allows for a custom lua script, where you should be able to define how certain Pandoc blocks will be written into the output file. ![]() The only page layout option that you can define through styles is the pageBreakBefore which will add a page break before a certain style Option #2 (seems elegant but hasn't been tested): Option #1 (doesn't solve the page orientation problem): ![]() The docx writer builds by default a continuous document, with elements such as headers, paragraphs, simple tables and so on. The page layout on the other hand is saved in the /word/document.xml component in the tag, but pandoc's docx writer ignores this part as far as I can tell. Which are styles that are saved in the /word/styles.xml component of the docx document. Image Caption Default Paragraph Font, Body Text Char, Theįollowing styles are used by pandoc: Normal, Title,Īuthors, Date, Heading 1, Heading 2, Heading 3, Heading 4, Heading 5,īlock Quote, Definition Term, Definition, Body Text, Table Caption, This is not found either, sensible defaults will be used. Reference docx is specified on the command line, pandoc will look forĪ file reference.docx in the user data directory (see -data-dir). The contents of the reference docxĪre ignored, but its stylesheets are used in the new docx. Use the specified file as a style reference in producing a docx file.įor best results, the reference docx should be a modified version of aĭocx file produced using pandoc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |