All Projects → prosegrinder → pandoc-templates

prosegrinder / pandoc-templates

Licence: GPL-3.0 license
An opinionated set of Pandoc templates and scripts for converting markdown to DOCX manuscripts that adhere to William Shunn's Proper Manuscript Format guidelines using Pandoc.

Programming Languages

shell
77523 projects
powershell
5483 projects
lua
6591 projects

Projects that are alternatives of or similar to pandoc-templates

Open Publisher
Using Jekyll to create outputs that can be used as Pandoc inputs. In short - input markdown, output mobi, epub, pdf, and print-ready pdf. With a focus on fiction.
Stars: ✭ 242 (+706.67%)
Mutual labels:  pandoc, publishing
Manubot
Python utilities for Manubot: Manuscripts, open and automated
Stars: ✭ 260 (+766.67%)
Mutual labels:  pandoc, publishing
com.elovirta.ooxml
DITA to Word plug-in
Stars: ✭ 19 (-36.67%)
Mutual labels:  publishing, docx
Zettlr
A Markdown Editor for the 21st century.
Stars: ✭ 6,099 (+20230%)
Mutual labels:  pandoc, docx
casile
The CaSILE toolkit, a book publishing workflow employing SILE and other wizardry.
Stars: ✭ 36 (+20%)
Mutual labels:  pandoc, publishing
Pandoc
Universal markup converter
Stars: ✭ 24,250 (+80733.33%)
Mutual labels:  pandoc, publishing
Pandoc Scholar
Create beautiful and semantically meaningful articles with pandoc.
Stars: ✭ 342 (+1040%)
Mutual labels:  pandoc, publishing
Thiefmd
The markdown editor worth stealing. Inspired by Ulysses, based on code from Quilter
Stars: ✭ 48 (+60%)
Mutual labels:  pandoc, docx
my-writing-workflow
Tutorial for converting markdown files in to APA-formatted docs, based on my workflow.
Stars: ✭ 35 (+16.67%)
Mutual labels:  pandoc, docx
thunder-distribution
A Drupal-based platform for professional publishers
Stars: ✭ 31 (+3.33%)
Mutual labels:  publishing
alice-docs
A simple and quick publishing framework utilizing Google Docs
Stars: ✭ 14 (-53.33%)
Mutual labels:  publishing
Edge
A visually aesthetic portfolio theme for Ghost
Stars: ✭ 61 (+103.33%)
Mutual labels:  publishing
sarna
Security Assessment Report geNerated Automatically
Stars: ✭ 26 (-13.33%)
Mutual labels:  docx
bookends-tools
Alfred Workflow to Integrate with Bookends, an academic reference manager/bibliography tool for macOS
Stars: ✭ 78 (+160%)
Mutual labels:  pandoc
Alto
A clean, minimalist theme featuring a light and dark mode for Ghost
Stars: ✭ 109 (+263.33%)
Mutual labels:  publishing
Palabra
tools for leaving microsoft word behind.
Stars: ✭ 19 (-36.67%)
Mutual labels:  pandoc
umdoc
A Markdown to LaTeX to PDF converter
Stars: ✭ 15 (-50%)
Mutual labels:  pandoc
paru
Control pandoc with Ruby and write pandoc filters in Ruby
Stars: ✭ 30 (+0%)
Mutual labels:  pandoc
pandoc-latex-environment
Pandoc filter for adding LaTeX environement on specific div
Stars: ✭ 27 (-10%)
Mutual labels:  pandoc
Edition
The newsletter theme for Ghost
Stars: ✭ 60 (+100%)
Mutual labels:  publishing

Pandoc Templates

An opinionated set of Pandoc templates and scripts for converting markdown to DOCX manuscripts that adhere to William Shunn's Proper Manuscript Format guidelines using Pandoc.

Getting Started

These templates and scripts aim to be easy to install and use, and consistent across Windows, Mac, and Linux. I generally use Mac and Linux at home, so Windows scripts may lag behind those.

Requirements

  • Pandoc version 2.0 or greater.

Pandoc

See the Pandoc site for full installation instructions. For Linux, I strongly suggest using LinuxBrew instead of your distribution's package manager for the same reason given in the Pandoc installation instructions. Install LinuxBrew and follow the instructions for installing on Mac via HomeBrew. Versions packaged by your distribution may be too old.

Markdown

These templates only work for short and long fiction written in Markdown. See Sustainable Authorship in Plain Text using Pandoc and Markdown if you're interested in my motivation. I hope one day soon publishers in the fiction markets will prefer submissions in Markdown over DOCX as it minimized the burden of typsetting on the author and is relatively easy to convert to many other formats (e.g. using Pandoc).

Installation

Once you have Pandoc set up, you'll need to copy these files to your local machine.

Install via Download

If you're not familiar with git, no big deal. Just download the latest release and extract it to any directory you like.

Install via Git

If you're git savvy, clone this repository:

git clone https://github.com/prosegrinder/pandoc-templates.git

Usage

Once you have the templates installed locally, you'll need to make sure your source Markdown document has the proper frontmatter.

Frontmatter

These templates assume the following frontmatter in at least one of the markdown files. The following is from the guidelines.md file used to test Shunn's Short Story Format:

title: "Proper Manuscript Format"
short_title: "Format"
author: "by William Shunn"
author_lastname: "Shunn"
contact_name: "William Shunn"
contact_address: "12 Courier Lane"
contact_city_state_zip: "Pica's Font, NY 10010"
contact_phone: "(212) 555-1212"
contact_email: "[email protected]"

Optional properties for the frontpage:

subtitle: Optional field
abstract: |-
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Nam libero justo laoreet sit amet cursus. Etiam erat velit scelerisque in dictum non consectetur a. Duis tristique sollicitudin nibh sit amet commodo nulla.

md2short.sh

The script simplifies the process of converting a short story in markdown to a Microsoft Word DOCX file in William Shunn's Short Story Format:

For Mac & Linux:

md2short.sh --output DOCX [--overwrite] [--modern] FILES

  -o DOCX               --output=DOCX
    Write the output to DOCX. Passed straight to pandoc as-is.
  -x                    --overwrite
    If output FILE exists, overwrite without prompting.
  -m                    --modern
    Use Shunn modern manuscript format (otherwise use Shunn classic)
  FILES
    One (1) or more Markdown file(s) to be converted to DOCX.
    Passed straight to pandoc as-is.

For example:

$PANDOC_TEMPLATES_HOME/bin/md2short.sh --output $HOME/somecoolstory.docx --overwrite $HOME/somecoolstory.md

For Windows (using PowerShell 5.0 or greater): under revision

.\bin\md2short.ps1 -overwrite -modern -output $env:USERPROFILE/Documents/short-out-ps.docx './test/short/guidelines.md'

md2long.sh

The script simplifies the process of converting a novel in markdown to a Microsoft Word DOCX file in William Shunn's Novel Format:

For Mac & Linux:

md2long.sh --output DOCX [--overwrite] FILES

  -o DOCX               --output=DOCX
    Write the output to DOCX.
    Passed straight to pandoc as-is.
  -x                    --overwrite
    If output FILE exists, overwrite without prompting.
  FILES
    One (1) or more Markdown file(s) to be converted to DOCX.
    Passed straight to pandoc as-is.

For example:

$PANDOC_TEMPLATES_HOME/bin/md2long.sh --output $HOME/somecoolstory.docx --overwrite $HOME/manuscript/ch*.md

For Windows (using PowerShell 5.0 or greater): under revision

Credits

Contributing

When contributing to this repository, please first open an issue to discuss the changes you wish to make.

In general:

  • Use the standard Pull Request process.
  • Be respectful of yourself and others.
  • Have fun!

Versioning

This project uses SemVer for versioning. For the versions available, see the tags on this repository.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].