Math & Sciencemychemistry | Reaction into Array or Table

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
ghostanime2001
Posts: 402
Joined: Fri May 20, 2011 9:41 am

mychemistry | Reaction into Array or Table

Post by ghostanime2001 »

How do you put a rxn environment from mychemistry package into an array or tabular environment ?

Code: Select all

\documentclass[fleqn]{article} 
\usepackage{mychemistry}
\begin{document}
\begin{rxn} 
\reactant{\ce{Na+}} \chemand \reactant{\chemfig{*6(=-=(-C([2]=O)([0]-O^{-}))-=-)}} \arrow{}{} \reactant{\chemfig{*6(=-=(-C([2]=O)([0]-OH))-=-)}}
\end{rxn} 
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

unbonpetit

mychemistry | Reaction into Array or Table

Post by unbonpetit »

You should use chemfig, able to be wrapped in tabular/array environments:

Code: Select all

\documentclass{article}
\usepackage{chemfig}
\begin{document}
\small
\setatomsep{2em}
\begin{tabular}{cc}
A reaction :&
\schemestart
\chemfig{Na^+}\+\arrow{0}[,0]
\chemfig{*6(=-=(-C([2]=O)([0]-O^{-}))-=-)}
\arrow
\chemfig{*6(=-=(-C([2]=O)([0]-OH))-=-)}
\schemestop
\end{tabular}
\end{document}
Post Reply