bazel-latex icon indicating copy to clipboard operation
bazel-latex copied to clipboard

Missing cmed8.pfb

Open Esben42 opened this issue 7 months ago • 0 comments

I get the error error: (type 1): cannot open file for reading 'cmex8.pfb when trying to compile the following simple Latex file:

\documentclass[a4paper, 11pt]{article}
\usepackage{amsmath}
\begin{document}
\begin{align}
  x & =& \begin{array}{ll}
    \frac{1}{\sum X} 
    \end{array}
\end{align}
\end{document}

with the BUILD file

load("@bazel_latex//:latex.bzl", "latex_document", "latex_to_svg")

latex_document(
    name = "example",
    srcs = glob([
        "*.tex",
    ]) + [
        "@bazel_latex//packages:amsmath",
    ],
    format = "pdf",  # Is the default
    main = "example.tex",
)

MODULE.bazel:

bazel_dep(name = "bazel_latex")

git_override(
    module_name = "bazel_latex", 
    remote = "https://github.com/ProdriveTechnologies/bazel-latex.git",
    commit = "227b02f346c1dd0098d32b5bcb1ef874dd367e2a",
)

I can "pdflatex example.pdf" outside Bazel in Ubuntu with the texlive and amsmath installed.

Esben42 avatar May 19 '25 13:05 Esben42