pdfscreencop.sty 44 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261
  1. %%
  2. %%
  3. %% This is file `pdfscreen.sty',
  4. %% generated with the docstrip utility.
  5. %%
  6. %% The original source files were:
  7. %%
  8. %%
  9. %% pdfscreen.dtx (with options: `package')
  10. %%
  11. %% File: pdfscreen.dtx Copyright (c) 1999, 2000 C. V. Radhakrishnan
  12. %%
  13. %% This package may be distributed under the terms of the LaTeX Project
  14. %% Public License, as described in lppl.txt in the base LaTeX distribution.
  15. %% Either version 1.0 or, at your option, any later version.
  16. %%
  17. \NeedsTeXFormat{LaTeX2e}
  18. \def\fileversion{v.1.5}\def\filedate{2000/07/07}
  19. \ProvidesPackage{pdfscreen}
  20. [\filedate\space\fileversion\space screen PDF design (CVR)]
  21. \RequirePackage{graphicx}
  22. \RequirePackage{color,calc}
  23. \RequirePackage{comment}
  24. \newcounter{panel}
  25. \newif\if@screen \@screenfalse
  26. \newif\if@print \@printfalse
  27. \newif\if@sidebar \@sidebarfalse
  28. \newif\if@samepage \@samepagefalse
  29. \newif\if@nocfg \@nocfgfalse
  30. \newif\if@orange \@orangefalse
  31. \newif\if@bluelace \@bluelacefalse
  32. \newif\if@chocolate \@chocolatefalse
  33. \newif\if@palegreen \@palegreenfalse
  34. \newif\if@blue \@bluefalse
  35. \newif\if@gray \@grayfalse
  36. \newif\if@default \@defaultfalse
  37. \newif\if@paneltoc \@paneltocfalse
  38. \newif\if@code \@codefalse
  39. \newif\if@sectionbreak\@sectionbreakfalse
  40. \newcounter{driver} \newcounter{scheme}
  41. \DeclareOption{pdftex}{\setcounter{driver}{0}}
  42. \DeclareOption{dvips}{\setcounter{driver}{1}}
  43. \DeclareOption{dvipsone}{\setcounter{driver}{2}}
  44. \DeclareOption{dvipdf}{\setcounter{driver}{3}}
  45. \DeclareOption{dvipdfm}{\setcounter{driver}{4}}
  46. \DeclareOption{dviwindo}{\setcounter{driver}{5}}
  47. \DeclareOption{ps2pdf}{\setcounter{driver}{6}}
  48. \DeclareOption{vtex}{\setcounter{driver}{7}}
  49. \DeclareOption{nocfg}{\@nocfgtrue}
  50. \DeclareOption{article}{\relax}
  51. \DeclareOption{amsart}{\relax}
  52. \DeclareOption{book}{\relax}
  53. \DeclareOption{amsbook}{\relax}
  54. \DeclareOption{sidebar}{\setcounter{panel}{1}}
  55. \DeclareOption{absconsamepage}{\relax}
  56. \DeclareOption{bluelace}{\setcounter{scheme}{1}}
  57. \DeclareOption{chocolate}{\setcounter{scheme}{2}}
  58. \DeclareOption{palegreen}{\setcounter{scheme}{3}}
  59. \DeclareOption{orange}{\setcounter{scheme}{4}}
  60. \DeclareOption{gray}{\setcounter{scheme}{5}}
  61. \DeclareOption{blue}{\setcounter{scheme}{0}}
  62. \DeclareOption{panelleft}{\setcounter{panel}{1}}
  63. \DeclareOption{leftpanel}{\setcounter{panel}{1}}
  64. \DeclareOption{panelright}{\setcounter{panel}{2}}
  65. \DeclareOption{rightpanel}{\setcounter{panel}{2}}
  66. \DeclareOption{nopanel}{\setcounter{panel}{0}}
  67. \DeclareOption{print}{\@printtrue}
  68. \DeclareOption{screen}{\@screentrue}
  69. \DeclareOption{sidebar}{\setcounter{panel}{1}}
  70. \DeclareOption{nopanel}{\setcounter{panel}{0}}
  71. \DeclareOption{default}{\@defaulttrue}
  72. \DeclareOption{paneltoc}{\@paneltoctrue}
  73. \DeclareOption{code}{\@codetrue}
  74. \DeclareOption{sectionbreak}{\@sectionbreaktrue}
  75. \def\PDFSCR@Warning#1{\PackageWarning{pdfscreen}{#1}}
  76. \def\PDFSCR@Info#1{\PackageInfo{pdfscreen}{#1}}
  77. \def\PDFSCR@WarningNoLine#1{\PackageWarningNoLine{pdfscreen}{#1}}
  78. \def\PDFSCR@langwarn#1{%
  79. \PackageWarningNoLine{pdfscreen}{Sorry, language `#1'
  80. not supported\MessageBreak
  81. in this version.
  82. English strings are used instead.\MessageBreak
  83. However you can give all the strings in the *.cfg%
  84. \MessageBreak
  85. file which will eventually be read by the package.
  86. \MessageBreak\MessageBreak
  87. If you can suggest translations for
  88. this language,\MessageBreak
  89. please mail them to the author of this package}}
  90. \@onlypreamble\PDFSCR@langwarn
  91. \def\paneltitlepagename#1{\gdef\@Paneltitlepagename{#1}}
  92. \def\panlabstractname#1{\gdef\@Panelabstractname{#1}}
  93. \def\panelcontentsname#1{\gdef\@Panelcontentsname{#1}}
  94. \def\panelhomepagename#1{\gdef\@Panelhomepagename{#1}}
  95. \def\panelfullscreenname#1{\gdef\@Panelfullscreenname{#1}}
  96. \def\panelgobackname#1{\gdef\@Panelgobackname{#1}}
  97. \def\panelclosename#1{\gdef\@Panelclosename{#1}}
  98. \def\panelquitname#1{\gdef\@Panelquitname{#1}}
  99. \def\panelpagename#1{\gdef\@Panelpagename{#1}}
  100. \def\panelofname#1{\gdef\@Panelofname{#1}}
  101. \let\@Paneltitlepagename\@empty \let\@Panelabstractname\@empty
  102. \let\@Panelcontentsname\@empty \let\@Panelhomepagename\@empty
  103. \let\@Panelgobackname\@empty \let\@Panelgobackname\@empty
  104. \let\@Panelquitname\@empty \let\@Panelclosename\@empty
  105. \let\@Panelpagename\@empty \let\@Panelofname\@empty
  106. \let\@Panelfullscreenname\@empty
  107. \DeclareOption{english}{%
  108. \paneltitlepagename{Title Page}
  109. \panlabstractname{Abstract}
  110. \panelcontentsname{Contents}
  111. \panelfullscreenname{Full Screen}
  112. \panelhomepagename{Home Page}
  113. \panelgobackname{Go Back}
  114. \panelclosename{Close}
  115. \panelquitname{Quit}
  116. \panelpagename{Page}
  117. \panelofname{of}
  118. }
  119. \DeclareOption{french}{%
  120. \paneltitlepagename{Page de Titre}
  121. \panlabstractname{R\'esum\'e}
  122. \panelcontentsname{Sommaire}
  123. \panelfullscreenname{Full Screen}
  124. \panelhomepagename{ Page d\'accueil}
  125. \panelgobackname{Retour}
  126. \panelclosename{Fermer}
  127. \panelquitname{Quitter}
  128. \panelpagename{Page}
  129. \panelofname{de}
  130. }
  131. \DeclareOption{dutch}{
  132. \paneltitlepagename{Titel Pagina}
  133. \panlabstractname{Samenvatting}
  134. \panelcontentsname{Inhoudsopgave}
  135. \panelfullscreenname{Full Screen}
  136. \panelhomepagename{Startpagina}
  137. \panelgobackname{Ga terug}
  138. \panelclosename{Sluiten}
  139. \panelquitname{Be\"eindigen}
  140. \panelpagename{Pagina}
  141. \panelofname{van}
  142. }
  143. \DeclareOption{czech}{%
  144. \paneltitlepagename{Tituln\'{\i} strana}
  145. \panlabstractname{Abstrakt}
  146. \panelcontentsname{Obsah}
  147. \panelfullscreenname{Full Screen}
  148. \panelhomepagename{\'Uvodn\'{\i} strana}
  149. \panelgobackname{Zp\v{e}t}
  150. \panelclosename{Zav\v{r}\'{\i}t}
  151. \panelquitname{Konec}
  152. \panelpagename{Strana}
  153. \panelofname{z}
  154. }
  155. \DeclareOption{norsk}{%
  156. \paneltitlepagename{Forside}
  157. \panlabstractname{Sammendrag}
  158. \panelcontentsname{Innhold}
  159. \panelfullscreenname{Full Screen}
  160. \panelhomepagename{Hjemmeside}
  161. \panelgobackname{G\aa\ tilbake}
  162. \panelclosename{Lukk}
  163. \panelquitname{Avslutt}
  164. \panelpagename{Side}
  165. \panelofname{av}
  166. }
  167. \DeclareOption{nynorsk}{%
  168. \paneltitlepagename{Forside}
  169. \panlabstractname{Samandrag}
  170. \panelcontentsname{Innhald}
  171. \panelfullscreenname{Full Screen}
  172. \panelhomepagename{Heimeside}
  173. \panelgobackname{G\aa\ tilbake}
  174. \panelclosename{Lat att}
  175. \panelquitname{Avslutt}
  176. \panelpagename{Side}
  177. \panelofname{av}
  178. }
  179. \DeclareOption{slovak}{%
  180. \paneltitlepagename{Tituln\'a strana}
  181. \panlabstractname{Abstrakt}
  182. \panelcontentsname{Obsah}
  183. \panelfullscreenname{Full Screen}
  184. \panelhomepagename{Domovsk\'a str\'anka}
  185. \panelgobackname{Sp\"a\v t}
  186. \panelclosename{Zatvori\v t}
  187. \panelquitname{Koniec}
  188. \panelpagename{Strana}
  189. \panelofname{z}
  190. }
  191. \DeclareOption{portuges}{%
  192. \paneltitlepagename{P\'agina de Rosto}
  193. \panlabstractname{Sum\'ario}
  194. \panelcontentsname{\'Indice Geral}
  195. \panelfullscreenname{Full Screen}
  196. \panelhomepagename{Homepage}
  197. \panelgobackname{Voltar}
  198. \panelclosename{Fechar}
  199. \panelquitname{Desistir}
  200. \panelpagename{P\'agina}
  201. \panelofname{de}
  202. }
  203. \DeclareOption{spanish}{%
  204. \paneltitlepagename{P\'agina de Abertura}
  205. \panlabstractname{Resumen}
  206. \panelcontentsname{Contenido}
  207. \panelfullscreenname{Full Screen}
  208. \panelhomepagename{P\'agina www}
  209. \panelgobackname{Regresar}
  210. \panelclosename{Cerrar}
  211. \panelquitname{Abandonar}
  212. \panelpagename{P\'agina}
  213. \panelofname{de}
  214. }
  215. \DeclareOption{swedish}{%
  216. \paneltitlepagename{F\"ors\"attsblad}
  217. \panlabstractname{Sammanfattning}
  218. \panelcontentsname{Inneh\aa{}ll}
  219. \panelfullscreenname{Full Screen}
  220. \panelhomepagename{Hemsida}
  221. \panelgobackname{Tillbaka}
  222. \panelclosename{St\"ang}
  223. \panelquitname{Avsluta}
  224. \panelpagename{Sida}
  225. \panelofname{av}
  226. }
  227. \DeclareOption{danish}{%
  228. \paneltitlepagename{Forside}
  229. \panlabstractname{Resum\'e}
  230. \panelcontentsname{Indhold}
  231. \panelfullscreenname{Full Screen}
  232. \panelhomepagename{Hjemmeside}
  233. \panelgobackname{G\aa\ tilbage}
  234. \panelclosename{Luk}
  235. \panelquitname{Afslut}
  236. \panelpagename{Side}
  237. \panelofname{af}
  238. }
  239. \DeclareOption{polish}{%
  240. \paneltitlepagename{Strona tytu\l owa}
  241. \panlabstractname{Streszczenie}
  242. \panelcontentsname{Spis tre\'sci}
  243. \panelfullscreenname{Full Screen}
  244. \panelhomepagename{Strona g\l \'owna}
  245. \panelgobackname{Powr\'ot}
  246. \panelclosename{Zamknij}
  247. \panelquitname{Koniec}
  248. \panelpagename{Strona}
  249. \panelofname{z}
  250. }
  251. \DeclareOption{russian}{%
  252. \paneltitlepagename{\cyr\CYRT\cyri\cyrt\cyru\cyrl\cyrsftsn\cyrn\cyra\cyrya{}
  253. \cyrs\cyrt\cyrr\cyra\cyrn\cyri\cyrc\cyra}
  254. \panlabstractname{\cyr\CYRA\cyrn\cyrn\cyro\cyrt\cyra\cyrc\cyri\cyrya}
  255. \panelcontentsname{\cyr\CYRS\cyro\cyrd\cyre\cyrr\cyrzh\cyra\cyrn\cyri\cyre}
  256. \panelfullscreenname{Full Screen}
  257. \panelhomepagename{Home Page}
  258. \panelgobackname{\cyr\CYRN\cyra\cyrz\cyra\cyrd}
  259. \panelclosename{\cyr\CYRZ\cyra\cyrk\cyrr\cyrery\cyrt\cyrsftsn}
  260. \panelquitname{\cyr\CYRV\cyrery\cyrh\cyro\cyrd}
  261. \panelpagename{\cyr\CYRS\cyrt\cyrr\cyra\cyrn\cyri\cyrc\cyra}
  262. \panelofname{\cyr\cyri\cyrz}
  263. }
  264. \DeclareOption{german}{%
  265. \paneltitlepagename{Titelseite}
  266. \panlabstractname{Zusammenfassung}
  267. \panelcontentsname{Inhalt}
  268. \panelfullscreenname{Vollbild}
  269. \panelhomepagename{Startseite}
  270. \panelgobackname{Zur\"uck}
  271. \panelclosename{Schlie\ss en}
  272. \panelquitname{Beenden}
  273. \panelpagename{Seite}
  274. \panelofname{von}
  275. }
  276. \DeclareOption{slovene}{%
  277. \paneltitlepagename{Naslovnica}
  278. \panlabstractname{Povzetek}
  279. \panelcontentsname{Kazalo}
  280. \panelfullscreenname{Full Screen}
  281. \panelhomepagename{Spletna stran}
  282. \panelgobackname{Nazaj}
  283. \panelclosename{Zapri}
  284. \panelquitname{Kon\v{c}aj}
  285. \panelpagename{Stran}
  286. \panelofname{od}
  287. }
  288. \DeclareOption{catalan}{%
  289. \paneltitlepagename{Inici}
  290. \panlabstractname{Resum}
  291. \panelcontentsname{Contingut}
  292. \panelfullscreenname{Full Screen}
  293. \panelhomepagename{Plana personal}
  294. \panelgobackname{Tornar}
  295. \panelclosename{Tancar}
  296. \panelquitname{Sortir}
  297. \panelpagename{P\`agina}
  298. \panelofname{de}
  299. }
  300. \DeclareOption{american}{\ExecuteOptions{english}}
  301. \DeclareOption{austrian}{\PDFSCR@langwarn{austrian}\ExecuteOptions{english}}
  302. \DeclareOption{brazil}{\ExecuteOptions{portuges}}
  303. \DeclareOption{breton}{\PDFSCR@langwarn{breton}\ExecuteOptions{english}}
  304. \DeclareOption{croatian}{\PDFSCR@langwarn{croatian}\ExecuteOptions{english}}
  305. \DeclareOption{esperanto}{\PDFSCR@langwarn{esperanto}\ExecuteOptions{english}}
  306. \DeclareOption{finnish}{\PDFSCR@langwarn{finnish}\ExecuteOptions{english}}
  307. \DeclareOption{galician}{\PDFSCR@langwarn{galician}\ExecuteOptions{english}}
  308. \DeclareOption{italian}{\PDFSCR@langwarn{italian}\ExecuteOptions{english}}
  309. \DeclareOption{magyar}{\PDFSCR@langwarn{magyar}\ExecuteOptions{english}}
  310. \DeclareOption{romanian}{\PDFSCR@langwarn{romanian}\ExecuteOptions{english}}
  311. \DeclareOption{turkish}{\PDFSCR@langwarn{turkish}\ExecuteOptions{english}}
  312. \DeclareOption{francais}{\typeout{******Please use `french' instead of `francais'*****}%
  313. \ExecuteOptions{french}}
  314. \DeclareOption{germanb}{\typeout{******Please use `german' instead of `germanb'******}%
  315. \ExecuteOptions{german}}
  316. \ExecuteOptions{english,default}
  317. \ProcessOptions
  318. %******** Screen options starts here *****************
  319. \if@screen
  320. \@ifundefined{hyperref}{%
  321. \ifcase\thedriver\RequirePackage[pdftex]{hyperref}\or
  322. \RequirePackage[dvips]{hyperref}\or
  323. \RequirePackage[dvipsone]{hyperref}\or
  324. \RequirePackage[dvipdf]{hyperref}\or
  325. \RequirePackage[dvipdfm]{hyperref}\or
  326. \RequirePackage[dviwindo]{hyperref}\or
  327. \RequirePackage[ps2pdf]{hyperref}\or
  328. \RequirePackage[vtex]{hyperref}\or
  329. \PDFSCR@Warning{Unknown backend driver}
  330. \fi}
  331. {\PDFSCR@Warning{hyperref already loaded}}
  332. \hypersetup{pagebackref,pdfpagemode=none,colorlinks,%
  333. pdfmenubar=false,%
  334. pdftoolbar=false,%
  335. pdffitwindow=true,pdfcenterwindow=true,%
  336. pdfwindowui=false,menucolor=menucolor,%
  337. pdfview=Fit,pdfstartview=Fit,backref}
  338. \includecomment{screen}
  339. \excludecomment{print}
  340. \def\ScreenLastPage{100}
  341. \let\emblema\@gobble
  342. \let\emblemb\@gobble
  343. \let\affname\@gobble
  344. \let\divname\@gobble
  345. \let\urlid\@gobble
  346. \let\emailid\@gobble
  347. \let\@emblema\@empty
  348. \let\@urlid\@empty
  349. \let\@emailid\@empty
  350. \let\@affname\@empty
  351. \let\@divname\@empty
  352. \definecolor{coxcolor}{rgb}{1,.937,.835}
  353. \definecolor{boxcolor}{rgb}{.001,0,.502}
  354. \definecolor{bboxcolor}{rgb}{.9,.941,.902}
  355. \definecolor{rcolor}{rgb}{.439,.502,.565}
  356. \definecolor{olivedrab}{rgb}{.42,.557,.137}
  357. \definecolor{fcolor}{rgb}{0,1,1}
  358. \definecolor{orange}{rgb}{1,.549,0}
  359. \definecolor{orange1}{rgb}{1,.5,0}
  360. \definecolor{menucolor}{rgb}{1,.25,0}
  361. \definecolor{paleblue}{rgb}{0,0,0.1}
  362. \if@default\PDFSCR@Info{Default options loaded}
  363. \definecolor{panelbackground}{rgb}{.455,.832,.979}
  364. \definecolor{logobackground}{rgb}{.35,.73,.87}
  365. \definecolor{buttonbackground}{rgb}{0,.624,.820}
  366. \definecolor{buttonshadow}{rgb}{.001,0,.502}
  367. \definecolor{section0}{rgb}{0,.5,.1}
  368. \definecolor{section1}{rgb}{0,.5,1}
  369. \definecolor{section2}{rgb}{0,.5,.7}
  370. \definecolor{section3}{rgb}{0,.5,.4}
  371. \definecolor{section4}{rgb}{.4,.5,.2}
  372. \definecolor{section5}{rgb}{.5,.5,.3}
  373. \fi
  374. \ifnum\thescheme=1%{bluelace}
  375. \PDFSCR@Info{Color scheme `bluelace' loaded}
  376. \definecolor{panelbackground}{rgb}{.902,.902,.980}
  377. \definecolor{buttonbackground}{rgb}{1,.855,.725}
  378. \definecolor{buttonshadow}{rgb}{.855,.647,.125}
  379. \definecolor{orange}{rgb}{1,.549,0}
  380. \definecolor{orange1}{rgb}{1,.5,0}
  381. \definecolor{section0}{rgb}{.722,.525,.431}
  382. \definecolor{section1}{rgb}{.855,.647,.123}
  383. \definecolor{section2}{rgb}{.737,.561,.561}
  384. \definecolor{section3}{rgb}{.804,.361,.361}
  385. \definecolor{section4}{rgb}{.545,.271,.75}
  386. \definecolor{section5}{rgb}{.627,.322,.176}
  387. \else
  388. \ifnum\thescheme=2%{chocolate}
  389. \PDFSCR@Info{Color scheme 'chocolate' loaded}
  390. \definecolor{panelbackground}{rgb}{.871,.722,.529}
  391. \definecolor{buttonbackground}{rgb}{.957,.643,.376}
  392. \definecolor{buttonshadow}{rgb}{.824,.412,.118}
  393. \definecolor{section0}{rgb}{.722,.525,.431}
  394. \definecolor{section1}{rgb}{.980,.502,.447}
  395. \definecolor{section2}{rgb}{ 1.0,.549,.000}
  396. \definecolor{section3}{rgb}{1.00,.388,.278}
  397. \definecolor{section4}{rgb}{1.00,.271,.000}
  398. \definecolor{section5}{rgb}{1.00,.412,.706}
  399. \else
  400. \ifnum\thescheme=3%{palegreen}
  401. \PDFSCR@Info{Color scheme 'palegreen' loaded}
  402. \definecolor{panelbackground}{rgb}{.604,.933,.604}
  403. \definecolor{buttonbackground}{rgb}{.000,.804,.000}
  404. \definecolor{buttonshadow}{rgb}{.000,.545,.000}
  405. \definecolor{section0}{rgb}{.000,.845,.000}
  406. \definecolor{section1}{rgb}{.000,.745,.000}
  407. \definecolor{section2}{rgb}{.000,.645,.133}
  408. \definecolor{section3}{rgb}{.000,.488,.278}
  409. \definecolor{section4}{rgb}{.000,.371,.000}
  410. \definecolor{section5}{rgb}{.000,.212,.000}
  411. \else
  412. \ifnum\thescheme=4%{orange}
  413. \PDFSCR@Info{Color scheme 'orange' loaded}
  414. \definecolor{panelbackground}{rgb}{1.00,.867,.000}
  415. \definecolor{buttonbackground}{rgb}{.804,.522,.000}
  416. \definecolor{buttonshadow}{rgb}{.545,.271,.000}
  417. \definecolor{section0}{rgb}{.804,.522,.000}
  418. \definecolor{section1}{rgb}{.804,.522,.000}
  419. \definecolor{section2}{rgb}{.804,.422,.133}
  420. \definecolor{section3}{rgb}{.804,.322,.278}
  421. \definecolor{section4}{rgb}{.804,.222,.000}
  422. \definecolor{section5}{rgb}{.804,.122,.000}
  423. \else
  424. \ifnum\thescheme=5%{gray}
  425. \PDFSCR@Info{Color scheme 'gray' loaded}
  426. \definecolor{panelbackground}{gray}{.8}
  427. \definecolor{buttonbackground}{gray}{.6}
  428. \definecolor{buttonshadow}{gray}{.2}
  429. \definecolor{orange}{rgb}{1,.549,0}
  430. \definecolor{orange1}{rgb}{1,.5,0}
  431. \definecolor{section0}{rgb}{0,.5,.1}
  432. \definecolor{section1}{rgb}{0,.5,1}
  433. \definecolor{section2}{rgb}{0,.5,.5}
  434. \definecolor{section3}{rgb}{0,.5,.4}
  435. \definecolor{section4}{rgb}{.4,.5,.2}
  436. \definecolor{section5}{rgb}{.5,.5,.3}
  437. \else
  438. \PDFSCR@Info{No color scheme specified \MessageBreak
  439. default color scheme loaded}
  440. \@defaulttrue
  441. \fi\fi\fi\fi\fi
  442. %
  443. %------------------------ Macros for code listing --------------
  444. \if@code
  445. \def\verbatim@font{%
  446. \normalfont \ttfamily\small
  447. \color{section0}
  448. \catcode`\<=\active
  449. \catcode`\>=\active
  450. }
  451. \begingroup
  452. \catcode`\<=\active
  453. \catcode`\>=\active
  454. \gdef<{\@ifnextchar<\@lt\@meta}
  455. \gdef>{\@ifnextchar>\@gt\@gtr@err}
  456. \gdef\@meta#1>{\@PDFm{#1}}
  457. \gdef\@lt<{\char`\<}
  458. \gdef\@gt>{\char`\>}
  459. \endgroup
  460. \def\@gtr@err{%
  461. \PDFSCR@Warning{%
  462. Isolated \protect>\MessageBreak%
  463. In this document class, \protect<...\protect>\MessageBreak
  464. is used to indicate a parameter.\MessageBreak
  465. I've just found a \protect> on its own.\MessageBreak
  466. Perhaps you meant to type \protect>\protect>?
  467. }%
  468. }
  469. \def\verbatim@nolig@list{\do\`\do\,\do\'\do\-}
  470. \def\@PDFm#1{\mbox{\color{red}$\langle$\it#1\/$\rangle$}}
  471. \def\arg#1{{\color{section1}{\tt\string{}\@PDFm{#1}{\tt\string}}}}
  472. \def\@PDFM#1{\mbox{\color{red}\it#1\/}}
  473. \def\Arg#1{{\color{section1}{\tt\string{}\@PDFM{#1}{\tt\string}}}}
  474. \def\oarg#1{{\color{section1}{\tt[}\@PDFm{#1}{\tt]}}}
  475. \def\Oarg#1{{\color{section1}{\tt[}\@PDFM{#1}{\tt]}}}
  476. \definecolor{wheat}{rgb}{.96, .87, .70}
  477. \definecolor{oldlace}{rgb}{.992, .96187, .902}
  478. \definecolor{snow}{rgb}{1, .98, .98}
  479. \definecolor{ghostwhite}{rgb}{.973, .973, 1}
  480. \definecolor{cornsilk}{rgb}{1, .973, .863}
  481. \definecolor{honeydew}{rgb}{.941, 1, .941}
  482. \definecolor{lavenderdark}{rgb}{.8, .8, .9529411}
  483. \definecolor{lavender}{rgb}{.902, .902, .980}
  484. \definecolor{lightblue}{rgb}{.8, .8, .95}
  485. \definecolor{lightgray}{rgb}{.827, .827, .827}
  486. \definecolor{lightsteelblue}{rgb}{.690, .769, .871}
  487. \definecolor{lightturquoise}{rgb}{.686, .933, .933}
  488. \definecolor{darkgreen}{rgb}{.0, .392, .0}
  489. \definecolor{yellowgreen}{rgb}{.604, .804, .196}
  490. \definecolor{vlightblue}{rgb}{.88, .85, .95}
  491. \definecolor{khaki}{rgb}{.741, .718, .42}
  492. \@ifundefined{rowcolor}{}{\arrayrulecolor{section1}}
  493. \definecolor{tabcolor}{rgb}{.973, .973, 1}
  494. \@ifundefined{decl}{%
  495. \newenvironment{decl}[1][]%
  496. {\par\small\addvspace{1.5ex plus .5ex minus .5ex}%
  497. \vskip -\parskip
  498. \noindent\hspace{-\leftmarginii}%
  499. \bgroup\begin{tabular}{|>{\columncolor{tabcolor}}l|}\hline\\[-6pt]
  500. \ignorespaces}%
  501. {\\[3pt]\hline\end{tabular}\egroup\par%
  502. \vspace{1.5ex}\ignorespacesafterend\noindent}}{}
  503. \RequirePackage{shortvrb}
  504. \MakeShortVerb{\|}
  505. \fi %---------- end of \if@code option ----------
  506. %
  507. %-------------- Button macros -------------
  508. %
  509. \@ifundefined{@PDFbox}{\newbox\@PDFbox}{}
  510. \@ifundefined{@tempdimc}{\newdimen\@tempdimc}{}
  511. \newdimen\shadowsize
  512. \shadowsize 1pt
  513. \def\shadowbox{\PDFBox\@shadowbox}
  514. \def\@shadowbox#1{%
  515. \setbox\@PDFbox\hbox{\fbox{#1}}%
  516. \leavevmode\vbox{%
  517. \offinterlineskip
  518. \dimen@=\shadowsize
  519. \advance\dimen@ .5\fboxrule
  520. \hbox{\copy\@PDFbox\kern-.5\fboxrule\lower\shadowsize\hbox{%
  521. \vrule \@height\ht\@PDFbox \@depth\dp\@PDFbox \@width\dimen@}}%
  522. \vskip-\dimen@
  523. \moveright\shadowsize\vbox{%
  524. \hrule \@width\wd\@PDFbox \@height\dimen@}}}
  525. \newtoks\do@PDFBox
  526. \def\PDFBox#1{%
  527. \do@PDFBox{#1}%
  528. \afterassignment\begin@PDFBox
  529. \setbox\@PDFbox=\hbox}
  530. \def\begin@PDFBox{\aftergroup\end@PDFBox}
  531. \def\end@PDFBox{\the\do@PDFBox{\box\@PDFbox}}%
  532. %
  533. \definecolor{buttondisable}{gray}{.7}
  534. \definecolor{Gray}{rgb}{.895,.93,.916}
  535. \def\FBlack{\ifnum\thepage=1\color{buttondisable}\else\Black\fi}
  536. \def\LBlack{\ifnum\thepage=\number\ScreenLastPage\color{buttondisable}%
  537. \else\Black\fi}
  538. \def\ContPage{2}
  539. \def\DBlack{\ifnum\thepage=\number\ContPage\color{buttondisable}%
  540. \else\Black\fi}
  541. \def\Black{\color{black}}
  542. \def\contentsname{\protect\hypertarget{contents}{\@Panelcontentsname}
  543. \immediate\write\@auxout{\string\gdef\string\ContPage{\thepage}}}
  544. \def\abstractname{\protect\hypertarget{abstract}{\@Panelabstractname}}
  545. \def\emailid#1{\def\@emailid{mailto:#1}}
  546. \def\urlid#1{\def\@urlid{http://#1}}
  547. \def\markboth#1#2{\gdef\lmark{#1}\gdef\rmark{#2}}
  548. \def\emblema#1{\def\@emblema{#1}}
  549. \def\@grerr{\phantom{XXXXXXXX}}
  550. \def\affname#1{\def\@affname{#1}}
  551. \def\@afferr{Name of Organization}
  552. \def\@diverr{Name of Division}
  553. \def\divname#1{\def\@divname{#1}}
  554. \newlength\panelwidth
  555. \ifnum\thepanel>0%
  556. \setlength\panelwidth{.15\paperwidth}%%.25
  557. \ifdim\panelwidth<1in\setlength\panelwidth{1in}\fi\else
  558. \setlength\panelwidth{0pt}
  559. \fi
  560. \fboxsep0pt\fboxrule.2pt
  561. \RequirePackage{amssymb,amsbsy}
  562. \def\btl{\ensuremath{\blacktriangleleft}}
  563. \def\rtl{\ensuremath{\blacktriangleright}}
  564. \def\panelfont{\fontsize{7pt}{7pt}\itshape\selectfont}
  565. \def\st{\hbox{\vrule height10pt depth5pt width\z@}\panelfont}
  566. \def\addButton#1#2{\begingroup\normalsfcodes\fboxsep0pt\fboxrule.4pt\shadowsize.4pt%
  567. \sffamily\color{buttonshadow}\shadowbox{\colorbox{buttonbackground}%
  568. {\hbox to #1{\hfil\Black\st#2\hfil}}\color{buttonshadow}}\endgroup}
  569. %
  570. %------------ Panel macros ----------------
  571. %
  572. \def\paneloverlay#1{\gdef\@paneloverlay{#1}}
  573. \def\paneloverlayempty{\let\@paneloverlay\@empty}
  574. \let\@paneloverlay\@empty
  575. \def\@panel{%
  576. \begingroup\normalsfcodes\ifx\@paneloverlay\@empty%
  577. \colorbox{panelbackground}{\panel}%
  578. \else%
  579. \vbox to\z@{\hbox to\z@{\includegraphics[width=\panelwidth,%%
  580. height=\paperheight]{\@paneloverlay}%
  581. \hspace{-\panelwidth}\hfill}\vspace{-\paperheight}\vfill}%
  582. \panel\fi%
  583. \endgroup}%
  584. \def\panel{%
  585. \begin{minipage}[t][\paperheight][c]{\panelwidth}%
  586. \normalsfcodes%
  587. \centering%
  588. \null\vspace*{12pt}\vfill%
  589. \ifx\@emblema\@empty\relax\else%
  590. \@@logo{\@emblema}\par\vfill\fi%
  591. \if@paneltoc%
  592. \@panel@toc\par\vfill\else\relax\fi%
  593. \color{blue}%
  594. \NavigationPanel%
  595. \par\vfill
  596. \null\vspace*{1pt}
  597. \end{minipage}%
  598. }
  599. %
  600. \def\imageButton#1#2#3{\includegraphics[width=#1,height=#2]{#3}}
  601. \newdimen\buttonwidth\newdimen\smallbuttonwidth
  602. \setlength\buttonwidth{.7\panelwidth}
  603. \setlength\smallbuttonwidth{.35\panelwidth}
  604. \addtolength{\smallbuttonwidth}{-1.2pt}
  605. \def\NavigationPanel{\normalsfcodes%
  606. \href{\@urlid}{\addButton{\buttonwidth}{\@Panelhomepagename}}\\ \pfill
  607. \Acrobatmenu{FirstPage}{\addButton{\buttonwidth}{\FBlack\@Paneltitlepagename}}\\\pfill
  608. \if@paneltoc\relax\else%
  609. \hyperlink{contents}{\addButton{\buttonwidth}{\DBlack\@Panelcontentsname}}\\\pfill\fi
  610. \Acrobatmenu{FirstPage}{\addButton{\smallbuttonwidth}{\FBlack\scalebox{.8}[1.4]{\btl\btl}}}\hspace*{-2pt}
  611. \Acrobatmenu{LastPage}{\addButton{\smallbuttonwidth}{\LBlack\scalebox{.8}[1.4]{\rtl\rtl}}}\\\pfill
  612. \Acrobatmenu{PrevPage}{\addButton{\smallbuttonwidth}{\FBlack\scalebox{.8}[1.4]{\btl}}}\hspace*{-2pt}
  613. \Acrobatmenu{NextPage}{\addButton{\smallbuttonwidth}{\LBlack\scalebox{.8}[1.4]{\rtl}}}\\\pfill
  614. \Acrobatmenu{GoToPage}{\addButton{\buttonwidth}{\@Panelpagename\space
  615. \textcolor{red}{\thepage}\space\@Panelofname\space
  616. \textcolor{red}{\ScreenLastPage}}}\\\pfill
  617. \Acrobatmenu{GoBack}{\addButton{\buttonwidth}{\@Panelgobackname}}\\\pfill
  618. \Acrobatmenu{FullScreen}{\addButton{\buttonwidth}{\@Panelfullscreenname}}\\\pfill
  619. \Acrobatmenu{Close}{\addButton{\buttonwidth}{\@Panelclosename}}\\\pfill
  620. \Acrobatmenu{Quit}{\addButton{\buttonwidth}{\@Panelquitname}}\\
  621. }
  622. \def\pfill{\vfill}
  623. %
  624. %-------------- Verbatim fix -------------
  625. %
  626. % This code is provided by DP Story
  627. \newdimen\@PDFspaceleft
  628. \def\@PDFpagespace{%
  629. \ifdim\pagetotal=0pt
  630. \@PDFspaceleft=\vsize
  631. \else
  632. \@PDFspaceleft=\pagegoal
  633. \advance\@PDFspaceleft by-\pagetotal
  634. \fi}
  635. \let\@PDFverbatim\verbatim
  636. \let\@PDFendverbatim\endverbatim
  637. \AtBeginDocument{%
  638. \def\verbatim{\begingroup\setbox0=\vbox\bgroup
  639. \hsize=\linewidth%
  640. \@PDFverbatim\verbatim@font}
  641. \def\endverbatim{\@PDFendverbatim\egroup
  642. \@PDFpagespace\ifdim\@PDFspaceleft>\ht0
  643. \else
  644. \setbox1=\vsplit0 to\@PDFspaceleft
  645. \verbatim@font\unvbox1 \penalty\@M
  646. \fi
  647. \ifvoid0\relax\else\verbatim@font\unvbox0\fi
  648. \endgroup}
  649. \def\@verb{\@vobeyspaces \frenchspacing\@sverb}
  650. }
  651. % end of DPS' code
  652. %
  653. %-------------- end of Verbatim fix -------------
  654. %
  655. %-------------- Layout macros -------------------
  656. %
  657. \newdimen\@Leftmargin \@Leftmargin=0cm
  658. \newdimen\@Rightmargin \@Rightmargin=0cm
  659. \newdimen\@Topmargin \@Topmargin=0in
  660. \newdimen\@Bottommargin \@Bottommargin=0in
  661. %
  662. \setlength\headheight{0pt}
  663. \setlength\headsep {0pt}
  664. \setlength\footskip {0pt}
  665. \hoffset=0pt
  666. \voffset=0pt
  667. \pagestyle{empty}
  668. %
  669. \def\InitLayout{
  670. \setlength{\textwidth}{\paperwidth}
  671. \addtolength{\textwidth}{-\@Leftmargin}
  672. \addtolength{\textwidth}{-\@Rightmargin}
  673. \setlength{\textheight}{\paperheight}
  674. \addtolength{\textheight}{-\@Topmargin}
  675. \addtolength{\textheight}{-\@Bottommargin}
  676. \addtolength{\textheight}{-\headheight}
  677. \addtolength{\textheight}{-\headsep}
  678. \addtolength{\textheight}{-\footskip}
  679. \setlength{\oddsidemargin}{\@Leftmargin}
  680. \addtolength{\oddsidemargin}{-1in}
  681. \setlength{\evensidemargin}{\@Leftmargin}%{\@Rightmargin}
  682. \addtolength{\evensidemargin}{-1in}
  683. \setlength{\topmargin}{\@Topmargin}
  684. \addtolength{\topmargin}{-1in}
  685. }
  686. \def\marginsize#1#2#3#4{
  687. \@Leftmargin=#1
  688. \@Rightmargin=#2
  689. \@Topmargin=#3
  690. \@Bottommargin=#4
  691. \InitLayout
  692. }
  693. \newdimen\Textmarginright
  694. \newdimen\Textmarginleft
  695. \newdimen\Textmargintop
  696. \newdimen\Textmarginbottom
  697. \newdimen\marginright
  698. \newdimen\marginleft
  699. \newdimen\margintop
  700. \newdimen\marginbottom
  701. \newdimen\panelheight
  702. \newdimen\LLX
  703. \newdimen\LLY
  704. \newdimen\URX
  705. \newdimen\URY
  706. \newdimen\calfactor
  707. \setlength\calfactor{0pt}
  708. \def\margins#1#2#3#4{%
  709. \marginleft=#1
  710. \marginright=#2
  711. \margintop=#3
  712. \marginbottom=#4
  713. }
  714. \def\screensize#1#2{\paperheight=#1%
  715. \paperwidth=#2
  716. \InitLayout
  717. \ifcase\thepanel
  718. \setlength\Textmarginright{\marginright}
  719. \setlength\Textmarginleft{\marginleft}
  720. \setlength\Textmargintop{\margintop}
  721. \setlength\Textmarginbottom{\marginbottom}
  722. \setlength\LLX{\calfactor}
  723. \setlength\LLY{\calfactor}
  724. \setlength\overlaywidth{\paperwidth}
  725. \setlength\URX{\overlaywidth-2\calfactor}
  726. \setlength\URY{\paperheight-2\calfactor}
  727. \PDFSCR@Info{no panel options loaded}
  728. \or%ifnum\thepanel=1
  729. \setlength\Textmarginright{\marginright}
  730. \setlength\Textmarginleft{\panelwidth}
  731. \addtolength\Textmarginleft{\marginleft}
  732. \setlength\Textmargintop{\margintop}
  733. \setlength\Textmarginbottom{\marginbottom}
  734. \setlength\LLX{\panelwidth+\calfactor}
  735. \setlength\LLY{\calfactor}
  736. \setlength\overlaywidth{\paperwidth}
  737. \addtolength\overlaywidth{-\panelwidth}
  738. \setlength\URX{\overlaywidth-2\calfactor}
  739. \setlength\URY{\paperheight-2\calfactor}
  740. \PDFSCR@Info{left panel options loaded}
  741. \or%ifnum\thepanel=2
  742. \setlength\Textmarginleft{\marginleft}
  743. \setlength\Textmarginright{\panelwidth}
  744. \addtolength\Textmarginright{\marginright}
  745. \setlength\Textmargintop{\margintop}
  746. \setlength\Textmarginbottom{\marginbottom}
  747. \setlength\LLX{\calfactor}
  748. \setlength\LLY{\calfactor}
  749. \setlength\overlaywidth{\paperwidth}
  750. \addtolength\overlaywidth{-\panelwidth}
  751. \setlength\URX{\overlaywidth-2\calfactor}
  752. \setlength\URY{\paperheight-2\calfactor}
  753. \PDFSCR@Info{right panel options loaded}
  754. \or\PDFSCR@Warning{Panel specification is undefined}
  755. \fi
  756. \marginsize{\Textmarginleft}{\Textmarginright}
  757. {\Textmargintop}{\Textmarginbottom}
  758. \InitLayout
  759. \PDFSCR@Info{LLX=\the\LLX \MessageBreak
  760. LLY=\the\LLY \MessageBreak
  761. URX=\the\URX \MessageBreak
  762. URY=\the\URY \MessageBreak
  763. panelwidth=\the\panelwidth \MessageBreak
  764. overlaywidth=\the\overlaywidth \MessageBreak
  765. textwidth=\the\textwidth \MessageBreak
  766. textheight=\the\textheight \MessageBreak
  767. paperwidth=\the\paperwidth \MessageBreak
  768. paperheight=\the\paperheight \MessageBreak
  769. calfactor=\the\calfactor \MessageBreak
  770. Panel=\thepanel}
  771. }
  772. %
  773. % ------------------ overlaying of images or colors --------
  774. %
  775. \let\@PDFSout@Hook\@empty
  776. \newcommand{\PDFSout}{\g@addto@macro\@PDFSout@Hook}
  777. \newcommand{\@PDFSout@Out}{%
  778. \afterassignment\@PDFSout@Test
  779. \global\setbox\@cclv= %
  780. }
  781. \newcommand{\@PDFSout@Test}{%
  782. \ifvoid\@cclv\relax
  783. \aftergroup\@PDFSout@Output
  784. \else
  785. \@PDFSout@Output
  786. \fi%
  787. }
  788. \newcommand{\@PDFSout@Output}{%
  789. \@PDFSout@Hook%
  790. \@PDFSout@Org@Out\box\@cclv%
  791. }
  792. \newcommand{\@PDFSout@Org@Out}{}
  793. \newcommand*{\@PDFSout@Init}{%
  794. \let\@PDFSout@Org@Out\shipout
  795. \let\shipout\@PDFSout@Out
  796. }
  797. \AtBeginDocument{\@PDFSout@Init}
  798. \newcommand{\@Overlay@Hook}{}
  799. \newcommand{\AddToOverlay}{\g@addto@macro\@Overlay@Hook}
  800. \newcommand{\ClearOverlay}{\let\@Overlay@Hook\@empty}
  801. \newcommand{\@Overlay}{%
  802. \ifx\@Overlay@Hook\@empty
  803. \else
  804. \bgroup
  805. \@tempdima=1in
  806. \@tempcnta=\@tempdima
  807. \@tempcntb=-\@tempdima
  808. \advance\@tempcntb\paperheight
  809. \global\setbox\@cclv\vbox{%
  810. \vbox{\let\protect\relax%
  811. \unitlength=1sp%
  812. \pictur@(0,0)(\@tempcnta,\@tempcntb)%
  813. \@Overlay@Hook%
  814. \endpicture}%
  815. \box\@cclv%
  816. }%
  817. \egroup
  818. \fi
  819. }
  820. \PDFSout{\@Overlay}
  821. %------------------- end of overlaying macros --------------
  822. %
  823. %------------------- Panel TOC macros ----------------------
  824. %
  825. \if@paneltoc
  826. \PDFSCR@Info{Panel TOC options loaded}
  827. \RequirePackage{truncate}
  828. \newcounter{NUM}[page]
  829. \def\numberline#1{}
  830. \def\ST{\hbox{\vrule height8pt depth3pt width\z@}\scriptsize\itshape}
  831. \def\scrShadowButton#1#2{\begingroup\fboxsep0pt\fboxrule.6pt\shadowsize.1pt%
  832. \sffamily\color{buttonshadow}\shadowbox{\colorbox{buttonbackground}%
  833. {\hbox to #1{\color{fgcolor}\ST#2\hfill}}\color{buttonshadow}}\endgroup}
  834. \def\scrNormalButton#1#2{\begingroup\sffamily\color{white}%
  835. \noindent{\colorbox{panelbackground}%
  836. {\hbox to #1{\color{fgcolor}\ST\hfill#2\hfill}}}\endgroup}
  837. \def\@@secHead{section}
  838. \long\def\contentsline#1#2#3#4{\def\@@cHead{#1}%
  839. \ifx\@@cHead\@@secHead\stepcounter{NUM}%
  840. \ifnum\thepanel@section=\theNUM%
  841. {\definecolor{panelbackground}{gray}{.3}%
  842. \definecolor{fgcolor}{gray}{1}%
  843. \hyperlink{#4}{\,\scrNormalButton{.965\panelwidth}{\truncate{.9\panelwidth}{#2}}}%
  844. }\par\vskip1truept%
  845. \else
  846. {\definecolor{panelbackground}{rgb}{.741, .718, .42}%%
  847. \definecolor{fgcolor}{gray}{0}%
  848. \hyperlink{#4}{\,\scrNormalButton{.965\panelwidth}{\truncate{.9\panelwidth}{#2}}}%
  849. }\par\vskip1truept%
  850. \fi\fi}
  851. \newcounter{@TOC}
  852. \def\PDF@@TOC{\stepcounter{@TOC}\ifnum\the@TOC>1\relax%
  853. \else\tableofcontents\fi}
  854. \def\@panel@toc{\vbox\bgroup\rightskip0pt plus 1fill
  855. \hbadness 10000
  856. \InputIfFileExists{\jobname.toc}%
  857. {\PDFSCR@Info{TOC file read}}%
  858. {\PDFSCR@Warning{TOC file not available}%
  859. \AtEndDocument{\PDF@@TOC}}%
  860. \egroup}
  861. \fi% --- end of paneltoc option ---
  862. \def\overlay#1{\gdef\@overlay{#1}}
  863. \def\overlayempty{\let\@overlay\@empty}
  864. \let\@overlay\@empty
  865. \def\backgroundcolor#1{\gdef\@backgroundcolor{#1}}
  866. \backgroundcolor{lightcyan}
  867. \definecolor{lightcyan}{rgb}{.895,.93,.916}
  868. \newdimen\overlayheight
  869. \newdimen\overlaywidth
  870. \AddToOverlay{%
  871. \setlength{\@tempdima}{0pt}
  872. \setlength{\@tempdimb}{\paperwidth-2\@tempdima}
  873. \setlength{\@tempdimc}{\paperheight-2\@tempdima}
  874. \setlength{\unitlength}{1pt}\thinlines%
  875. \ifx\@overlay\@empty%
  876. \PDFSCR@Warning{No overlay specified\MessageBreak
  877. output will have only background color}
  878. \put(\strip@pt\LLX,\strip@pt\LLY){%
  879. \colorbox{\@backgroundcolor}{%
  880. \color{white}\makebox(\strip@pt\URX,\strip@pt\URY)%
  881. {}}}
  882. \else
  883. \ifnum\thepanel=1
  884. \put(\strip@pt\@tempdima,\strip@pt\@tempdima){%
  885. \makebox(\strip@pt\@tempdimb,\strip@pt\@tempdimc)[cr]%
  886. {\includegraphics[width=\overlaywidth,height=\paperheight]{\@overlay}}}%
  887. \else
  888. \ifnum\thepanel=2
  889. \put(\strip@pt\@tempdima,\strip@pt\@tempdima){%
  890. \makebox(\strip@pt\@tempdimb,\strip@pt\@tempdimc)[cl]%
  891. {\includegraphics[width=\overlaywidth,height=\paperheight]{\@overlay}}}%
  892. \else
  893. \put(\strip@pt\@tempdima,\strip@pt\@tempdima){%
  894. \makebox(\strip@pt\@tempdimb,\strip@pt\@tempdimc)[cc]%
  895. {\includegraphics[width=\overlaywidth,height=\paperheight]{\@overlay}}}%
  896. \fi\fi
  897. \fi%
  898. }%
  899. \AddToOverlay{%
  900. \setlength{\@tempdima}{0mm}%
  901. \setlength{\@tempdimb}{\paperwidth-2\@tempdima}%
  902. \setlength{\@tempdimc}{\paperheight-2\@tempdima}%
  903. \setlength{\unitlength}{1pt}\thinlines%
  904. \put(\strip@pt\@tempdima,\strip@pt\@tempdima){%
  905. \makebox(\strip@pt\@tempdimb,\strip@pt\@tempdimc)%
  906. {\relax\@@@PANEL\relax}}%
  907. }
  908. %
  909. \def\@@@PANEL{\ifnum\thepanel=1\@panel\hfill\else%
  910. \ifnum\thepanel=2\hfill\@panel\else%
  911. \ifnum\thepanel=0\relax%
  912. \fi\fi\fi}%
  913. %
  914. \def\@logo#1{%
  915. \global\setbox0=\hbox{\includegraphics{#1}}%
  916. \ifdim\ht0>\wd0%
  917. \includegraphics[height=.75in]{#1}%
  918. \else%
  919. \ifdim\wd0>\ht0%
  920. \includegraphics[width=.75in]{#1}%
  921. \else%
  922. \ifdim\wd0=\ht0%%
  923. \includegraphics[width=.75in]{#1}%
  924. \fi\fi\fi
  925. }
  926. \let\@@logo\@logo
  927. \def\ps@plain{}
  928. \def\ps@empty{}
  929. \def\ps@firstpage{}
  930. \def\ps@headings{}
  931. \def\ps@myheadings{}
  932. \def\ps@title{}
  933. \AtEndDocument{%
  934. \clearpage \addtocounter{page}{-1}%
  935. \immediate\write\@auxout{\string\gdef\string\ScreenLastPage{\arabic{page}}}%
  936. \addtocounter{page}{1}}
  937. %------------------- Section counter coloring ----------------------
  938. \let\old@secnumber\@secnumber
  939. \def\@secnumber{\protect\textcolor{section\thesection@level}{\old@secnumber}}%
  940. \def\@seccntformat#1{\protect\textcolor{section\thesection@level}%
  941. {\expandafter\upshape\csname the#1\endcsname}\quad}%
  942. \def\@secnumfont{\protect\textcolor{section\thesection@level}}%\mdseries}
  943. \def\abstractname{\protect\textcolor{blue}{\@Panelabstractname}}
  944. \let\o@title\@title
  945. \def\@title{\protect\color{orange}\o@title}
  946. \def\Sectionformat#1#2{%
  947. \ifcase#2%
  948. {\protect\textcolor{section0}{#1}}%level 0 chapter { }
  949. \or {\protect\textcolor{section1}{#1}}%level 1 section { }
  950. \or {\protect\textcolor{section2}{#1}}%level 2 subsection { }
  951. \or {\protect\textcolor{section3}{#1}}%level 3 subsubsection { }
  952. \or {\protect\textcolor{section4}{#1}}%level 4 paragraph { }
  953. \or {\protect\textcolor{section5}{#1}}%level 5 subparagraph { }
  954. \fi
  955. }
  956. \let\scr@section\section
  957. \newcounter{panel@section}
  958. \def\section{\if@sectionbreak\clearpage\fi%
  959. \stepcounter{panel@section}\scr@section}
  960. \def\@linkcolor{red}
  961. \def\@anchorcolor{section0}
  962. \def\@citecolor{orange}
  963. \def\@filecolor{cyan}
  964. \def\@urlcolor{magenta}
  965. \def\@menucolor{section2}
  966. \def\@pagecolor{red}
  967. \setcounter{tocdepth}{4}
  968. \setcounter{secnumdepth}{4}
  969. \ifnum\thedriver=0
  970. \def\pagedissolve#1{%
  971. \edef\@@processme{%
  972. \pdfpageattr{%
  973. /Trans << /S /#1\space >>%
  974. }}%
  975. \@@processme
  976. }%
  977. \else
  978. \def\pagedissolve#1{}
  979. \fi
  980. \if@nocfg\relax\else\IfFileExists{pdfscreen.cfg}{\input pdfscreen.cfg}{}\fi
  981. \let\notesname\@gobble
  982. \newcounter{slide}
  983. \newcounter{slideoverlay}
  984. \newenvironment{slide}{%
  985. \stepcounter{slide}%
  986. \stepcounter{slideoverlay}%
  987. \ifnum\theslideoverlay=11\setcounter{slideoverlay}{1}
  988. \ifx\@overlay\@empty\else
  989. \PDFSCR@Warning{Overly counter reset to zero}\fi\fi
  990. \ifx\@overlay\@empty\else
  991. \PDFSCR@Warning{Overly file is \@overlay.pdf}\fi
  992. \noindent\begin{minipage}[c][\textheight][c]{\textwidth}
  993. \newcommand\realnormalsize{%
  994. \@setfontsize\realnormalsize\@xiipt{14.5}%
  995. \abovedisplayskip 12\p@ \@plus3\p@ \@minus7\p@
  996. \abovedisplayshortskip \z@ \@plus3\p@
  997. \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
  998. \belowdisplayskip \abovedisplayskip
  999. }
  1000. \newcommand\realsmall{%
  1001. \@setfontsize\realsmall\@xipt{13.6}%
  1002. \abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@
  1003. \abovedisplayshortskip \z@ \@plus3\p@
  1004. \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
  1005. }
  1006. \newcommand\realfootnotesize{%
  1007. \@setfontsize\realfootnotesize\@xpt\@xiipt
  1008. \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
  1009. \abovedisplayshortskip \z@ \@plus3\p@
  1010. \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
  1011. }
  1012. \newcommand\realscriptsize{\@setfontsize\realscriptsize\@viiipt{9.5}}
  1013. \newcommand\realtiny{\@setfontsize\realtiny\@vipt\@viipt}
  1014. \newcommand\reallarge{\@setfontsize\reallarge\@xivpt{18}}
  1015. \newcommand\realLarge{\@setfontsize\realLarge\@xviipt{22}}
  1016. \newcommand\realLARGE{\@setfontsize\realLARGE\@xxpt{25}}
  1017. \newcommand\realhuge{\@setfontsize\realhuge\@xxvpt{30}}
  1018. \let\realHuge=\realhuge
  1019. \renewcommand\normalsize{%
  1020. \@setfontsize\normalsize{16}{19.2}%
  1021. \abovedisplayskip 14\p@ \@plus3\p@ \@minus7\p@
  1022. \abovedisplayshortskip \z@ \@plus3\p@
  1023. \belowdisplayshortskip 7.5\p@ \@plus3.5\p@ \@minus3\p@
  1024. \belowdisplayskip \abovedisplayskip
  1025. }
  1026. \normalsize
  1027. \renewcommand\small{%
  1028. \@setfontsize\small{13}{14.5}%
  1029. \abovedisplayskip 13\p@ \@plus3\p@ \@minus6\p@
  1030. \abovedisplayshortskip \z@ \@plus3\p@
  1031. \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
  1032. }
  1033. \renewcommand\footnotesize{%
  1034. \@setfontsize\footnotesize\@xiipt{14}
  1035. \abovedisplayskip 12\p@ \@plus2\p@ \@minus5\p@
  1036. \abovedisplayshortskip \z@ \@plus3\p@
  1037. \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
  1038. }
  1039. \renewcommand\scriptsize{\@setfontsize\scriptsize\@xpt{11.2}}
  1040. \renewcommand\tiny{\@setfontsize\tiny\@ixpt{10.2}}
  1041. \renewcommand\large{\@setfontsize\large{17.28}{22}}
  1042. \renewcommand\Large{\@setfontsize\Large\@xxvpt{30}}
  1043. \renewcommand\LARGE{\@setfontsize\LARGE{30}{36}}
  1044. \renewcommand\huge{\@setfontsize\huge{40}{48}}
  1045. \let\Huge=\huge
  1046. }
  1047. {\end{minipage}}
  1048. %
  1049. \long\def\buttonbox#1{%
  1050. \leavevmode
  1051. \setbox\@tempboxa\hbox{%
  1052. \color@begingroup
  1053. \kern\fboxsep{#1}\kern\fboxsep
  1054. \color@endgroup}%
  1055. \@buttonframeb@x\relax}
  1056. %
  1057. \def\@buttonframeb@x#1{\begingroup%
  1058. \@tempdima\fboxrule
  1059. \advance\@tempdima\fboxsep
  1060. \advance\@tempdima\dp\@tempboxa
  1061. \hbox{%
  1062. \lower\@tempdima\hbox{%
  1063. \vbox{%
  1064. \color{white}\hrule\@height\fboxrule\relax
  1065. \hbox{%
  1066. \color{white}\vrule\@width\fboxrule\relax
  1067. #1%
  1068. \vbox{%
  1069. \vskip\fboxsep
  1070. \box\@tempboxa
  1071. \vskip\fboxsep}%
  1072. #1%
  1073. \color{black}\vrule\@width\fboxrule\relax}%
  1074. \color{black}\hrule\@height\fboxrule\relax}%
  1075. }%
  1076. }%
  1077. \endgroup}
  1078. %
  1079. \def\@pdfcreator{LaTeX with hyperref and pdfscreen}
  1080. \def\shorttitle#1{\gdef\@shorttitle{#1}}
  1081. \let\@shorttitle\@empty
  1082. \def\@battrib{\color{white}$\bullet$\sffamily\footnotesize\itshape}
  1083. \def\@vattrib{\color{section1}\sffamily\footnotesize\itshape}
  1084. \newif\if@@bb \@@bbfalse
  1085. \newif\if@@tb \@@tbfalse
  1086. \def\topbuttons{\@@tbtrue%
  1087. \AddToOverlay{\def\@@tbuttons{\@@buttons}%
  1088. \setlength{\unitlength}{1pt}\thinlines%
  1089. \put(0,0){\makebox(\strip@pt\paperwidth,\strip@pt\paperheight)[ct]%
  1090. {\@@tbuttons}%
  1091. }
  1092. }
  1093. }
  1094. \def\bottombuttons{\@@bbtrue%
  1095. \AddToOverlay{\def\@@bbuttons{\@@buttons}%
  1096. \setlength{\unitlength}{1pt}\thinlines%
  1097. \put(0,0){\makebox(\strip@pt\paperwidth,24)[cb]%
  1098. {\@@bbuttons}%
  1099. }
  1100. }
  1101. }
  1102. \def\@@buttons{\ifx\@shorttitle\@empty\relax\else%
  1103. \quad{\@vattrib\@shorttitle}\fi\hfill%
  1104. \Acrobatmenu{FirstPage} {\@battrib First }
  1105. \Acrobatmenu{PrevPage} {\@battrib Prev }
  1106. \Acrobatmenu{NextPage} {\@battrib Next }
  1107. \Acrobatmenu{LastPage} {\@battrib Last }
  1108. \Acrobatmenu{GoBack} {\@battrib Go Back }
  1109. \Acrobatmenu{FullScreen}{\@battrib Full Screen }
  1110. \Acrobatmenu{Close} {\@battrib Close }
  1111. \Acrobatmenu{Quit} {\@battrib Quit }
  1112. \quad{}\vspace*{1.5pt}}
  1113. \def\nobottombuttons{\let\@@bbuttons\relax}
  1114. \def\notopbuttons{\let\@@tbuttons\relax}
  1115. %
  1116. \newcounter{overlay}
  1117. \def\changeoverlay{\def\section{\if@sectionbreak\clearpage\fi%
  1118. \stepcounter{panel@section}%
  1119. \change\scr@section}}%
  1120. \def\change{\stepcounter{overlay}%
  1121. \ifnum\c@overlay>10\setcounter{overlay}{1}\fi
  1122. \overlay{overlay\theoverlay}
  1123. }
  1124. %
  1125. \fi%--This \fi corresponds to \if@screen
  1126. %-------- Screen options end here ------------------
  1127. %
  1128. %
  1129. %-------- Print options start here -----------------
  1130. %
  1131. \if@print
  1132. \RequirePackage{amssymb}
  1133. \RequirePackage[pdftex,bookmarksopen,colorlinks]{hyperref}
  1134. \def\pagedissolve#1{}
  1135. \let\overlay\@gobble
  1136. \let\paneloverlay\@gobble
  1137. \let\emblema\@gobble
  1138. \let\emblemb\@gobble
  1139. \let\urlid\@gobble
  1140. \let\emailid\@gobble
  1141. \def\screensize#1#2{}
  1142. \includecomment{print}
  1143. \excludecomment{screen}
  1144. \def\@linkcolor{black}
  1145. \def\@anchorcolor{black}
  1146. \def\@citecolor{black}
  1147. \def\@filecolor{black}
  1148. \def\@urlcolor{black}
  1149. \def\@menucolor{black}
  1150. \def\@pagecolor{black}
  1151. \definecolor{section0}{gray}{0}
  1152. \definecolor{section1}{gray}{0}
  1153. \definecolor{section2}{gray}{0}
  1154. \definecolor{section3}{gray}{0}
  1155. \definecolor{section4}{gray}{0}
  1156. \definecolor{section5}{gray}{0}
  1157. \definecolor{orange}{gray}{0}
  1158. \definecolor{panelbackground}{gray}{1}
  1159. \definecolor{buttondisable}{gray}{.8}
  1160. \def\margins#1#2#3#4{}
  1161. \RequirePackage{fancybox}
  1162. \newdimen\@PDFmpht
  1163. \let\@Notesname\@empty
  1164. \def\notesname#1{\gdef\@Notesname{#1}}
  1165. \let\@overlay\@empty
  1166. \newcounter{slide}
  1167. \newcounter{slideoverlay}
  1168. \newenvironment{slide}{\stepcounter{slide}%
  1169. \stepcounter{slideoverlay}%
  1170. \ifnum\theslideoverlay=11\setcounter{slideoverlay}{1}
  1171. \ifx\@overlay\@empty\else
  1172. \PDFSCR@Warning{Overly counter reset to zero}\fi\fi
  1173. \ifx\@overlay\@empty\else
  1174. \PDFSCR@Warning{Overly file is Not available in print}\fi
  1175. \par\addvspace{12pt}\noindent%
  1176. \hspace*{-.1\paperwidth}\begin{minipage}{.9\paperwidth}
  1177. \global\setbox0=\hbox\bgroup\begin{minipage}[b]{.5\linewidth}}%
  1178. {\end{minipage}\egroup\setlength\@PDFmpht{\the\ht0}%
  1179. \typeout{****** height=\the\@PDFmpht*******}
  1180. \setbox1=\hbox{\begin{minipage}[b][1.05\@PDFmpht][t]{.3\paperwidth}
  1181. \typeout{****** height=\the\@PDFmpht*******}
  1182. \centering \@Notesname\par\vfill\end{minipage}}
  1183. \noindent\parbox{\linewidth}{%\shadowsize=2pt\fboxsep=6pt%
  1184. \shadowbox{\box0}\quad\fbox{\box1}}
  1185. \end{minipage}\hspace*{-1.5in}}
  1186. \let\overlayempty\relax
  1187. \let\paneloverlayempty\relax
  1188. \let\topbuttons\relax
  1189. \let\notopbuttons\relax
  1190. \let\bottombuttons\relax
  1191. \let\nobottombuttons\relax
  1192. \let\changeoverlay\relax
  1193. %------------------------ Macros for code listing --------------
  1194. \if@code
  1195. \def\verbatim@font{%
  1196. \normalfont \ttfamily\small
  1197. \catcode`\<=\active
  1198. \catcode`\>=\active
  1199. }
  1200. \begingroup
  1201. \catcode`\<=\active
  1202. \catcode`\>=\active
  1203. \gdef<{\@ifnextchar<\@lt\@meta}
  1204. \gdef>{\@ifnextchar>\@gt\@gtr@err}
  1205. \gdef\@meta#1>{\@PDFm{#1}}
  1206. \gdef\@lt<{\char`\<}
  1207. \gdef\@gt>{\char`\>}
  1208. \endgroup
  1209. \def\@gtr@err{%
  1210. \PDFSCR@Warning{%
  1211. Isolated \protect>\MessageBreak%
  1212. In this document class, \protect<...\protect>\MessageBreak
  1213. is used to indicate a parameter.\MessageBreak
  1214. I've just found a \protect> on its own.\MessageBreak
  1215. Perhaps you meant to type \protect>\protect>?
  1216. }%
  1217. }
  1218. \def\verbatim@nolig@list{\do\`\do\,\do\'\do\-}
  1219. \def\@PDFm#1{\mbox{$\langle$\it#1\/$\rangle$}}
  1220. \def\arg#1{{{\tt\string{}\@PDFm{#1}{\tt\string}}}}
  1221. \def\@PDFM#1{\mbox{\it#1\/}}
  1222. \def\Arg#1{{{\tt\string{}\@PDFM{#1}{\tt\string}}}}
  1223. \def\oarg#1{{\tt[}\@PDFm{#1}{\tt]}}
  1224. \def\Oarg#1{{\tt[}\@PDFM{#1}{\tt]}}
  1225. \@ifundefined{decl}{%
  1226. \newenvironment{decl}[1][]%
  1227. {\par\small\addvspace{1.5ex plus .5ex minus .5ex}%
  1228. \vskip -\parskip
  1229. \noindent\hspace{-\leftmarginii}%
  1230. \bgroup\begin{tabular}{|l|}\hline\\[-6pt]
  1231. \ignorespaces}%
  1232. {\\[3pt]\hline\end{tabular}\egroup\par%
  1233. \vspace{1.5ex}\ignorespacesafterend\noindent}}{}
  1234. \RequirePackage{shortvrb}
  1235. \MakeShortVerb{\|}
  1236. \fi
  1237. %-------------- end of \if@code option ----------
  1238. %
  1239. \def\panelfont{\fontsize{7pt}{7pt}\itshape\selectfont}
  1240. \def\st{\hbox{\vrule height10pt depth5pt width\z@}\panelfont}
  1241. \def\addButton#1#2{\begingroup\normalsfcodes\fboxsep2pt\fboxrule.1pt%
  1242. \sffamily\fbox{\hbox to #1{\hfil\st#2\hfil}}\endgroup}
  1243. \def\imageButton#1#2#3{\includegraphics[width=#1,height=#2]{#3}}
  1244. \setcounter{tocdepth}{4}
  1245. \setcounter{secnumdepth}{4}
  1246. \fi
  1247. %%
  1248. \endinput
  1249. %%
  1250. %% End of file pdfscreen.sty
  1251. %%