【发布时间】:2018-05-24 06:03:14
【问题描述】:
最近,我发现不同版本的 tex 存在一些问题。在我们公司,有的使用texlive2018,有的使用texlive2017。在我们的conf.py,我放了
latex_elements = {
'preamble': '''\usepackage{chngcntr}
\counterwithin{figure}{chapter}
\counterwithin{table}{chapter}''',
}
它在 texlive2017 中运行良好,但在 texlive2018 中有一个redefined error。如果我删除\usepackage{chngcntr},那么 texlive2018 可以工作,但 texlive2017 有一个undefined error。当然,它是由较新版本的 texlive 中的一些更改触发的。但我想知道是否有一种方法可以在两个 texlive 版本上运行。
【问题讨论】:
标签: latex python-sphinx