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

Using localtocs/depth throws undefined control sequence error #103

Open
renatospacek opened this issue Aug 16, 2024 · 0 comments
Open

Using localtocs/depth throws undefined control sequence error #103

renatospacek opened this issue Aug 16, 2024 · 0 comments

Comments

@renatospacek
Copy link

Whenever I load the class with the localtocs/depth option, it throws an undefined control sequence error:

...
<argument> \etocifunknownlevelTF 
                                 {\YAD@localtocsdepth }
l.470 \ProcessPgfOptions{/yad}
                              %
The control sequence at the end of the top line
of your error message was never \def'ed
...

I looked into yathesis.cls and noticed that \etocifunknownlevelTF is used in a test on line 339, but isn't defined until line 521:

\RequirePackage{etoc}[2016/09/29]%
\providecommand*\etocifunknownlevelTF[1]{\@ifundefined{Etoc@#1@@}}%
\ifdefined\etockeeporiginaltableofcontents\etockeeporiginaltableofcontents\fi

I played with the cls file, and loading etoc earlier on fixed it for me (but then I had to move the etockeeporiginaltableofcontents line before 484 when book is loaded to fix another error).

Thanks a lot for the very nice package!

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

1 participant