![新版 overpic 不允许使用“width”选项(2024 年 1 月 5 日)](https://linux22.com/image/472625/%E6%96%B0%E7%89%88%20overpic%20%E4%B8%8D%E5%85%81%E8%AE%B8%E4%BD%BF%E7%94%A8%E2%80%9Cwidth%E2%80%9D%E9%80%89%E9%A1%B9%EF%BC%882024%20%E5%B9%B4%201%20%E6%9C%88%205%20%E6%97%A5%EF%BC%89.png)
我很高兴使用 overpic,并使用以下 MWE(用任何 .pdf 文件替换 Annulus-PBma-essai.pdf)
\documentclass [12pt]{amsbook}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage[percent]{overpic}
\begin{document}
\begin{figure}[ht]
\center\begin{overpic}[width=10cm]{Annulus-PBma-essai.pdf}
\put (32,65) {$z_{0}$}
\put (52,44){$z_1$}
\end{overpic}
\end{figure}
\end{document}
直到新版 overpic 出现,似乎不再接受“width”选项。因此我收到一条错误消息。我是否遗漏了什么?如果没有,是否有办法在新版本中获得与“width”相同的效果。[抱歉,我无法重现错误消息(与 setkeyval 有关),因为我更新了办公室电脑,但没有更新家用电脑。]
以下是完整日志
This is pdfTeX, Version 3.141592653-2.6-1.40.25 (TeX Live 2023) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./Untitled.tex
LaTeX2e <2023-11-01>
L3 programming layer <2024-01-04>
(/usr/local/texlive/2023/texmf-dist/tex/latex/amscls/amsbook.cls
Document Class: amsbook 2020/05/29 v2.20.6
(/usr/local/texlive/2023/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2023/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2023/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2023/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2023/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/local/texlive/2023/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/usr/local/texlive/2023/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/local/texlive/2023/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2023/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2023/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2023/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2023/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(/usr/local/texlive/2023/texmf-dist/tex/latex/graphics-def/pdftex.def)))
(/usr/local/texlive/2023/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/local/texlive/2023/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/local/texlive/2023/texmf-dist/tex/generic/xkeyval/xkvutils.tex)))
(/usr/local/texlive/2023/texmf-dist/tex/latex/overpic/overpic.sty
(/usr/local/texlive/2023/texmf-dist/tex/latex/eepic/epic.sty
Enhancements to Picture Environment. Version 1.2 - Released June 1, 1986
)) (/usr/local/texlive/2023/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/local/texlive/2023/texmf-dist/tex/latex/graphics-cfg/color.cfg)
(/usr/local/texlive/2023/texmf-dist/tex/latex/graphics/mathcolor.ltx))
(/usr/local/texlive/2023/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def)
(./Untitled.aux) (/usr/local/texlive/2023/texmf-dist/tex/latex/amsfonts/umsa.fd
) (/usr/local/texlive/2023/texmf-dist/tex/latex/amsfonts/umsb.fd)
(/usr/local/texlive/2023/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/local/texlive/2023/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty
(/usr/local/texlive/2023/texmf-dist/tex/generic/infwarerr/infwarerr.sty)
(/usr/local/texlive/2023/texmf-dist/tex/latex/grfext/grfext.sty
(/usr/local/texlive/2023/texmf-dist/tex/generic/kvdefinekeys/kvdefinekeys.sty))
(/usr/local/texlive/2023/texmf-dist/tex/latex/kvoptions/kvoptions.sty
(/usr/local/texlive/2023/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty)
(/usr/local/texlive/2023/texmf-dist/tex/latex/kvsetkeys/kvsetkeys.sty))
(/usr/local/texlive/2023/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty
(/usr/local/texlive/2023/texmf-dist/tex/generic/iftex/iftex.sty))
(/usr/local/texlive/2023/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
pdfTeX warning: /Library/TeX/texbin/pdflatex (file ./DS4-3-image1b.pdf): PDF in
clusion: found PDF version <1.6>, but at most version <1.5> allowed
./Untitled.tex:8: Package xkeyval Error: `width' undefined in families `OVP'.
See the xkeyval package documentation for explanation.
Type H <return> for immediate help.
...
l.8 ...gin{overpic}[width=10cm]{DS4-3-image1b.pdf}
?
[1{/usr/local/texlive/2023/texmf-var/fonts/map/pdftex/updmap/pdftex.map} <./DS4
-3-image1b.pdf, page is rotated 270 degrees>] (./Untitled.aux) )</usr/local/tex
live/2023/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi12.pfb></usr/local/texl
ive/2023/texmf-dist/fonts/type1/public/amsfonts/cm/cmr8.pfb></usr/local/texlive
/2023/texmf-dist/fonts/type1/public/amsfonts/cm/cmr9.pfb>
Output written on Untitled.pdf (1 page, 84995 bytes).
SyncTeX written on Untitled.synctex.gz.
Transcript written on Untitled.log.