Guest User

Untitled

a guest
Jun 1st, 2018
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.06 KB | None | 0 0
  1. documentclass{report}
  2. usepackage[T2A]{fontenc}
  3. usepackage[cp1251]{inputenc}
  4. usepackage[english,russian]{babel}
  5. usepackage{chemfig}
  6. usepackage{tikz}
  7. usetikzlibrary{decorations,arrows,shapes,snakes,automata,positioning}
  8.  
  9.  
  10. makeatletter
  11. definearrow1{s>}{%
  12. ifx@empty#1@empty
  13. expandafterdrawexpandafter[CF@arrow@current@style,CF](
  14. CF@arrow@start@node)(
  15. CF@arrow@end@node);%
  16. else
  17. defcurvedarrow@style{shorten <=CF@arrow@offset,shorten >=CF@arrow@offset,}%
  18. CF@expadd@tocscurvedarrow@styleCF@arrow@current@style
  19. expandafterdrawexpandafter[curvedarrow@style,CF](
  20. CF@arrow@start@name)..controls#1..(CF@arrow@end@name);
  21. fi
  22. }
  23. makeatother
  24.  
  25. begin{document}
  26. setchemfig{scheme debug=false}
  27.  
  28. pgfdeclaredecoration{ddbond}{initial}{%
  29. state{initial}[width=2pt]{%
  30. pgfpathlineto{pgfpoint{2pt}{0pt}}%
  31. pgfpathmoveto{pgfpoint{1.5pt}{2pt}}%
  32. pgfpathlineto{pgfpoint{2pt}{2pt}}%
  33. pgfpathmoveto{pgfpoint{2pt}{0pt}}%
  34. }%
  35. state{final}{%
  36. pgfpathlineto{pgfpointdecoratedpathlast}%
  37. }%
  38. }%
  39. tikzset{lddbond/.style={decorate,decoration=ddbond}}%
  40. tikzset{rddbond/.style={decorate,decoration={ddbond,mirror}}}
  41.  
  42. scalebox{.7}{
  43. schemestart
  44. chemfig{H_3C-[:-30]CH_2-[:30]C(=[:90]O)-[:-30]OH}
  45. arrow(str1.south west--str21.north east[yshift=2mm])[-150,1.71]
  46. chemfig{H_3C-[:-30]CH_2-[:30]chembelow{C}{*}=[:90]O}
  47. arrow(@str1.south--str22.north)[-135]
  48. chemfig{H_3C-[:-30]chemabove{C}{*}H-[:30]C(=[:90]O)-[:-30]OH}
  49. arrow(str22.east--str23.west)[,0.5]
  50. chemfig{H_3C-[:-30]chembelow{C}{**}H}
  51. arrow(@str1.south east--str24.north west[yshift=0mm])[-30,1.71]
  52. chemfig{H_3C-[:-30]CH_2-[:30]C(-[:75,,,,rddbond]O)(-[,0.5,,,draw=none]chemabove{hphantom{H}}{*})-[:-45,,,,lddbond]O}
  53. arrow(@str21.south west--str31.north east[yshift=-4mm])[-135,1.41]
  54. chemfig{H_3C-[:-45]chembelow{C}{*}H_2}
  55. arrow(@str21.south west--str32.north)[-90]
  56. chemfig{H_3C-[:-45]chemabove{C}{*}H-[:30]chembelow{C}{*}=[:90]O}
  57. arrow(@str22.south--@str32.north east)[-135,1.41]
  58. arrow(@str22.south--str33.north)[-140, 1.45]
  59. chemfig{H_2C=[:-30]CH-[:30]C(=[:90]O)-[:-30]OH}
  60. arrow(@str22.south--str34.north)[-40,1.45]
  61. chemfig{H_3C-[:-30]chembelow{C}{**}-[:30]C(=[:90]O)-[:-30]OH}
  62. arrow(@str22.south--str35.north west[yshift=2mm])[-22.5,3]
  63. chemfig{H_3C-[:-30]chembelow{C}{*}H-[:30]C(-[:75,,,,rddbond]O)(-[,0.5,,,draw=none]chemabove{hphantom{H}}{*})-[:-45,,,,lddbond]O}
  64. arrow(@str24.south--@str35.north)
  65. arrow(@str24.south--str36.north[yshift=-4mm])[-45, 1.41]
  66. chemfig{H_3C-[:-30]chembelow{C}{*}H_2}
  67. arrow(@str31.south west--str41.north[yshift=-6mm])[-135, 1.41]
  68. chemfig{H_3C-[:-30]CH_3}
  69. arrow(@str32.south--str42.north east[yshift=-2mm])[-135, 1.41]
  70. chemfig{H_3C-[:-30]chembelow{C}{**}H}
  71. arrow(@str42.north--@str31.south)
  72. arrow(@str32.south--str43.north)[-90]
  73. chemfig{H_3C-[:-45]chemabove{C}{*}=[:30]C=[:90]O}
  74. arrow(@str33.south--str44.north)[-120,1.2]
  75. chemfig{H_2C=[:-30]CH-[:30]chembelow{C}{*}=[:90]O}
  76. arrow(@str32.south--@str44.north west)
  77. arrow(@str33.south--str45.north[yshift=-3mm])[-30,1.6]
  78. chemfig{Hchemabove{C}{*}=[:-30]CH-[:30]C(=[:90]O)-[:-30]OH}
  79. arrow(@str35.south--str46.north[yshift=3mm])[-135,1.41]
  80. chemfig{H_3C-[:-30]chembelow{C}{**}-[:30]C(-[:75,,,,rddbond]O)(-[,0.5,,,draw=none]chemabove{hphantom{H}}{*})-[:-45,,,,lddbond]O}
  81. arrow(@str34.south--@str46.north)
  82. arrow(@str35.south--str47.north)[-45,1.41]
  83. chemfig{H_3C-[:-30]chembelow{C}{**}H}
  84. arrow(@str43.south--str51.north east[yshift=-2mm])[-135, 1.41]
  85. chemfig{H_3C-[:-30]chembelow{C}{***}}
  86. arrow(@str51.north--@str42.south)
  87. arrow(@str44.south--str52.north[yshift=-2mm])[-90]
  88. chemfig{H_2C=[:-45]chembelow{C}{*}H}
  89. %arrow(@str33.south--@str52.north east){s>[+(-45:1cm)and+(45:1cm)]}
  90. arrow(@str45.south--str53.north[yshift=3mm])[-90]
  91. chemfig{Hchemabove{C}{*}=[:-30]CH-[:30]chembelow{C}{*}=[:90]O}
  92. arrow(@str44.south--@str53.north west[yshift=2mm])
  93. arrow(@str46.south--str54.north[yshift=-2mm])[-90]
  94. chemfig{H_3C-[:-30]chembelow{C}{***}}
  95. arrow(@str52.south--str62.north[yshift=-2mm])[-90]
  96. chemfig{H_2C=[:-45]CH_2}
  97. arrow(@str62.west--str61.east)[180]
  98. chemfig{H_3C-[:-45]chembelow{C}{*}H_2}
  99. arrow(@str53.south--str63.north)[-90]
  100. chemfig{HC~[:-45]CH}
  101. arrow(@str63.north west--@str52.south east)
  102. schemestop}
  103.  
  104. end{document}
  105.  
  106. arrow(@str33.south--@str52.north east){s>[+(-45:1cm)and+(45:1cm)]}
Add Comment
Please, Sign In to add comment