Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yogu/wiki2tex

Convert GitHub style wiki to latex file
https://github.com/yogu/wiki2tex

Last synced: 2 days ago
JSON representation

Convert GitHub style wiki to latex file

Awesome Lists containing this project

README

        

wiki2tex
========

This is a little tool to convert a Gitlab/GitHub-style wiki into one pdf file

It starts at one or more files, crawls their links and puts it all into one markdown file.
Then it uses pandoc to convert it to latex, embeds it in a template (just header and footer),
and finally runs rubber to create the pdf.

### Configuration File

You need to create a json file for a tex configuration:

{
"pages": [ "pagename1.markdown", "pagename2.txt"],
"template": "template.tex"
}

The paths are relative to the config file's directory. `template.tex` should be a tex file with a `$body` part that will be replaced with the wiki contents.

### Dependencies:

* node v0.11+
* pandoc
* rubber
* inkscape (only if you include svg graphics)
* latex packages referenced by the template (recommended: ubuntu packages `texlive-latex-recommended texlive-latex-full texlive-fonts-recommended texlive-lang-german`)

### Usage

npm install
node --harmony_generators ./index.js path/to/wiki/spec.json