From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- macros/latex/contrib/pdfslide/pdfslide.sty | 336 +++++++++++++++++++++++++++++ 1 file changed, 336 insertions(+) create mode 100644 macros/latex/contrib/pdfslide/pdfslide.sty (limited to 'macros/latex/contrib/pdfslide/pdfslide.sty') diff --git a/macros/latex/contrib/pdfslide/pdfslide.sty b/macros/latex/contrib/pdfslide/pdfslide.sty new file mode 100644 index 0000000000..a86cb00b81 --- /dev/null +++ b/macros/latex/contrib/pdfslide/pdfslide.sty @@ -0,0 +1,336 @@ +%% +%% +%% This is file `pdfslide.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% pdfslide.dtx (with options: `package') +%% +%% File: pdfslide.dtx Copyright (c) 1999, C. V. Radhakrishnan +%% +%% +%% This package may be distributed under the terms of the LaTeX Project +%% Public License, as described in lppl.txt in the base LaTeX distribution. +%% Either version 1.0 or, at your option, any later version. +%% +\ProvidesPackage{pdfslide} + [1999/10/10 v0.50 slides with PDF (CVR)] +\RequirePackage[pdftex]{graphicx} +\newif\if@nocfg \@nocfgfalse +\newif\if@ams \@amstrue +\newif\if@contnav \@contnavfalse +\DeclareOption{nocfg}{\@nocfgtrue} +\DeclareOption{ams}{\@amstrue} +\DeclareOption{contnav}{\@contnavtrue} +\ProcessOptions +\ExecuteOptions{ams} +\def\ScreenLastPage{100} +\RequirePackage{colortbl} +\RequirePackage{amssymb,amsbsy,fancybox} +\RequirePackage[pdftex,pdfpagemode=none,colorlinks,% + pdfmenubar=false,% + pdfhighlight=/I,% + pdftoolbar=false,% +% pdfpagemode=FullScreen,% + pdffitwindow=true,pdfcenterwindow=true,% + pdfwindowui=false,menucolor=menucolor,% + pdfview=Fit,pdfstartview=Fit]{hyperref} + \RequirePackage{ifthen} %removed pifont + \newdimen\@Leftmargin \@Leftmargin=0cm + \newdimen\@Rightmargin \@Rightmargin=0cm + \newdimen\@Topmargin \@Topmargin=0cm + \newdimen\@Bottommargin \@Bottommargin=0cm + % + \def\InitLayout{ + \setlength{\textwidth}{\paperwidth} + \addtolength{\textwidth}{-\@Leftmargin} + \addtolength{\textwidth}{-\@Rightmargin} + \setlength{\textheight}{\paperheight} + \addtolength{\textheight}{-\@Topmargin} + \addtolength{\textheight}{-\@Bottommargin} + \addtolength{\textheight}{-\headheight} + \addtolength{\textheight}{-\headsep} + \addtolength{\textheight}{-\footskip} + \setlength{\oddsidemargin}{\@Leftmargin} + \addtolength{\oddsidemargin}{-1in} + \setlength{\evensidemargin}{\@Rightmargin} + \addtolength{\evensidemargin}{-1in} + \setlength{\topmargin}{\@Topmargin} + \addtolength{\topmargin}{-1in} + } + \InitLayout + \def\screensize#1#2{\paperheight=#1% + \paperwidth=#2 + \InitLayout + } + \def\marginsize#1#2#3#4{ + \@Leftmargin=#1 + \@Rightmargin=#2 + \@Topmargin=#3 + \@Bottommargin=#4 + \InitLayout + } + \definecolor{menucolor}{rgb}{1,.25,0} + \definecolor{paleblue}{rgb}{0,0,0.1} + \input slide.clo + \setlength\footskip{1\baselineskip} + \AtEndDocument{% + \clearpage \addtocounter{page}{-1}% + \immediate\write\@auxout{\string\gdef\string\ScreenLastPage{\arabic{page}}}% + } +% +\def\st{\vrule height11pt depth 2pt width0pt} + \def\ps@headings{\ps@sidebar} + \def\ps@plain{\ps@sidebar} + \def\ps@empty{\ps@title} + \def\ps@myheadings{\ps@sidebar} + \def\ps@firstpage{\ps@ftitle} + \def\maketitle{\@mtitle} + \voffset-.25in + \marginsize{.3in}{.3in}{-.050in}{.3in} + \def\marginsize#1#2#3#4{} + \setcounter{tocdepth}{1} + \setcounter{secnumdepth}{1} + \setlength\paperwidth{8in} + \setlength\paperheight{5.85in} %5.5 + \@Leftmargin=.3in + \@Rightmargin=.3in + \@Topmargin=.5in + \@Bottommargin=.3in + \voffset-.185in %-.2in + \headsep 25pt + \pdfpagewidth=.832\paperwidth %%7.5in + \pdfpageheight=\paperheight %%6.3in + \advance\pdfpageheight by -.5in + \newlength\panelwidth \setlength\panelwidth{.09\paperwidth}%%.265 + \newlength\panelheight \setlength\panelheight{1\textheight} + \newlength\textareawidth \setlength\textareawidth{\pdfpagewidth} + \newlength\textareaheight\setlength\textareaheight{\pdfpageheight} + \parskip 1pt plus2pt minus 1pt + \setlength{\textheight}{\textareaheight}%%6in + \addtolength{\textheight}{-.5\@Bottommargin} + \setlength{\textwidth}{\textareawidth}%%5.5 + \evensidemargin=\oddsidemargin + \def\ps@myheadings{\ps@title} + \def\ps@headings{\ps@title} + \def\ps@plain{\ps@sidebar} + \def\ps@empty{\ps@title} + +\def\overlay#1{\gdef\@overlay{#1}} +\def\@overlay{BigBlueL.png} +\addtolength\textareawidth{.56in} + + \def\ps@title{% + \def\@evenhead{\if@contnav\hspace*{-.3825in} %3375 + \else\hspace*{-.355in}\fi% + \colorbox{white}{\begin{minipage}[t][1.025\pdfpageheight][c]{\textareawidth}% + {\color{white}\includegraphics[width=7.215in,height=5.84in]{\@overlay}}%7.175 + \end{minipage}}\null\hskip-1.5pt %6.5,6 + \@panel\hspace*{-\panelwidth}% + \hspace*{-3.5\@Rightmargin}\hfil} + \def\@oddhead{\@evenhead} + \def\@evenfoot{\@empty} + \def\@oddfoot{\@empty} + \let\@mkboth\@gobbletwo + \let\chaptermark\@gobble + \let\sectionmark\@gobble + } + \def\ps@sidebar{% + \def\@evenhead{\hspace*{-.385in} %1.5 + \colorbox{white}{\begin{minipage}[t][2pt][c]{\textareawidth} + {\color{white}\hrulefill}\end{minipage}}\null + \ifnum\number\thepage=1\@panel\else\@panel\fi + \hspace*{-\panelwidth}\hspace*{-3.5\@Rightmargin}\hfil} + \def\@oddhead{\@evenhead} + \def\@evenfoot{\@empty} + \def\@oddfoot{\@empty} + \let\@mkboth\@gobbletwo + \let\chaptermark\@gobble + \let\sectionmark\@gobble + } + \definecolor{panelbackground}{rgb}{1,.549,0} + \definecolor{button}{rgb}{0,0,.7} + \definecolor{buttondisable}{gray}{.7} + \def\nBlue{\color{buttonshadow}} + \def\Panelgobackname#1{\gdef\@Panelgobackname{#1}} + \def\Panelclosename#1{\gdef\@Panelclosename{#1}} + \def\@Panelgobackname{Back} + \def\@Panelclosename{Close} + \RequirePackage{amssymb,amsbsy} + \def\@panel{{\colorbox{panelbackground} + {\begin{minipage}[t][1.025\pdfpageheight][t]{\panelwidth} + \vspace*{20pt} + \begin{center} + \ifodd\thepage + \includegraphics[width=.5\panelwidth,height=1in]{metagray.pdf}\else + \includegraphics[width=.5\panelwidth,height=1in]{metagreen.pdf}\fi\\ + \Acrobatmenu{GoToPage}{\fboxrule1pt\fboxsep2pt\fboxsep2pt% + \color{buttondisable}% + \colorbox{buttondisable}{\textcolor{blue}{\st\sffamily\realsmall\thepage/\ScreenLastPage}}} + \end{center} + \vfill + \begin{center} + \if@contnav + \Acrobatmenu{FirstPage}{\ifnum\thepage=1% + {\color{buttondisable}\First}\else + {\color{button}\First}\fi}\\[4pt]% + \Acrobatmenu{PrevPage}{\ifnum\thepage=1% + {\color{buttondisable}\Prev}\else + {\color{button}\Prev}\fi}\\[4pt]% + \Acrobatmenu{NextPage}{\ifnum\thepage=\number\ScreenLastPage% + {\color{buttondisable}\Next}\else + {\color{button}\Next}\fi}\\[4pt]% + \Acrobatmenu{LastPage}{\ifnum\thepage=\number\ScreenLastPage% + {\color{buttondisable}\Last}\else + {\color{button}\Last}\fi}\\[4pt]% + \Acrobatmenu{GoBack}{\color{button}\Back}\\[4pt] + \Acrobatmenu{GoForward}{\color{button}\Forw}\\[4pt] + \Acrobatmenu{Close}{\color{button}\Close}\\[4pt] + \else + \if@ams\def\st{\vrule height12pt depth 3pt width 0pt} + \fboxsep0pt\fboxrule.2pt + \def\btl{\ensuremath{\blacktriangleleft}} + \def\rtl{\ensuremath{\blacktriangleright}} + \color{white}\fboxsep0pt\fboxrule0pt\shadowsize1pt\sffamily + \Acrobatmenu{FirstPage}{\shadowbox{\colorbox{buttonbackground}% + {\hbox to .58in{\st\ifnum\thepage=1\color{buttondisable}\else\Black\fi% + {\hfil\scalebox{.5}[1]{\btl\btl}\hfil}}}\nBlue}}\\ + \Acrobatmenu{LastPage}{\shadowbox{\colorbox{buttonbackground}% + {\hbox to .58in{\st\ifnum\thepage=\number\ScreenLastPage% + \color{buttondisable}\else% + \Black\fi{\hfil\scalebox{.5}[1]{\rtl\rtl}\hfil}}}\nBlue}}\\ + \Acrobatmenu{PrevPage}{\shadowbox{\colorbox{buttonbackground}% + {\hbox to .58in{\st\ifnum\thepage=1\color{buttondisable}% + \else\Black\fi% + {\hfil\scalebox{.5}[1]{\btl}\hfil}}}\nBlue}}\\ + \Acrobatmenu{NextPage}{\shadowbox{\colorbox{buttonbackground}% + {\hbox to .58in{\st\ifnum\thepage=\number\ScreenLastPage% + \color{buttondisable}\else\Black\fi% + {\hfil\scalebox{.5}[1]{\rtl}\hfil}}}\nBlue}}\\ + \Acrobatmenu{GoBack}{\shadowbox{\colorbox{buttonbackground}% + {\hbox to .58in{\hfil\Black\st\realsmall\@Panelgobackname\hfil}}\nBlue}}\\ + \Acrobatmenu{Close}{\shadowbox{\colorbox{buttonbackground}% + {\hbox to .58in{\hfil\Black\st\realsmall\@Panelclosename\hfil}}\nBlue}}\\ +% \if@metapost +% \Acrobatmenu{FirstPage}{\ifnum\thepage=1\Firstg\else +% \First\fi}\\[4pt]% +% \Acrobatmenu{PrevPage}{\ifnum\thepage=1\Prev\else +% \Prev\fi}\\[4pt]% +% \Acrobatmenu{NextPage}{\ifnum\thepage=\number\ScreenLastPage% +% \Nextg\else\Next\fi}\\[4pt]% +% \Acrobatmenu{LastPage}{\ifnum\thepage=\number\ScreenLastPage% +% \Last\else\Last\fi}\\[4pt]% +% \Acrobatmenu{GoBack}{\Back}\\[4pt] +% \Acrobatmenu{Close}{\Close}\\[4pt + \fi + \fi + \end{center} + \vspace*{1pt} + \vfill + \end{minipage}}}\normalcolor\rmfamily + } + \definecolor{orange}{rgb}{1,.549,0} + \def\Black{\color{black}} + \definecolor{panelbackground}{rgb}{.455,.832,.979} + \definecolor{buttonbackground}{rgb}{0,.624,.820} + \definecolor{buttonshadow}{rgb}{.001,0,.502} + + \def\Sectionformat#1#2{% + \ifcase#2% + {\protect\textcolor{section0}{#1}}%level 0 chapter { } + \or {\protect\textcolor{section1}{#1}}%level 1 section { } + \or {\protect\textcolor{section2}{#1}}%level 2 subsection { } + \or {\protect\textcolor{section3}{#1}}%level 3 subsubsection { } + \or {\protect\textcolor{section4}{#1}}%level 4 paragraph { } + \or {\protect\textcolor{section5}{#1}}%level 5 subparagraph { } + \fi + } + \let\scr@section\section \newdimen\headskip \headskip=1\baselineskip + \def\section{\clearpage\null\vskip\headskip\scr@section} + \definecolor{section0}{rgb}{0,0,0} + \definecolor{section1}{rgb}{0,.5,1} + \definecolor{section2}{rgb}{0,.5,.7} + \definecolor{section3}{rgb}{0,.5,.4} + \definecolor{section4}{rgb}{.4,.5,.2} + \definecolor{section5}{rgb}{.5,.5,.3} + +\if@contnav + \font\CVxx=contnav at 15pt + \fboxrule1pt\fboxsep2pt + \def\Prev{\fbox{\hbox to .5cm{\hfil\scalebox{.8}[1.2]{\CVxx\char1}\hfil}}} + \def\Next{\fbox{\hbox to .5cm{\hfil\scalebox{.8}[1.2]{\CVxx\char2}\hfil}}} + \def\First{\fbox{\hbox to .5cm{\hfil\scalebox{.8}[1.2]{\CVxx\char3}\hfil}}} + \def\Last{\fbox{\hbox to .5cm{\hfil\scalebox{.8}[1.2]{\CVxx\char4}\hfil}}} + \def\Back{\fbox{\hbox to .5cm{\hfil\scalebox{.8}[1.2]{\CVxx\char5}\hfil}}} + \def\Forw{\fbox{\hbox to .5cm{\hfil\scalebox{.8}[1.2]{\CVxx\char6}\hfil}}} + \def\Close{\fbox{\hbox to .5cm{\hfil\scalebox{.8}[1.2]{\CVxx\char9}\hfil}}} +\fi + +%\if@metapost +% \def\Prev {\convertMPtoPDF{mp/back.1}{.5}{.5}} +% \def\Prevg{\convertMPtoPDF{mp/backg.1}{.5}{.5}} +% \def\Next {\convertMPtoPDF{mp/next.1}{.5}{.5}} +% \def\Nextg{\convertMPtoPDF{mp/nextg.1}{.5}{.5}} +% \def\First{\convertMPtoPDF{mp/first.1}{.5}{.5}} +% \def\Firstg{\convertMPtoPDF{mp/firstg.1}{.5}{.5}} +% \def\Last {\convertMPtoPDF{mp/last.1}{.5}{.5}} +% \def\Lastg{\convertMPtoPDF{mp/lastg.1}{.5}{.5}} +% \def\Back {\convertMPtoPDF{mp/goback.1}{.5}{.5}} +% \def\Close{\convertMPtoPDF{mp/close.1}{.5}{.5}} +%\fi + +\def\pagedissolve#1{% + \edef\@@processme{% + \pdfpageattr{% + /Trans << /S /#1\space >>% + }}% + \@@processme + }% + +\definecolor{dm}{rgb}{1,.894,.769} + \def\titlefont{\@setfontsize\titlefont{24}{26}\color{dm}\rmfamily\bfseries} + \def\authorfont{\@setfontsize\authorfont{17.28}{18}\rmfamily\color{dm}} + \def\capfont{\@setfontsize\capfont{40}{40}\sffamily\color{white}} + \def\addressfont{\@setfontsize\addressfont{12}{14}\sffamily\color{dm}} + \def\rcdfont{\@setfontsize\rcdfont{10}{12}\sffamily\color{white}} + \def\numfont{\@setfontsize\rcdfont{8}{7}\sffamily\color{white}} + \def\maketitle{\thispagestyle{title} + \noindent\begin{minipage}[t][.95\textheight][c]{.975\textwidth} + \begin{flushleft} + \null\vspace*{30pt} + \ifx\@orgname\@empty\relax\else + {\capfont \@orgname}\\[3pt]\fi + \ifx\@orgurl\@empty\null\vskip72pt\else + {\footnotesize\sffamily\@orgurl}\\[72pt]\fi + {\titlefont \@title}\\[30pt] + {\authorfont \@author}\\[10pt] + {\addressfont \strut\@address\par\strut}\\ + \vfill\par + {\rcdfont \ifx\@notes\@empty\relax\else\@notes\fi} + \end{flushleft} + \end{minipage} + \vfill\par\clearpage + } + \long\def\author#1{\long\gdef\@author{#1}}\let\@author\@empty + \long\def\address#1{\long\gdef\@address{#1}}\let\@address\@empty + \long\def\notes#1{\long\gdef\@notes{#1}}\let\@notes\@empty + \long\def\orgname#1{\long\gdef\@orgname{#1}}\let\@orgname\@empty + \long\def\orgurl#1{\long\gdef\@orgurl{#1}}\let\@orgurl\@empty + % + % + \pagestyle{myheadings} + \def\@linkcolor{black} + \def\@anchorcolor{black} + \def\@citecolor{black} + \def\@filecolor{black} + \def\@urlcolor{black} + \def\@menucolor{black} + \def\@pagecolor{black} + \definecolor{sgray}{rgb}{.545,.601,.650} +% +\if@nocfg\relax\else + \IfFileExists{pdfslide.cfg}{\input pdfslide.cfg}{}\fi +\endinput +%% +%%End of file pdfslide.sty' -- cgit v1.2.3