This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 15th, 2013  |  syntax: None  |  size: 6.55 KB  |  views: 30  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. documentclass[11pt,table,a5paper]{article}
  2. usepackage{array,ragged2e}
  3. usepackage{graphicx}
  4. usepackage[framemethod=TikZ]{mdframed}
  5. usepackage{lipsum}
  6. usepackage[top=2cm, bottom=2cm, outer=1cm, inner=2.1cm,twoside, headsep=26pt]{geometry}
  7.  
  8. renewcommand{familydefault}{sfdefault}
  9. usepackage[T1]{fontenc}
  10. usepackage{tikz}
  11. usepackage{lipsum}
  12. usepackage{url}
  13. usepackage[utf8]{inputenc}
  14. usepackage{fancyhdr}
  15. usepackage{transparent}
  16. usepackage{hyphenat}
  17. usepackage{bm}
  18. newcommand{+}{discretionary{mbox{${bmcdot}mkern-1mu$}}{}{}}
  19. usepackage{microtype}
  20. usepackage{xstring}
  21. usepackage{forloop}
  22. usepackage{collcell}
  23. usepackage{longtable}
  24. usepackage{makecell}
  25. usepackage{varwidth}
  26. usepackage{textcomp}
  27. usepackage{enumitem}  
  28. usepackage{textcomp}
  29. usepackage{placeins}
  30. usepackage[T1,T2A]{fontenc}
  31. usepackage{CJKutf8}
  32. usepackage[english,russian]{babel}
  33. usepackage{alltt}
  34. usepackage{caption}
  35. %usepackage{Sweave}
  36. captionsetup{skip=5pt,font=footnotesize}
  37. usepackage[labelformat=empty]{caption}
  38. usepackage{needspace}
  39. usepackage{setspace}
  40. usepackage{multirow}
  41. usepackage{IEEEtrantools}
  42. usepackage{amsmath}
  43. usepackage[colorlinks]{hyperref}
  44. hypersetup{colorlinks,
  45. linkcolor=red,
  46. urlcolor=blue,
  47. pdfborderstyle={/S/U/W 1}
  48. }
  49.  
  50.  
  51. definecolor{rowcol}{rgb}{.714, .855, .957}
  52. definecolor{headcol}{rgb}{.537, .769, .933}
  53. definecolor{yel}{rgb}{1, 1, 0}
  54. definecolor{logcol}{rgb}{0,.411,0.655}
  55. definecolor{paleyellow}{rgb}{1,1,0.8}
  56. pagestyle{fancy}
  57. fancyhf{}
  58. fancyhead{}
  59. fancyfoot{}
  60. %chunk = 1
  61. fancyfoot[C]{begin{mdframed}[roundcorner=0pt,leftmargin=0, rightmargin=0,     linecolor=white,outerlinewidth=.1,   innerleftmargin=0,innertopmargin=0,innerbottommargin=0,innerrightmargin=0,everyline =    true, splittopskip=.6cm, splitbottomskip=.3cm] parbox[t]{0.333textwidth}   {raggedright{scriptsizetextcolor{white}{ 4795271 }}} parbox[t]{0.31textwidth}  {centering{scriptsizetextcolor{white}{thepage}}} parbox[t]{0.333textwidth} {raggedleft{scriptsizetextcolor{white}{ 2013-08-30 }}} end{mdframed}}    definecolor{textcol}{rgb}{.118, .565, 1.00}definecolor{maincol}{rgb}{.219, .6941,  .8941}
  62.  patchcmd{tableofcontents}{section*}{vspace*{-30pt}section*}{}{}
  63.  makeatletter
  64.  patchcmd{l@section}% <cmd>
  65.  {begingroup}% <search>
  66.  {begingroupnormalfontLargebfseries}% <replace>
  67.  {}{}% <success><failure>
  68.  newcommandmdframedintoc{parbigskip%
  69.  begin{mdframed}[roundcorner=0pt,leftmargin=0, rightmargin=0,  linecolor=gray,outerlinewidth=.1, innerleftmargin=4, innerrightmargin=4,  innertopmargin=4,innerbottommargin=4, everyline = true, splittopskip=.6cm,  splitbottomskip=.3cm]
  70. centering
  71. includegraphics[trim=2.8cm 4cm 1.5cm 12.8cm, clip=true,width=0.75linewidth]  {./tmp/risk_legend.pdf}
  72. end{mdframed}parbigskip
  73. begin{mdframed}[roundcorner=0pt,leftmargin=0, rightmargin=0,  linecolor=white,outerlinewidth=.001, innerleftmargin=0, innerrightmargin=0,   innertopmargin=0,innerbottommargin=0, everyline = true, splittopskip=.6cm,  splitbottomskip=.3cm]
  74. %chunk = 2
  75. ~\[35pt]
  76. hspace{1mm}
  77. normalsizetextcolor{textcol}{textbf{{NA}}}
  78. {renewcommand{arraystretch}{-1}begin{longtable}{P{4.5cm}M{5.55cm}P{1cm}}
  79.  hspace{-.2cm}normalfontsmallbfseries{Aspirin} &    &normalfontsmallbfseries{63}\
  80.  smalltextcolor{white}{data}&  &smalltextcolor{white}{data}\
  81.  smalltextcolor{white}{data}&  &smalltextcolor{white}{data}\
  82.  hspace{-.2cm}normalfontsmallbfseries{Bucindolol (beta-blocker)} &   &normalfontsmallbfseries{64}\
  83.  smalltextcolor{white}{data}&  &smalltextcolor{white}{data}\
  84.  smalltextcolor{white}{data}&  &smalltextcolor{white}{data}\
  85.  hspace{-.2cm}normalfontsmallbfseries{Metoprolol (beta-blocker)} &  &normalfontsmallbfseries{65}\
  86.  smalltextcolor{white}{data}&  &smalltextcolor{white}{data}\
  87.  smalltextcolor{white}{data}&  &smalltextcolor{white}{data}\
  88.  hspace{-.2cm}normalfontsmallbfseries{Plavix (Clopidogrel)} &  &normalfontsmallbfseries{67}\
  89.  smalltextcolor{white}{data}&  &smalltextcolor{white}{data}\
  90.  smalltextcolor{white}{data}&  &smalltextcolor{white}{data}\
  91.  hspace{-.2cm}normalfontsmallbfseries{Statins} &  &normalfontsmallbfseries{68}\
  92.  smalltextcolor{white}{data}&  &smalltextcolor{white}{data}\
  93.  smalltextcolor{white}{data}&  &smalltextcolor{white}{data}\
  94.  hspace{-.2cm}normalfontsmallbfseries{Warfarin} &  &normalfontsmallbfseries{70}\
  95.  smalltextcolor{white}{data}&  &smalltextcolor{white}{data}\
  96.  smalltextcolor{white}{data}&  &smalltextcolor{white}{data}\
  97.  end{longtable}} footnotesize end{mdframed}%
  98. }
  99. patchcmd{tableofcontents}{@starttoc{toc}}{@starttoc{toc}mdframedintoc}{}{}
  100. makeatother
  101. newcolumntype{P}[1]{>{RaggedRighthspace{0pt}}p{#1}}
  102. begin{document}
  103. ifthenelse{isodd{thepage}}{newpagembox{}thispagestyle{empty}newpage}{}
  104.  
  105. newpage newcolumntype{M}[1]{>{centeringarraybackslash}p{#1}} ~\[-22pt]
  106.  
  107. arrayrulecolor{black} newcommand{dsr}{rule[-1.2cm]{0pt}{2cm}}
  108. newcommand{nsr}{rule[-0.2cm]{0pt}{1cm}}
  109. newcommand{psr}{rule[-1.1cm]{0pt}{1.7cm}}
  110. arrayrulecolor{red}
  111. {renewcommand{arraystretch}{1.8}begin{longtable}   {|P{3.4cm}|M{1.0cm}|P{4.0cm}|P{0.8cm}|}
  112. hline
  113. rowcolor{textcol} textbf{ textcolor{white}{Col1}} &textbf{ textcolor{white} {Col2}} &textbf{ textcolor{white}{Col3}}  &textbf{ textcolor{white}{Col4}} \
  114. endfirsthead
  115. rowcolor{textcol} textbf{ textcolor{white}{Col1}} &textbf{ textcolor{white} {Col2}} &textbf{ textcolor{white}{Col3}}  &textbf{ textcolor{white}{Col4}} \
  116. endhead
  117. hline
  118. rowcolor[RGB]{243,189,185}
  119. AAAAAAAAAAAA  &   3.38&  multirow{-1}{*}{parbox{4.0cm}{textcolor{black}{rwqerwrwr  wrwrweqrw qrwerwqerwrwe qreqrweqweqrf sfsfsdfsdafsd rweqrwetw efsdfsft}}}
  120. & dsr cellcolor{red!25}18\cline{1-2} cline{4-4}  
  121. hline
  122. rowcolor[RGB]{251,204,157}   AAAAAAAAAAAA  &   1.8 &  
  123. & nsr cellcolor{yellow!25}35\cline{1-2} cline{4-4}
  124. rowcolor[RGB]{251,204,157}   AAAAAAAAAAAA  &   1.6 &  
  125. & nsr cellcolor{yellow!25}11\cline{1-2} cline{4-4}
  126. rowcolor[RGB]{251,204,157}   AAAAAAAAAAAA  &   1.55&  multirow{-5}{*}    {parbox{4.0cm}{textcolor{black}{reqw fsdafsad 34rweqrtwqe rfdrweqr 4rwerqwe rqrwqerwq   rqwrwqrt ffa afsdafasf reqfsd }}}
  127. & nsr cellcolor{yellow!25}52\cline{1-2} cline{4-4}
  128. hline
  129. rowcolor[RGB]{255,255,51}   AAAAAAAAAAAA  &   1.4 &  
  130. & psr cellcolor{yellow!25}15\cline{1-2} cline{4-4}
  131. rowcolor[RGB]{255,255,51}   AAAAAAAAAAAA  &   1.2 &  
  132. & psr cellcolor{yellow!25}25\cline{1-2} cline{4-4}
  133. rowcolor[RGB]{255,255,51}   AAAAAAAAAAAA  &   1.02&  multirow{-5}{*}  {parbox{4.0cm}{textcolor{black}{fsda fsdafsda fsdafsda fsdafsafs ffdfass terwtert    werweter twetwerter tetewrterw treterr rtwetewte rtewteew trweterw ~\
  134. ~\
  135. ertewq rwrwqt rwqrwtwq rwqrwtwq rwteeq rtwetyerewy }}}
  136. & psr cellcolor{yellow!25}39\cline{1-2} cline{4-4}
  137. hline
  138. rowcolor{rowcol}
  139. rweqrt
  140. & N/A
  141. & wertwer
  142. & 45 \
  143. hline
  144. end{longtable}}
  145. arrayrulecolor{black}
  146. end{document}linecolor=goldenpoppy
clone this paste RAW Paste Data