Skip to content

[LaTeX] build error with recent TeXLive due to missing substitutefont package if using fontenc with T2A #11756

@jfbu

Description

@jfbu

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

NR

Sphinx extensions

No response

Additional context

Full up-to-date TeXLive 2023 later than August 2023.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions