MkPaper creates a figure document in 3 + n lines of code, where n is the number of figures you have!
Have you ever wished a machine would write your paper for you?
Wish no more, the future is here!* I’ve created a Python package that will compile a LaTeX or word document of figures. Basically, you feed the package a path to a figure and a caption and then it will create either:
- a PDFLaTeX document or a
- Word Document
with those figures and captions inserted! I’ve tried to make it as simple and painless to install as possible (just clone the repo’); dependencies are kept to a minimum, specifically:
- python 2.x
- pdflatex (optional)
- python-docx (optional)
Without pdflatex, the package still works (you can create the tex file and not compile). To create a Word document you need python-docx (installable with Anaconda).
To install the package:
And then, suppose you want to create a word doc, usage looks like…
Want to get started? Head over to the GitHub project here.. Full working examples in here, so you should be up and running in no time!
Feedback and pull requests welcome!
*A touch of hyperbole here ;)
In category: python