Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.73 KB | None | 0 0
  1. documentclass[10pt,a4paper]{article}
  2. usepackage[utf8]{inputenc}
  3. usepackage{amsmath}
  4. usepackage{amsfonts}
  5. usepackage{amssymb}
  6. usepackage[left=0.00cm, right=0.00cm]{geometry}
  7. usepackage{tikz}
  8. usepackage{chemfig}
  9. usepackage{mhchem}
  10. usetikzlibrary{calc,fadings,decorations.markings}
  11. begin{document}
  12. begin{tikzpicture}
  13. setchemfig{atom sep=2em}
  14. % ---------------- LABELS ----------------
  15. node[align=center] (alkyne) at (0,0) {Alkyne\{{footnotesize chemfig{-C~C-}}}};
  16. node[align=center] (haloalkene) at (2,3) {Haloalkene};
  17. node[align=left] at (3.65,3) {{footnotesize chemfig{C(-[:-120])(-[:120]R)=C(-[:60]X)-[:-60]}}};
  18. node[align=center] (haloalkane) at (0,6) {Haloalkane};
  19. node[align=left] at (1.8,6) {{footnotesize chemfig{-C(-[:90]R1)(-[:-90]R2)-C(-[:90]X)(-[:-90]R3)-}}};
  20. node (alkane) at (-1,3) {Alkane};
  21. node at (0.2,2.7) {footnotesizechemfig{-C(-[:90]H)(-[:-90]H)-C(-[:90]H)(-[:-90]H)-}};
  22. node (tertiaryalcohol) at (0,8) {3$^circ$ Alcohol};
  23. node (alkene) at (-3.2,3) {Alkene};
  24. node (ketone) at (-4,0.4) {Ketone};
  25. node (alcohol) at (-6,3) {Alcohol};
  26. node (glucose) at (-6,6) {Glucose};
  27. node (ester) at (-6,-1) {Ester};
  28. node (carboxylicacid) at (-9,1) {Carboxylic Acid};
  29. % BOXES FOR PRIMARY (1 DEGREE) AND SECONDARY (2 DEGREE) ALCOHOL
  30. draw[-latex] (alcohol) -- (ketone);
  31. draw[fill=white] (-6.5,2.3) rectangle (-6,2.8) (-6,2.3) rectangle (-5.5,2.8);
  32. node at (-6.25,2.55) {1$^circ$};
  33. node at (-5.75,2.55) {2$^circ$};
  34. % ---------------- ARROWS ----------------
  35. draw[-latex] (alkyne) -- node[above,midway] {ce{HX},ce{X2}} node[below,midway] {halogenation} (haloalkene); % HOW DO I ROTATE THE LABELS ABOVE AND BELOW THE ARROWS HERE
  36. draw[-latex] (haloalkene) -- (haloalkane);
  37. draw[-latex] (alkyne) -- (alkane);
  38. draw[-latex] (alkane) -- (haloalkane);
  39. draw[-latex] (alkene) -- (alkane);
  40. draw[-latex] (alkyne) -- (ketone);
  41. draw[-latex] (alcohol) -- (haloalkane); % HOW DO I DRAW THE REVERSE ARROW HERE
  42. draw[-latex] (haloalkane) -- (tertiaryalcohol);
  43. draw[-latex] (alkene) -- (haloalkane);
  44. draw[-latex] (alcohol) -- (alkene); % HOW DO I DRAW THE REVERSE ARROW HERE
  45. draw[-latex] (glucose) -- (alcohol);
  46. draw (alcohol) -- (ester); % HOW DO I ADD THE CURLY BRACKETS AT THE ALCOHOL AND HOW DO I ADD THE EQUILIBRIUM REACTION ARROW AT THE KETONE END
  47. draw (carboxylicacid) .. controls +(0:3) and +(90:2) .. (ester);
  48. % ---------------- ADDITIONAL DECORATIONS ----------------
  49. draw[-latex] (glucose) .. controls +(-90:1) and +(180:1) .. (-5,5) node[right] {ce{CO2}};
  50. end{tikzpicture}
  51. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement