Describe the bug
A build error arises on make latexpdf like this
! LaTeX Error: File `substitutefont.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
Enter file name:
How to Reproduce
Use
latex_elements = {
'fontenc': "\\usepackage[T2A,T1]{fontenc}",
}
in conf.py(but still with language left to English default).
The T2A presence will let Sphinx to try to load LaTeX package substitutefont. But this package has been obsoleted and removed from TeXLive based distributions since August 2023.
Environment Information
Sphinx extensions
No response
Additional context
Full up-to-date TeXLive 2023 later than August 2023.