

Now a new section with a landscape orientation should surround your table. select the table you want on the landscape page.I recommend that you use pandoc to put write your document.docx, that you open in Word, and do the layout by hand:
#Helpndoc paper orientation how to#
Optin #3 (a couple of clicks in Word might just do):Īs you will probably spend quite some time setting up how to insert sections and what would be the right size, margins, and figuring how to fit the table to such a layout. 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.

#Helpndoc paper orientation free#
Feel free to try it for as long as needed and as always, enjoy documenting!.I am pretty sure the docx writer has no section breaks implemented, also as far as I understand -reference-docx allows for customizing styles and not the page layout (but I might also be wrong here), this is from pandocs guide on -reference-docx: -reference-docx= FILE HelpNDoc is free for personal use and evaluation purposes. You can also learn more about templates from the documentation, or from various articles on this web-site. You can inspect one of the templates bundled with HelpNDoc (Single page HTML template, iPhone template, jQuery mobile template…) to see some additional examples. This is a very small preview of HelpNDoc’s template capabilities. In this article, we created a new template to customize icons in the table of contents. Thanks to HelpNDoc’s very powerful template system, it is possible to customize almost any part of the generated documentation projects.
