I'm trying to get a minimal LaTeX working inside a Docker container to support some documentation generation. Currently this is what I have going:
RUN wget -qO- "https://github.com/yihui/tinytex/raw/master/tools/install-unx.sh" | sh
ENV PATH "$PATH:/root/.TinyTeX/bin/x86_64-linux"
RUN tlmgr install standalone preview ucs was newtx fontaxes xcolor dvisvgm psnfss symbol
Whenever I try to compile a document, I get the error message:
Font TS1/ntxtlf/m/n/12=ts1-qtmr at 12.0pt not loadable: Metric (TFM) file not found
Here's one example document. This is generated by a tool (m.css), which is why it's using way more packages than it needs to. Modifying the docker environment is easy, but modifying the actual document is very difficult.
\documentclass[12pt,preview]{standalone}
\usepackage[utf8x]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{gensymb}
\usepackage{newtxtext}
\usepackage{xcolor}
\usepackage{array,graphicx}
\usepackage{booktabs}
\usepackage{pifont}
\begin{document}
\begin{preview}
$O(2^{N})$
\end{preview}
\end{document}
Note that my end goal here is to get the smallest Docker image that works to compile documents similar to that. Yes, I can apt-get install texlive-full
and everything will work, but I'd rather figure out the minimal set of fonts and packages needed.
More generally, is there a way to go from that error message to the name of the package I need and/or the fonts that are missing? TS1/ntxtlf/m/n/12=ts1-qtmr
isn't very googleable.