First cut of a generic document production pipeline (server)
This commit is contained in:
23
PDF/GeneratePDF.sh
Normal file
23
PDF/GeneratePDF.sh
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
export MarkdownInput
|
||||
MarkdownInput="$1"
|
||||
|
||||
export PDFOutput
|
||||
PDFOutput="$2"
|
||||
|
||||
export PDFMetadataFileInput
|
||||
PDFMetadataFileInput="$3"
|
||||
|
||||
export PDFMetadataFile
|
||||
PDFMetadataFile="$4"
|
||||
|
||||
$MO_PATH $YamlInputTemplateFile > $PDFMetadataFile
|
||||
|
||||
pandoc \
|
||||
$MarkdownInput \
|
||||
--template $PANDOC_TEMPLATE \
|
||||
--metadata-file=$PDFMetadataFile \
|
||||
--from markdown \
|
||||
--to=pdf \
|
||||
--output $PDFOutput
|
14
PDF/SupportMaterials/PDFMetadata.yml
Normal file
14
PDF/SupportMaterials/PDFMetadata.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
title: tbd
|
||||
titlepage: true
|
||||
author: tbd
|
||||
date: \today
|
||||
toc: true
|
||||
toc-own-page: true
|
||||
header-left: "\\hspace{1cm}"
|
||||
header-center: "\\leftmark"
|
||||
header-right: "Page \\thepage"
|
||||
footer-left: "\\thetitle"
|
||||
footer-center: "Copyright ReachableCEO Enterprises LLC"
|
||||
footer-right: "\\theauthor"
|
||||
page-background: "tbd"
|
||||
titlepage-logo: "tbd"
|
Reference in New Issue
Block a user