Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xelatex 2019.12.27 以及更新版,bicaption 报错:未定义的 bi-first 选项 #223

Closed
NineSH opened this issue Jan 8, 2020 · 10 comments
Labels

Comments

@NineSH
Copy link

NineSH commented Jan 8, 2020

在运行的时候,显示这个错误,而且Package caption Error: bi-first undefined. \captionsetup[bi-first]{bi-first}
image
怎么也无法解决,单独运行了.bat,发现掉包的时候的运行路径存在反斜杠问题("C:\Users\AppData\Local\Programs\MiKTeX 2.9\tex/latex/ctex\ctexbook.cls"
("C:\Users\AppData\Local\Programs\MiKTeX 2.9\tex/latex/l3kernel\expl3.sty"
请问这个要如何解决,麻烦您啦

@NineSH
Copy link
Author

NineSH commented Jan 8, 2020

Thesis.log
其他的步骤都没有问题,但是就是失败了

@NineSH
Copy link
Author

NineSH commented Jan 8, 2020

好哒,麻烦您啦,非常感谢

@Architotle
Copy link

作者你好,今天刚安装了Texlive full最新版,编译模板时依然存在这个问题。
Thesis.log

@NineSH
Copy link
Author

NineSH commented Jan 9, 2020

我安装的texlive 2019版就没有问题了,你要不然不要安装最新版本

@NineSH NineSH closed this as completed Jan 9, 2020
@NineSH NineSH reopened this Jan 9, 2020
@mohuangrui
Copy link
Owner

@Architotle @NineSH 可能是最新版的 bicaption 行为变了,对潜在的问题进行了修复,请测试最新版。即更新了 artratex.sty 文件

@mohuangrui mohuangrui added the bug label Jan 9, 2020
@Architotle
Copy link

测试通过,完美编译。谢谢!

@NineSH
Copy link
Author

NineSH commented Jan 9, 2020

新版本的编译通过了,没有问题

@mohuangrui
Copy link
Owner

@NineSH @Architotle 好的,谢谢反馈!

@mohuangrui mohuangrui changed the title 请问运行的时候,artratex.sty 一直报错,显示找不到包 bicaption 报错:为定义的 bi-first 选项 Jan 10, 2020
@mohuangrui mohuangrui changed the title bicaption 报错:为定义的 bi-first 选项 bicaption 报错:未定义的 bi-first 选项 Jan 10, 2020
@mohuangrui mohuangrui changed the title bicaption 报错:未定义的 bi-first 选项 xelatex 2019.12.27 以及更新版,bicaption 报错:未定义的 bi-first 选项 Jan 10, 2020
@muzimuzhi
Copy link
Contributor

这是由宏包 caption 2020/01/03 v3.4h 加入的改变,参考宏包维护者在 TeX.SX 的说明(https://tex.stackexchange.com/a/283984

Update (2020-01-03)

Starting with v3.4h of the caption package options cannot be used anymore prior to definition. Therefore \captionsetup[bi-first]{bi-first} and \captionsetup[bi-second]{bi-second} has to be done after \DeclareCaptionOption{bi-first}..., otherwise the document will not compile anymore.

@hairuo
Copy link

hairuo commented Nov 21, 2020

这是由宏包 caption 2020/01/03 v3.4h 加入的改变,参考宏包维护者在 TeX.SX 的说明(https://tex.stackexchange.com/a/283984

Update (2020-01-03)
Starting with v3.4h of the caption package options cannot be used anymore prior to definition. Therefore \captionsetup[bi-first]{bi-first} and \captionsetup[bi-second]{bi-second} has to be done after \DeclareCaptionOption{bi-first}..., otherwise the document will not compile anymore.

\captionsetup[bi-first]{bi-first}
\captionsetup[bi-second]{bi-second, list=off}

的位置放在

\DeclareCaptionOption{bi-first}[]{%
  \def\tablename{表}%
  \def\figurename{图}}
\DeclareCaptionOption{bi-second}[]{%
  \def\tablename{Tab}%
  \def\figurename{Fig}}

之后,果然问题解决了,非常感谢!

liweitianux added a commit to liweitianux/phd-thesis that referenced this issue Mar 13, 2021
With newer 'caption' package, the '\captionsetup[xxx]' must be placed
*after* the corresponding '\DeclareCaptionOption{xxx}'.

Credit: mohuangrui/ucasthesis#223 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants