asdf8601 / dex

Docker image ready for compiling latex files
0 stars 1 forks source link

[latex] Compilation fails due to font issue when using `itemize` environment #3

Closed emvalbuena closed 2 weeks ago

emvalbuena commented 2 months ago

Description Compiling a LaTeX document with an itemize environment using the provided Docker image results in a font-related error. However, the document compiles without issues when I use the enumerate environment instead.

Steps to Reproduce

  1. Create a file mwe.tex with the following LaTeX code:
\documentclass{article}

\begin{document}

\section*{Testing Itemize Environment}

This is a test to demonstrate a compilation issue with the `itemize` environment.

\begin{itemize}
  \item First item
  \item Second item
\end{itemize}

\end{document}
  1. Run the following command to compile the document using the Docker image:
dexliveonfly mwe.tex

Expected Behavior The document should compile to a PDF without any errors.

Actual Behavior The compilation process fails with the following error:

!pdfTeX error: pdflatex (file tcrm1200): Font tcrm1200 at 600 not found
 ==> Fatal error occurred, no output PDF file produced!

Environment

Additional Context The same LaTeX file compiles without error when the itemize environment is replaced with an enumerate environment.

\documentclass{article}

\begin{document}

\section*{Testing Itemize Environment}

This is a test to demonstrate a compilation issue with the `itemize` environment.

-\begin{itemize}
+\begin{enumerate}
  \item First item
  \item Second item
-\end{itemize}
+\end{enumerate}

\end{document}
asdf8601 commented 1 month ago

Hey @KikeM,

Thank you for opening this issue, i was able to reproduce the error and here are my findings:

➜  dex git:(main) ✗ dexliveonfly -cxelatex mwe.tex 
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platf
orm was requested
This is XeTeX, Version 3.141592653-2.6-0.999996 (TeX Live 2024) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
(./mwe.tex
LaTeX2e <2024-06-01> patch level 2
L3 programming layer <2024-08-30>
(/opt/texlive/texdir/texmf-dist/tex/latex/base/article.cls
Document Class: article 2024/02/08 v1.4n Standard LaTeX document class
(/opt/texlive/texdir/texmf-dist/tex/latex/base/size10.clo))
(/opt/texlive/texdir/texmf-dist/tex/latex/l3backend/l3backend-xetex.def)
(./mwe.aux) (/opt/texlive/texdir/texmf-dist/tex/latex/base/ts1cmr.fd)
[1] (./mwe.aux) )
Output written on mwe.pdf (1 page).
SyncTeX written on mwe.synctex.gz.
Transcript written on mwe.log.

image

if this solves your issue, please close the issue ;-)