From 727a07d9254d531912cda1d769df09f3711fabb6 Mon Sep 17 00:00:00 2001 From: Kenneth Odle Date: Mon, 7 Aug 2023 19:01:28 -0400 Subject: [PATCH] Added several chemistry packages; added chemistry chapter --- 004/codex-004.tex | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/004/codex-004.tex b/004/codex-004.tex index 6a278d3..20aea90 100644 --- a/004/codex-004.tex +++ b/004/codex-004.tex @@ -35,7 +35,7 @@ \cfoot{Page \thepage} \renewcommand{\footrulewidth}{0.5pt} -% Includ two- or three-column sections +% Include two- or three-column sections \usepackage{multicol} % Stop resetting the footnote count after each chapter @@ -93,6 +93,9 @@ % Just for issue #004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \usepackage{pifont} \usepackage{qrcode} +\usepackage{mhchem} +\usepackage{chemformula} +\usepackage{chemfig} %%%% Document Information %%%%% \author{Kenneth John Odle} @@ -283,6 +286,40 @@ As I said way back in the first issue, I define a hack as ``an appropriate appli +\chapter{Chemistry in \LaTeX{}} + +\section{Package \texttt{hmchem}} + +For typesetting chemical equations: + +\ce{CO2 + C -> 2 CO} + +\ce{Hg^2+ ->[I-] HgI2 ->[I-] [Hg^{II}I4]^2-} + +\ce{1/2H2O} + +\section{Package \texttt{chemformula}} + +For typesetting chemical compounds and reactions: + +\ch{KCr(SO4)2 * 12 H2O} + +\ch{[Cu(NH3)4]^2+} + +\ch{$2n$ Na + $n$ Cl2 -> $2n$ NaCl} \par + +\ch{\{[CH2=CH-CH2]- <-> {}[CH2-CH=CH2]- \}} \par + +\section{Package \texttt{chemfig}} + +For drawing molecules: + +Glucose: + +\chemfig{?(-[:190]OH)-[:-50](-[:170]OH)-[:10](-[:-55,0.7]OH) +-[:-10](-[6,0.7]OH)-[:130]O-[:190]?(-[:150,0.7]-[2,0.7]OH)} + + \chapter{A \texttt{git} Workflow}