Hi, with the code
\documentclass{article} \usepackage{luamplib} \usepackage{simplekv} \setKVdefault[Test]{Solution=false} \defKV[Test]{CouleurSolution=\setKV[Test]{Solution}} \begin{document} \begin{mplibcode} beginfig(1); boolean Solution; color CoulSol; Solution=\useKV[Test]{Solution}; if Solution: CoulSol=\useKV[Test]{CouleurSolution}; fi; draw (0,0)--(50,50) if Solution:withcolor CoulSol fi; endfig; \end{mplibcode} \end{document} the compilation is ok with simplekv 0.2c but not with simplekv 0.3. It's a problem with "accents". I join the log. Greetings. Christophe
This is LuaHBTeX, Version 1.18.0 (TeX Live 2024) (format=lualatex 2025.3.1) 25 MAY 2025 22:49 restricted system commands enabled. file:line:error style messages enabled. **Testsimplekv.tex (./Testsimplekv.tex LaTeX2e <2024-11-01> patch level 2 L3 programming layer <2025-01-18> Lua module: luaotfload 2024-12-03 v3.29 Lua based OpenType font support Lua module: lualibs 2023-07-13 v2.76 ConTeXt Lua standard libraries. Lua module: lualibs-extended 2023-07-13 v2.76 ConTeXt Lua libraries -- extended collection. luaotfload | conf : Root cache directory is "/home/christophe/.texlive2024/texmf -var/luatex-cache/generic/names". luaotfload | init : Loading fontloader "fontloader-2023-12-28.lua" from kpse-res olved path "/usr/local/texlive/2024/texmf-dist/tex/luatex/luaotfload/fontloader- 2023-12-28.lua". Lua-only attribute luaotfload@noligature = 1 luaotfload | init : Context OpenType loader version 3.134 Inserting `luaotfload.node_processor' in `pre_linebreak_filter'. Inserting `luaotfload.node_processor' in `hpack_filter'. Inserting `luaotfload.glyph_stream' in `glyph_stream_provider'. Inserting `luaotfload.define_font' in `define_font'. Lua-only attribute luaotfload_color_attribute = 2 luaotfload | conf : Root cache directory is "/home/christophe/.texlive2024/texmf -var/luatex-cache/generic/names". Inserting `luaotfload.harf.strip_prefix' in `find_opentype_file'. Inserting `luaotfload.harf.strip_prefix' in `find_truetype_file'. Removing `luaotfload.glyph_stream' from `glyph_stream_provider'. Inserting `luaotfload.harf.glyphstream' in `glyph_stream_provider'. Inserting `luaotfload.harf.finalize_vlist' in `post_linebreak_filter'. Inserting `luaotfload.harf.finalize_hlist' in `hpack_filter'. Inserting `luaotfload.cleanup_files' in `wrapup_run'. Inserting `luaotfload.harf.finalize_unicode' in `finish_pdffile'. Inserting `luaotfload.glyphinfo' in `glyph_info'. Lua-only attribute luaotfload.letterspace_done = 3 Inserting `luaotfload.aux.set_sscale_dimens' in `luaotfload.patch_font'. Inserting `luaotfload.aux.set_font_index' in `luaotfload.patch_font'. Inserting `luaotfload.aux.patch_cambria_domh' in `luaotfload.patch_font'. Inserting `luaotfload.aux.fixup_fontdata' in `luaotfload.patch_font_unsafe'. Inserting `luaotfload.aux.set_capheight' in `luaotfload.patch_font'. Inserting `luaotfload.aux.set_xheight' in `luaotfload.patch_font'. Inserting `luaotfload.rewrite_fontname' in `luaotfload.patch_font'. Inserting `tracingstacklevels' in `input_level_string'. (/usr/local/texlive/202 4/texmf-dist/tex/latex/base/article.cls Document Class: article 2024/06/29 v1.4n Standard LaTeX document class (/usr/local/texlive/2024/texmf-dist/tex/latex/base/size10.clo File: size10.clo 2024/06/29 v1.4n Standard LaTeX file (size option) luaotfload | db : Font names database loaded from /home/christophe/.texlive2024/ texmf-var/luatex-cache/generic/names/luaotfload-names.luc.gz) \c@part=\count194 \c@section=\count195 \c@subsection=\count196 \c@subsubsection=\count197 \c@paragraph=\count198 \c@subparagraph=\count199 \c@figure=\count266 \c@table=\count267 \abovecaptionskip=\skip49 \belowcaptionskip=\skip50 \bibindent=\dimen140 ) (/usr/local/texlive/2024/texmf-dist/tex/luatex/luamplib/luamplib.sty Package: luamplib 2025/02/18 v2.37.1 mplib package for LuaTeX Lua module: luamplib 2025/02/18 v2.37.1 Lua package to typeset Metapost with Lua TeX's MPLib. \luamplibcctabexplat=\catcodetable14 \mplibtmptoks=\toks17 \mplibscratchbox=\box52 ) (/usr/local/texlive/2024/texmf-dist/tex/generic/simplekv/simplekv.sty (./simplekv.tex) Package: simplekv 2025/05/24 v0.3 Simple keyval package (CT) ) (/usr/local/texlive/2024/texmf-dist/tex/latex/l3backend/l3backend-luatex.def File: l3backend-luatex.def 2024-05-08 L3 backend support: PDF output (LuaTeX) \l__color_backend_stack_int=\count268 Inserting `l3color' in `luaotfload.parse_color'. \l__pdf_internal_box=\box53 ) (./Testsimplekv.aux) \openout1 = Testsimplekv.aux LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 8. LaTeX Font Info: ... okay on input line 8. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 8. LaTeX Font Info: ... okay on input line 8. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 8. LaTeX Font Info: ... okay on input line 8. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 8. LaTeX Font Info: ... okay on input line 8. LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 8. LaTeX Font Info: ... okay on input line 8. LaTeX Font Info: Checking defaults for TU/lmr/m/n on input line 8. LaTeX Font Info: ... okay on input line 8. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 8. LaTeX Font Info: ... okay on input line 8. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 8. LaTeX Font Info: ... okay on input line 8. Module luamplib Warning: ! Text line contains an invalid character. <*> ...ol=\errmessage {Package simplekv Error: Clà © "CouleurSolution" non dÃ... A funny symbol that I can't read has just been input. Continue, and I'll forget that it ever happened. ! Text line contains an invalid character. <*> ...l=\errmessage {Package simplekv Error: Clé "CouleurSolution" non dé... A funny symbol that I can't read has just been input. Continue, and I'll forget that it ever happened. ! Text line contains an invalid character. <*> ...mplekv Error: Clé "CouleurSolution" non dà ©finie dans le groupe de c... A funny symbol that I can't read has just been input. Continue, and I'll forget that it ever happened. ! Text line contains an invalid character. <*> ...plekv Error: Clé "CouleurSolution" non dé finie dans le groupe de cl... A funny symbol that I can't read has just been input. Continue, and I'll forget that it ever happened. ! Text line contains an invalid character. <*> ...olution" non définie dans le groupe de clà ©s "Test".}; A funny symbol that I can't read has just been input. Continue, and I'll forget that it ever happened. ! Text line contains an invalid character. <*> ...lution" non définie dans le groupe de clé s "Test".}; A funny symbol that I can't read has just been input. Continue, and I'll forget that it ever happened. [1] (luamplib) on input line 19 Module luamplib Error: see above messages on input line 19 stack traceback: [C]: in function 'error' ...texlive/2024/texmf-dist/tex/luatex/luamplib/luamplib.lua:45: in upvalue 'ter morlog' ...texlive/2024/texmf-dist/tex/luatex/luamplib/luamplib.lua:55: in upvalue 'err ' ...texlive/2024/texmf-dist/tex/luatex/luamplib/luamplib.lua:281: in upvalue 're porterror' ...texlive/2024/texmf-dist/tex/luatex/luamplib/luamplib.lua:350: in upvalue 'pr ocess' ...texlive/2024/texmf-dist/tex/luatex/luamplib/luamplib.lua:1763: in field 'pro cess_mplibcode' [\directlua]:1: in main chunk. <inserted text> BAD l.19 \end{mplibcode} The lua interpreter ran into a problem, so the remainder of this lua chunk will be ignored. (./Testsimplekv.aux) *********** LaTeX2e <2024-11-01> patch level 2 L3 programming layer <2025-01-18> *********** ) Here is how much of LuaTeX's memory you used: 654 strings out of 475512 100000,552014 words of node,token memory allocated 413 words of node memory still in use: 3 hlist, 1 vlist, 1 rule, 2 glue, 3 kern, 1 glyph, 5 attribute, 48 glue_spec, 5 attribute_list, 2 write nodes avail lists: 2:7,3:1,4:1,5:4,7:1,9:1 23733 multiletter control sequences out of 65536+600000 15 fonts using 723367 bytes 35i,1n,49p,304b,80s stack positions out of 10000i,1000n,20000p,200000b,200000s warning (pdf backend): no pages of output. PDF statistics: 0 PDF objects out of 1000 (max. 8388607) 0 named destinations out of 1000 (max. 131072) 1 words of extra memory for PDF output out of 10000 (max. 100000000)