sphinx-doc/sphinx
Ver no GitHubLaTeX: background gray in PDF code-blocks has a lesser contrast for ``xelatex`` with non-highlighted tokens
Open
#11.269 aberto em 29 de mar. de 2023
builder:latexhelp wanted
Métricas do repositório
- Stars
- (5.625 stars)
- Métricas de merge de PR
- (Mesclagem média 10d 11h) (11 fundiu PRs em 30d)
Description
Describe the bug
Example with 'xelatex' for latex_engine:

Same with default 'pdflatex':

The choice of default background gray was done with testing with pdflatex. If testing with xelatex, it could have been chosen possibly even lighter.
But this issue is mainly applying to the few non highlighted tokens.
It is a font issue, the one used for xelatex/lualatex is thinner than the one used for pdflatex. It may also be compounded with a PDF viewer anti-aliasing effect, for these thin glyphs on colored background.
How to Reproduce
Any project with code-blocks
Environment Information
Sphinx 6.1.3
Sphinx extensions
No response
Additional context
LaTeX installation from TeXLive 2023.