Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass{article}
- \newcommand{\hlnumber}[1]{\textcolor[rgb]{0.0823529411764706,0.0784313725490196,0.709803921568627}{#1}}%
- \newcommand{\hlfunctioncall}[1]{\textcolor[rgb]{1,0,0}{#1}}%
- \newcommand{\hlstring}[1]{\textcolor[rgb]{0.6,0.6,1}{#1}}%
- \newcommand{\hlkeyword}[1]{\textcolor[rgb]{0,0,0}{\textbf{#1}}}%
- \newcommand{\hlargument}[1]{\textcolor[rgb]{0.694117647058824,0.247058823529412,0.0196078431372549}{#1}}%
- \newcommand{\hlcomment}[1]{\textcolor[rgb]{0.8,0.8,0.8}{#1}}%
- \newcommand{\hlroxygencomment}[1]{\textcolor[rgb]{0,0.592156862745098,1}{#1}}%
- \newcommand{\hlformalargs}[1]{\textcolor[rgb]{0.0705882352941176,0.713725490196078,0.0705882352941176}{#1}}%
- \newcommand{\hleqformalargs}[1]{\textcolor[rgb]{0.0705882352941176,0.713725490196078,0.0705882352941176}{#1}}%
- \newcommand{\hlassignement}[1]{\textcolor[rgb]{0.215686274509804,0.215686274509804,0.384313725490196}{\textbf{#1}}}%
- \newcommand{\hlpackage}[1]{\textcolor[rgb]{0.588235294117647,0.713725490196078,0.145098039215686}{#1}}%
- \newcommand{\hlslot}[1]{\textit{#1}}%
- \newcommand{\hlsymbol}[1]{\textcolor[rgb]{0,0,0}{#1}}%
- \newcommand{\hlprompt}[1]{\textcolor[rgb]{0,0,0}{#1}}%
- \usepackage{color}%
- \newsavebox{\hlnormalsizeboxclosebrace}%
- \newsavebox{\hlnormalsizeboxopenbrace}%
- \newsavebox{\hlnormalsizeboxbackslash}%
- \newsavebox{\hlnormalsizeboxlessthan}%
- \newsavebox{\hlnormalsizeboxgreaterthan}%
- \newsavebox{\hlnormalsizeboxdollar}%
- \newsavebox{\hlnormalsizeboxunderscore}%
- \newsavebox{\hlnormalsizeboxand}%
- \newsavebox{\hlnormalsizeboxhash}%
- \newsavebox{\hlnormalsizeboxat}%
- \newsavebox{\hlnormalsizeboxpercent}%
- \newsavebox{\hlnormalsizeboxhat}%
- \newsavebox{\hlnormalsizeboxsinglequote}%
- \newsavebox{\hlnormalsizeboxbacktick}%
- \setbox\hlnormalsizeboxopenbrace=\hbox{\begin{normalsize}\verb.{.\end{normalsize}}%
- \setbox\hlnormalsizeboxclosebrace=\hbox{\begin{normalsize}\verb.}.\end{normalsize}}%
- \setbox\hlnormalsizeboxlessthan=\hbox{\begin{normalsize}\verb.<.\end{normalsize}}%
- \setbox\hlnormalsizeboxdollar=\hbox{\begin{normalsize}\verb.$.\end{normalsize}}%
- \setbox\hlnormalsizeboxunderscore=\hbox{\begin{normalsize}\verb._.\end{normalsize}}%
- \setbox\hlnormalsizeboxand=\hbox{\begin{normalsize}\verb.&.\end{normalsize}}%
- \setbox\hlnormalsizeboxhash=\hbox{\begin{normalsize}\verb.#.\end{normalsize}}%
- \setbox\hlnormalsizeboxat=\hbox{\begin{normalsize}\verb.@.\end{normalsize}}%
- \setbox\hlnormalsizeboxbackslash=\hbox{\begin{normalsize}\verb.\.\end{normalsize}}%
- \setbox\hlnormalsizeboxgreaterthan=\hbox{\begin{normalsize}\verb.>.\end{normalsize}}%
- \setbox\hlnormalsizeboxpercent=\hbox{\begin{normalsize}\verb.%.\end{normalsize}}%
- \setbox\hlnormalsizeboxhat=\hbox{\begin{normalsize}\verb.^.\end{normalsize}}%
- \setbox\hlnormalsizeboxsinglequote=\hbox{\begin{normalsize}\verb.'.\end{normalsize}}%
- \setbox\hlnormalsizeboxbacktick=\hbox{\begin{normalsize}\verb.`.\end{normalsize}}%
- \setbox\hlnormalsizeboxhat=\hbox{\begin{normalsize}\verb.^.\end{normalsize}}%
- \newsavebox{\hltinyboxclosebrace}%
- \newsavebox{\hltinyboxopenbrace}%
- \newsavebox{\hltinyboxbackslash}%
- \newsavebox{\hltinyboxlessthan}%
- \newsavebox{\hltinyboxgreaterthan}%
- \newsavebox{\hltinyboxdollar}%
- \newsavebox{\hltinyboxunderscore}%
- \newsavebox{\hltinyboxand}%
- \newsavebox{\hltinyboxhash}%
- \newsavebox{\hltinyboxat}%
- \newsavebox{\hltinyboxpercent}%
- \newsavebox{\hltinyboxhat}%
- \newsavebox{\hltinyboxsinglequote}%
- \newsavebox{\hltinyboxbacktick}%
- \setbox\hltinyboxopenbrace=\hbox{\begin{tiny}\verb.{.\end{tiny}}%
- \setbox\hltinyboxclosebrace=\hbox{\begin{tiny}\verb.}.\end{tiny}}%
- \setbox\hltinyboxlessthan=\hbox{\begin{tiny}\verb.<.\end{tiny}}%
- \setbox\hltinyboxdollar=\hbox{\begin{tiny}\verb.$.\end{tiny}}%
- \setbox\hltinyboxunderscore=\hbox{\begin{tiny}\verb._.\end{tiny}}%
- \setbox\hltinyboxand=\hbox{\begin{tiny}\verb.&.\end{tiny}}%
- \setbox\hltinyboxhash=\hbox{\begin{tiny}\verb.#.\end{tiny}}%
- \setbox\hltinyboxat=\hbox{\begin{tiny}\verb.@.\end{tiny}}%
- \setbox\hltinyboxbackslash=\hbox{\begin{tiny}\verb.\.\end{tiny}}%
- \setbox\hltinyboxgreaterthan=\hbox{\begin{tiny}\verb.>.\end{tiny}}%
- \setbox\hltinyboxpercent=\hbox{\begin{tiny}\verb.%.\end{tiny}}%
- \setbox\hltinyboxhat=\hbox{\begin{tiny}\verb.^.\end{tiny}}%
- \setbox\hltinyboxsinglequote=\hbox{\begin{tiny}\verb.'.\end{tiny}}%
- \setbox\hltinyboxbacktick=\hbox{\begin{tiny}\verb.`.\end{tiny}}%
- \setbox\hltinyboxhat=\hbox{\begin{tiny}\verb.^.\end{tiny}}%
- \newsavebox{\hlscriptsizeboxclosebrace}%
- \newsavebox{\hlscriptsizeboxopenbrace}%
- \newsavebox{\hlscriptsizeboxbackslash}%
- \newsavebox{\hlscriptsizeboxlessthan}%
- \newsavebox{\hlscriptsizeboxgreaterthan}%
- \newsavebox{\hlscriptsizeboxdollar}%
- \newsavebox{\hlscriptsizeboxunderscore}%
- \newsavebox{\hlscriptsizeboxand}%
- \newsavebox{\hlscriptsizeboxhash}%
- \newsavebox{\hlscriptsizeboxat}%
- \newsavebox{\hlscriptsizeboxpercent}%
- \newsavebox{\hlscriptsizeboxhat}%
- \newsavebox{\hlscriptsizeboxsinglequote}%
- \newsavebox{\hlscriptsizeboxbacktick}%
- \setbox\hlscriptsizeboxopenbrace=\hbox{\begin{scriptsize}\verb.{.\end{scriptsize}}%
- \setbox\hlscriptsizeboxclosebrace=\hbox{\begin{scriptsize}\verb.}.\end{scriptsize}}%
- \setbox\hlscriptsizeboxlessthan=\hbox{\begin{scriptsize}\verb.<.\end{scriptsize}}%
- \setbox\hlscriptsizeboxdollar=\hbox{\begin{scriptsize}\verb.$.\end{scriptsize}}%
- \setbox\hlscriptsizeboxunderscore=\hbox{\begin{scriptsize}\verb._.\end{scriptsize}}%
- \setbox\hlscriptsizeboxand=\hbox{\begin{scriptsize}\verb.&.\end{scriptsize}}%
- \setbox\hlscriptsizeboxhash=\hbox{\begin{scriptsize}\verb.#.\end{scriptsize}}%
- \setbox\hlscriptsizeboxat=\hbox{\begin{scriptsize}\verb.@.\end{scriptsize}}%
- \setbox\hlscriptsizeboxbackslash=\hbox{\begin{scriptsize}\verb.\.\end{scriptsize}}%
- \setbox\hlscriptsizeboxgreaterthan=\hbox{\begin{scriptsize}\verb.>.\end{scriptsize}}%
- \setbox\hlscriptsizeboxpercent=\hbox{\begin{scriptsize}\verb.%.\end{scriptsize}}%
- \setbox\hlscriptsizeboxhat=\hbox{\begin{scriptsize}\verb.^.\end{scriptsize}}%
- \setbox\hlscriptsizeboxsinglequote=\hbox{\begin{scriptsize}\verb.'.\end{scriptsize}}%
- \setbox\hlscriptsizeboxbacktick=\hbox{\begin{scriptsize}\verb.`.\end{scriptsize}}%
- \setbox\hlscriptsizeboxhat=\hbox{\begin{scriptsize}\verb.^.\end{scriptsize}}%
- \newsavebox{\hlfootnotesizeboxclosebrace}%
- \newsavebox{\hlfootnotesizeboxopenbrace}%
- \newsavebox{\hlfootnotesizeboxbackslash}%
- \newsavebox{\hlfootnotesizeboxlessthan}%
- \newsavebox{\hlfootnotesizeboxgreaterthan}%
- \newsavebox{\hlfootnotesizeboxdollar}%
- \newsavebox{\hlfootnotesizeboxunderscore}%
- \newsavebox{\hlfootnotesizeboxand}%
- \newsavebox{\hlfootnotesizeboxhash}%
- \newsavebox{\hlfootnotesizeboxat}%
- \newsavebox{\hlfootnotesizeboxpercent}%
- \newsavebox{\hlfootnotesizeboxhat}%
- \newsavebox{\hlfootnotesizeboxsinglequote}%
- \newsavebox{\hlfootnotesizeboxbacktick}%
- \setbox\hlfootnotesizeboxopenbrace=\hbox{\begin{footnotesize}\verb.{.\end{footnotesize}}%
- \setbox\hlfootnotesizeboxclosebrace=\hbox{\begin{footnotesize}\verb.}.\end{footnotesize}}%
- \setbox\hlfootnotesizeboxlessthan=\hbox{\begin{footnotesize}\verb.<.\end{footnotesize}}%
- \setbox\hlfootnotesizeboxdollar=\hbox{\begin{footnotesize}\verb.$.\end{footnotesize}}%
- \setbox\hlfootnotesizeboxunderscore=\hbox{\begin{footnotesize}\verb._.\end{footnotesize}}%
- \setbox\hlfootnotesizeboxand=\hbox{\begin{footnotesize}\verb.&.\end{footnotesize}}%
- \setbox\hlfootnotesizeboxhash=\hbox{\begin{footnotesize}\verb.#.\end{footnotesize}}%
- \setbox\hlfootnotesizeboxat=\hbox{\begin{footnotesize}\verb.@.\end{footnotesize}}%
- \setbox\hlfootnotesizeboxbackslash=\hbox{\begin{footnotesize}\verb.\.\end{footnotesize}}%
- \setbox\hlfootnotesizeboxgreaterthan=\hbox{\begin{footnotesize}\verb.>.\end{footnotesize}}%
- \setbox\hlfootnotesizeboxpercent=\hbox{\begin{footnotesize}\verb.%.\end{footnotesize}}%
- \setbox\hlfootnotesizeboxhat=\hbox{\begin{footnotesize}\verb.^.\end{footnotesize}}%
- \setbox\hlfootnotesizeboxsinglequote=\hbox{\begin{footnotesize}\verb.'.\end{footnotesize}}%
- \setbox\hlfootnotesizeboxbacktick=\hbox{\begin{footnotesize}\verb.`.\end{footnotesize}}%
- \setbox\hlfootnotesizeboxhat=\hbox{\begin{footnotesize}\verb.^.\end{footnotesize}}%
- \newsavebox{\hlsmallboxclosebrace}%
- \newsavebox{\hlsmallboxopenbrace}%
- \newsavebox{\hlsmallboxbackslash}%
- \newsavebox{\hlsmallboxlessthan}%
- \newsavebox{\hlsmallboxgreaterthan}%
- \newsavebox{\hlsmallboxdollar}%
- \newsavebox{\hlsmallboxunderscore}%
- \newsavebox{\hlsmallboxand}%
- \newsavebox{\hlsmallboxhash}%
- \newsavebox{\hlsmallboxat}%
- \newsavebox{\hlsmallboxpercent}%
- \newsavebox{\hlsmallboxhat}%
- \newsavebox{\hlsmallboxsinglequote}%
- \newsavebox{\hlsmallboxbacktick}%
- \setbox\hlsmallboxopenbrace=\hbox{\begin{small}\verb.{.\end{small}}%
- \setbox\hlsmallboxclosebrace=\hbox{\begin{small}\verb.}.\end{small}}%
- \setbox\hlsmallboxlessthan=\hbox{\begin{small}\verb.<.\end{small}}%
- \setbox\hlsmallboxdollar=\hbox{\begin{small}\verb.$.\end{small}}%
- \setbox\hlsmallboxunderscore=\hbox{\begin{small}\verb._.\end{small}}%
- \setbox\hlsmallboxand=\hbox{\begin{small}\verb.&.\end{small}}%
- \setbox\hlsmallboxhash=\hbox{\begin{small}\verb.#.\end{small}}%
- \setbox\hlsmallboxat=\hbox{\begin{small}\verb.@.\end{small}}%
- \setbox\hlsmallboxbackslash=\hbox{\begin{small}\verb.\.\end{small}}%
- \setbox\hlsmallboxgreaterthan=\hbox{\begin{small}\verb.>.\end{small}}%
- \setbox\hlsmallboxpercent=\hbox{\begin{small}\verb.%.\end{small}}%
- \setbox\hlsmallboxhat=\hbox{\begin{small}\verb.^.\end{small}}%
- \setbox\hlsmallboxsinglequote=\hbox{\begin{small}\verb.'.\end{small}}%
- \setbox\hlsmallboxbacktick=\hbox{\begin{small}\verb.`.\end{small}}%
- \setbox\hlsmallboxhat=\hbox{\begin{small}\verb.^.\end{small}}%
- \newsavebox{\hllargeboxclosebrace}%
- \newsavebox{\hllargeboxopenbrace}%
- \newsavebox{\hllargeboxbackslash}%
- \newsavebox{\hllargeboxlessthan}%
- \newsavebox{\hllargeboxgreaterthan}%
- \newsavebox{\hllargeboxdollar}%
- \newsavebox{\hllargeboxunderscore}%
- \newsavebox{\hllargeboxand}%
- \newsavebox{\hllargeboxhash}%
- \newsavebox{\hllargeboxat}%
- \newsavebox{\hllargeboxpercent}%
- \newsavebox{\hllargeboxhat}%
- \newsavebox{\hllargeboxsinglequote}%
- \newsavebox{\hllargeboxbacktick}%
- \setbox\hllargeboxopenbrace=\hbox{\begin{large}\verb.{.\end{large}}%
- \setbox\hllargeboxclosebrace=\hbox{\begin{large}\verb.}.\end{large}}%
- \setbox\hllargeboxlessthan=\hbox{\begin{large}\verb.<.\end{large}}%
- \setbox\hllargeboxdollar=\hbox{\begin{large}\verb.$.\end{large}}%
- \setbox\hllargeboxunderscore=\hbox{\begin{large}\verb._.\end{large}}%
- \setbox\hllargeboxand=\hbox{\begin{large}\verb.&.\end{large}}%
- \setbox\hllargeboxhash=\hbox{\begin{large}\verb.#.\end{large}}%
- \setbox\hllargeboxat=\hbox{\begin{large}\verb.@.\end{large}}%
- \setbox\hllargeboxbackslash=\hbox{\begin{large}\verb.\.\end{large}}%
- \setbox\hllargeboxgreaterthan=\hbox{\begin{large}\verb.>.\end{large}}%
- \setbox\hllargeboxpercent=\hbox{\begin{large}\verb.%.\end{large}}%
- \setbox\hllargeboxhat=\hbox{\begin{large}\verb.^.\end{large}}%
- \setbox\hllargeboxsinglequote=\hbox{\begin{large}\verb.'.\end{large}}%
- \setbox\hllargeboxbacktick=\hbox{\begin{large}\verb.`.\end{large}}%
- \setbox\hllargeboxhat=\hbox{\begin{large}\verb.^.\end{large}}%
- \newsavebox{\hlLargeboxclosebrace}%
- \newsavebox{\hlLargeboxopenbrace}%
- \newsavebox{\hlLargeboxbackslash}%
- \newsavebox{\hlLargeboxlessthan}%
- \newsavebox{\hlLargeboxgreaterthan}%
- \newsavebox{\hlLargeboxdollar}%
- \newsavebox{\hlLargeboxunderscore}%
- \newsavebox{\hlLargeboxand}%
- \newsavebox{\hlLargeboxhash}%
- \newsavebox{\hlLargeboxat}%
- \newsavebox{\hlLargeboxpercent}%
- \newsavebox{\hlLargeboxhat}%
- \newsavebox{\hlLargeboxsinglequote}%
- \newsavebox{\hlLargeboxbacktick}%
- \setbox\hlLargeboxopenbrace=\hbox{\begin{Large}\verb.{.\end{Large}}%
- \setbox\hlLargeboxclosebrace=\hbox{\begin{Large}\verb.}.\end{Large}}%
- \setbox\hlLargeboxlessthan=\hbox{\begin{Large}\verb.<.\end{Large}}%
- \setbox\hlLargeboxdollar=\hbox{\begin{Large}\verb.$.\end{Large}}%
- \setbox\hlLargeboxunderscore=\hbox{\begin{Large}\verb._.\end{Large}}%
- \setbox\hlLargeboxand=\hbox{\begin{Large}\verb.&.\end{Large}}%
- \setbox\hlLargeboxhash=\hbox{\begin{Large}\verb.#.\end{Large}}%
- \setbox\hlLargeboxat=\hbox{\begin{Large}\verb.@.\end{Large}}%
- \setbox\hlLargeboxbackslash=\hbox{\begin{Large}\verb.\.\end{Large}}%
- \setbox\hlLargeboxgreaterthan=\hbox{\begin{Large}\verb.>.\end{Large}}%
- \setbox\hlLargeboxpercent=\hbox{\begin{Large}\verb.%.\end{Large}}%
- \setbox\hlLargeboxhat=\hbox{\begin{Large}\verb.^.\end{Large}}%
- \setbox\hlLargeboxsinglequote=\hbox{\begin{Large}\verb.'.\end{Large}}%
- \setbox\hlLargeboxbacktick=\hbox{\begin{Large}\verb.`.\end{Large}}%
- \setbox\hlLargeboxhat=\hbox{\begin{Large}\verb.^.\end{Large}}%
- \newsavebox{\hlLARGEboxclosebrace}%
- \newsavebox{\hlLARGEboxopenbrace}%
- \newsavebox{\hlLARGEboxbackslash}%
- \newsavebox{\hlLARGEboxlessthan}%
- \newsavebox{\hlLARGEboxgreaterthan}%
- \newsavebox{\hlLARGEboxdollar}%
- \newsavebox{\hlLARGEboxunderscore}%
- \newsavebox{\hlLARGEboxand}%
- \newsavebox{\hlLARGEboxhash}%
- \newsavebox{\hlLARGEboxat}%
- \newsavebox{\hlLARGEboxpercent}%
- \newsavebox{\hlLARGEboxhat}%
- \newsavebox{\hlLARGEboxsinglequote}%
- \newsavebox{\hlLARGEboxbacktick}%
- \setbox\hlLARGEboxopenbrace=\hbox{\begin{LARGE}\verb.{.\end{LARGE}}%
- \setbox\hlLARGEboxclosebrace=\hbox{\begin{LARGE}\verb.}.\end{LARGE}}%
- \setbox\hlLARGEboxlessthan=\hbox{\begin{LARGE}\verb.<.\end{LARGE}}%
- \setbox\hlLARGEboxdollar=\hbox{\begin{LARGE}\verb.$.\end{LARGE}}%
- \setbox\hlLARGEboxunderscore=\hbox{\begin{LARGE}\verb._.\end{LARGE}}%
- \setbox\hlLARGEboxand=\hbox{\begin{LARGE}\verb.&.\end{LARGE}}%
- \setbox\hlLARGEboxhash=\hbox{\begin{LARGE}\verb.#.\end{LARGE}}%
- \setbox\hlLARGEboxat=\hbox{\begin{LARGE}\verb.@.\end{LARGE}}%
- \setbox\hlLARGEboxbackslash=\hbox{\begin{LARGE}\verb.\.\end{LARGE}}%
- \setbox\hlLARGEboxgreaterthan=\hbox{\begin{LARGE}\verb.>.\end{LARGE}}%
- \setbox\hlLARGEboxpercent=\hbox{\begin{LARGE}\verb.%.\end{LARGE}}%
- \setbox\hlLARGEboxhat=\hbox{\begin{LARGE}\verb.^.\end{LARGE}}%
- \setbox\hlLARGEboxsinglequote=\hbox{\begin{LARGE}\verb.'.\end{LARGE}}%
- \setbox\hlLARGEboxbacktick=\hbox{\begin{LARGE}\verb.`.\end{LARGE}}%
- \setbox\hlLARGEboxhat=\hbox{\begin{LARGE}\verb.^.\end{LARGE}}%
- \newsavebox{\hlhugeboxclosebrace}%
- \newsavebox{\hlhugeboxopenbrace}%
- \newsavebox{\hlhugeboxbackslash}%
- \newsavebox{\hlhugeboxlessthan}%
- \newsavebox{\hlhugeboxgreaterthan}%
- \newsavebox{\hlhugeboxdollar}%
- \newsavebox{\hlhugeboxunderscore}%
- \newsavebox{\hlhugeboxand}%
- \newsavebox{\hlhugeboxhash}%
- \newsavebox{\hlhugeboxat}%
- \newsavebox{\hlhugeboxpercent}%
- \newsavebox{\hlhugeboxhat}%
- \newsavebox{\hlhugeboxsinglequote}%
- \newsavebox{\hlhugeboxbacktick}%
- \setbox\hlhugeboxopenbrace=\hbox{\begin{huge}\verb.{.\end{huge}}%
- \setbox\hlhugeboxclosebrace=\hbox{\begin{huge}\verb.}.\end{huge}}%
- \setbox\hlhugeboxlessthan=\hbox{\begin{huge}\verb.<.\end{huge}}%
- \setbox\hlhugeboxdollar=\hbox{\begin{huge}\verb.$.\end{huge}}%
- \setbox\hlhugeboxunderscore=\hbox{\begin{huge}\verb._.\end{huge}}%
- \setbox\hlhugeboxand=\hbox{\begin{huge}\verb.&.\end{huge}}%
- \setbox\hlhugeboxhash=\hbox{\begin{huge}\verb.#.\end{huge}}%
- \setbox\hlhugeboxat=\hbox{\begin{huge}\verb.@.\end{huge}}%
- \setbox\hlhugeboxbackslash=\hbox{\begin{huge}\verb.\.\end{huge}}%
- \setbox\hlhugeboxgreaterthan=\hbox{\begin{huge}\verb.>.\end{huge}}%
- \setbox\hlhugeboxpercent=\hbox{\begin{huge}\verb.%.\end{huge}}%
- \setbox\hlhugeboxhat=\hbox{\begin{huge}\verb.^.\end{huge}}%
- \setbox\hlhugeboxsinglequote=\hbox{\begin{huge}\verb.'.\end{huge}}%
- \setbox\hlhugeboxbacktick=\hbox{\begin{huge}\verb.`.\end{huge}}%
- \setbox\hlhugeboxhat=\hbox{\begin{huge}\verb.^.\end{huge}}%
- \newsavebox{\hlHugeboxclosebrace}%
- \newsavebox{\hlHugeboxopenbrace}%
- \newsavebox{\hlHugeboxbackslash}%
- \newsavebox{\hlHugeboxlessthan}%
- \newsavebox{\hlHugeboxgreaterthan}%
- \newsavebox{\hlHugeboxdollar}%
- \newsavebox{\hlHugeboxunderscore}%
- \newsavebox{\hlHugeboxand}%
- \newsavebox{\hlHugeboxhash}%
- \newsavebox{\hlHugeboxat}%
- \newsavebox{\hlHugeboxpercent}%
- \newsavebox{\hlHugeboxhat}%
- \newsavebox{\hlHugeboxsinglequote}%
- \newsavebox{\hlHugeboxbacktick}%
- \setbox\hlHugeboxopenbrace=\hbox{\begin{Huge}\verb.{.\end{Huge}}%
- \setbox\hlHugeboxclosebrace=\hbox{\begin{Huge}\verb.}.\end{Huge}}%
- \setbox\hlHugeboxlessthan=\hbox{\begin{Huge}\verb.<.\end{Huge}}%
- \setbox\hlHugeboxdollar=\hbox{\begin{Huge}\verb.$.\end{Huge}}%
- \setbox\hlHugeboxunderscore=\hbox{\begin{Huge}\verb._.\end{Huge}}%
- \setbox\hlHugeboxand=\hbox{\begin{Huge}\verb.&.\end{Huge}}%
- \setbox\hlHugeboxhash=\hbox{\begin{Huge}\verb.#.\end{Huge}}%
- \setbox\hlHugeboxat=\hbox{\begin{Huge}\verb.@.\end{Huge}}%
- \setbox\hlHugeboxbackslash=\hbox{\begin{Huge}\verb.\.\end{Huge}}%
- \setbox\hlHugeboxgreaterthan=\hbox{\begin{Huge}\verb.>.\end{Huge}}%
- \setbox\hlHugeboxpercent=\hbox{\begin{Huge}\verb.%.\end{Huge}}%
- \setbox\hlHugeboxhat=\hbox{\begin{Huge}\verb.^.\end{Huge}}%
- \setbox\hlHugeboxsinglequote=\hbox{\begin{Huge}\verb.'.\end{Huge}}%
- \setbox\hlHugeboxbacktick=\hbox{\begin{Huge}\verb.`.\end{Huge}}%
- \setbox\hlHugeboxhat=\hbox{\begin{Huge}\verb.^.\end{Huge}}%
- \def\urltilda{\kern -.15em\lower .7ex\hbox{\~{}}\kern .04em}%
- \newcommand{\hlstd}[1]{\textcolor[rgb]{0,0,0}{#1}}%
- \newcommand{\hlnum}[1]{\textcolor[rgb]{0.16,0.16,1}{#1}}
- \newcommand{\hlesc}[1]{\textcolor[rgb]{1,0,1}{#1}}
- \newcommand{\hlstr}[1]{\textcolor[rgb]{1,0,0}{#1}}
- \newcommand{\hldstr}[1]{\textcolor[rgb]{0.51,0.51,0}{#1}}
- \newcommand{\hlslc}[1]{\textcolor[rgb]{0.51,0.51,0.51}{\it{#1}}}
- \newcommand{\hlcom}[1]{\textcolor[rgb]{0.51,0.51,0.51}{\it{#1}}}
- \newcommand{\hldir}[1]{\textcolor[rgb]{0,0.51,0}{#1}}
- \newcommand{\hlsym}[1]{\textcolor[rgb]{0,0,0}{#1}}
- \newcommand{\hlline}[1]{\textcolor[rgb]{0.33,0.33,0.33}{#1}}
- \newcommand{\hlkwa}[1]{\textcolor[rgb]{0,0,0}{\bf{#1}}}
- \newcommand{\hlkwb}[1]{\textcolor[rgb]{0.51,0,0}{#1}}
- \newcommand{\hlkwc}[1]{\textcolor[rgb]{0,0,0}{\bf{#1}}}
- \newcommand{\hlkwd}[1]{\textcolor[rgb]{0,0,0.51}{#1}}
- \newenvironment{Houtput}{\raggedright}{%
- %
- }
- \usepackage{tikz}
- \usetikzlibrary{external}
- \tikzexternalize[mode=list and make]
- \usepackage[margin=1in]{geometry}
- \title{Minimal pgfSweave Example}
- \author{Cameron Bracken}
- \usepackage{/Library/Frameworks/R.framework/Resources/share/texmf/tex/latex/Sweave}
- \begin{document}
- \maketitle
- This example is identical to that in the Sweave manual and is intended to
- introduce pgfSweave and highlight the basic differences. Please refer to
- the pgfSweave vignette for more usage instructions.
- We embed parts of the examples from the \texttt{kruskal.test} help page
- into a \LaTeX{} document:
- \begin{Houtput}
- \hspace*{\fill}\\
- \hlstd{}\ttfamily\noindent
- \hlprompt{\usebox{\hlnormalsizeboxgreaterthan}{\ }}{\ }{\ }{\ }{\ }{\ }{\ }{\ }{\ }\hlcomment{\usebox{\hlnormalsizeboxhash}{\ }{\ }{\ }{\ }{\ }hey,{\ }a{\ }comment}\mbox{}
- \normalfont
- \hspace*{\fill}\\
- \hlstd{}\ttfamily\noindent
- \hlprompt{\usebox{\hlnormalsizeboxgreaterthan}{\ }}\hlfunctioncall{data}\hlkeyword{(}\hlsymbol{airquality}\hlkeyword{)}\mbox{}
- \normalfont
- \hspace*{\fill}\\
- \hlstd{}\ttfamily\noindent
- \hlprompt{\usebox{\hlnormalsizeboxgreaterthan}{\ }}\hlfunctioncall{print}\hlkeyword{(}\hlfunctioncall{kruskal.test}\hlkeyword{(}\hlsymbol{Ozone}{\ }\hlkeyword{\urltilda{}}{\ }\hlsymbol{Month}\hlkeyword{,}{\ }\hlargument{data}{\ }\hlargument{=}{\ }\hlsymbol{airquality}\hlkeyword{)}\hlkeyword{)}{\ }{\ }\hlcomment{\usebox{\hlnormalsizeboxhash}{\ }and{\ }another}\mbox{}
- \normalfont
- \hspace*{\fill}\\
- \hlstd{}\begin{Schunk}
- \begin{Soutput}
- Kruskal-Wallis rank sum test
- data: Ozone by Month
- Kruskal-Wallis chi-squared = 29.2666, df = 4, p-value = 6.901e-06
- \end{Soutput}
- \end{Schunk}
- \end{Houtput}
- \noindent which shows that the location parameter of the Ozone distribution varies
- significantly from month to month. Finally we include a boxplot of the data:
- \begin{figure}[!ht]
- \centering
- %notice the new options
- {\pgfkeys{/pgf/images/include external/.code={\includegraphics[width=3in]{#1}}}
- \begin{Houtput}
- \hspace*{\fill}\\
- \hlstd{}\ttfamily\noindent
- \hlprompt{\usebox{\hlnormalsizeboxgreaterthan}{\ }}\hlfunctioncall{boxplot}\hlkeyword{(}\hlsymbol{Ozone}{\ }\hlkeyword{\urltilda{}}{\ }\hlsymbol{Month}\hlkeyword{,}{\ }\hlargument{data}{\ }\hlargument{=}{\ }\hlsymbol{airquality}\hlkeyword{,}{\ }\hlargument{main}{\ }\hlargument{=}{\ }\hlstring{"Ozone{\ }distribution"}\hlkeyword{,}\hspace*{\fill}\\
- \hlstd{}\hlprompt{+{\ }}{\ }{\ }{\ }{\ }\hlargument{xlab}{\ }\hlargument{=}{\ }\hlstring{"Month"}\hlkeyword{,}{\ }\hlargument{ylab}{\ }\hlargument{=}{\ }\hlstring{"Concentration"}\hlkeyword{)}\mbox{}
- \normalfont
- \hspace*{\fill}\\
- \hlstd{}
- \end{Houtput}
- \tikzsetnextfilename{pgfSweave-example-boxplot}
- \tikzexternalfiledependsonfile{pgfSweave-example-boxplot}{pgfSweave-example-boxplot.tikz}
- \input{pgfSweave-example-boxplot.tikz}
- NA
- \caption{This is from pgfSweave. Text is typset by \LaTeX\ and so matches the
- font of the document.}
- \end{figure}
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement