SHARE
TWEET

Untitled

a guest Feb 23rd, 2019 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. documentclass{scrartcl}
  2. usepackage{chemfig}
  3. begin{document}    
  4. schemestart
  5.     chemfig{*6(------)}
  6.     arrow{<->}
  7.     chemfig{*6(------)}
  8.     arrow{<->}[90]
  9.     chemfig{*6(------)}
  10.     arrow{<->}[180]
  11.     chemfig{*6(------)}
  12. schemestop
  13. end{document}
  14.      
  15. documentclass{scrartcl}
  16. usepackage{chemfig}
  17.  
  18. makeatletter
  19. definearrow3{<->}{%
  20.     CF@arrow@shift@nodes{#3}%
  21.     path(CF@arrow@start@node)--(CF@arrow@end@node)%
  22.             node[pos=0.5,sloped](CF@arrow@start@node1){}node[pos=0.5,sloped](CF@arrow@end@node1){};%
  23.     expandafterdrawexpandafter[CF@arrow@current@style](CF@arrow@start@node1)--(CF@arrow@end@node);%
  24.     expandafterdrawexpandafter[CF@arrow@current@style](CF@arrow@end@node1)--(CF@arrow@start@node);%
  25.     CF@arrow@display@label{#1}{0.5}+CF@arrow@start@node{#2}{0.5}-CF@arrow@end@node
  26. }
  27. makeatother
  28.  
  29. begin{document}    
  30. schemestart
  31.     chemfig{*6(------)}
  32.     arrow{<->}[0]
  33.     chemfig{*6(------)}
  34.     arrow{<->}[-90]
  35.     chemfig{*6(------)}
  36.     arrow{<->}[180]
  37.     chemfig{*6(------)}
  38. schemestop
  39. end{document}
  40.      
  41. definearrow3{<->}{%
  42.     CF@arrow@shift@nodes{#3}%
  43.     path(CF@arrow@start@node)--(CF@arrow@end@node)%
  44.             node[pos=0.5,sloped,xshift=-1pt](CF@arrow@start@node1){}node[pos=0.5,sloped,xshift=1pt](CF@arrow@end@node1){};%
  45.     expandafterdrawexpandafter[CF@arrow@current@style](CF@arrow@start@node1)--(CF@arrow@end@node);%
  46.     expandafterdrawexpandafter[CF@arrow@current@style](CF@arrow@end@node1)--(CF@arrow@start@node);%
  47.     CF@arrow@display@label{#1}{0.5}+CF@arrow@start@node{#2}{0.5}-CF@arrow@end@node
  48. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top