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

ctexhook needs be adapted to next latex version #532

Closed
u-fischer opened this issue Jul 22, 2020 · 0 comments
Closed

ctexhook needs be adapted to next latex version #532

u-fischer opened this issue Jul 22, 2020 · 0 comments
Assignees
Labels

Comments

@u-fischer
Copy link

u-fischer commented Jul 22, 2020

We just released a new development version of the next LaTeX version,
In this dev release we implemented a new hook system and extended the existing set of hooks.

Details can be found in the announcement:
https://www.latex-project.org/news/2020/07/22/latex-dev-2020-10-1b/

This changes break with xecjk as ctexhook patches \document in an incompatible way.

%compile with xelatex-dev
% LaTeX2e <2020-10-01> pre-release-7 (develop 2020-7-22 branch)
% L3 programming layer <2020-07-17> xparse <2020-03-03>
\documentclass[10pt]{book}

%\usepackage{xeCJK}

\RequirePackage {ctexhook}
\begin{document}
abc
\end{document}

gives

! Extra \endgroup.
\CTEX@document@left@hook ->\group_end: 
                                       \g__ctex_end_preamble_hook_tl \group_...
l.24 \begin{document}

Please adapt ctexhook so that is doesn't fail when the final release in October hits the streets.

The new hooks should allow ctex to add the needed code without patching \document. If you need help with the implementation or have questions please open an issue at the latex2e github.

Ulrike Fischer, LaTeX team

@qinglee qinglee self-assigned this Aug 1, 2020
@qinglee qinglee added the bug label Aug 1, 2020
@qinglee qinglee closed this as completed in d5fcab4 Aug 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants