hugo-theme-vivliocli
hugo-theme-vivliocli is a Hugo theme for building a document site that can output typeset PDFs. By using Vivliostyle CLI , any section of the site can be output as a PDF, including a cover page, table of contents, bookmarks, chapter numbers, and page numbers.
Features¶
Typeset PDF output¶
Any section with a _pdf.md
file can be output as a typeset PDF with a cover page, table of contents, bookmarks, chapter numbers, and page numbers (using
Vivliostyle CLI
). The output format can be either a book-style with left / right pages or a simple style with all pages the same. Chapter numbers are automatically assigned based on the hierarchy of Markdown files and the header levels in each file. The output level of chapter numbers and the format of the top level (e.g., “Chapter X”) can be specified.
This User Guide also serves as a sample for Hugo-theme-vivliocli. The PDF can be found here .
Drawing complex tables with cell merging¶
By using the include shortcode, you can load a csv file within Markdown and easily draw complex tables. You can merge cells vertically using ||
and horizontally using ->
. You can also use Markdown syntax in each cell and specify styles such as column width and text alignment.
category | name | Varieties |
---|---|---|
Fruit | Apple | Jonathan |
Orange |
| |
Grapes | Delaware |
Support for Mermaid and Mathjax¶
You can use Mermaid and Mathjax to utilize powerful diagram, chart, and formula drawing capabilities.
Multiple edition PDF output¶
By using the ShowIf
/ HideIf
shortcode, you can write blocks or files that are output only for specific editions. This allows you to output PDFs for multiple editions with different details.
Usage¶
First, please refer to Getting Started .
Requirements¶
- Hugo (v0.114.0 or later)
- Vivliostyle CLI (v8.6.0 or later)