使用Qcircuit
下的包xelatex
,我观察到了这个错误:
软件包 Qcircuit 警告:qcircuit 未在 PDF 模式下加载。激活所有 Xy-pic 功能以进行补偿。如果您希望使用 Xy-pic 的特定驱动程序,则必须修改 qcircuit.sty 中的代码。
经过一番搜索,我们发现它来自以下\ifpdf
声明https://github.com/CQuIC/qcircuit/blob/2d14e13c13bf9e015aa8f57c47baa67e22900b57/qcircuit.sty#L44
:
\usepackage{ifpdf}
\ifpdf
\else
\PackageWarningNoLine{Qcircuit}{qcircuit is not loading in PDF mode. Activating all Xy-pic features to compensate. If you wish to use specific drivers for Xy-pic, you must modify the code in qcircuit.sty}
% The following option loads all the features in Xy-pic. This
% this is included as work-around to ensure documents compile
% images correctly when using XeLaTeX.
\xyoption{all}
\fi
这看起来很奇怪。有没有办法抑制错误,或者我应该从 xelatex 或 laulatex 等转移?