cmake-pandocology

(★ 39)

Compile documents using Pandoc under the CMake build system

File Explorer

  • .gitignore
  • cmspandoc.cmake
  • pandocology.cmake
  • README.md

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

cmake

View Details ▼

Cross-platform build automation system, that generates recipes for native build systems.

cmake {{path/to/project_directory}}

Generate a build recipe in the current directory with `CMakeLists.txt` from a project directory:

cmake --build {{path/to/build_directory}}

Use a generated recipe in a given directory to build artifacts:

cmake --install {{path/to/build_directory}} --strip

Install the build artifacts into `/usr/local/` and strip debugging symbols:

🔍

pandoc

View Details ▼

Convert documents between various formats.

pandoc {{path/to/input.md}} {{[-o|--output]}} {{path/to/output.pdf}}

Convert a Markdown file to PDF using `pdflatex` (the formats are determined by file extensions):

{{command}} | pandoc {{[-f|--from]}} {{input_format}} --pdf-engine {{tectonic|weasyprint|typst|...}} {{[-o|--output]}} {{path/to/output.pdf}}

Convert the output from another command to PDF, using a specific PDF engine:

pandoc {{path/to/input.md}} {{[-s|--standalone]}} {{[-o|--output]}} {{path/to/output.html}}

Convert to a standalone file with the appropriate headers/footers (for LaTeX, HTML, etc.):

// repository documentation