summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/latex/chemformula/README8
-rw-r--r--Master/texmf-dist/doc/latex/chemformula/chemformula-manual.pdf (renamed from Master/texmf-dist/doc/latex/chemformula/chemformula_en.pdf)bin857631 -> 857474 bytes
-rw-r--r--Master/texmf-dist/doc/latex/chemformula/chemformula-manual.tex (renamed from Master/texmf-dist/doc/latex/chemformula/chemformula_en.tex)171
-rw-r--r--Master/texmf-dist/tex/latex/chemformula/chemformula-manual.cls304
-rw-r--r--Master/texmf-dist/tex/latex/chemformula/chemformula.sty16
5 files changed, 329 insertions, 170 deletions
diff --git a/Master/texmf-dist/doc/latex/chemformula/README b/Master/texmf-dist/doc/latex/chemformula/README
index 3323880942d..5de7b5d18b9 100644
--- a/Master/texmf-dist/doc/latex/chemformula/README
+++ b/Master/texmf-dist/doc/latex/chemformula/README
@@ -1,14 +1,14 @@
--------------------------------------------------------------------------
-the CHEMFORMULA package v4.15g 2019/09/27
+the CHEMFORMULA package v4.15i 2020/02/01
typeset chemical compounds and reactions
--------------------------------------------------------------------------
Clemens Niederberger
-Web: http://www.mychemistry.eu/forums/forum/chemformula/
+Web: https://github.com/cgnieder/chemformula/
E-Mail: contact@mychemistry.eu
--------------------------------------------------------------------------
-Copyright 2011-2019 Clemens Niederberger
+Copyright 2011--2020 Clemens Niederberger
This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.3
@@ -24,7 +24,7 @@ The Current Maintainer of this work is Clemens Niederberger.
--------------------------------------------------------------------------
The chemformula package consists of the following files
- chemformula.sty,
- - chemformula_en.tex, chemformula_en.pdf,
+ - chemformula-manual.cls, chemformula-manual.tex, chemformula-manual.pdf,
- README
--------------------------------------------------------------------------
If you have any ideas, questions, suggestions or bugs to report, please
diff --git a/Master/texmf-dist/doc/latex/chemformula/chemformula_en.pdf b/Master/texmf-dist/doc/latex/chemformula/chemformula-manual.pdf
index b32d5e82050..ab030bac8a2 100644
--- a/Master/texmf-dist/doc/latex/chemformula/chemformula_en.pdf
+++ b/Master/texmf-dist/doc/latex/chemformula/chemformula-manual.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/chemformula/chemformula_en.tex b/Master/texmf-dist/doc/latex/chemformula/chemformula-manual.tex
index 234fa89f711..6ceb89003d8 100644
--- a/Master/texmf-dist/doc/latex/chemformula/chemformula_en.tex
+++ b/Master/texmf-dist/doc/latex/chemformula/chemformula-manual.tex
@@ -16,7 +16,7 @@
% If you have any ideas, questions, suggestions or bugs to report, please
% feel free to contact me.
% --------------------------------------------------------------------------
-% Copyright 2011-2019 Clemens Niederberger
+% Copyright 2011--2020 Clemens Niederberger
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
@@ -30,60 +30,9 @@
%
% The Current Maintainer of this work is Clemens Niederberger.
% --------------------------------------------------------------------------
-\documentclass[load-preamble+]{cnltx-doc}
-\usepackage[utf8]{inputenc}
-\usepackage[T1]{fontenc}
-\usepackage{chemformula}
-\usepackage{chemmacros}
-\setcnltx{
- package = {chemformula},
- info = {typeset chemical compounds and reactions} ,
- url = http://www.mychemistry.eu/forums/forum/chemformula/ ,
- authors = Clemens Niederberger ,
- email = contact@mychemistry.eu ,
- abstract = {%
- \centering
- \includegraphics{chemmacros-logo.pdf}
- \par
- } ,
- add-cmds = {
- bond,
- ce, ch, charrow, chcpd, chemformula@bondlength, chemsetup, chlewis,
- chname,
- DeclareChemAdditionSymbol, DeclareChemArrow, DeclareChemBond,
- DeclareChemBondAlias, DeclareChemCompoundProperty, DeclareChemSymbol,
- mch,
- NewChemAdditionSymbol, NewChemArrow, NewChemBond, NewChemBondAlias,
- NewChemCompoundProperty, NewChemSymbol,
- ox, OX,
- pch,
- redox, RemoveChemCompoundProperty, RenewChemAdditionSymbol,
- RenewChemArrow, RenewChemBond, RenewChemCompoundProperty,
- RenewChemSymbol,
- setchemformula, ShowChemArrow, ShowChemBond
- } ,
- add-silent-cmds = {
- addplot,
- chemfig,
- DeclareInstance, draw,
- sample, setchemfig, sfrac,
- usetikzlibrary
- } ,
- index-setup = { othercode=\footnotesize, level=\section , noclearpage } ,
- makeindex-setup = { columns=3, columnsep=1em }
-}
-
-\usepackage{chemfig,booktabs,cancel,varioref}
-\usepackage[version=4]{mhchem}
+\documentclass{chemformula-manual}
-\makeatletter
-\def\libertine@figurestyle{LF}
-\RequirePackage{amsmath}
-\undef\lvert \undef\lVert
-\undef\rvert \undef\rVert
-\RequirePackage[libertine]{newtxmath}
-\def\libertine@figurestyle{OsF}
-\makeatother
+\addbibresource{cnltx.bib}
\chemsetup{
greek = newtx ,
@@ -92,11 +41,6 @@
chemformula/format = \libertineLF
}
-\usepackage[biblatex]{embrac}
-\ChangeEmph{[}[,.02em]{]}[.055em,-.08em]
-\ChangeEmph{(}[-.01em,.04em]{)}[.04em,-.05em]
-\usepackage{csquotes}
-
\usepackage[accsupp]{acro}
\acsetup{
long-format = \scshape ,
@@ -109,9 +53,6 @@
accsupp = IUPAC
}
-% \chemsetup{ option/synchronize }
-% \setchemformula{ format = \libertineLF }
-
\sisetup{
detect-mode=false,
mode=text,
@@ -310,20 +251,6 @@ or need to divide them you need to add an empty group:
\cs{ch}\Marg{\cs*{command}\marg{} ABC}. The different input types are
described in the following sections.
-% % TODO: Module überdenken, Beschreibung anpassen
-% There are some options to customize the output of the \cs{ch} command. They
-% can either be applied locally using the optional argument or can be set
-% globally using the setup command. All options of \chemformula\ belong to the
-% module \module{chemformula} and can be set in different ways:
-% \begin{commands}
-% \command{chemsetup}[\Oarg{chemformula}\marg{options}]
-% when loaded via \chemmacros
-% \command{chemsetup}[\Marg{chemformula/\meta{options}}]
-% when loaded via \chemmacros
-% \command{setchemformula}[\marg{options}]
-% independent from \chemmacros
-% \end{commands}
-
\section{Stoichiometric Factors}
A stoichiometric factor may only contain of numbers and the signs
\verbcode+.,_/()+
@@ -1588,89 +1515,6 @@ There are a number of options for customizations:
Symbol for neutral particles.
\end{options}
-
-
-% \section{Further Examples}
-% This section presents some examples of a possible usage.
-
-% \begin{example}
-% \begin{reaction}[Synthese von Alkanen]
-% !(Synthesegas)( $n$ CO + $(2n+1)$ H2 )
-% ->[\SI{200}{\celsius}][[CoNi]]
-% C_{$n$}H_{$2n+2$} + $n$ H2O
-% \end{reaction}
-% \end{example}
-
-% \begin{example}
-% \begin{reactions*}
-% "a)" && CH4 + Cl2 &-> CH3Cl + HCl && "{\small Chlormethan/Methylchlorid}" \\
-% "b)" && CH3Cl + Cl2 &-> CH2Cl2 + HCl && "{\small Dichlormethan/Methylenchlorid}" \\
-% "c)" && CH2Cl2 + Cl2 &-> CHCl3 + HCl && "{\small Trichlormethan/Chloroform}" \\
-% "d)" && CHCl3 + Cl2 &-> CCl4 + HCl && "{\small Tetrachlormethan/Tetrachlorkohlenstoff}"
-% \end{reactions*}
-% \end{example}
-
-% \begin{example}
-% \chemsetup[ox]{parse=false}
-% \ch{
-% "\ox{\delm,C}" -{} "\ox{\delp,M}" \qquad
-% ( <-> "\ox{\delp,C}" -{} "\ox{\delm,Br}" )
-% } \\
-% \ch[adduct-space=0pt]{X. + .Y <=> X-Y + Bindungsenergie} \\
-% \ch[name-format=\normalsize]{
-% !(\State{H}{f}\qquad)() !(\textcolor{red}{??})( CH4\gas{} ) +
-% !(\num{0})( 2 O2\gas{} )
-% ->
-% !(\num{-94.3})( CO2\gas{} ) +
-% !(\num{-57.9})( H2O\lqd{} ) +
-% !(\num{-192.1})( "\State{H}" )
-% }
-% \end{example}
-
-% \begin{example}
-% \newcommand\cstack[1]{%
-% \clap{%
-% \begin{tabular}{c}
-% #1
-% \end{tabular}
-% }%
-% }
-% \begin{reactions*}
-% CH3MgBr + "\ox*{1,Cu}" X &
-% -> "\glqq" CH3 "\ox*{1,Cu}\grqq" + MgBrX "\qquad X~$=$~Br,I,CN" \\
-% 2 MeLi + CuI &
-% -> !(\cstack{Dimethylcuprat\\(Gilmann-Cuprat)})( Me2CuLi ) + Li
-% \end{reactions*}
-% \end{example}
-
-% \begin{example}
-% % needs `chemfig'
-% \begin{reactions*}
-% H3C-CH3 + Cl2 &
-% ->[$\Delta$][$h\nu$] H3CCH2Cl + HCl & &
-% "\Enthalpy{-27.1}" \\
-% H3C-CH3 + "\Lewis{0.,Cl}" &
-% -> H3CCH2 "\Lewis{0.,\vphantom{H}}" + HCl & &
-% "\Enthalpy{-5.0}" \\
-% H3C-CH2 "\Lewis{0.,\vphantom{H}}" + Cl2 &
-% -> H3CCH2Cl + "\Lewis{0.,Cl}" & &
-% "\Enthalpy{-23.0}"
-% \end{reactions*}
-% \end{example}
-
-% The following example shows how the cancelling of compounds could be
-% done\footnote{Inspired by a question on TeX.SE:
-% \url{http://tex.stackexchange.com/q/30118/5049}}.
-% \begin{example}
-% % needs `cancel'
-% \begin{align*}
-% \ch{\cancel{HCOOH\aq} + H2O\lqd{} &<=> H3O^+\aq{} + \cancel{HCOO^-\aq}} \\
-% \ch{\cancel{HCOO^-\aq} + H2O\lqd{} &<=> \cancel{HCOOH\aq} + OH^-\aq}\\[-1ex]
-% \cline{1-2}
-% \ch{H2O\lqd{} + H2O\lqd{} &<=> H3O^+\aq{} + OH^-\aq}
-% \end{align*}
-% \end{example}
-
\appendix
\newenvironment{changes}[2][]{%
\subsection*{Version #2\ifblank{#1}{}{ (#1)}}
@@ -1770,4 +1614,13 @@ There are a number of options for customizations:
\change New option \option{adduct-penalty}.
\end{changes}
+\begin{changes}{4.15}
+ \change The order of arrow definitions doesn't matter any more.
+ \change New quasi equilibria arrows.
+ \change Require \pkg{amsmath}.
+ \change Allow \option{name-format} to end with a macro that takes an
+ argument.
+ \change Various bug fixes.
+\end{changes}
+
\end{document}
diff --git a/Master/texmf-dist/tex/latex/chemformula/chemformula-manual.cls b/Master/texmf-dist/tex/latex/chemformula/chemformula-manual.cls
new file mode 100644
index 00000000000..e57fd961540
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/chemformula/chemformula-manual.cls
@@ -0,0 +1,304 @@
+% --------------------------------------------------------------------------
+% the CHEMFORMULA package
+%
+% typeset chemical compounds and reactions
+%
+% --------------------------------------------------------------------------
+% Clemens Niederberger
+% --------------------------------------------------------------------------
+% https://github.com/cgnieder/chemformula/
+% contact@mychemistry.eu
+% --------------------------------------------------------------------------
+% If you have any ideas, questions, suggestions or bugs to report, please
+% feel free to contact me.
+% --------------------------------------------------------------------------
+% Copyright 2011--2020 Clemens Niederberger
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status `maintained'.
+%
+% The Current Maintainer of this work is Clemens Niederberger.
+% --------------------------------------------------------------------------
+\ProvidesClass{chemformula-manual}[2020/02/01]
+
+\LoadClass[load-preamble,add-index]{cnltx-doc}
+\RequirePackage{imakeidx}
+\RequirePackage[utf8]{inputenc}
+
+\RequirePackage{chemformula}
+\RequirePackage{chemmacros}
+
+\setcnltx{
+ package = {chemformula},
+ info = {typeset chemical compounds and reactions} ,
+ url = http://www.mychemistry.eu/forums/forum/chemformula/ ,
+ authors = Clemens Niederberger ,
+ email = contact@mychemistry.eu ,
+ abstract = {%
+ \centering
+ \includegraphics{chemmacros-logo.pdf}
+ \par
+ } ,
+ add-cmds = {
+ bond,
+ ce, ch, charrow, chcpd, chemformula@bondlength, chemsetup, chlewis,
+ chname,
+ DeclareChemAdditionSymbol, DeclareChemArrow, DeclareChemBond,
+ DeclareChemBondAlias, DeclareChemCompoundProperty, DeclareChemSymbol,
+ mch,
+ NewChemAdditionSymbol, NewChemArrow, NewChemBond, NewChemBondAlias,
+ NewChemCompoundProperty, NewChemSymbol,
+ ox, OX,
+ pch,
+ redox, RemoveChemCompoundProperty, RenewChemAdditionSymbol,
+ RenewChemArrow, RenewChemBond, RenewChemCompoundProperty,
+ RenewChemSymbol,
+ setchemformula, ShowChemArrow, ShowChemBond
+ } ,
+ add-silent-cmds = {
+ addplot,
+ chemfig,
+ DeclareInstance, draw,
+ sample, setchemfig, sfrac,
+ usetikzlibrary
+ } ,
+ index-setup = { othercode=\footnotesize, level=\section } ,
+ makeindex-setup = { columns=3, columnsep=1em }
+}
+
+\RequirePackage{chemfig,booktabs,cancel,varioref}
+\RequirePackage[version=4]{mhchem}
+
+\def\libertine@figurestyle{LF}
+\RequirePackage{amsmath}
+\undef\lvert \undef\lVert
+\undef\rvert \undef\rVert
+\RequirePackage[libertine]{newtxmath}
+\def\libertine@figurestyle{OsF}
+
+\RequirePackage{fontawesome}
+\RequirePackage{datetime2}
+\DTMsetup{useregional=numeric,datesep=/}
+\newrobustcmd*\chemformula@add@version[2]{%
+ \csdef{chemformula@ver@#2}{%
+ \DTMdate{#1}%
+ \csgdef{chemformula@ver@#2used}{}%
+ \csdef{chemformula@ver@#2}{\DTMdate{#1}}%
+ }%
+}
+
+\newrobustcmd*\chemformula@date[1]{%
+ \ifcsdef{chemformula@ver@#1used}{}{ (\csuse{chemformula@ver@#1})}}
+\newrobustcmd*\chemformula@ifnew[1]{\ifcsstring{c_chemformula_version_tl}{#1}}
+\newrobustcmd*\chemformula@NEW{\faStarO\ New}
+
+\renewrobustcmd*\sinceversion[1]{%
+ \chemformula@ifnew{#1}%
+ {\cnltx@version@note{\textcolor{red}{\chemformula@NEW}}}%
+ {\cnltx@version@note{\GetTranslation{cnltx-introduced}~#1\chemformula@date{#1}}}%
+}
+\renewrobustcmd*\changedversion[1]{%
+ \cnltx@version@note{\GetTranslation{cnltx-changed}~#1\chemformula@date{#1}}%
+}
+
+\newnote*\sincechanged[2]{%
+ \GetTranslation{cnltx-introduced}~#1\chemformula@date{#1},
+ changed with version~#2\chemformula@date{#2}\chemformula@ifnew{#2}{ \chemformula@NEW}{}%
+}
+
+\RenewDocumentEnvironment{commands}{}
+ {%
+ \cnltx@set@catcode_{12}%
+ \let\command\cnltx@command
+ \cnltxlist
+ }
+ {\endcnltxlist}
+
+\RequirePackage{tcolorbox,xsimverb}
+\tcbuselibrary{skins,breakable}
+\tcbset{enhanced,enhanced jigsaw}
+
+\newtcolorbox{bewareofthedog}{
+ colback = white ,
+ colframe = red ,
+ underlay={%
+ \path[draw=none]
+ (interior.south west)
+ rectangle node[red]{\Huge\bfseries !}
+ ([xshift=-4mm]interior.north west);
+ }%
+}
+
+\newtcolorbox{cnltxcode}[1][]{
+ boxrule = 1pt ,
+ colback = cnltxbg ,
+ colframe = cnltx ,
+ arc = 5pt ,
+ beforeafter skip = .5\baselineskip ,%
+ #1%
+}
+
+\newcommand*\chemformula@readoptions[1]{%
+ \catcode`\^^M=13
+ \chemformula@read@options{#1}%
+}
+
+\begingroup
+\catcode`\^^M=13
+\gdef\chemformula@read@options#1#2^^M{%
+ \endgroup
+ \ifblank{#2}{}{\chemformula@read@options@#2}%
+ #1%
+ \XSIMfilewritestart*{\jobname.tmp}%
+}%
+\endgroup
+\def\chemformula@read@options@[#1]{\pgfqkeys{/cnltx}{#1}}
+
+\RenewDocumentEnvironment{sourcecode}{}
+ {%
+ \begingroup
+ \chemformula@readoptions{%
+ \setlength\cnltx@sidebysidewidth
+ {\dimexpr .45\columnwidth -\lst@xleftmargin -\lst@xrightmargin\relax}%
+ \expanded{%
+ \noexpand\lstset{
+ style=cnltx,
+ \ifboolexpe{ bool {cnltx@sidebyside} and not bool {cnltx@codeonly} }
+ {linewidth=\cnltx@sidebysidewidth,}{}%
+ \expandonce\cnltx@local@listings@options
+ }%
+ }%
+ \XSIMgobblechars{2}%
+ }%
+ }
+ {%
+ \XSIMfilewritestop
+ \cnltxcode[breakable]%
+ \lstinputlisting[style=cnltx]{\jobname.tmp}%
+ \endcnltxcode
+ }
+
+\RenewDocumentEnvironment{example}{}
+ {%
+ \begingroup
+ \chemformula@readoptions{%
+ \setlength\cnltx@sidebysidewidth
+ {\dimexpr .45\columnwidth -\lst@xleftmargin -\lst@xrightmargin\relax}%
+ \expanded{%
+ \noexpand\lstset{
+ style=cnltx,
+ \ifboolexpe{ bool {cnltx@sidebyside} and not bool {cnltx@codeonly} }
+ {linewidth=\cnltx@sidebysidewidth,}{}%
+ \expandonce\cnltx@local@listings@options
+ }%
+ }%
+ \XSIMgobblechars{2}%
+ }%
+ }
+ {%
+ \XSIMfilewritestop
+ \ifbool{cnltx@sidebyside}
+ {%
+ \cnltxcode
+ \noindent
+ \minipage[c]{\cnltx@sidebysidewidth}%
+ \cnltx@pre@source@hook
+ \lstinputlisting[style=cnltx] {\jobname.tmp}%
+ \cnltx@after@source@hook
+ \endminipage\hfill
+ \minipage[c]{\cnltx@sidebysidewidth}%
+ \cnltx@pre@example@hook
+ \input {\jobname.tmp}%
+ \cnltx@after@example@hook
+ \endminipage
+ }
+ {%
+ \cnltxcode[breakable]%
+ \cnltx@pre@source@hook
+ \lstinputlisting{\jobname.tmp}%
+ \cnltx@after@source@hook
+ \tcblower
+ \cnltx@pre@example@hook
+ \input {\jobname.tmp}%
+ \cnltx@after@example@hook
+ }%
+ \endcnltxcode
+ }
+
+\RequirePackage[
+ backend=biber,
+ style=cnltx,
+ sortlocale=en_US,
+ indexing=cite]{biblatex}
+\RequirePackage{csquotes,varioref}
+\defbibheading{bibliography}{\section{References}}
+
+\RequirePackage[biblatex]{embrac}[2012/06/29]
+\ChangeEmph{[}[,.02em]{]}[.055em,-.08em]
+\ChangeEmph{(}[-.01em,.04em]{)}[.04em,-.05em]
+
+\chemformula@add@version{2012-01-28}{3.0}
+\chemformula@add@version{2012-01-30}{3.0a}
+\chemformula@add@version{2012-02-03}{3.0b}
+\chemformula@add@version{2012-02-05}{3.0c}
+\chemformula@add@version{2012-02-10}{3.0d}
+\chemformula@add@version{2012-02-19}{3.1}
+\chemformula@add@version{2012-02-26}{3.1a}
+\chemformula@add@version{2012-03-03}{3.1b}
+\chemformula@add@version{2012-03-14}{3.1c}
+\chemformula@add@version{2012-03-20}{3.2}
+\chemformula@add@version{2012-05-07}{3.3}
+\chemformula@add@version{2012-05-13}{3.3a}
+\chemformula@add@version{2012-05-18}{3.3b}
+\chemformula@add@version{2012-05-18}{3.3c}
+\chemformula@add@version{2012-07-24}{3.3d}
+\chemformula@add@version{2012-08-21}{3.3e}
+\chemformula@add@version{2012-09-11}{3.4}
+\chemformula@add@version{2012-10-03}{3.4a}
+\chemformula@add@version{2013-01-04}{3.4b}
+\chemformula@add@version{2013-01-28}{3.5}
+\chemformula@add@version{2013-02-19}{3.5a}
+\chemformula@add@version{2013-02-26}{3.6}
+\chemformula@add@version{2013-02-27}{3.6a}
+\chemformula@add@version{2013-04-19}{3.6b}
+\chemformula@add@version{2013-07-06}{4.0}
+\chemformula@add@version{2013-07-26}{4.0a}
+\chemformula@add@version{2013-08-24}{4.1}
+\chemformula@add@version{2013-10-24}{4.2}
+\chemformula@add@version{2013-11-04}{4.2a}
+\chemformula@add@version{2014-01-24}{4.3}
+\chemformula@add@version{2014-01-29}{4.4}
+\chemformula@add@version{2014-04-07}{4.5}
+\chemformula@add@version{2014-06-30}{4.6}
+\chemformula@add@version{2014-08-04}{4.7}
+\chemformula@add@version{2014-08-08}{4.8}
+\chemformula@add@version{2014-10-07}{4.9}
+\chemformula@add@version{2015-03-16}{4.10}
+\chemformula@add@version{2015-04-03}{4.10a}
+\chemformula@add@version{2015-06-30}{4.11}
+\chemformula@add@version{2015-08-12}{4.12}
+\chemformula@add@version{2015-08-29}{4.12a}
+\chemformula@add@version{2015-09-08}{4.12b}
+\chemformula@add@version{2015-01-01}{4.13}
+\chemformula@add@version{2015-10-21}{4.14}
+\chemformula@add@version{2016-01-07}{4.14a}
+\chemformula@add@version{2016-05-03}{4.14b}
+\chemformula@add@version{2016-05-11}{4.15}
+\chemformula@add@version{2016-06-08}{4.15a}
+\chemformula@add@version{2016-06-08}{4.15b}
+\chemformula@add@version{2016-08-21}{4.15c}
+\chemformula@add@version{2017-02-02}{4.15d}
+\chemformula@add@version{2017-03-23}{4.15e}
+\chemformula@add@version{2019-09-23}{4.15f}
+\chemformula@add@version{2019-09-27}{4.15g}
+\chemformula@add@version{2019-10-13}{4.15h}
+\chemformula@add@version{2020-02-01}{4.15i}
+
+\endinput
diff --git a/Master/texmf-dist/tex/latex/chemformula/chemformula.sty b/Master/texmf-dist/tex/latex/chemformula/chemformula.sty
index 4fc8bb60ed7..f54109bf59b 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-2019 Clemens Niederberger
+% Copyright 2011--2020 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 {2019/10/13}
+\tl_const:Nn \c_chemformula_date_tl {2020/02/01}
\tl_const:Nn \c_chemformula_version_number_tl {4.15}
-\tl_const:Nn \c_chemformula_version_suffix_tl {h}
+\tl_const:Nn \c_chemformula_version_suffix_tl {i}
\tl_const:Nx \c_chemformula_version_tl
{ \c_chemformula_version_number_tl \c_chemformula_version_suffix_tl }
\tl_const:Nn \c_chemformula_info_tl
@@ -1487,17 +1487,18 @@
\cs_new_protected:Npn \chemformula_bond:n #1
{
\chemformula_skip_nobreak:N \l__chemformula_bond_space_dim
+ \hbox_set:Nn \l__chemformula_tmpa_box {K}
+ \dim_set:Nn \l__chemformula_tmpa_dim { \box_ht:N \l__chemformula_tmpa_box }
\chemformula_tikz:nn
{
inner~sep = 0pt ,
outer~sep = 0pt ,
- text~height = 1em ,
+ text~height = \l__chemformula_tmpa_dim ,
baseline = (chemformula-bond-ground.base)
}
{
- \draw node[ draw=none, minimum~height=1em, minimum~width=0 ]
- (chemformula-bond-ground) at (0pt,0pt) {};
- \draw (chemformula-bond-ground) ++ (0pt,-.1716em)
+ \coordinate (chemformula-bond-ground) at (0pt,0pt) ;
+ \draw (chemformula-bond-ground) ++ (0pt,.5\l__chemformula_tmpa_dim)
coordinate (chemformula-bond-start) ;
\draw (chemformula-bond-start) ++(\l__chemformula_bond_dim ,0pt)
coordinate (chemformula-bond-end) ;
@@ -3578,6 +3579,7 @@ VERSION HISTORY
(https://tex.stackexchange.com/q/511592/)
- fix bug: local format changes are now applied
again
+2020/02/01 - version 4.15i - fix issue #12
% --------------------------------------------------------------------------
% IDEAS: