![为什么 Qcircuit 无法在 PDF 模式下加载并激活所有功能?](https://linux22.com/image/424694/%E4%B8%BA%E4%BB%80%E4%B9%88%20Qcircuit%20%E6%97%A0%E6%B3%95%E5%9C%A8%20PDF%20%E6%A8%A1%E5%BC%8F%E4%B8%8B%E5%8A%A0%E8%BD%BD%E5%B9%B6%E6%BF%80%E6%B4%BB%E6%89%80%E6%9C%89%E5%8A%9F%E8%83%BD%EF%BC%9F.png)
使用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 等转移?