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

How to post molecular structures nicely?

  1. Jul 5, 2013 #1
    Can we write nice molecular structures in here? I've never tried. For example, caffeine. What is the best way to post the structure of caffeine? Do I have to make a jpeg and just post the file?

    Thanks,
    Jack
     
  2. jcsd
  3. Jul 7, 2013 #2

    chemisttree

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

  4. Jul 7, 2013 #3
    But that ain't good enough. How do I do it in LaTex? Suppose I wish to prepare a report dealing with sort of lots of relatively complex compounds and all in LaTex? Surely there is a way to make a nice presentation in LaTex right? I'll look into it too. Suppose I should check more in the Chemistry forum to see how it's done in here. I don't mind starting from scratch for this since I've never written a chemistry paper in LaTex before.
     

    Attached Files:

  5. Jul 8, 2013 #4

    chemisttree

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

  6. Jul 9, 2013 #5
    Hi,

    May I then ask if it is possible to implement the chemfig package in PF? It would be a classy addition that the other forums do not have. This is a nice package I've used to create first-class structures and it's very simple to use. For example, this is the command for caffeine:

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

    and it generates what I think is a journal-quality image of the molecule.
     
  7. Jul 9, 2013 #6
    Thanks for the suggestion. We do not use LaTeX here however. We use MathJax. MathJax does have a basic chemistry extension, but since it does create overhead, we won't add it unless there is significant support.
     
  8. Jul 10, 2013 #7

    mfb

    User Avatar
    2016 Award

    Staff: Mentor

    Does it create overhead just by installation, or only if it gets included in the page?
    If it can be included separately, it could be possible to make special [chem]-tags (or whatever), such that those chem-tags include the chemistry extension.
    I have code for such a usage-dependent inclusion available, I just don't know if that can help.
     
  9. Jul 10, 2013 #8

    chemisttree

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

    What would you say is "significant"?
     
  10. Jul 11, 2013 #9
    Just by inclusion. I can try making two setting files and trigger each depending on what forum is being used.

    More than just a few members using it.
     
  11. Jul 11, 2013 #10
    What kind of organic or biochemistry are we doing in PF if it doesn't include ringed structures? Oh I guess you can do a lot without rings but they're so prevalent in these sciences. Just seems like it would be highly desirable by anyone interested in discussing organic chemistry and biochemistry, and important too is that it would make PF look cool and classy, that is unless it's a pain managing it.

    Edit: Is it just rings we can't draw or can we not also write molecular structures of any kind? I checked a little bit and didn't see any of that either. Surely a nice utility for drawing molecular structures of any kind would be nice.
     
    Last edited: Jul 11, 2013
  12. Jul 11, 2013 #11

    chemisttree

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

    I feel a poll coming on! After school begins, of course.
     
  13. Jul 12, 2013 #12
    I would have a problem with it if it takes appreciably longer to render the screens. I think we should have a nice balance of classiness and efficiency of operation in the forum. I've been using chemfig a little while in TeXnicCenter and do notice it takes longer to render the PDF file with chem structures. They do look really nice though.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: How to post molecular structures nicely?
  1. How to edit my post? (Replies: 3)

  2. How to post a matrix? (Replies: 4)

Loading...