Picture of the week is the 2D chemical formula of the 1,2-dimethyl-chickenwire molecule, noted by Wikipedia in several places (here and here).
The simplified LibreLogo program of the new Wikipedia vector graphic (move the turtle to the right side in Writer before starting the program):
TO hexagon REPEAT 6 [ FORWARD 25 RIGHT 360/6 ] END TO hexagons n REPEAT n [ hexagon PENUP FORWARD 75 PENDOWN ] END PICTURE “1,2-dimethyl-chickenwire.svg” [ FONTSIZE 20 PENSIZE 2 HIDETURTLE PENJOINT “MITER” hexagons 2 REPEAT 10 [ RIGHT 120 PENUP FORWARD 25 RIGHT 60 PENDOWN hexagons 3 RIGHT 120 PENUP FORWARD 2*25 LEFT 60 FORWARD 25 RIGHT 120 PENDOWN hexagons 4 PENUP BACK 25*3 ] PENUP FORWARD 25 LEFT 60 PENDOWN FORWARD 15 RIGHT 60 LABEL [-1.1, 0.4, “H₃C”] PENUP LEFT 60 BACK 15 RIGHT 120 FORWARD 25 LEFT 60 PENDOWN FORWARD 15 LABEL [0.6, 0.9, “CH₃”] PENUP BACK 15+25+25 LEFT 180 PENDOWN hexagons 3 RIGHT 120 PENUP FORWARD 3*25 RIGHT 60 FORWARD 2*25 PENDOWN hexagons 2 CLOSE ]
-
Copy the SMILES description of the molecule (see on its Wikipedia page, or here) into the PubChem Sketcher online molecule editor, and press Enter to show the molecule.
CC1C2CC3C4C5C(C(C6C4C7C8C9C6C%10C%11C%12C%13C%14C%10C%15C9C%16C%17C8C%18CC7C3)C%11C%19C%20C%21C(C%22C%23C%24C%21C%25C%19C%12C%26C%27C%13C%28C(C%29C%30%31)C%14C(C%30C%32C%33%34)C%15C%33C%16C(C(C%35C%36C%37)C%17C%37C%18)C(C%38C%35C%39C%40C%41C%42C%43C%44C%45C%46C%47C%48C%49C%50C%51CC(C%52)C%49C(C(C%52C%53)C(C%54C%53CC%55)C%56C(C(C%54C%55C%57)C(C%57CC%58)C%59C%58C%60CCC%61CC%62CC%63)C%64C%59C%65C%60C%61C%66C%62C%67C%63C%68)C%47C%56C%45C%64C%43C%65C%66C%42C%67C%40C%68CC%39C%36)C%34C(C%44C%38%41)C%46C%32C%48C%31C%50C(C%69C%51)C%29C(C%70C%69)C%28C(C%71C%70)C%27C(C%72C%71)C%73C%26C%25C(C%74C%73C%75C%72)C%24C(CC%74CC%75)CC%23)C%76C(CC%22)CC%77C1C)C%20C%76C%77C52
-
Export the picture in the default SDF (MDL Molfile) format.
-
Open the file in Avogadro, a cross-platform molecule editor (it is part of the popular Linux distributions), but do not ask the calculation of the 3D geometry.
-
Choose Build→Add Hydrogens. (It is possible in PDChem Sketcher, too, by Hydrogen→Add. In that case the result will be a nearly planar spatial isomer, thanks to the more evenly distributed hydrogens).
-
Press Ctrl-Alt-O (Extension→Optimize Geometry) a few times, moving the atoms to the positions defined by their bonds.
-
Finally export the picture of the molecule in PNG to LibreOffice, for example. It would be more fun to export it in a 3D OpenDocument shape, supported by LibreOffice, too, but it seems, chemical formula conversion tools, like Open Babel, haven’t supported OpenDocument, yet.)