Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

arkenous/WebTeX-flask

Repository files navigation

WebTeX

Build Status Code Climate Issue Count Test Coverage Dependency Status Join the chat at https://gitter.im/trileg/WebTeX AMA license

Web-based LaTeX editor and compiler. This application use Flask.

Docker image of this application is here

Features

  • Edit, compile and preview LaTeX document on the web.
  • LDAP authentication support (using LDAP3).
  • Automatic correction (using RedPen).

Default account is Admin and password is webtex

Requirements

  • Python 3.x
  • Java
  • TeX Live (texlive-lang-cjk)
    • This application use platex to compile LaTeX document.
  • RedPen
  • Ace
    • Placement path: static/ace-builds/src-noconflict/
  • pdftotext (poppler-utils)

Setup

  1. Download and extract this project

  2. Install texlive-lang-cjk (or texlive-langcjk), openjdk-7-jre (or jre7-openjdk), poppler

  3. Install Python3 modules using pip: pip install -r pip-requirements.txt

  4. Install Ace.js

    $ wget https://github.com/ajaxorg/ace-builds/archive/v1.2.5.tar.gz -O /tmp/ace.tar.gz
    $ mkdir /tmp/ace-builds
    $ tar -xvf /tmp/ace.tar.gz -C /tmp/ace-builds --strip-components 1
    $ mkdir -p WebTeX/static/ace-builds
    $ mv /tmp/ace-builds/src-noconflict WebTeX/static/ace-builds/
    $ rm -f /tmp/ace.tar.gz && rm -rf /tmp/ace-builds
    
  5. Install RedPen

    $ wget https://github.com/redpen-cc/redpen/releases/download/redpen-1.7.4/redpen-1.7.4.tar.gz -O /tmp/redpen.tar.gz
    $ mkdir redpen
    $ tar -xvf /tmp/redpen.tar.gz -C redpen --strip-components 1
    $ export PATH=$PATH:$PWD/redpen/bin
    $ rm -f /tmp/redpen.tar.gz
    
  6. Run this application

    $ python WebTeX/app.py
    

Author

Kensuke Kosaka

About

Web-based LaTeX editor and compiler.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published