Giter Club home page Giter Club logo

file-conversion-example's Introduction

Convert example

This is just a brief example of how single files authored in a simple markup language can be quickly converted into multiple, different export formats. In this example the 2 plain text files in the /source/ folder are processed by the convert.js script to create versions in PDF, HTML for web, Rich Text Format (RTF) for word processors, and EPUB for e-books. The styling is default and extremly basic but could easily be adjusted and improved for an actual project. This is all done with a single software tool called pandoc. In an additional project, additional softwares and automation processes would likely be used. This is a simplified example of the same concept behind the digitized Epidemic Disease Control for Volunteers (ECV) toolkit.

Environment

To set up the environment, you'll need to install the following on your system:

  • Install Node.js 8.11.3 LTS
    • Install nvm
    • Run nvm use to read the '.nvmrc' file and switch to the correct version of node (built using 8.11.3 LTS)
  • Install Gulp using npm install -g gulp
  • Install pandoc with brew install pandoc or one of the other install options
  • On macOS install BasicTeX
    • You may need to add /usr/local/texlive/2018basic/bin: to your PATH
    • Install any number of packages you might need, for example: sudo tlmgr install amsfonts amsmath babel bbding booktabs collection-fontsrecommended enumitem environ fancyvrb framed geometry graphicx grffile hyperref ifluatex ifxetex import lm longtable mdframed multirow needspace ntheorem setspace tabu tcolorbox textpos threeparttable titlesec titling tocloft trimspaces ulem unicode-math varwidth wrapfig xcolor
  • Alternatively, you should be able to just brew cask install mactex

file-conversion-example's People

Contributors

danbjoseph avatar

Stargazers

Mark McDonnell avatar

Watchers

James Cloos avatar Dale Kunce avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.