Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/yogu/wiki2tex
- Owner: Yogu
- License: mit
- Created: 2014-07-09T13:55:26.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-29T17:29:26.000Z (about 10 years ago)
- Last Synced: 2024-11-10T04:38:36.732Z (about 2 months ago)
- Language: JavaScript
- Size: 211 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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