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?

  2. jcsd
  3. Jul 7, 2013 #2


    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


    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

  6. Jul 9, 2013 #5

    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:


    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


    User Avatar
    2017 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


    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


    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 Threads - post molecular structures Date
Suggestion Add how to make blockquotes in posts to the FAQ Sunday at 6:52 AM
How do I edit a post to include a quote from another post? Mar 13, 2018
How do you post a picture? Jan 26, 2018
Complaint Request to un-delete a post Oct 30, 2017
Big News! Several forum structure changes to know about. May 2, 2014