blang / latex-docker

Docker-based latex compilation
MIT License
579 stars 146 forks source link

Consider adding biber to pre-installed packages #10

Closed evilstiefel closed 6 years ago

evilstiefel commented 7 years ago

Thanks for this image, works just fine! I've started using it to kick off automatic builds of the PDF and publishing it using Gitlab-CI.

Since this image now is even sort of officially mentioned in the template for such tasks in the Gitlab documentation, why not make it more useable for biblatex-workflows by adding biber via apt?

Otherwise, any compilation will fail with the missing dependency.

janstuemmel commented 7 years ago

duplicate #5

i have created one with biber installed janstuemmel/docker-latex

just change your yml file to:

- image: blang/latex
+ image: janstuemmel/latex

build:
  script:
    - latexmk -pdf
  artifacts:
    paths:
      - "*.pdf"
flungo commented 7 years ago

Unless there is widespread demand for a package I agree that you should either create or find an extended image like @janstuemmel suggested or in the case of GitLab CI usage, add the installation of the packages you need to your before_script in the .gitlab-ci.yml. See the before_script reference.

evilstiefel commented 7 years ago

I did even before I created the issue. I only mentioned it since Gitlab references this image as the example for building latex-based pipelines and more people might choose this package as their default. I get that this was never the intention of the author when the image was created, but just wanted to mention it.

Anyway, adding biber to the image has no downsides as far as I can see (next to a slight increase in size) and BibLaTeX is widely used and regarded by some as the successor of BibTeX.

zertrin commented 6 years ago

I also got hit by this today, and would support adding biber in the default image since it's a backend that many recommend using with BibLaTeX.

So somehow I was expecting it to be included in this image which advertise a full Latex environment (yes I know that biber is not a latex package but a separate executable, however it is so common to have it when using BibLaTeX that I expected it here too).

Anyway I solved it in the before_script in the .gitlab-ci.yml easily too. Nonetheless, I believe the pros for including it outweigh the cons in the case of biber.

blang commented 6 years ago

biber is now included in blang/latex:ctanfull