1

I found this bug related to the colaction feature of multicol :

The "column number indicator" doesn't switch back to 1 after the "inner" two-column multicols environment ends. (The bold number should give the number of the column).

Is there a way around?

\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}

enter image description here

  • What's the question? – Mico Apr 19 '18 at 22:52
  • Edited. But the idea was more to bring attention to this bug. – Colas Apr 19 '18 at 22:54
  • What is the bug you are trying to bring to attention? – Milo Apr 19 '18 at 23:38
  • 1
    @Myles - I think the OP is trying to draw attention to the fact that the "column number indicator" doesn't switch back to 1 after the "inner" two-column multicols environment ends. However, he/she isn't exactlly explicit; thus, the bug may also be something entirely else... – Mico Apr 20 '18 at 3:12
  • 1
    You are the first one I ever saw trying to next multicols. – Ulrike Fischer Apr 20 '18 at 10:35
1

I never expected nested multicols that included \docolaction (but I must confess I also never thought about that when I wrote the code). Anyway, it is just missing a single status write to the .aux file when ending aboxed multicol, so that is now fixed in commit

https://github.com/latex3/latex2e/commit/b087fd319cbdb6845e74b1ad2e136d6578adb4e1

and will eventually make it to ctan with the next patch release.

  • Thanks! Actually, I used colaction only in the "outer" multicol environment. Anyway, since then, I found a better way and I don't need to use nested multicol environments. But, it's better like that anyway, and the bug was not a big deal it seems. Thanks again. – Colas Apr 20 '18 at 19:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.