Skip to content

latexrun fails to compile pdf when pdflatex generates missing fonts #46

@aslushnikov

Description

@aslushnikov

Reproduction steps:

  1. Take Linux with the following packages installed (or build docker image with this Dockerfile)
apt-get update && apt-get install -y \
    biber \
    cm-super \
    fontconfig \
    latex-xcolor \
    preview-latex-style \
    texlive-bibtex-extra \
    texlive-fonts-extra \
    texlive-generic-extra \
    texlive-lang-all \
    texlive-lang-swedish \
    texlive-latex-base \
    texlive-latex-extra \
    texlive-math-extra \
    texlive-science \
    texlive-xetex
  1. Try to compile this tex file.
$ curl https://github.com/aslushnikov/latex-online/blob/master/sample/sample.tex > main.tex
$ latexrun main.tex
  1. Observe latexrun error (below is truncated version, full error text is here):
failed to open file recorder output: [Errno 36] File name too long: 'larm1200.log.mktextfm: /root/.texmf-var/fonts/tfm/lh/lh-t2a/larm1200.tfm: successfully generated.)(/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty(/usr/share/texlive/texmf-dist/tex/latex/base/

It turns out that function __parse_jobname fails to parse the
output. This happens because output contains a lot of intermediate steps of font generation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions