Giter Club home page Giter Club logo

heroku-buildpack-tex's Introduction

TeX Live buildpack for Heroku

this repository is archived, we @thermondo don't use the buildpack anymore.

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 samifahed avatar syphar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

heroku-buildpack-tex's Issues

Disable updating of tex live and tlmgr

When deploying a new version of my code base to Heroku everything gets updated. This often break things so I want to lock down and freeze all versions.

How can this be achieved?

How to use xelatex engine?

As far as I can see, the xelatex engine is not included, only pdflatex (and etex), right?

What do I have to change in order to install the xelatex engine as well?

Thanks in advance!

Testissue

Please don't unassign yourself. This issue is only made to reproduce a ZenHub bug.

Graphics stopped working

Not sure if this issue is because of this buildpack, but an \includegraphics statement stopped working out of nowhere and I didn't change anything on my end. I've tried clearing the build cache and redeploying, and reuploading the image and all sorts of things with no luck. The latex output also shows no errors. It works on my local machine, but that's not such a good indicator because I have the full tex installation there. Anyway, if you know of something that could be causing this or how to debug this I would appreciate the insights!

Trouble with fonts

I have been having trouble getting fonts to work with xelatex. I realize this isn't quite appropriate for a github issue but I didn't know where else to turn for help!

I've tried installing fonts by putting collection-fontsrecommended in the texlive.profile and then using something like \usepackage{palatino}, which doesn't work. Basically the \renewcommand\familydefault{\sfdefault} doesn't seem to do anything because I'm still getting serif fonts. I also tried using fontspec, and \setmainfont{} but then I imagine specific font packages must be installed and I wasn't able to do it via tlmgr and placing more entries on the texlive.profile. Any ideas?

Installation breaks after Make Install when calling tlmgr

When I try to add the buildpack I get
Unknown directive ...containerchecksum c59200574a316416a23695c258edf3a32531fbda43ccdc09360ee105c3f07f9fb77df17c4ba4c2ea4f3a5ea6667e064b51e3d8c2fe6c984ba3e71b4e32716955... , please fix it! at /tmp/build_5fd198f2598d92d2db67775fd7733513/Prescrypto-prescript-e3d5a91f350e910cbcb892fa303da9fb58de9185/.texlive/tlpkg/TeXLive/TLPOBJ.pm line 201, <$retfh> line 5579.

Google searches point me towards things like:
https://darrengoossens.wordpress.com/2016/06/20/a-little-trick-with-tlmgr-unknown-directive-containerchecksum-error/
http://tex.stackexchange.com/questions/313768/why-getting-this-error-tlmgr-unknown-directive

But I still can't figure it out.

Custom TeX live version - No access to cryptographic signature

I've selected custom TeX Live version by adding a file called texlive.repository with the following content:
ftp://tug.org/historic/systems/texlive/2017/tlnet-final/

When I build my Heroku app I get the following error:

remote: tlmgr: main database at ftp://tug.org/historic/systems/texlive/2017/tlnet-final/ is not signed: no access to cryptographic signature
remote: ! Push rejected, failed to compile TeX Live app.

Anybody knows how this can be fixed?

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.