Guest User

Untitled

a guest
Oct 20th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. documentclass{article}
  2. usepackage{chemfig}
  3. setarrowdefault{15,3,thick}
  4. begin{document}
  5. schemestart
  6. $A_{1}$
  7. arrow($A_{2}$--){<=>[$k_{1}$][$k_{2}$]}[35] $A_{2}$
  8. arrow($A_{2}$--){<=>[$k_{3}$][$k_{4}$]}[-35] $A_{3}$
  9. schemestop
  10. end{document}
  11.  
  12. documentclass{article}
  13. usepackage{chemfig}
  14. usepackage{tikz}
  15. usetikzlibrary{decorations.markings,arrows}
  16.  
  17. setarrowdefault{15,3,thick}
  18. begin{document}
  19. makeatletter
  20. tikzset{
  21. ddbond/.style n args={4}{
  22. draw=none,
  23. decoration={%
  24. markings,
  25. mark=at position 0 with {
  26. coordinate (CF@startdeloc) at (0,dimexpr#1CF@double@sep)
  27. coordinate (CF@startaxis) at (0,dimexpr-#1CF@double@sep);
  28. },
  29. mark=at position 1 with {
  30. coordinate (CF@enddeloc) at (0,dimexpr#1CF@double@sep)
  31. coordinate (CF@endaxis) at (0,dimexpr-#1CF@double@sep);
  32. draw[-{Stealth[left]}, line width=0.4mm] (CF@startdeloc)--node[rotate=#2, above = 0.1cm]{#3}(CF@enddeloc);
  33. draw[{Stealth[left]-}, line width=0.4mm] (CF@startaxis)--node[rotate=#2, below = 0.1cm]{#4}(CF@endaxis);
  34. }
  35. },
  36. postaction={decorate}
  37. }
  38. }
  39. makeatother
  40. chemfig{A_1-[-135,5,,,ddbond={+1.5}{45}{$k_1$}{$k_2$}]A_2-[135,5,,,ddbond={+2.5}{-45}{$k_3$}{$k_4$}]A_3}
  41.  
  42. end{document}
Add Comment
Please, Sign In to add comment