# mdsh flow

A Bash script creates a `PDF` document from `MDSH` source (in this case container/content) with `LaTeX` as intermediary format. Base functionalities include markdown formatting, footnotes and bibliographical references. The functional range may be extended through macro-style Bash Actions. Triggered via `makefile`. Pretty much proof of concept. Needs to be refined.

The command `% SUPERIMPOSE` inserts/overlays pages (prepared/edited in Inkscape) over the main document (rendered with LaTeX).
The command triggers a Bash Function that creates multiple pdf pages from an Inkscape SVG and a writes a LaTeX Macro to include these pages at the marked position.

## More Commands Used:

• `% INCLUDE:` Includes another `MDSH` document.
• `% EXTENDFUNCTIONS:` Add more functions from within your `MDSH` document.
• `% TREATCAMELCASE:` Attaches a LaTeX style to all CamelCase words.
• `% EMPTYPAGE:` Injects LaTeX Macro to inserts an empty page.
• `% USEPACKAGE:` Adds `\usepackage` to LaTeX preamble.
• `% FRONTCOVER:` Creates 2 PDF pages from an Inkscape SVG and adds them to the document
• `% BACKCOVER:` Creates 2 PDF pages from an Inkscape SVG and adds them to the document. Inserts a LaTeX Macro to make sure the full amount of pages is dividable by 4 by inserting empty pages if necessary.