summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-03-23 21:28:12 +0000
committerKarl Berry <karl@freefriends.org>2017-03-23 21:28:12 +0000
commit652642986982eb46e55c24b1163900fd1f995055 (patch)
tree23dc0cb7a3e834747b9e91cdd1a27bdbda554002 /Master
parente8b9155b1ee98d197b5a7be966ddc36f417c5203 (diff)
chemformula (23mar17)
git-svn-id: svn://tug.org/texlive/trunk@43583 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/chemformula/README4
-rw-r--r--Master/texmf-dist/doc/latex/chemformula/chemformula_en.pdfbin956853 -> 957854 bytes
-rw-r--r--Master/texmf-dist/doc/latex/chemformula/chemformula_en.tex2
-rw-r--r--Master/texmf-dist/tex/latex/chemformula/chemformula.sty74
4 files changed, 26 insertions, 54 deletions
diff --git a/Master/texmf-dist/doc/latex/chemformula/README b/Master/texmf-dist/doc/latex/chemformula/README
index 4fc7b52c0f3..b171813d7da 100644
--- a/Master/texmf-dist/doc/latex/chemformula/README
+++ b/Master/texmf-dist/doc/latex/chemformula/README
@@ -1,5 +1,5 @@
--------------------------------------------------------------------------
-the CHEMFORMULA package v4.15c 2016/08/21
+the CHEMFORMULA package v4.15e 2017/03/23
typeset chemical compounds and reactions
@@ -8,7 +8,7 @@ Clemens Niederberger
Web: http://www.mychemistry.eu/forums/forum/chemformula/
E-Mail: contact@mychemistry.eu
--------------------------------------------------------------------------
-Copyright 2011-2016 Clemens Niederberger
+Copyright 2011-2017 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/doc/latex/chemformula/chemformula_en.pdf b/Master/texmf-dist/doc/latex/chemformula/chemformula_en.pdf
index 5699adfb598..f89c0d11e89 100644
--- a/Master/texmf-dist/doc/latex/chemformula/chemformula_en.pdf
+++ b/Master/texmf-dist/doc/latex/chemformula/chemformula_en.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/chemformula/chemformula_en.tex b/Master/texmf-dist/doc/latex/chemformula/chemformula_en.tex
index 4380f73aa34..0ff1bc09798 100644
--- a/Master/texmf-dist/doc/latex/chemformula/chemformula_en.tex
+++ b/Master/texmf-dist/doc/latex/chemformula/chemformula_en.tex
@@ -16,7 +16,7 @@
% If you have any ideas, questions, suggestions or bugs to report, please
% feel free to contact me.
% --------------------------------------------------------------------------
-% Copyright 2011-2016 Clemens Niederberger
+% Copyright 2011-2017 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/chemformula/chemformula.sty b/Master/texmf-dist/tex/latex/chemformula/chemformula.sty
index 8570dad3f13..d909b178792 100644
--- a/Master/texmf-dist/tex/latex/chemformula/chemformula.sty
+++ b/Master/texmf-dist/tex/latex/chemformula/chemformula.sty
@@ -12,7 +12,7 @@
% If you have any ideas, questions, suggestions or bugs to report, please
% feel free to contact me.
% --------------------------------------------------------------------------
-% Copyright 2011-2016 Clemens Niederberger
+% Copyright 2011-2017 Clemens Niederberger
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
@@ -30,9 +30,9 @@
\usetikzlibrary{arrows.meta}
\ExplSyntaxOn
-\tl_const:Nn \c_chemformula_date_tl {2016/08/21}
+\tl_const:Nn \c_chemformula_date_tl {2017/03/23}
\tl_const:Nn \c_chemformula_version_number_tl {4.15}
-\tl_const:Nn \c_chemformula_version_suffix_tl {c}
+\tl_const:Nn \c_chemformula_version_suffix_tl {e}
\tl_const:Nx \c_chemformula_version_tl
{ \c_chemformula_version_number_tl \c_chemformula_version_suffix_tl }
\tl_const:Nn \c_chemformula_info_tl
@@ -160,7 +160,6 @@
\cs_generate_variant:Nn \dim_set:Nn { NV }
\cs_generate_variant:Nn \skip_set:Nn { cV }
\cs_generate_variant:Nn \str_if_eq:nnT { V }
-\cs_generate_variant:Nn \prop_if_in:NnT { x }
% --------------------------------------------------------------------------
% VARIABLES
@@ -1110,6 +1109,7 @@
\__chemformula_ch_newline:w #2 \\ \q_no_value \q_stop
\group_align_safe_end:
\tl_use:N \g__chemformula_output_tl
+% \tl_show:N \g__chemformula_output_tl
\tl_gclear:N \g__chemformula_output_tl
}
\cs_generate_variant:Nn \chemformula_ch:nn { V , nV , VV }
@@ -1139,62 +1139,18 @@
% bypass &:
\cs_new_protected:Npn \__chemformula_ch_align:w #1 & #2 \q_stop
{
- % \__chemformula_ch_label:w #1 \label \q_no_value \q_stop
- % \__chemformula_ch_tag:w #1 \tag{} \q_no_value \q_stop
\__chemformula_ch_intertext:w #1 \intertext{} \q_no_value \q_stop
- % \tl_gput_right:Nn \g__chemformula_output_tl
- % { \__chemformula_ch_main:n {#1} }
\quark_if_no_value:nF {#2}
{
\tl_gput_right:Nn \g__chemformula_output_tl { & }
\__chemformula_ch_align:w #2 \q_stop
}
}
-
-% bypass \label:
-% \cs_new_protected:Npn \__chemformula_ch_label:w #1 \label #2 \q_stop
-% {
-% \__chemformula_ch_tag:w #1 \tag{} \q_no_value \q_stop
-% \quark_if_no_value:nF {#2}
-% {
-% \tl_gput_right:Nn \g__chemformula_output_tl { \label }
-% \peek_meaning:NTF [ % ]
-% { \__chemformula_ch_label_opt:w }
-% { \__chemformula_ch_label_no_opt:n }
-% #2 \q_stop
-% }
-% }
-
-% \cs_new_protected:Npn \__chemformula_ch_label_opt:w [ #1 ] #2
-% {
-% \tl_gput_right:Nn \g__chemformula_output_tl { [{#1}] {#2} }
-% \__chemformula_ch_label:w
-% }
-
-% \cs_new_protected:Npn \__chemformula_ch_label_no_opt:n #1
-% {
-% \tl_gput_right:Nn \g__chemformula_output_tl { {#1} }
-% \__chemformula_ch_label:w
-% }
-
-% here's something not working when used together with `hyperref'
-% which seems to be related to \nonumber
-% bypass \tag:
-% \cs_new_protected:Npn \__chemformula_ch_tag:w #1 \tag#2 #3 \q_stop
-% {
-% \__chemformula_ch_intertext:w #1 \intertext{} \q_no_value \q_stop
-% \quark_if_no_value:nF {#3}
-% {
-% \tl_gput_right:Nn \g__chemformula_output_tl { \protect\tag {#2} }
-% \__chemformula_ch_tag:w #3 \q_stop
-% }
-% }
% bypass \intertext:
\cs_new_protected:Npn \__chemformula_ch_intertext:w #1 \intertext#2 #3 \q_stop
{
- \tl_gput_right:Nn \g__chemformula_output_tl
- { \__chemformula_ch_main:n {#1} }
+ \__chemformula_ch_shortintertext:w #1 \shortintertext{} \q_no_value \q_stop
\quark_if_no_value:nF {#3}
{
\tl_gput_right:Nn \g__chemformula_output_tl { \intertext {#2} }
@@ -1202,6 +1158,18 @@
}
}
+% bypass \shortintertext:
+\cs_new_protected:Npn \__chemformula_ch_shortintertext:w #1 \shortintertext#2 #3 \q_stop
+ {
+ \tl_gput_right:Nn \g__chemformula_output_tl
+ { \__chemformula_ch_main:n {#1} }
+ \quark_if_no_value:nF {#3}
+ {
+ \tl_gput_right:Nn \g__chemformula_output_tl { \shortintertext {#2} }
+ \__chemformula_ch_shortintertext:w #3 \q_stop
+ }
+ }
+
% --------------------------------------------------------------------------
% user commands:
\NewDocumentCommand \ch { O{}m }
@@ -1319,7 +1287,7 @@
\chemformula_dim_to_width:Nn \l__chemformula_name_dim
{
\chemformula_group_begin:
- \l__chemformula_name_format_tl #1
+ \l__chemformula_name_format_tl {#1}
\chemformula_group_end:
}
}
@@ -1327,7 +1295,7 @@
{ \dim_use:N \l__chemformula_name_dim }
{
\chemformula_group_begin:
- \l__chemformula_name_format_tl #1
+ \l__chemformula_name_format_tl {#1}
\chemformula_group_end:
}
}
@@ -3589,6 +3557,10 @@ VERSION HISTORY
\chemformula_single_bond:
- fix problem with TikZ externalization and
Kroeger-Vink notation
+2017/02/02 - version 4.15d - allow `name-format' to end with a macro that
+ takes an argument
+2017/03/23 - version 4.15e - small bug fix (issue #5)
+ - implement \shortintertext bypass
% --------------------------------------------------------------------------
% TODO