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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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