SHARE
TWEET

Large chemfig diagram

a guest Sep 29th, 2012 276 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. \documentclass{article}
  2.  
  3. \special{papersize=20in,20in}
  4. \setlength{\paperwidth}{20in}
  5. \setlength{\paperheight}{20in}
  6. \setlength{\textwidth}{20in}
  7. \setlength{\textheight}{20in}
  8.  
  9. \usepackage{style}
  10.  
  11. \usepackage{tikz}
  12. \usetikzlibrary{decorations}
  13.  
  14. \newcommand*{\bondboldwidth}{0.22832 em} %'Bold Width'
  15. \newcommand*{\bondhashlength}{0.25737 em} % 'Hash Spacing'
  16.  
  17. \tikzset{
  18.  bold bond/.style = {line width = \bondboldwidth},
  19.  dash bond/.style =
  20.  {dash pattern = on \bondhashlength off \bondhashlength},
  21.  hash bond/.style =
  22.  {
  23.    dash pattern = on \bondwidth off \bondhashlength,
  24.    line width   = \bondboldwidth
  25.  },
  26.  }
  27.  
  28. \tikzset{
  29.   wavy bond/.style =
  30.   {
  31.     decorate,
  32.     decoration =
  33.     {
  34.       complete sines,
  35.       amplitude   = \bondboldwidth,
  36.       post length = 0 pt,
  37.       pre length  = 0 pt,
  38.       % Use the atom spacing: saved
  39.       segment length =
  40.       \the\dimexpr\csname CF@atom@sep\endcsname/5\relax
  41.     }
  42.   }
  43. }
  44.  
  45. \begin{document}
  46.  
  47. \definesubmol{sub_a}{
  48.  *6(-=-
  49.  (-O-[,2,,,bold bond]Fc)
  50.  =-=)
  51. }
  52.  
  53. \definesubmol{sub_b}{
  54.  *6({-=-
  55.    ({-
  56.      ({
  57.        -[::-60,1.2]-[::50,1.2]-[::-50]-[::60,1.2]Si(-[::60])(-[::120])-[::-30]-[::60]O-[::-34]!{sub_a}
  58.      })
  59.      ({
  60.        -[::10]-[::-40]-[::70]-[::-60]Si(-[::-70])(-[::110])-[::50]-[::-60]O-[::30,1.1]!{sub_a}
  61.      })
  62.      ({
  63.        -[::60,1.2]-[::-50,1.2]-[::50]-[::-60,1.2]Si(-[::-60])(-[::-120])-[::30]-[::-60]O-[::34]!{sub_a}
  64.      })
  65.    })
  66.  =-=})
  67. }
  68.  
  69. \definesubmol{sub_c}{
  70.  *6({-=-
  71.    ({-
  72.      ({
  73.        -[::-74,1.4]-[::50,1.3]-[::-50,1.4]-[::60,1.2]Si(-[::-90])(-[::90])-[::-30]-[::60]O-[::-30]!{sub_b}
  74.      })
  75.      ({
  76.        -[::10]-[::-40]-[::70]-[::-60]Si(-[::-90])(-[::90])-[::50]-[::-60]O-[::30]!{sub_b}
  77.      })
  78.      ({
  79.        -[::74,1.4]-[::-50,1.3]-[::50,1.4]-[::-60,1.2]Si(-[::-90])(-[::90])-[::30]-[::-60]O-[::30]!{sub_b}
  80.      })
  81.    })
  82.    =-=
  83.  })
  84. }
  85.  
  86. \definesubmol{sub_d}{
  87.  -[,1.5]
  88.  ({
  89.    -[::-99,1.4]-[::50,1.3]-[::-50,1.4]-[::60,1.2]Si(-[::-90])(-[::90])-[::-30]-[::60]O-[::-30]!{sub_c}
  90.  })
  91.  ({
  92.    -[::10]-[::-40]-[::70]-[::-60]Si(-[::-90])(-[::90])-[::50]-[::-60]O-[::30]!{sub_c}
  93.  })
  94.  ({
  95.    -[::99,1.4]-[::-50,1.3]-[::50,1.4]-[::-60,1.2]Si(-[::-90])(-[::90])-[::30]-[::-60]O-[::30]!{sub_c}
  96.  })
  97. }
  98.  
  99. \definesubmol{sub_e}{
  100.  *6(
  101.  =(-!{sub_d})-
  102.  =(-!{sub_d})-
  103.  =(-!{sub_d})-
  104.  )
  105. }
  106.  
  107. \chemfig{!{sub_e}}
  108.  
  109. \end{document}
  110.  
  111. %%% Local Variables:
  112. %%% mode: latex
  113. %%% TeX-master: t
  114. %%% End:
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