summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/substances
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-05-09 23:34:26 +0000
committerKarl Berry <karl@freefriends.org>2016-05-09 23:34:26 +0000
commit53eae4e2e335f5e6e2f04db4931c70c5f1084741 (patch)
tree25ff8e342d0d1c74069836935f864a48fec032c8 /Master/texmf-dist/tex/latex/substances
parent4fcdc96579fbc394645c1071c6b05ddba12aad72 (diff)
substances (9may16)
git-svn-id: svn://tug.org/texlive/trunk@40989 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/substances')
-rw-r--r--Master/texmf-dist/tex/latex/substances/substances-default.def2
-rw-r--r--Master/texmf-dist/tex/latex/substances/substances.sty23
2 files changed, 14 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/latex/substances/substances-default.def b/Master/texmf-dist/tex/latex/substances/substances-default.def
index c88c6a98fc3..36fac6456b3 100644
--- a/Master/texmf-dist/tex/latex/substances/substances-default.def
+++ b/Master/texmf-dist/tex/latex/substances/substances-default.def
@@ -8,7 +8,7 @@
% Web: https://bitbucket.org/cgnieder/substances/
% E-Mail: contact@mychemistry.eu
% --------------------------------------------------------------------------
-% Copyright 2012--2015 Clemens Niederberger
+% Copyright 2012--2016 Clemens Niederberger
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
diff --git a/Master/texmf-dist/tex/latex/substances/substances.sty b/Master/texmf-dist/tex/latex/substances/substances.sty
index 286c9463218..5ef0a4cb68c 100644
--- a/Master/texmf-dist/tex/latex/substances/substances.sty
+++ b/Master/texmf-dist/tex/latex/substances/substances.sty
@@ -8,7 +8,7 @@
% Web: https://bitbucket.org/cgnieder/substances/
% E-Mail: contact@mychemistry.eu
% --------------------------------------------------------------------------
-% Copyright 2012--2015 Clemens Niederberger
+% Copyright 2012--2016 Clemens Niederberger
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
@@ -32,8 +32,8 @@
\RequirePackage{ expl3 , xparse , l3keys2e , xtemplate }
\ProvidesExplPackage
{substances}
- {2015/10/21}
- {0.2}
+ {2016/01/07}
+ {0.2a}
{A Chemical Database}
\RequirePackage{chemmacros,chemfig,ghsystem}
@@ -64,6 +64,8 @@
\tl_new:N \l__substances_style_tl
\tl_set:Nn \l__substances_style_tl {default}
+\cs_generate_variant:Nn \prop_get:NnN { c }
+
\AtBeginDocument
{
\@ifpackageloaded {imakeidx}
@@ -190,7 +192,7 @@
\prop_if_in:NnTF \l__substances_sort_prop {#1}
{
\substances_remove_braces_set:xN
- { \prop_get:Nn \l__substances_sort_prop {#1} }
+ { \prop_item:Nn \l__substances_sort_prop {#1} }
\l__substances_tmpa_tl
}
{
@@ -209,7 +211,7 @@
\prop_if_in:NnTF \l__substances_altsort_prop {#1}
{
\substances_remove_braces_set:xN
- { \prop_get:Nn \l__substances_altsort_prop {#1} }
+ { \prop_item:Nn \l__substances_altsort_prop {#1} }
\l__substances_tmpa_tl
}
{
@@ -248,7 +250,7 @@
\IfSubstanceFieldTF {#2}
{
\IfSubstancePropertyTF {#1} {#2}
- { \prop_get:cn { l__substances_#2_prop } {#1} }
+ { \prop_item:cn { l__substances_#2_prop } {#1} }
{ {??} \substances_msg:nnn {property-missing} {#1} {#2} }
}
{ {??} \substances_msg:nnn {field-missing} {#1} {#2} }
@@ -365,7 +367,7 @@
\cs_new_protected:Npn \substances_remove_str_unbrace_set:nnnN #1#2#3#4
{
- \tl_set:Nx #4 { \prop_get:cn { l__substances_#3_prop } {#2} }
+ \prop_get:cnN { l__substances_#3_prop } {#2} #4
\tl_remove_all:Nn #4 {#1}
\substances_remove_braces_set:xN {#4} #4
}
@@ -398,7 +400,7 @@
\substances_index:nx { \c_job_name_tl -chem }
{
\SubstanceIndexNameAltEntry
- { \prop_get:Nn \l__substances_sort_prop {#1} }
+ { \prop_item:Nn \l__substances_sort_prop {#1} }
{ \GetSubstanceProperty {#1} {name} }
{ \GetSubstanceProperty {#1} {alt} }
}
@@ -412,7 +414,7 @@
\substances_index:nx { \c_job_name_tl -chem }
{
\SubstanceIndexNameEntry
- { \prop_get:Nn \l__substances_sort_prop {#1} }
+ { \prop_item:Nn \l__substances_sort_prop {#1} }
{ \GetSubstanceProperty {#1} {name} }
}
}
@@ -431,7 +433,7 @@
\substances_index:nx { \c_job_name_tl -chem }
{
\SubstanceIndexAltEntry
- { \prop_get:Nn \l__substances_altsort_prop {#1} }
+ { \prop_item:Nn \l__substances_altsort_prop {#1} }
{ \GetSubstanceProperty {#1} {name} }
{ \GetSubstanceProperty {#1} {alt} }
}
@@ -583,5 +585,6 @@
2015/10/21 v0.2 - maintenance: minor fixes, adapt to chemmacros v5
- change implementation of how style files are loaded
- change implementation of how database files are loaded
+2016/01/07 v0.2a - \prop_get:Nn => \prop_item:Nn
% TODO: