| 1 |
-------------------------------------------------------------------------- |
| 2 |
the CHEMFORMULA package |
| 3 |
|
| 4 |
typeset chemical compounds and reactions |
| 5 |
|
| 6 |
-------------------------------------------------------------------------- |
| 7 |
Clemens Niederberger |
| 8 |
-------------------------------------------------------------------------- |
| 9 |
https://github.com/cgnieder/chemformula/ |
| 10 |
[email protected] |
| 11 |
-------------------------------------------------------------------------- |
| 12 |
If you have any ideas, questions, suggestions or bugs to report, please |
| 13 |
feel free to contact me. |
| 14 |
-------------------------------------------------------------------------- |
| 15 |
Copyright 2011--2022 Clemens Niederberger |
| 16 |
|
| 17 |
This work may be distributed and/or modified under the |
| 18 |
conditions of the LaTeX Project Public License, either version 1.3 |
| 19 |
of this license or (at your option) any later version. |
| 20 |
The latest version of this license is in |
| 21 |
http://www.latex-project.org/lppl.txt |
| 22 |
and version 1.3 or later is part of all distributions of LaTeX |
| 23 |
version 2005/12/01 or later. |
| 24 |
|
| 25 |
This work has the LPPL maintenance status `maintained'. |
| 26 |
|
| 27 |
The Current Maintainer of this work is Clemens Niederberger. |
| 28 |
-------------------------------------------------------------------------- |
| 29 |
VERSION HISTORY |
| 30 |
2012/01/28 - version 3.0 - bundled with packages `chemmacros' and `ghs' |
| 31 |
2012/01/30 - version 3.0a - bugfix |
| 32 |
- renamed formula => chemformula |
| 33 |
(following a request by Karl Berry for TeXlive) |
| 34 |
2012/02/03 - version 3.0b - stepped number with `chemmacros' |
| 35 |
2012/02/05 - version 3.0c - stepped number with `chemmacros' |
| 36 |
2012/02/10 - version 3.0d - several bugfixes |
| 37 |
- new arrow type <> |
| 38 |
2012/02/19 - version 3.1 - new arrow types -/>, </- and <o> |
| 39 |
- new commands \DeclareChemArrow, \RenewChemArrow and |
| 40 |
\ShowChemArrow |
| 41 |
2012/02/26 - version 3.1a - stepped number with `chemmacros' |
| 42 |
2012/03/03 - version 3.1b - arrow types are stored in a sequence to automate the |
| 43 |
search and replace in the right order |
| 44 |
- new arrow type == |
| 45 |
- IUPAC compliance for stoichiometric factors |
| 46 |
- new handling of super- and subscripts to correct |
| 47 |
various flaws: clear distinction between isotope and |
| 48 |
formula |
| 49 |
- new option charge-vshift |
| 50 |
2012/03/14 - version 3.1c - improved arrow labels |
| 51 |
2012/03/20 - version 3.2 - new: option input via @{<options>} |
| 52 |
2012/05/07 - version 3.3 - \ch now bypasses \ref{}, \label{}, and \intertext{} |
| 53 |
2012/05/13 - version 3.3a - stepped number with `chemmacros' |
| 54 |
2012/05/18 - version 3.3b - stepped number with `chemmacros' |
| 55 |
2012/05/18 - version 3.3c - stepped number with `chemmacros' |
| 56 |
2012/07/24 - version 3.3d - stepped number with `chemmacros' |
| 57 |
- default bond length set to 1.1667ex |
| 58 |
- bug fix in the bonds |
| 59 |
2012/08/21 - version 3.3e - stepped number with `chemmacros' |
| 60 |
2012/09/11 - version 3.4 - cleaned a little, minor bug fixes |
| 61 |
- switched to internal scratch variables |
| 62 |
- new command \bond, more bond types |
| 63 |
- new commands \DeclareChemBond, \DeclareChemBondAlias, |
| 64 |
\RenewChemBond and \ShowChemBond |
| 65 |
- radical point thicker, new options `radical-style' |
| 66 |
and `radical-radius' |
| 67 |
2012/10/03 - version 3.4a - stepped number with `chemmacros' |
| 68 |
2013/01/04 - version 3.4b - bug fix in the sub- and superscript handling |
| 69 |
2013/01/28 - version 3.5 - disallow breaks at bonds |
| 70 |
- allow breaks after arrows |
| 71 |
- made some spaces in chemformulas stretch- and |
| 72 |
shrinkable |
| 73 |
- various internal code improvements |
| 74 |
- changed defaults for horizontal spaces that have in |
| 75 |
set in ex into corresponding values in em. |
| 76 |
- improvements to the placement of sub- and superscripts |
| 77 |
2013/02/19 - version 3.5a - stepped number with `chemmacros' |
| 78 |
2013/02/26 - version 3.6 - support for use with the `breqn' package |
| 79 |
- math escaping also via \(\) |
| 80 |
- internal: clearer escaping macros |
| 81 |
- new options: `radical-vshift', `radical-hshift' |
| 82 |
and `radical-space' |
| 83 |
- bug fix: `radical-...' options are now correctly set |
| 84 |
- stoichiometric factors: add leading 0 if missing |
| 85 |
- new option: `stoich-paren-parse' |
| 86 |
- internal changes: be way more rigid about protected |
| 87 |
and expandable macros |
| 88 |
- internal changes: clearer distinction between |
| 89 |
private macros and accessable module macros |
| 90 |
- internal changes: clearer distinction between |
| 91 |
document commands and module level commands |
| 92 |
- !()() syntax now also works with babel's French |
| 93 |
2013/02/27 - version 3.6a - bug fix: escaped text and math stays escaped, i.e. |
| 94 |
also arrow code like `<=>' |
| 95 |
2013/04/19 - version 3.6b - new option `arrow-min-length' |
| 96 |
- bug fix: stoichiometric fractions correctly displayed |
| 97 |
2013/07/06 - version 4.0 - don't need `chemmacros' package any more, |
| 98 |
`chemformula' can be used stand-alone; |
| 99 |
this has lead to a few definitions that previously |
| 100 |
were done by chemmacros; chemmacros will get them |
| 101 |
now from chemformula when needed |
| 102 |
- bug fix: allow braces in subscripts and superscripts |
| 103 |
by disabling superfluous \chemformula_subscript:n |
| 104 |
and \chemformula_superscript:n in the scripts write |
| 105 |
commands |
| 106 |
- remove superfluous rescanning at the begin of the |
| 107 |
formula input; this is handled by the sanitize |
| 108 |
command later anyway |
| 109 |
- changed internal mathshifts from $ ... $ to \( ... \) |
| 110 |
- removed superfluous \textstyle from math-frac |
| 111 |
definition |
| 112 |
- new command \charrow{}[][] that allows direct |
| 113 |
access to chemformula's arrows |
| 114 |
- new command \chname()() that allows direct access |
| 115 |
to chemformula's naming |
| 116 |
- new command \chcpd[]{} that allows typesetting a |
| 117 |
simple single formula - also not nestable with \ch |
| 118 |
- new command \setchemformula |
| 119 |
- package option: `strict' |
| 120 |
- don't allow a line break before a plus |
| 121 |
(`chem-and') |
| 122 |
- don't allow a line break between a stoichiometric |
| 123 |
factor and a compound |
| 124 |
- changed formal charges to match ``plain'' charges |
| 125 |
2013/07/26 - version 4.0a - added options `arrow-penalty' (0), `plus-penalty' |
| 126 |
(700) and `bond-penalty' (10000) that determine if |
| 127 |
there may be a break after an arrow, a bond or the |
| 128 |
plus |
| 129 |
2013/08/24 - version 4.1 - changed `0' values in TikZ coordinates into `0pt' |
| 130 |
see http://tex.stackexchange.com/q/128792/5049 and |
| 131 |
http://tex.stackexchange.com/q/118467/5049 for |
| 132 |
reference |
| 133 |
- new option `tikz-external-disable' |
| 134 |
- new option `frac-math-cmd' |
| 135 |
2013/10/24 - version 4.2 - \chemformula_font_inner: is only applied /once/ to |
| 136 |
a formula, and at the beginning, fixes |
| 137 |
https://bitbucket.org/cgnieder/chemmacros/issue/23 |
| 138 |
- fixed wrong setting of the TikZ bond style |
| 139 |
- new option `arrow-style' |
| 140 |
- new command \chlewis |
| 141 |
2013/11/04 - version 4.2a - bug fix in \chcpd, |
| 142 |
- change sanitizing/restoring of category codes |
| 143 |
2014/01/24 - version 4.3 - changed behaviour of \DeclareChem to match |
| 144 |
\DeclareRobustCommand, i.e., no check if command |
| 145 |
is defined; added a \NewChem variant to each that |
| 146 |
/does/ check; use \NewChem instead of \DeclareChem |
| 147 |
for definitions |
| 148 |
- new option stoich-print |
| 149 |
- new command \chstoich |
| 150 |
2014/01/29 - version 4.4 - treat a single `-' as a minus sign |
| 151 |
2014/04/07 - version 4.5 - make sure that < and > have catcode 12 when read |
| 152 |
as parts of arrows |
| 153 |
- new arrow types `>=<', `>=<<', `>>=<' and `<==>' |
| 154 |
- arrow lengths and compound offset now correctly |
| 155 |
adapts to new fontsize if relative lengths (em,ex) |
| 156 |
are used |
| 157 |
- allow optional arguments to \\ in equation |
| 158 |
environments |
| 159 |
- allow optional arguments to \label in equation |
| 160 |
environments |
| 161 |
(credits: http://tex.stackexchange.com/a/166661/5049) |
| 162 |
- support for Kröger-Vink notation |
| 163 |
2014/06/30 - version 4.6 - fix: a comma in a superscript is typeset according |
| 164 |
to `decimal-marker' again |
| 165 |
- fix charge type behaviour: option `circled' and |
| 166 |
`circletype' are now obeyed if the option is |
| 167 |
changed mid-document |
| 168 |
- new option `chemformula/circled' similar to |
| 169 |
`chemmacros/circled' |
| 170 |
- new option `chemformula/circletype' similar to |
| 171 |
`chemmacros/circletype' |
| 172 |
2014/08/04 - version 4.7 - change dependency: pgf library `arrows.meta' |
| 173 |
instead of `arrows' |
| 174 |
- new arrow tip definition allows redeclaration to |
| 175 |
other existing tips by \pgfkeys{cf/.tip=<tip>} |
| 176 |
2014/08/08 - version 4.8 - fix bug introduced in last update: `butt cap' now |
| 177 |
needs to be `Butt Cap' with the new `arrows.meta' |
| 178 |
library |
| 179 |
- split from `chemmacros' bundle as independent |
| 180 |
package |
| 181 |
2014/10/07 - version 4.9 - new options: `minus-space', `minus-penalty', |
| 182 |
`plus-output-symbol' and `minus-output-symbol' |
| 183 |
2015/03/16 - version 4.10 - new macros \NewChemCompoundProperty, |
| 184 |
\RenewChemCompoundProperty, |
| 185 |
\DeclareChemCompoundProperty, |
| 186 |
\RemoveChemCompoundProperty |
| 187 |
2015/04/03 - version 4.10a - bug fix in \__chemformula_input_stoich:n |
| 188 |
2015/06/30 - version 4.11 - small changes in \chcpd |
| 189 |
- remove unnecessary \mathchoice => noticable speed |
| 190 |
improvement |
| 191 |
- \NewChemAdditionSymbol |
| 192 |
- \NewChemSymbol |
| 193 |
2015/08/12 - version 4.12 - remove chemmacros' `circletype' and `circled' |
| 194 |
options. They really belong to chemmacros |
| 195 |
- change requirement amsmath -> amstext |
| 196 |
- shorten definition of double and triple bonds |
| 197 |
2015/08/29 - version 4.12a - \chemformula_formal_plus: , |
| 198 |
\chemformula_formal_minus: |
| 199 |
\ProvideChem... equivalents to all \NewChem... |
| 200 |
macros |
| 201 |
2015/09/08 - version 4.12b - trim spaces of \ch input -- due to a change in |
| 202 |
l3kernel |
| 203 |
2015/01/01 - version 4.13 - clean up code |
| 204 |
- check for blank input |
| 205 |
- drop support for \[ and \] |
| 206 |
- new option `atom-format' |
| 207 |
2015/10/21 - version 4.14 - fix issue |
| 208 |
https://github.com/cgnieder/chemformula/issues/2 |
| 209 |
- new option `adduct-penalty' |
| 210 |
2016/01/07 - version 4.14a - \prop_get:Nn => \prop_item:Nn |
| 211 |
2016/05/03 - version 4.14b - local options now are correctly working again |
| 212 |
- `atom-format' is only applied to formulas |
| 213 |
2016/05/11 - version 4.15 - arrow definitions don't have to be made in a |
| 214 |
certain order any more |
| 215 |
- new quasi equilibria arrows |
| 216 |
- bug fix in \RenewChemArrow |
| 217 |
- meaningful error if \charrow if used with an |
| 218 |
unknown arrow type |
| 219 |
2016/06/08 - version 4.15a - change requirement amstext -> amsmath; \chname |
| 220 |
uses \underset which needs amsmath |
| 221 |
2016/06/08 - version 4.15b - add missing variant of kernel function |
| 222 |
2016/08/21 - version 4.15c - corrected redundant definition of |
| 223 |
\chemformula_single_bond: |
| 224 |
- fix problem with TikZ externalization and |
| 225 |
Kroeger-Vink notation |
| 226 |
2017/02/02 - version 4.15d - allow `name-format' to end with a macro that |
| 227 |
takes an argument |
| 228 |
2017/03/23 - version 4.15e - small bug fix (issue #5) |
| 229 |
- implement \shortintertext bypass |
| 230 |
2019/09/23 - version 4.15f - add missing definition for temporary variable |
| 231 |
2019/09/27 - version 4.15g - bug fix in fontspec option |
| 232 |
2019/10/13 - version 4.15h - new (undocumented) option `set-catcodes' |
| 233 |
- fix behaviour with category codes |
| 234 |
(https://tex.stackexchange.com/q/511592/) |
| 235 |
- fix bug: local format changes are now applied |
| 236 |
again |
| 237 |
2020/02/01 - version 4.15i - fix issue #12 |
| 238 |
2020/03/07 - version 4.15j - make sure that < and > have catcode 12 when read |
| 239 |
as arrows -- again... |
| 240 |
2020/03/15 - version 4.15k - fix https://tex.stackexchange.com/questions/532674/ |
| 241 |
2020/12/22 - version 4.16 - new option `math-scripts' |
| 242 |
- use LaTeX's new hooks |
| 243 |
- get rid of unnecessary package dependencies |
| 244 |
2022/01/23 - version 4.17 - adjust options `stoich-print' and `frac-math-cmd' |
| 245 |
and correct bug in `stoich-print' |
| 246 |
- deprecate `stoich-print' and introduce `stoich-format' |
| 247 |
- lazy boolean evaluation where possible |
| 248 |
- fix deprecated file hook |
| 249 |
- implement issue #17 |
| 250 |
- fix issue #18 |
| 251 |
- fix issue #19 |
| 252 |
- fix typos in code |