colaction
我发现这个错误与以下功能相关multicol
:
“内部”两列多列环境结束后,“列号指示器”不会切换回 1。(粗体数字应给出列号)。
有其他办法吗?
\documentclass[a4paper]{article}
\usepackage[colaction]{multicol}
\usepackage{lipsum}
\def\printNumberColumn{%
\docolaction{\textbf{1}}{}{\textbf{2}}
}
\setlength\columnseprule{0.4pt}
\def\xxxxx{%
Test Test Test Test Test Test Test Test
}
\begin{document}
\begin{multicols}{2}
\printNumberColumn\par\xxxxx\xxxxx\xxxxx\xxxxx\xxxxx
\printNumberColumn\par\xxxxx\xxxxx\xxxxx\xxxxx\xxxxx
\begin{multicols}{2}
\printNumberColumn\par\xxxxx\xxxxx\xxxxx
\printNumberColumn\par\xxxxx\xxxxx\xxxxx
\end{multicols}
\printNumberColumn\par\xxxxx\xxxxx\xxxxx\xxxxx\xxxxx
\printNumberColumn\par\xxxxx\xxxxx\xxxxx\xxxxx\xxxxx
\printNumberColumn\par\xxxxx\xxxxx\xxxxx\xxxxx\xxxxx
\printNumberColumn\par\xxxxx\xxxxx\xxxxx\xxxxx\xxxxx
\printNumberColumn\par\xxxxx\xxxxx\xxxxx\xxxxx\xxxxx
\printNumberColumn\par\xxxxx\xxxxx\xxxxx\xxxxx\xxxxx
\printNumberColumn\par\xxxxx\xxxxx\xxxxx\xxxxx\xxxxx
\printNumberColumn\par\xxxxx\xxxxx\xxxxx\xxxxx\xxxxx
\printNumberColumn\par\xxxxx\xxxxx\xxxxx\xxxxx\xxxxx
\end{multicols}
\end{document}
答案1
我从未想到嵌套的多列会包含\docolaction
(但我必须承认,我在编写代码时也从未想过这一点)。无论如何,.aux
在结束 aboxed 多列时,它只是缺少对文件的单个状态写入,因此现在已在提交中修复了这个问题
https://github.com/latex3/latex2e/commit/b087fd319cbdb6845e74b1ad2e136d6578adb4e1
并将最终随着下一个补丁版本的发布进入 ctan。