Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Chemical LaTeX typeset

  1. Jun 15, 2011 #61
    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?

    [tex]NO_2 + CO~ \xrightarrow{k_1}~ NO + NO_3[/tex][tex]NO_3 + CO~ \xrightarrow{k_2}~ NO_2 + CO_2 +XXXX +YYYYYY +ZZZZZZ[/tex]


    Can you see how if this was centered on a page the arrows wouldn't be aligned?
     
  2. Jun 20, 2011 #62
    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:

    [tex]
    \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}
    [/tex]

    To show you that the alignment is behaving:

    [tex]
    \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}
    [/tex]
     
  3. Jul 7, 2013 #63
    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 #64

    Borek

    User Avatar

    Staff: Mentor

    Let's face it - it is not chemical forums, it is PHYSICS forums.
     
  5. Jul 7, 2013 #65
    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
      test.pdf
      File size:
      27.7 KB
      Views:
      145
    Last edited: Jul 7, 2013
  6. Apr 28, 2016 #66
    I actually noticed that I am putting in too many spacers (~)
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted



Similar Discussions: Chemical LaTeX typeset
  1. Colour of Chemicals? (Replies: 13)

  2. Chemical nomenclature (Replies: 6)

  3. Chemical equilibrium (Replies: 4)

  4. Chemical potential (Replies: 2)

  5. Chemical clocks (Replies: 2)

Loading...