Giter VIP home page Giter VIP logo

howto-deploy-latex-documents's Introduction

Howto Deploy LaTeX Documents

HowTo Deploy LaTeX (or Markdown) Documents as PDF (and DjVu) via GitHub and TravisCI

maybe you should take a look at: https://github.com/SimonWaldherr/BookTemplate


Build Status PDF Status GitHub Release GitHub forks GitHub stars

This repository explains how to automate the process of converting LaTeX documents to PDFs or DjVu-Files. You need no special software, everything gets done online.

Dealing with TeX + PDF on GitHub (or other online repository hosting services) leads mostly to various problems, e.g.:

  • having large binary files in a git repo (PDFs)
  • having old files, large gap between source and PDF
  • need of a local tex installation to update the PDF

the alternative is to only publish the LaTeX source, which has other problems:

  • no preview on GitHub
  • no preview after download
  • no way to see the completed document on devices without TeX (e.g. mobile)

and what is the solution?

  • building the binary files (PDF + DjVu) on a Server
  • save the files on publicly accessible servers (e.g. as GitHub Release)
  • link to the files from the README

Creative Commons Lizenzvertrag

Download the PDF from the latest Release.

howto-deploy-latex-documents's People

Contributors

simonwaldherr avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

howto-deploy-latex-documents's Issues

Document pitfalls

Hi Simon, thanks for putting out this script!

I tried to make it work for my own PDF deployment, but gave up in the end because of problems with theunicode-math package. See the builds 1-8 at https://travis-ci.org/andreasabel/agda-scope/builds for a transcript of my attempts.

These are the pitfalls I ran into, you might want to warn users of your script about them:

  1. An empty install: section causes the R environment to skip the script: section.
    See andreasabel/agda-scope@6e5dd35 (build 3).
    I discovered the solution to put a bogus installation entry (echo) by chance.

  2. The unicode-math package seems to malfunction (at least with xelatex) in the version the R environment is using. While it can be installed via

    tlmgr install filehooks unicode-math
    

    (see andreasabel/agda-scope@88d8fbb)
    it malfunctions:

    ! Undefined control sequence.
    l.931   \file_get:nnN
                       {unicode-math-table.tex} 
    

    There is a unresolved stackoverflow issue for that: https://stackoverflow.com/questions/55137760/undefined-control-sequence-file-getnnn-error-while-compiling-markdown-file

I did not find a workaround for this issue, thus, I abandoned the R environment and used the generic environment with manual installs of pandoc and texlive-latex via apt.

Anyhow, you might want to alert users of your script about these pitfalls.

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.