A pandoc filter to generate figures from source code
Pandoc-plot is a pandoc filter designed to generate figures from source code directly within Pandoc documents. This tool simplifies the process of embedding dynamic visualizations by supporting multiple plotting tools (e.g., matplotlib, ggplot2) and enabling seamless integration into LaTeX/PDF workflows.
Key Features:
Support for various plotting libraries and frameworks
Automatic figure numbering and referencing
Cross-platform compatibility
Integration with Pandoc's ecosystem
Extensibility via plugins or custom rendering
Ideal for researchers, technical writers, and educators who need to include high-quality, reproducible figures in their documents. Pandoc-plot helps reduce manual work while maintaining document integrity and visual appeal. It can be installed via winget for easy setup across platforms.
README
pandoc-plot
A Pandoc filter to generate figures from code blocks in documents
pandoc-plot turns code blocks present in your documents (Markdown, LaTeX, etc.) into embedded figures, using your plotting toolkit of choice, including Matplotlib, ggplot2, MATLAB, Mathematica, and more.
Overview
This program is a Pandoc filter. It can therefore
be used in the middle of conversion from input format to output format,
replacing code blocks with figures.
The filter recognizes code blocks with classes that match plotting
toolkits. For example, using the matplotlib toolkit:
# My document
This is a paragraph.
```{.matplotlib}
import matplotlib.pyplot as plt
plt.figure()
plt.plot([0,1,2,3,4], [1,2,3,4,5])
plt.title('This is an example figure')
```
Putting the above in input.md, we can then generate the plot and embed
it in an HTML page:
Doxygen is a widely-used documentation generator tool in software development. It automates the generation of documentation from source code comments, parsing information about classes, functions, and variables to produce output in formats like HTML and PDF. By simplifying and standardizing the documentation process, Doxygen enhances collaboration and maintenance across diverse programming languages and project scales.
Metanorma is the award-winning open-source standards authoring and publishing framework. With a focus on semantic authoring and flexible output support, many standards development organizations depend on Metanorma for making their standards available to the world. More information at https://www.metanorma.org/
Hugo is one of the most popular open-source static site generators.
With its amazing speed and flexibility, Hugo makes building websites fun again.
Hugo is available in two flavors: standard and extended.
With the extended flavor you can:
- Encode WebP images (decoding is also available in the standard build)
- Transpile Sass to CSS using the embedded LibSass transpiler
Help+Manual is a single-source help authoring and content management system for both single and multi-author editing. Working with Help+Manual is as easy as writing text with a word processor. Help+Manual scales from small to really large projects with thousands of pages and creates Windows help files, Webhelp and manuals in print and PDF format. Try yourself and download a trial of Help+Manual! Writing help has never been easier.
Help+Manuals working environment gives you all the formatting and editing features of a modern word processor, including dynamic styles and complex tables. The software creates all classic help file and documentation formats:
* Microsoft HTML Help (.chm)
* Visual Studio Help
* Webhelp for integration into your website
* User manuals in Adobe PDF format
* Apple iPad e-books
Features:
* Multiple output from one single source
* All outputs are highly customizeable
* PDF manuals with active hyperlinks
* Built-in multi-user authoring capabilities
* Tools includes: reports, translation assistants, image and screen shot tools
Single source, Multiple output
Single source is much more than just outputting exactly the same information to different formats. Help+Manual supports conditional and customized output features that enable you to include variant content versions for different output formats and purposes - all in the same project, no post-processing is required.
Help+Manual handles all the complexities of help formatting and generation for you, letting you concentrate on the work of writing. But there is also extensive support for power users and experienced help authors. You can get under the hood and insert your own HTML code, change the code the program uses to generate your projects, manipulate topic and project templates and more.
Help+Manual gives you the best of both worlds.
Download the fully functional evaluation version to try Help+Manual for 30 days!
Doxygen is a widely-used documentation generator tool in software development. It automates the generation of documentation from source code comments, parsing information about classes, functions, and variables to produce output in formats like HTML and PDF. By simplifying and standardizing the documentation process, Doxygen enhances collaboration and maintenance across diverse programming languages and project scales.
Metanorma is the award-winning open-source standards authoring and publishing framework. With a focus on semantic authoring and flexible output support, many standards development organizations depend on Metanorma for making their standards available to the world. More information at https://www.metanorma.org/
Hugo is one of the most popular open-source static site generators.
With its amazing speed and flexibility, Hugo makes building websites fun again.
Hugo is available in two flavors: standard and extended.
With the extended flavor you can:
- Encode WebP images (decoding is also available in the standard build)
- Transpile Sass to CSS using the embedded LibSass transpiler
Help+Manual is a single-source help authoring and content management system for both single and multi-author editing. Working with Help+Manual is as easy as writing text with a word processor. Help+Manual scales from small to really large projects with thousands of pages and creates Windows help files, Webhelp and manuals in print and PDF format. Try yourself and download a trial of Help+Manual! Writing help has never been easier.
Help+Manuals working environment gives you all the formatting and editing features of a modern word processor, including dynamic styles and complex tables. The software creates all classic help file and documentation formats:
* Microsoft HTML Help (.chm)
* Visual Studio Help
* Webhelp for integration into your website
* User manuals in Adobe PDF format
* Apple iPad e-books
Features:
* Multiple output from one single source
* All outputs are highly customizeable
* PDF manuals with active hyperlinks
* Built-in multi-user authoring capabilities
* Tools includes: reports, translation assistants, image and screen shot tools
Single source, Multiple output
Single source is much more than just outputting exactly the same information to different formats. Help+Manual supports conditional and customized output features that enable you to include variant content versions for different output formats and purposes - all in the same project, no post-processing is required.
Help+Manual handles all the complexities of help formatting and generation for you, letting you concentrate on the work of writing. But there is also extensive support for power users and experienced help authors. You can get under the hood and insert your own HTML code, change the code the program uses to generate your projects, manipulate topic and project templates and more.
Help+Manual gives you the best of both worlds.
Download the fully functional evaluation version to try Help+Manual for 30 days!
To know which toolkits are useable on your machine (and which ones are
not available), you can check with the toolkits command:
pandoc-plot toolkits
Wish your plotting toolkit of choice was available? Please raise an
issue!
Documentation
You can find more information in the documentation, available either in the
source repository file MANUAL.md, on the webpage, or via the command pandoc-plot --manual.
Installation
Binaries and Installers
Windows, Linux, and Mac OS binaries are available on the GitHub release
page. There are
also Windows installers.
HelpNDoc is a help authoring tool which can produce HTML web-sites, CHM help files, PDF and Word documents, iPhone web-sites, ePub and Kindle eBooks as well as QtHelp files from a single source.
HelpNDoc is a help authoring tool which can produce HTML web-sites, CHM help files, PDF and Word documents, iPhone web-sites, ePub and Kindle eBooks as well as QtHelp files from a single source.
HelpNDoc is a help authoring tool which can produce HTML web-sites, CHM help files, PDF and Word documents, iPhone web-sites, ePub and Kindle eBooks as well as QtHelp files from a single source.