From edc6f5528c756c35762db362bc713fd19d9285f9 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 8 Mar 2016 22:33:02 +0000 Subject: chemmacros (8mar16) git-svn-id: svn://tug.org/texlive/trunk@39973 c570f23f-e606-0410-a88d-b1316a301751 --- .../chemmacros/chemmacros.module.thermodynamics.code.tex | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.thermodynamics.code.tex') diff --git a/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.thermodynamics.code.tex b/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.thermodynamics.code.tex index 3905aaf5987..0838397b169 100644 --- a/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.thermodynamics.code.tex +++ b/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.thermodynamics.code.tex @@ -43,7 +43,7 @@ \tl_set:Nn \l__chemmacros_state_sp_right_tl { \standardstate } \tl_set:Nn \l__chemmacros_state_sb_pos_tl {left} -\keys_define:nn {chemmacros/thermodynamics} +\chemmacros_define_keys:nn {thermodynamics} { pre .tl_set:N = \l__chemmacros_state_pre_tl , post .tl_set:N = \l__chemmacros_state_post_tl , @@ -66,7 +66,7 @@ % subscript-left % subscript-right \group_begin: - \keys_set:nn {chemmacros/thermodynamics} {#1} + \chemmacros_set_keys:nn {thermodynamics} {#1} \ensuremath { \chemmacros_text:V \l__chemmacros_state_pre_tl @@ -90,7 +90,8 @@ \cs_new_protected:Npn \chemmacros_declare_state:Nn #1#2 { - \keys_define:xn {chemmacros/thermodynamics/\chemmacros_remove_backslash:N #1} + \chemmacros_define_keys:xn + {thermodynamics/\chemmacros_remove_backslash:N #1} { pre .meta:nn = {chemmacros/thermodynamics} { pre = ##1 } , post .meta:nn = {chemmacros/thermodynamics} { post = ##1 } , @@ -109,16 +110,18 @@ \DeclareDocumentCommand #1 { sO{}D(){}m } { \group_begin: - \keys_set:xn {chemmacros/thermodynamics/\chemmacros_remove_backslash:N #1} {#2} + \chemmacros_set_keys:xn + {thermodynamics/\chemmacros_remove_backslash:N #1} + {#2} \tl_if_blank:nF {##3} { - \keys_set:nx {chemmacros/thermodynamics} + \chemmacros_set_keys:nx {thermodynamics} { subscript-\l__chemmacros_state_sb_pos_tl = \exp_not:n {##3} } } \ensuremath { \chemmacros_state:nV {##2} \l__chemmacros_state_symbol_tl - \keys_set_groups:nnn {chemmacros/thermodynamics} {variables} {##2} + \chemmacros_set_keys_groups:nnn {thermodynamics} {variables} {##2} \IfBooleanF {##1} { = \SI {##4} { \l__chemmacros_state_unit_tl } } } \group_end: -- cgit v1.2.3