Skip to content

Commit 8a918ca

Browse files
committed
Fix cmap warning
1 parent 605cb05 commit 8a918ca

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

doc/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,9 @@
212212
_preamble = _f.read()
213213

214214
latex_elements = {
215+
# cmap is pdfTeX-only; preempt it so XeLaTeX doesn't emit the warning.
216+
# Defining \ver@cmap.sty makes \usepackage{cmap} a no-op (already-loaded check).
217+
"passoptionstopackages": r"\makeatletter\@namedef{ver@cmap.sty}{}\makeatother",
215218
"preamble": _preamble,
216219
# XeLaTeX font setup using vendored fonts (see dfetch.yaml).
217220
# Both fonts are copied into the LaTeX build root via latex_additional_files,

0 commit comments

Comments
 (0)