From 3a815dbc6fc9d8c06ff04967c5585a81b30c3559 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 9 Apr 2018 13:55:45 +0900 Subject: update ketpic --- texmf-dist/tex/latex/ketcindy/ketlayer.sty | 0 texmf-dist/tex/latex/ketcindy/ketmedia.sty | 111 ++++++++++++++++++++++------- 2 files changed, 85 insertions(+), 26 deletions(-) mode change 100644 => 100755 texmf-dist/tex/latex/ketcindy/ketlayer.sty (limited to 'texmf-dist/tex/latex') diff --git a/texmf-dist/tex/latex/ketcindy/ketlayer.sty b/texmf-dist/tex/latex/ketcindy/ketlayer.sty old mode 100644 new mode 100755 diff --git a/texmf-dist/tex/latex/ketcindy/ketmedia.sty b/texmf-dist/tex/latex/ketcindy/ketmedia.sty index 49d593b6..aa6eecac 100644 --- a/texmf-dist/tex/latex/ketcindy/ketmedia.sty +++ b/texmf-dist/tex/latex/ketcindy/ketmedia.sty @@ -1,14 +1,28 @@ -\newcommand{\inputsound}[3][90.1]{ -% #1:h-position(90), #2:dir(/), #3:file -%2017.12.25 main, \inputsound changed -\ifnum #1=90.1 -\vspace{-20mm} - -\vfill -\fi - -\noindent% -\hspace*{#1mm}% +\newcommand{\inputsound}[3][90]{ +% 20180305 changed +% 20180317 changed +\def\soundbuttona{\color{blue}\small\fbox{\strut$\oplus\triangleright$}} +\def\soundbuttonb{\color{blue}\small\fbox{\strut$\ll$}} +{\unitlength=1pt +\ketcalcwidth[0]{\soundbuttona} +\setcounter{ketpicctrb}{\theketpicctra} +\ketcalcwidth[0]{\soundbuttonb} +\addtocounter{ketpicctrb}{\theketpicctra} +\addtocounter{ketpicctrb}{20} + +\noindent +\hspace*{#1mm}\hspace{20pt}% +\mediabutton[ +mediacommand=#3:playPause, +overface={\soundbuttona}%, +%downface={\color{red}\strut Pause/Pause}% +]{\soundbuttona}% +\mediabutton[ +mediacommand=#3:rewind, +overface={\soundbuttonb} +%downface={\color{red}\strut Pause/Pause}% +]{\soundbuttonb}% +\hspace{-\theketpicctrb pt}% \includemedia[ label=#3, addresource=#2#3.mp3, @@ -17,33 +31,78 @@ source=#2#3.mp3 &autoPlay=true } -]{\color{blue}\fbox{ }}{APlayer.swf}% +% transparent, +% passcontext +]{\color{blue}\small\fbox{\Ctab{15pt}{\strut}}}{APlayer.swf} +}} + +\newcommand{\inputsoundclick}[3][90]{ +% 20180317 added +\def\soundbuttona{\color{blue}\small\fbox{\strut$\oplus\triangleright$}} +\def\soundbuttonb{\color{blue}\small\fbox{\strut$\ll$}} +{\unitlength=1pt +\ketcalcwidth[0]{\soundbuttona} +\setcounter{ketpicctrb}{\theketpicctra} +\ketcalcwidth[0]{\soundbuttonb} +\addtocounter{ketpicctrb}{\theketpicctra} +\addtocounter{ketpicctrb}{20} + +\noindent +\hspace*{#1mm}\hspace{20pt}% \mediabutton[ mediacommand=#3:playPause, -overface={\color{blue}\small \strut \fbox{$\oplus\triangleright$}}, -]{\small\strut \fbox{$\oplus\triangleright$}}% +overface={\soundbuttona}%, +%downface={\color{red}\strut Pause/Pause}% +]{\soundbuttona}% \mediabutton[ mediacommand=#3:rewind, -overface={\color{blue}\small \strut \fbox{$\ll$}} -%downface={\color{red}\small\strut Pause/Pause}% -]{\small\strut \fbox{$\ll$}}% -} +overface={\soundbuttonb} +%downface={\color{red}\strut Pause/Pause}% +]{\soundbuttonb}% +\hspace{-\theketpicctrb pt}% +\includemedia[ + label=#3, + addresource=#2#3.mp3, + activate=onclick, + flashvars={ + source=#2#3.mp3 + &autoPlay=true + } +% transparent, +% passcontext +]{\color{blue}\small\fbox{\Ctab{15pt}{\strut}}}{APlayer.swf} +}} + +\newcommand{\inputmovie}[5][90]{ +% 20180306 changed +% width,height,dir,name +\def\soundbuttona{\small\fbox{\strut$\oplus\triangleright$}} +\def\soundbuttonb{\small\fbox{\strut$\ll$}} + +\hspace*{#1 mm}\mediabutton[ + mediacommand=#5:playPause, + overface={\color{blue}\soundbuttona}, + downface={\color{red}\soundbuttona} +]{\fbox{\soundbuttona}} +\mediabutton[ + mediacommand=#5:rewind, + overface={\color{blue}\soundbuttonb}, + downface={\color{red}\soundbuttonb} +]{\fbox{\soundbuttonb}} -\newcommand{\inputmovie}[3][0.8]{ \includemedia[ - label=#3, - width=#1\linewidth,height=0.6\linewidth, -% width=60mm,height=45mm, - activate=pagevisible, - addresource=#2#3.mp4, + label=#5, + width=#2\linewidth,totalheight=#3\linewidth, + activate=pageopen, + addresource=#4#5.mp4, flashvars={ - source=#2#3.mp4 + source=#4#5.mp4 % &showloading=never % &autoRewind=true &autoplay=true % &loop=1 % &buffer=0.2 } -%]{}{player_flv_maxi.swf} ]{}{VPlayer.swf} + } \ No newline at end of file -- cgit v1.2.3