Skip to content

Instantly share code, notes, and snippets.

@acmisiti
Created October 7, 2014 17:50
Show Gist options
  • Save acmisiti/f71198dcb03443a036e2 to your computer and use it in GitHub Desktop.
Save acmisiti/f71198dcb03443a036e2 to your computer and use it in GitHub Desktop.
latex to pdf
We use the code from this file to turn latex into pdf:
https://github.com/MikeHungerford/thecontractbox/blob/production/thecontractbox/tools/make_pdf.py
and here is an example of code that renders it:
https://gist.github.com/acmisiti/5a3c5a8ae7a65923ea52
If you want full examples then you can look in documents/mixins.py EmployiiDocumentMixin.
https://github.com/MikeHungerford/thecontractbox/blob/production/thecontractbox/apps/documents/mixins.py
A specific method from that mixin would be 'generate_employee_agreement' on line 162. You can go down from that method and see others if you would like.
All tex file templates are in templates/tex/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment