Am Donnerstag, dem 12.03.2026 um 09:54 +0000 schrieb LIANG Zhuobin:
> ## Summary
> When upgrading a document created with **LyX 2.4** that contains
> tables in a**Beamer** document class, LyX 2.5 may generate LaTeX code
> that fails to compile due to an undefined command `\SetKeys`.
> The issue appears in **macOS + TeX Live**, but does not occur in
> **Windows + MiKTeX** in my tests.
> 
> ## Steps to Reproduce
> 1. Create a Beamer document in **LyX 2.4**.
> 2. Insert a simple table.
> 3. Save the file.
> 4. Open it in **LyX 2.5** and allow the format upgrade.
> 5. Compile using **pdflatex**.
> Compilation fails with:
> ```
> ! Undefined control sequence.
> \__hook_toplevel begindocument ->\SetKeys [xcolor]{table}
> l.33 \begin{document}
> ```

First, none of the two files you attached shows this behavior. Also the
recipe above does not trigger the behavior for me.

Second, \SetKeys has been introduced to the LaTeX kernel with 2022-06-
01, almost four years ago. What version do you have?

Third, this command is only introduced by lyx2lyx on _reversion_ from
2.5 to 2.4 on specific conditions (if you use alternating row colors
and xcolor colors), the recipe you describe looks very unlikely.

So we need a more precise description in order to understand what
happens for you, and why.

-- 
Jürgen
-- 
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to