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

Undefined control sequence M@currentTitle #6716

Open
intractabilis opened this issue Nov 30, 2023 · 5 comments
Open

Undefined control sequence M@currentTitle #6716

intractabilis opened this issue Nov 30, 2023 · 5 comments

Comments

@intractabilis
Copy link

The document uses an undocumented command from the Memoir class, \M@currentTitle. This command is not present in the version of The Memoir Class available on CTAN. The older versions of the class are not available on CTAN. An attempt to compile the document ends up with

! Undefined control sequence.
\customlabel ...tleReference {#2}{\M@currentTitle 
                                                  }}\MNR@label {#1}\endgroup...
l.3 \rSec0[intro.scope]{Scope}
@top-sekret
Copy link

I can confirm this issue. I run Debian sid, with TeXLive 20231207 and I get the exact same error. Using the Docker image texlive/texlive:latest-full I also get the exact same error. The Docker image texlive/texlive:TL2022-historic seems to work, so this may be a recent issue.

@tkoeppe
Copy link
Contributor

tkoeppe commented Dec 17, 2023

Pull requests welcome!

@intractabilis
Copy link
Author

I would gladly create a PR, if someone explains what that customLabel is supposed to do. \M@currentTitle is not documented, so it's hard to guess, and the previous version of The Memoir Class is not available on CTAN.

@tkoeppe
Copy link
Contributor

tkoeppe commented Dec 17, 2023

It's used for this trick here:

draft/source/macros.tex

Lines 79 to 86 in 64ad91d

% Set the xref label for a clause to be "Clause n", not just "n".
\makeatletter
\newcommand{\customlabel}[2]{%
\@bsphack \begingroup \protected@edef \@currentlabel {\protect \M@TitleReference{#2}{\M@currentTitle}}\MNR@label{#1}\endgroup \@esphack%
}
\makeatother
\newcommand{\clauselabel}[1]{\customlabel{#1}{Clause \thechapter}}
\newcommand{\annexlabel}[1]{\customlabel{#1}{Annex \thechapter}}

@intractabilis
Copy link
Author

I haven't touched anything yet, but I see hundreds of new undefined control sequence messages. It's a nightmare. I pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants