Table of Contents

Chem Plugin

Compatible with DokuWiki

  • 2017-02-19 "Frusterick Manners" yes
  • 2016-06-26 "Elenor Of Tsort" unknown
  • 2015-08-10 "Detritus" unknown
  • 2014-09-29 "Hrun" unknown

plugin Format a molecular formula

Last updated on
2017-10-19
Provides
Syntax
Repository
Source

Tagged with chemistry, formula, science

This DokuWiki plugin formats a molecular formula easily.

Appearance C2H5O2-Na+
Without the plugin C<sub>2</sub>H<sub>5</sub>O<sub>2</sub><sup>-</sup>Na<sup>+</sup>
Using Chem plugin <chem>C2H5O2-Na+</chem>

The latest version supports to export Open Document format using ODT plugin.

Examples

C2H6 <chem>C2H6</chem>
Na2HPO4 12H2O <chem>Na2HPO4 12H2O</chem>
C2H5O2-Na+ <chem>C2H5O2|-Na+</chem> // | is a splitter.
Cl2H6N2Pt2+ <chem>Cl2H6N2Pt2+</chem>
Al2(SO4)3 <chem>Al2(SO4)3</chem>

Another Version

The original plugin works very fine.

For those of you who have to write more chemical formulars and have some extra wishes like easier syntax, nuclid-number, and a nicer output in DokuWiki pages the following suggestion could help you.

Syntax:

92|235U3|2+

would appear as <sup>235</sup><sub>92<sub>3</sub><sup>2+</sup>; the single numbers are optional so expressions like U2+, U2, 235U or 92|235U are recognized as well as all the brackets.

Unfortunately there are some limitations:

I'll work on it soon (in Apr, maybe ;-)iobataya 2010/04/04 22:23
I'd like to apply a new syntax for notation of isotopes in order to simplify either the DW syntax and the regular expressions.
#EXAMPLE
^14_6C        (carbon-14)
^235_92U      (uranium-235)

What do you think ? — iobataya 2010/04/21 05:45

My server moved to new place. — iobatayaiobataya

2010/12/06 22:50

Source code was moved to GitHub — iobatayaiobataya

2013/01/20 15:39

SS 2015-12-13: Doesn't work all that well. A simple formula of calcium carbonate CaCO3 shows as CaCo3 (lower case oxygen)

This tool is simply great! Love it:) Just a small suggestion, can we have a button in the toolbar in forum posts? I mean a small button in the toolbar with italic/bold. just like what this highlighttool has — EpsilonCEpsilonC

2017/10/06 10:24

Now you can find a benzene button in a tool bar ;-)
Clear cache of web browser after update the plugin. Cache of javascripts are sticky.
iobatayaiobataya

2017-10-19 00:18