Skip to content

k-ujihara/ChemFormatter

Repository files navigation

ChemFormatter

ChemFormatter is a chemical formatter add-in for Microsoft Word, Excel, and PowerPoint. It is implemented using VSTO.

Install

  • Download installer from https://github.com/kazuyaujihara/ChemFormatter/releases .
  • Unzip ChemFormatter-#.#.#.zip
  • Install ChemFormatter-x86-3.0.1.msi for Microsoft Office 32-bit
  • Install ChemFormatter-x64-3.0.1.msi for Microsoft Office 64-bit
  • You can check you are using 32 or 64-bit by File --> Account --> About Word/Excel/PowerPoint and see title on the dialog.

How to Use

Select text to format and click one of the below button in ChemFormatter tab within Add-in ribbon.

Demo Movie for Microsoft Word at YouTube

Snapshort in Word

Change sub-digit style to subscript/superscript.

R1 ⇒ R1 ⇒ R1 ⇒ R1

R1-3 ⇒ R1-3 ⇒ R1-3 ⇒ R1-3

Set style as chemical formula.

CH3OH ⇒ CH3OH

HC#CCH2OH ⇒ HC≡CCH2OH

(CH3)2CHOH ⇒ (CH3)2CHOH

t-BuOH ⇒ t-BuOH

Set style as chemical ion formula.

Na+ + Cl- → NaCl ⇒ Na+ + Cl- → NaCl

Ca2+ + SO42- → CaSO4 ⇒ Ca2+ + SO42- → CaSO4

Set style as chemical name.

tert-butyldimethylsilane ⇒ tert-butyldimethylsilane

(E)-olefine ⇒ (E)-olefine

(2E,4Z)-hexa-2,4-diene ⇒ (2E,4Z)-hexa-2,4-diene

L-phenylalanine ⇒ L-phenylalanine

acetone O-ethyl S-methyl monothioketal ⇒ acetone O-ethyl S-methyl monothioketal

dichloro(N,N,N',N'-tetramethylethylenediamine)zinc(II) ⇒ dichloro(N,N,N',N'-tetramethylethylenediamine)zinc(II)

Style journal references.

J. Am. Chem. Soc. 2017, 123, 1.

J. Am. Chem. Soc. 2017, 123, 1-10.

J. Am. Chem. Soc. 2017, 123(1), 1.

J. Am. Chem. Soc. 2017, 123(1), 1-10.

Proc. Natl. Acad. Sci. USA 104, 1234-1235 (2007).

Proc. Natl. Acad. Sci. USA 104, 1234 (2007).

Proc. Natl. Acad. Sci. USA 104(10), 1234-1235 (2007).

Proc. Natl. Acad. Sci. USA 104, 1234–1235 (2007).

Phys. Rev., vol. 134, pp. A635-A646, Dec. 1965.

IEEE Trans. Electron. Devices, vol. ED-11, pp. 34-39, Jan. 1959.

IEEE Trans. Comp., vol. 46, pp. 695-701, June 1997.

IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 19, pp. 564-579, June 1997.

Microelectronics Reliability, vol. 33, no. 9, pp. 1387-1395, Dec. 1993.

IEEE Transactions on Antennas and Propagation, to be published.

Format optical rotation.

[a]D +25.5 ⇒ [α]D +25.5

[a]D20 +25.5 ⇒ [α]D20 +25.5

[a]D20 +25.5 (c 1.5) ⇒ [α]D20 +25.5 (c 1.5)

[a]D20 +25.5 (c 1.5, CHCl3) ⇒ [α]D20 +25.5 (c 1.5, CHCl3)

[a]D20 -25.5 (c 1.5, CHCl3) ⇒ [α]D20 -25.5 (c 1.5, CHCl3)

[a]D20 -25.5° (c 1.5, CHCl3) ⇒ [α]D20 -25.5° (c 1.5, CHCl3)

Convert Subscript/Superscript styled characters to Unicode characters.

It is useful for formatting places that loses format information like cell reference in Excel.

13CHCl3 ⇔ ¹³CHCl₃

CH3(CH2)nOH ⇔ CH₃(CH₂)ₙOH

Format NMR spectrum specification from tab separated table.

Only Microsoft Word is supported.

1.45 ␉ 1H

1.55 ␉ 3H ␉ d ␉ 1.3

1.95 ␉ 1.4H ␉ t ␉ 7.3, 2.3 ␉ CH3

2.2-3.2 ␉ 15H ␉ m

 ↓ ↑

1.45 (1H, s), 1.55 (3H, d, J = 1.3 Hz), 1.95 (1.4H, dd, J = 7.3, 2.3 Hz, CH3), 2.2-3.2 (15H, m).

Old versions

The old versions are available at SourceForge. The Microsoft Word template version works on both Windows and Mac. Very old COM add-in version implemented by Visual Basic 6.0 works on Word, Excel, PowerPoint, Publisher, and Visio.