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

User-defined marks swallowed if inside multicols #1421

Open
cspiel opened this issue Jul 29, 2024 · 2 comments
Open

User-defined marks swallowed if inside multicols #1421

cspiel opened this issue Jul 29, 2024 · 2 comments

Comments

@cspiel
Copy link

cspiel commented Jul 29, 2024

Brief outline of the bug

I find that even with the latest (released) multicol.sty, v1.9h,
user-defined marks are recorded as proven by the log file but
they do not quite make it to \FirstMark or \LastMark if the
insertion points are within a multicols environment.

Otherwise the \NewMarkClass mechanism works flawlessly.

In the example given below I'd expect the head to show a-n,
however what I get is a-b.

The problem may share a distant relationship with issue #1130.

Minimal example showing the bug

\RequirePackage{latexbug}
\documentclass{article}

\usepackage{multicol}

\NewMarkClass{DictMark}
\DebugMarksOn

\makeatletter
\def\@oddhead{\FirstMark{DictMark}--\LastMark{DictMark}\hfill\thepage}
\let\@evenhead=\@oddhead
\makeatother

\begin{document}
\InsertMark{DictMark}{a}a
\InsertMark{DictMark}{b}b

\begin{multicols}{2}
\InsertMark{DictMark}{m}m
\InsertMark{DictMark}{n}n
\end{multicols}

%%--\InsertMark{DictMark}{z}z
\end{document}

Log file (required) and possibly PDF file

l3marks.log
l3marks.pdf

@FrankMittelbach
Copy link
Member

The problem is that multicol is still not yet enabled to support the new mark mechanism. I'm aware of that but haven't found the time to address this.

@FrankMittelbach FrankMittelbach added this to the Release 2024 Fall milestone Aug 1, 2024
Copy link

This issue has been automatically marked as stale because it has not had recent activity.

@github-actions github-actions bot added the stale label Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Pool (unscheduled issues)
Development

No branches or pull requests

2 participants