{
  "version": "https://jsonfeed.org/version/1.1",
  "title": "chem-bla-ics",
  "description": "Chemblaics (pronounced chem-bla-ics) is the science that uses open science and computers to solve problems in chemistry, biochemistry and related fields.",
  "home_page_url": "https://chem-bla-ics.linkedchemistry.info/",
  "feed_url": "https://chem-bla-ics.linkedchemistry.info/2008/01/23/my-phd-thesis-in-color-and-grayscale.json",
  "icon": "https://chem-bla-ics.linkedchemistry.info/assets/images/chem-bla-ics_logo.png",
  "language": "en",
  "authors": [
    {
      "name": "Egon Willighagen",
      "url": "https://orcid.org/0000-0001-7542-0286",
      "_orcid": "0000-0001-7542-0286"
    }
  ],
  "items": [

    {
      "id": "https://doi.org/10.59350/g3166-hv249",
      "url": "https://chem-bla-ics.linkedchemistry.info/2008/01/23/my-phd-thesis-in-color-and-grayscale.html",
      "title": "My PhD Thesis: in color and grayscale",
      "content_html": "<p>Wednesday is my regular day off from my metabolomics work, and today I am finalizing the layout of my thesis, which I’ll\ndefend on April 2. The print version will feature grayscale images with some of them in color too. However, the PDF\nversion that will end up in our university repository should have color prints. So, while halfway creating suitable\ngrayscale versions of the image, I realized I was not doing it properly. I was replacing the images; so, I lost the\ncolor version. Not good.</p>\n\n<p>But wait, LaTeX can do more; why not have a color and a grayscale option? Here comes <code class=\"language-plaintext highlighter-rouge\">optional.sty</code>. By adding\n<code class=\"language-plaintext highlighter-rouge\">\\usepackage{optional}</code> I can add to the source (from <code class=\"language-plaintext highlighter-rouge\">book.tex</code>):</p>\n\n<div class=\"language-latex highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code><span class=\"nt\">\\begin{figure}</span>[bt]\n<span class=\"nt\">\\begin{center}</span>\n  <span class=\"k\">\\subfigure</span><span class=\"na\">[]</span><span class=\"p\">{</span>\n    <span class=\"k\">\\label</span><span class=\"p\">{</span>fig:benzene:a<span class=\"p\">}</span>\n    <span class=\"k\">\\opt</span><span class=\"p\">{</span>color<span class=\"p\">}{</span><span class=\"k\">\\includegraphics</span><span class=\"na\">[width=0.4\\textwidth]</span><span class=\"p\">{</span>intro/benzoCompounds<span class=\"p\">_</span>color<span class=\"p\">}}</span>\n    <span class=\"k\">\\opt</span><span class=\"p\">{</span>grayscale<span class=\"p\">}{</span><span class=\"k\">\\includegraphics</span><span class=\"na\">[width=0.4\\textwidth]</span><span class=\"p\">{</span>intro/benzoCompounds<span class=\"p\">}}</span>\n  <span class=\"p\">}</span>\n  <span class=\"k\">\\hspace</span><span class=\"p\">{</span>2cm<span class=\"p\">}</span>\n  <span class=\"k\">\\subfigure</span><span class=\"na\">[]</span><span class=\"p\">{</span>\n    <span class=\"k\">\\label</span><span class=\"p\">{</span>fig:benzene:b<span class=\"p\">}</span>\n    <span class=\"k\">\\includegraphics</span><span class=\"na\">[width=0.18\\textwidth]</span><span class=\"p\">{</span>intro/Ferrocene-2D<span class=\"p\">}</span>\n  <span class=\"p\">}</span>\n<span class=\"nt\">\\end{center}</span>\n<span class=\"k\">\\caption</span><span class=\"p\">{</span>a) 2D diagrams of the two possible resonance structures of a compound\nwith a phenyl ring. Both diagrams refer to the same compounds, but the depicted\ngraph representations are not identical. b) 2D diagram of ferrocene, which,\nlike all organometallic compounds,\nis difficult to represent with classical chemoinformatics approaches.<span class=\"p\">}</span>\n<span class=\"k\">\\label</span><span class=\"p\">{</span>fig:benzene<span class=\"p\">}</span>\n<span class=\"nt\">\\end{figure}</span>\n</code></pre></div></div>\n\n<p>Ferrocene was already black-and-white, so no worry about that. And, it is just the red colored hydroxyl group.\nBut it serves the point :)</p>\n\n<p>Which then allows me to run pdflatex to create a color version and a grayscale version:</p>\n\n<div class=\"language-shell highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code>pdflatex <span class=\"s2\">\"</span><span class=\"se\">\\d</span><span class=\"s2\">ef</span><span class=\"se\">\\U</span><span class=\"s2\">seOption{color}</span><span class=\"se\">\\i</span><span class=\"s2\">nput{book}\"</span>\npdflatex <span class=\"s2\">\"</span><span class=\"se\">\\d</span><span class=\"s2\">ef</span><span class=\"se\">\\U</span><span class=\"s2\">seOption{grayscale}</span><span class=\"se\">\\i</span><span class=\"s2\">nput{book}\"</span>\n</code></pre></div></div>\n\n<p>/me is happy</p>",
      "summary": "Wednesday is my regular day off from my metabolomics work, and today I am finalizing the layout of my thesis, which I’ll defend on April 2. The print version will feature grayscale images with some of them in color too. However, the PDF version that will end up in our university repository should have color prints. So, while halfway creating suitable grayscale versions of the image, I realized I was not doing it properly. I was replacing the images; so, I lost the color version. Not good.",
      
      "date_published": "2008-01-23T00:00:00+00:00",
      "date_modified": "2008-01-23T00:00:00+00:00",
      "tags": ["latex","phd"],
      
      
      
      
      
      
        "authors": [ { "name": "Egon Willighagen", "url": "https://orcid.org/0000-0001-7542-0286" } ]
      
    }

  ]
}
