所有期权突破 xy 套餐

所有期权突破 xy 套餐

我一直在尝试加载xy使用该all选项,但我收到错误

! LaTeX Error: Two \documentclass or \documentstyle commands.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.1 \documentclass{
                   article}
? 

这是代码

\documentclass{article}

\usepackage[all]{xy}

\begin{document}

stuff

\end{document}

如果我删除该all选项,它就可以正常编译。这是错误吗?还是我遗漏了什么

$ tex --version
TeX 3.14159265 (TeX Live 2017/MacPorts 2017_2)
kpathsea version 6.2.3
Copyright 2017 D.E. Knuth

答案1

不要调用您的测试文档xy.tex,否则您最终会递归输入相同的文件并产生错误。

注意日志文件中您未显示的部分显示了问题:

This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./xy.tex

...........

LaTeX2e <2017-04-15>
Babel <3.18> and hyphenation patterns for 84 language(s) loaded.
(/usr/local/texlive/2018/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2018/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2018/texmf-dist/tex/generic/xypic/xy.sty (./xy.tex

...........................................................................................................!!!!!!!!!

! LaTeX Error: Two \documentclass or \documentstyle commands.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.1 \documentclass{
                   article}
? 

相关内容