Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adelq/flask-latex
LaTeX as a Service in Python/Flask
https://github.com/adelq/flask-latex
Last synced: about 6 hours ago
JSON representation
LaTeX as a Service in Python/Flask
- Host: GitHub
- URL: https://github.com/adelq/flask-latex
- Owner: adelq
- License: gpl-3.0
- Created: 2014-09-13T04:58:18.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-12-10T02:48:39.000Z (almost 7 years ago)
- Last Synced: 2023-08-05T18:48:21.466Z (over 1 year ago)
- Language: Python
- Size: 18.6 KB
- Stars: 7
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
LaTeX as a Service
==================*Render LaTeX files on the web into PDF!*
This LaTeX rendering service is used to run [ViewTex](https://chrome.google.com/webstore/detail/viewtex/hndddfcnkkjfkjmhnofcalgjheifajac),
previously known as [Chrome LaTeX](https://github.com/pbjr23/chrome-latex), ChromeTeX, or TeXChrome.The production service is now defunct due to server costs, but this app server
works just as well as it did in 2014 when written originally.## Installation
This is a simple [Flask](http://flask.pocoo.org/) web application. To install, you must have Python,
git, and pip installed. It is recommended to install these dependencies inside a
virtualenv.```
pip install -r requirements.txt
python run.py
```However, for the application to run as intended, you must install the TeX suite
of applications, preferably with `texlive-full` in order to render as many
documents as fully as possible. Without the full package, you may encounter
difficulties rendering documents with obscure packages, citation styles, fonts,
etc.## Usage
`flask-latex` has a single simple endpoint to render the LaTeX file at the
provided URL and returns a PDF.**URL:** `/`
**Method:** `GET`
**Success Response:** HTTP Status Code 200, mimetype `application/pdf`
**Sample Call**
```
wget http://localhost:5000/http://www.shivkumar.org/research/papers/erica/newerica6.tex
```TODO
----
* Allow for configurable number of compiles