Skip to content

Commit

Permalink
fix issue #49
Browse files Browse the repository at this point in the history
  • Loading branch information
cgnieder committed Mar 3, 2022
1 parent c364a5f commit a504042
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions code/chemmacros.lang.code.tex
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
{#3}
\prop_gput:Nnn \g_chemmacros_translations_prop {#1(#2)} {#3}
}
\cs_generate_variant:Nn \chemmacros_declare_translation:nnn {V}

% #1: key
% #2: csv list: { <lang1> = <translation1> , <lang2> = <translation2> }
Expand Down
2 changes: 1 addition & 1 deletion code/chemmacros.phases.code.tex
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
{
\mode_leave_vertical:
\bool_if:NTF \l__chemmacros_phases_sub_bool
{ \chemmacros_formula:n { {}_{(#1)} } }
{ \ensuremath { \c_math_subscript_token { \chemmacros_text:n { (#1) } } } }
{
\skip_horizontal:N \l__chemmacros_phases_space_dim
\chemmacros_text:n { (#1) }
Expand Down
3 changes: 2 additions & 1 deletion code/chemmacros.sty
Original file line number Diff line number Diff line change
Expand Up @@ -1132,6 +1132,7 @@
{#3}
\prop_gput:Nnn \g_chemmacros_translations_prop {#1(#2)} {#3}
}
\cs_generate_variant:Nn \chemmacros_declare_translation:nnn {V}

% #1: key
% #2: csv list: { <lang1> = <translation1> , <lang2> = <translation2> }
Expand Down Expand Up @@ -1858,7 +1859,7 @@
{
\mode_leave_vertical:
\bool_if:NTF \l__chemmacros_phases_sub_bool
{ \chemmacros_formula:n { {}_{(#1)} } }
{ \ensuremath { \c_math_subscript_token { \chemmacros_text:n { (#1) } } } }
{
\skip_horizontal:N \l__chemmacros_phases_space_dim
\chemmacros_text:n { (#1) }
Expand Down

0 comments on commit a504042

Please sign in to comment.