Giter Club home page Giter Club logo

heroku-buildpack-tex's Introduction

TeX Live buildpack for Heroku

Build Status Latest Release

This is a Heroku buildpack to run TeX Live inside a dyno.

This can be useful if you simply want to play around with TeX Live without having to build or install it yourself. You can pull it up on your instance easily in bash:

heroku run bash

As an alternative you can also use a local docker build:

docker build . -t heroku-tex
docker run -ti -v path/to/my/tex/files:/app heroku-tex

Setup

heroku buildpacks:add git://github.com/Thermondo/heroku-buildpack-tex.git#VERSION_NUMBER

How does it work?

  • In this form, it uses install-tl it installs a working TeX Live into your application into your Heroku app.
  • It installs scheme-small to have a working minimal setup.
  • It uses tlmgr to install custom packages.
  • On subsequent pushes it uses tlmgr to update all installed packages.

Since we are not using a prepackaged version of TeX Live, the initial install can take some time. But in doing so you also gain more freedom with the selection of your packages.

Custom packages

You can add a file called texlive.packages in your repo:

collection-bibtexextra
collection-fontsextra
collection-langgerman
collection-xetex

It looks similar to the default texlive.profile, but without the 1 or 0 at the end. The buildpack runs tlmgr install on every line in this file. So you can use single packages or these collections.

When you add custom packages, keep in mind that Heroku has a maximum compressed slug-size, see here. A full TeX Live installation is very large.

Custom TeX Live version

By default the latest TeX Live version will be installed. You can customize the path to the repository to be used by adding a file called texlive.repository to your project. It should contain only the path to the location of the TeX Live repository that you want to use without trailing /. For example:

ftp://tug.org/historic/systems/texlive/2016/tlnet-final

This will install the latest TeX Live 2016 release.

heroku-buildpack-tex's People

Contributors

annefly avatar codingjoe avatar gulopine avatar ikerd avatar samifahed avatar syphar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.