[tex-live] l3keys2e class options ignored with TL 2015
Joseph Wright
joseph.wright at morningstar2.co.uk
Mon Jun 29 13:19:37 CEST 2015
On 28/06/2015 22:16, Denis Bitouzé wrote:
> Hi,
>
> during compilation of the following MWE example:
>
> --8<---------------cut here---------------start------------->8---
> \begin{filecontents*}{myclass.cls}
> \RequirePackage{l3keys2e}
> \ExplSyntaxOn
> \ProvidesExplClass
> {myclass}
> {2015/06/28}
> {0.1}
> {
> My~nice~class!
> }
> \NeedsTeXFormat{LaTeX2e}
>
> \tl_new:N \g_key_tl
> \keys_define:nn { myclass }
> {
> key .tl_gset:N = \g_key_tl
> }
> \ProcessKeysOptions { myclass }
> \LoadClassWithOptions { article }
> \ExplSyntaxOff
> \end{filecontents*}
> %
> \documentclass[key=foo]{myclass}
> \begin{document}
> \ExplSyntaxOn
> \tl_show:N \g_key_tl
> \ExplSyntaxOff
> \end{document}
> --8<---------------cut here---------------end--------------->8---
>
> one has on TL:
>
> 1. 2014:
> ┌────
> │ (./test.aux)
> │ > \g_key_tl=macro:
> │ ->foo.
> │ <recently read> }
> │
> │ l.28 \tl_show:N \g_key_tl
> │
> │ ?
> └────
> which shows l3keys2e class option is taken into account (despite
> a LaTeX warning: "Unused global option(s): [key=foo]".)
>
> 2. 2015:
> ┌────
> │ (./test.aux)
> │ > \g_key_tl=macro:
> │ ->.
> │ <recently read> }
> │
> │ l.28 \tl_show:N \g_key_tl
> │
> │ ?
> └────
> which shows l3keys2e class option is /not/ taken into account (with
> the same LaTeX warning: "Unused global option(s): [key=foo]".)
>
> Here are the file lists, on:
>
> 1. 2014:
> ┌────
> │ *File List*
> │ myclass.cls 2015/06/28 v0.1 My nice class!
> │ l3keys2e.sty 2014/11/25 v5471 LaTeX2e option processing using LaTeX3 keys
> │ expl3.sty 2015/03/01 v5547 L3 programming layer (loader)
> │ expl3-code.tex 2015/03/01 v5547 L3 programming layer
> │ etex.sty 2015/03/02 v2.1 eTeX basic definition package (PEB,DPC)
> │ l3unicode-data.def 2015/03/01 v5544 L3 Unicode data
> │ l3pdfmode.def 2015/03/01 v5544 L3 Experimental driver: PDF mode
> │ article.cls 2014/09/29 v1.4h Standard LaTeX document class
> │ size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
> │ ***********
> └────
>
> 2. 2015:
> ┌────
> │ *File List*
> │ myclass.cls 2015/06/28 v0.1 My nice class!
> │ l3keys2e.sty 2015/06/15 v5630 LaTeX2e option processing using LaTeX3 keys
> │ expl3.sty 2015/06/15 v5630 L3 programming layer (loader)
> │ expl3-code.tex 2015/06/15 v5630 L3 programming layer
> │ l3unicode-data.def 2015/03/01 v5544 L3 Unicode data
> │ l3pdfmode.def 2015/05/21 v5613 L3 Experimental driver: PDF mode
> │ article.cls 2014/09/29 v1.4h Standard LaTeX document class
> │ size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
> │ ***********
> └────
>
> Thanks in anticipation for any hint.
> --
> Denis
>
I think I see what is going on here and will fix shortly. Note that this
is not a TeX Live issue per se and would best be reported via
https://github.com/latex3/svn-mirror/issues
--
Joseph Wright
More information about the tex-live
mailing list