Skip to content

arXiv processing fails #465

@AmitMY

Description

@AmitMY

Following from #113

My acl_latex.tex file has

\usepackage[frozencache,cachedir=minted-cache]{minted}

I then run the following script that should build my arxiv upload:

# Use finalizecache so that minted builds the cache
sed -i '' 's/\\usepackage\[frozencache,cachedir=minted-cache\]{minted}/\\usepackage[cachedir=minted-cache]{minted}/' acl_latex.tex

# Build with pdflatex in a container
PDFLATEX=(docker run --platform linux/amd64 --rm -i \
  --user="$(id -u):$(id -g)" --net=none -v "$PWD":/data sotetsuk/pdflatex)

# Build the document
"${PDFLATEX[@]}" pdflatex -interaction=nonstopmode -shell-escape acl_latex.tex
# Run bibtex to process bibliography
"${PDFLATEX[@]}" bibtex acl_latex
# Two more runs of pdflatex to resolve references
"${PDFLATEX[@]}" pdflatex -interaction=nonstopmode -shell-escape acl_latex.tex
"${PDFLATEX[@]}" pdflatex -interaction=nonstopmode -shell-escape acl_latex.tex

# Use frozencache so that arxiv doesn't try to rebuild the cache
sed -i '' 's/\\usepackage\[cachedir=minted-cache\]{minted}/\\usepackage[frozencache,cachedir=minted-cache]{minted}/' acl_latex.tex


# Create the arXiv bundle
rm -f arxiv.zip
zip -r arxiv.zip ./*
echo $(pwd)/arxiv.zip

But arXiv errors:

Errors for acl_latex.tex:
Shell escape (1 total)
Shell escape feature is not enabled such that we are unable to convert your .eps files. Convert your .eps files to .pdf before compiling.


Lower level TeX Errors (5 total)
Package minted Error: Missing definition for highlighting style "default" (minted executable is unavailable or disabled); attempting to substitute fallback style..
./acl_latex.tex:131: Package minted Error: Missing definition for highlighting style "default" (minted executable is unavailable or disabled); attempting to substitute fallback style.
Please refer to details in the log.

Package minted Error: Cannot highlight code (minted executable is unavailable or disabled); attempting to typeset without highlighting..
./acl_latex.tex:131: Package minted Error: Cannot highlight code (minted executable is unavailable or disabled); attempting to typeset without highlighting.
Please refer to details in the log.

Package minted Error: Cannot highlight code (minted executable is unavailable or disabled); attempting to typeset without highlighting..
./acl_latex.tex:194: Package minted Error: Cannot highlight code (minted executable is unavailable or disabled); attempting to typeset without highlighting.
Please refer to details in the log.

**Note: finalizecache is no longer supported, that's why I don't use it

Here's the resulting zipfile: arxiv.zip

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