Chemical LaTeX typeset

1. Jun 15, 2011

icosane

Thanks so much for this thread! I just have one question.

How do I get the equilibrium arrows to stay centered when listed on a page?

$$NO_2 + CO~ \xrightarrow{k_1}~ NO + NO_3$$$$NO_3 + CO~ \xrightarrow{k_2}~ NO_2 + CO_2 +XXXX +YYYYYY +ZZZZZZ$$

Can you see how if this was centered on a page the arrows wouldn't be aligned?

2. Jun 20, 2011

Fenn

Hi icosane,

Some time ago, I participated in a thread that talked about multi-line equations in LaTeX. You can find it at https://www.physicsforums.com/showthread.php?t=325387.

For your example, try something like:

\begin{align}\begin{split} NO_2 + CO~ &\xrightarrow{k_1}~ NO + NO_3\\ NO_3 + CO~ &\xrightarrow{k_2}~ NO_2 + CO_2 +XXXX +YYYYYY +ZZZZZZ \end{split}\end{align}

To show you that the alignment is behaving:

\begin{align}\begin{split} NO_2 + CO~ &\xrightarrow{k_1}~ NO + NO_3\\ NO_3 + CO + XXXX + YYYYY + ZZZZZZ~ &\xrightarrow{k_2}~ NO_2 + CO_2 +XXXX +YYYYYY +ZZZZZZ \end{split}\end{align}

3. Jul 7, 2013

jackmell

I am shocked to see there appears to be no means of illustrating ringed structures since I see none in this thread. I guess I'm just really shocked of this. How can you discuss chemistry with ringed compounds and not have a means of displaying them nicely?

4. Jul 7, 2013

Staff: Mentor

Let's face it - it is not chemical forums, it is PHYSICS forums.

5. Jul 7, 2013

jackmell

Hi Borek. Ok, I have found a wonderful alternative: chemfig. Here for example is the code to draw in LaTex, a very nice caffeine molecule:

\chemfig[][scale=0.5]{[:30]O=C*6(-N(-CH_3)-C*5(-N=C-N(-CH_3)-)=C-C(=O)=N(-CH_3)-)}

So what I'll do is simply write what I want in LaTex and just post the PDF file. :)

Just learned to a few minutes ago. Not too hard. Just follow the chemfig user manual. Here it is in PDF for those interested:

Attached Files:

• test.pdf
File size:
27.7 KB
Views:
120
Last edited: Jul 7, 2013
6. Apr 28, 2016

xukaus

I actually noticed that I am putting in too many spacers (~)