diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-common-multimedia.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-common-multimedia.sty | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-common-multimedia.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-common-multimedia.sty index b6cea33596c..c57d58df19c 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-common-multimedia.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-common-multimedia.sty @@ -47,12 +47,18 @@ \newcommand*{\LWR@multimedia@fileAV}[4]{% \filename@parse{#2}% \IfFileExists{#2}{% - \begin{BlockClass}[\LWR@multimedia@printsize\ margin:auto]{AVviewport} + \ifstrequal{#3}{audio}{% + \begin{BlockClass}{AVviewport} + }{% + \begin{BlockClass}[\LWR@multimedia@printsize\ margin:auto]{AVviewport} + } \LWR@stoppars \LWR@htmltag{% #3\ % space - width=\textquotedbl{}100\%\textquotedbl\ % space - height=\textquotedbl{}100\%\textquotedbl\ % space + \ifstrequal{#3}{audio}{}{% + width=\textquotedbl{}100\%\textquotedbl\ % space + height=\textquotedbl{}100\%\textquotedbl\ % space + }% controls% }\LWR@orignewline \LWR@htmltag{% @@ -72,12 +78,19 @@ }% } \newcommand*{\LWR@multimedia@httpAV}[4]{% - \begin{BlockClass}[\LWR@multimedia@printsize\ margin:auto]{AVviewport} + \ifstrequal{#3}{audio}{% + \begin{BlockClass}{AVviewport} + }{% + \begin{BlockClass}[\LWR@multimedia@printsize\ margin:auto]{AVviewport} + } \LWR@stoppars \LWR@htmltag{% #3\ % space - width=\textquotedbl{}100\%\textquotedbl\ % space - height=\textquotedbl{}100\%\textquotedbl\ controls}\LWR@orignewline + \ifstrequal{#3}{audio}{}{% + width=\textquotedbl{}100\%\textquotedbl\ % space + height=\textquotedbl{}100\%\textquotedbl\ controls% + }% + }\LWR@orignewline \LWR@htmltag{% source % space src=\textquotedbl#2\textquotedbl\ % space @@ -122,6 +135,7 @@ \if#1\@percentchar\LWR@multimedia@percenterror\fi% \if#2\@percentchar\LWR@multimedia@percenterror\fi% \if#3\@percentchar\LWR@multimedia@percenterror\fi% + \LWR@stoppars% \setlength{\LWR@multimedia@width}{0pt}% \setlength{\LWR@multimedia@height}{0pt}% \setkeys*{LWR@multimedia}{#1}% @@ -135,6 +149,7 @@ \IfBeginWith{#3}{FTP}{\LWR@multimedia@embed{#2}{#3}{}}{% \href{#3}{#2}% unknown format }}}}}}}}% + \LWR@startpars% \endgroup% } \newrobustcmd*{\LWR@multimedia}{% |