{"id":23,"date":"2007-06-27T18:36:00","date_gmt":"2007-06-27T16:36:00","guid":{"rendered":"http:\/\/www.steinbeck-molecular.de\/steinblog\/?p=23"},"modified":"2007-09-06T09:59:58","modified_gmt":"2007-09-06T07:59:58","slug":"even-better-html-slidy-presentations-with-marvin-applets","status":"publish","type":"post","link":"http:\/\/www.steinbeck-molecular.de\/steinblog\/index.php\/2007\/06\/27\/even-better-html-slidy-presentations-with-marvin-applets\/","title":{"rendered":"Even better HTML Slidy presentations with Marvin Applets"},"content":{"rendered":"<p>Putting chemistry into presentations can be a pain in the neck. Keeping it up-to-date is even worse. When I access elderly presentations of mine, where I put ChemOffice stuff into Powerpoint via OLE, I can be absolutely sure that the information is lost, after moving to Linux, Open Office and free structure editors. But there is hope for the future &#8230;<\/p>\n<p><!--more-->&#8230; and this hope is called (surprise!): Open Standards and Free Software. In this particular case, the latters come down to free as in beer, but that&#8217;s another story.<br \/>\nI&#8217;ve <a href=\"http:\/\/wiki.cubic.uni-koeln.de\/blog\/pivot\/entry.php?id=13&amp;month=11&amp;year=2006\">blogged<\/a> about using HTMLSlidy together with ASCIIMathML, which proved to be an invaluable tool for authoring lectures ever since.<\/p>\n<p>Another obvious advantage of HTMLSlidy is the possible use of applets in your slides. In one of my recent lectures on QSAR descriptors, I wanted to reproduce a table with chemical structures and descriptor values. First I had these structures as SMILES in a column but then quickly realized that rendering these SMILES as &#8220;real&#8221; 2D diagrams would be easy with the right applet. JChemPaint proved to be out of order once more \ud83d\ude42 and I therefore turned to <a href=\"http:\/\/www.chemaxon.com\/marvin\/index.html\">MarvinView<\/a> for this pupose (<a href=\"http:\/\/depth-first.com\/\">Rich<\/a> &#8211; how is <a href=\"http:\/\/depth-first.com\/articles\/2007\/05\/02\/a-chemical-structure-editor-for-the-web-four-screenshots-of-a-firefly-prototype\">FireFly<\/a> doing?).<\/p>\n<p>The result is <a href=\"http:\/\/www-ra.informatik.uni-tuebingen.de\/lehre\/ss07\/Chemieinfo\/v07\/#(13)\">online<\/a> a few slides after this link. The performance could be better of course. It definitely takes too long to load slide number 15 of this lecture, containing the 5 applet instances, but it is a step forward.<br \/>\nThe HTML for the inclusion into the page is follows. It requires a java script library declaration at the beginning of your Slidy source code as:<\/p>\n<pre>\r\n&lt;script language=\"JavaScript1.1\" src=\"applet\/marvin.js\"&gt;&lt;\/script&gt;<\/pre>\n<p>Where ever you want your structure now, you put:<\/p>\n<pre>\r\n    &lt;script language=\"JavaScript1.1\"&gt;\r\n    \/&lt;!--\r\n    \/\/ marvin_jvm = \"builtin\"; \/\/ \"builtin\" or \"plugin\"\r\n    mview_begin(\"applet\/\", 100, 100);\r\n    mview_param(\"molFormat\", \"smiles\");\r\n    mview_param(\"mol\", \"CC(C)(C)CC\");\r\n    mview_end();\r\n    \/\/--&gt;\r\n&lt;\/script&gt;<\/pre>\n<p>I also found it handy to include an addendum slide with a MarvinSketch applet instance at the end of my presentation which I can use for producing SMILES, mol files and SVG graphics for my presentation while I&#8217;m authoring. <a href=\"https:\/\/puttygen.in\">puttygen <\/a> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Putting chemistry into presentations can be a pain in the neck. Keeping it up-to-date is even worse. When I access elderly presentations of mine, where I put ChemOffice stuff into Powerpoint via OLE, I can be absolutely sure that the information is lost, after moving to Linux, Open Office and free structure editors. But there [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,12,8],"tags":[],"class_list":["post-23","post","type-post","status-publish","format-standard","hentry","category-open-science","category-publishing","category-teaching"],"_links":{"self":[{"href":"http:\/\/www.steinbeck-molecular.de\/steinblog\/index.php\/wp-json\/wp\/v2\/posts\/23"}],"collection":[{"href":"http:\/\/www.steinbeck-molecular.de\/steinblog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.steinbeck-molecular.de\/steinblog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.steinbeck-molecular.de\/steinblog\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.steinbeck-molecular.de\/steinblog\/index.php\/wp-json\/wp\/v2\/comments?post=23"}],"version-history":[{"count":0,"href":"http:\/\/www.steinbeck-molecular.de\/steinblog\/index.php\/wp-json\/wp\/v2\/posts\/23\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.steinbeck-molecular.de\/steinblog\/index.php\/wp-json\/wp\/v2\/media?parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.steinbeck-molecular.de\/steinblog\/index.php\/wp-json\/wp\/v2\/categories?post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.steinbeck-molecular.de\/steinblog\/index.php\/wp-json\/wp\/v2\/tags?post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}