summaryrefslogtreecommitdiff
path: root/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2018-04-09 13:55:45 +0900
committerNorbert Preining <norbert@preining.info>2018-04-09 13:55:45 +0900
commit3a815dbc6fc9d8c06ff04967c5585a81b30c3559 (patch)
treea32b85fefbb454f076527fe73f7a151a1b8cabce /texmf-dist/tex/latex
parent4de9ce5199bd578a50302b75436cf03e99c49f32 (diff)
update ketpic
Diffstat (limited to 'texmf-dist/tex/latex')
-rwxr-xr-x[-rw-r--r--]texmf-dist/tex/latex/ketcindy/ketlayer.sty0
-rw-r--r--texmf-dist/tex/latex/ketcindy/ketmedia.sty111
2 files changed, 85 insertions, 26 deletions
diff --git a/texmf-dist/tex/latex/ketcindy/ketlayer.sty b/texmf-dist/tex/latex/ketcindy/ketlayer.sty
index 45817242..45817242 100644..100755
--- a/texmf-dist/tex/latex/ketcindy/ketlayer.sty
+++ b/texmf-dist/tex/latex/ketcindy/ketlayer.sty
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