summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/ltx4yt/examples
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/ltx4yt/examples')
-rw-r--r--macros/latex/contrib/ltx4yt/examples/ltx4yt-1.pdfbin0 -> 109008 bytes
-rw-r--r--macros/latex/contrib/ltx4yt/examples/ltx4yt-1.tex74
-rw-r--r--macros/latex/contrib/ltx4yt/examples/ltx4yt-2.pdfbin0 -> 114454 bytes
-rw-r--r--macros/latex/contrib/ltx4yt/examples/ltx4yt-2.tex98
-rw-r--r--macros/latex/contrib/ltx4yt/examples/web-pkg/ltx4yt-w1.pdfbin0 -> 118148 bytes
-rw-r--r--macros/latex/contrib/ltx4yt/examples/web-pkg/ltx4yt-w1.tex82
-rw-r--r--macros/latex/contrib/ltx4yt/examples/web-pkg/ltx4yt-w2.pdfbin0 -> 86073 bytes
-rw-r--r--macros/latex/contrib/ltx4yt/examples/web-pkg/ltx4yt-w2.tex110
8 files changed, 364 insertions, 0 deletions
diff --git a/macros/latex/contrib/ltx4yt/examples/ltx4yt-1.pdf b/macros/latex/contrib/ltx4yt/examples/ltx4yt-1.pdf
new file mode 100644
index 0000000000..c85e343e39
--- /dev/null
+++ b/macros/latex/contrib/ltx4yt/examples/ltx4yt-1.pdf
Binary files differ
diff --git a/macros/latex/contrib/ltx4yt/examples/ltx4yt-1.tex b/macros/latex/contrib/ltx4yt/examples/ltx4yt-1.tex
new file mode 100644
index 0000000000..2f2a215b3e
--- /dev/null
+++ b/macros/latex/contrib/ltx4yt/examples/ltx4yt-1.tex
@@ -0,0 +1,74 @@
+\documentclass{article}
+\usepackage{ltx4yt}
+\usepackage{multicol}
+
+\hypersetup{%
+ pdfpagemode=UseNone,colorlinks,
+ pdftitle={The \texorpdfstring{\textsf{ltx4yt} Package\\[3pt]}{ltx4yt Package: }Playing YouTube in a Browser using links},
+ pdfauthor=D. P. Story,
+ pdfsubject={Play YouTube videos in the default browser},
+ pdfkeywords={YouTube, AeB}
+}
+
+\title{The \texorpdfstring{\textsf{ltx4yt} Package\\[3pt]}{ltx4yt Package: }Playing YouTube videos in a browser using links}
+\author{D. P. Story}
+
+\addtolength{\textwidth}{.5in}
+
+\parindent0pt \parskip6pt
+
+
+\begin{document}
+
+
+
+\maketitle
+
+\textbf{Favorites to play:} Itemized links below use the \verb~\ytvId~ and \verb~\ytvId*~ commands,
+the only \texttt{*} command is ``Kung-Fu Fighting* (Original),'' this one is played with advertisements
+and related/unrelated content. The links in this document should work across all PDF viewers and across all devices.
+\begin{flushleft}\raggedcolumns
+\begin{multicols}{2}\bfseries
+\begin{itemize}
+
+\item \ytvId{GZ9e3Dy7obA}{Kung-Fu Fighting (Bruce Lee)}
+
+\item \ytvId*{jhUkGIsKvn0}{Kung-Fu Fighting* (Original)}
+
+\item \ytvId{_iUnOpPEg0w}{TegrityGuy}
+
+\item \ytvId{eNzrn8-JFSE}{Open at Adobe}
+
+\item \ytvId{q-iiFo-6Vi0}{Digital Signature in 9.0 Pro}
+
+\item \ytvId{5y9-EVmreU4}{Lori's Corner: Episode \#1}
+
+\item \ytvId{T9Yzo_hlwP0}{Intro to PDF Portfolios}
+\end{itemize}
+\end{multicols}
+\end{flushleft}
+What follows are customized links created by \verb~\ytLink~.
+
+\ytLink{\watchId{5y9-EVmreU4}\params{autoplay=1}}{Lori's Corner: Episode \#1} (\verb~\watchId~ and \verb~\params~)
+
+\ytLink{\embedId{5y9-EVmreU4}\params{autoplay=1&modestbranding=1}}{Lori's Corner: Episode \#1} (\verb~\embedId~ and \verb~\params~)
+
+\ytLink{\embed{listType=search&list=Adobe Acrobat DC}}{Search for Adobe Acrobat DC} (\verb~\embed~ custom search)
+
+\ytLink{embed?listType=search&list=table tennis}{Totally custom search link} (surprise topic)
+
+
+\ytLink{\channel{rocketjump}}{The RocketJump Channel} (\verb~\channel~)
+
+\ytLink{\user{freddiew}}{Freddie Diew's channel} (\verb~\user~)
+
+\ytLink{\embedId{5y9-EVmreU4}\params{autoplay=1&controls=1&fs=1&modestbranding=1&playlist=T9Yzo_hlwP0,eNzrn8-JFSE}}{A playlist of three videos}
+
+\textbf{PDF viewers:} \textsf{Acrobat}, \textsf{Acrobat Reader DC}, \textsf{PDFX-Change}, \textsf{SumatraPDF}, \textsf{evince}, \textsf{TeXworks}
+
+\textbf{Browsers:} \textsf{Microsoft Edge}, \textsf{Firefox}, \textsf{Google Chrome}
+
+\textbf{Devices:} \textsf{Android} smart phones, \textsf{iPhones}, \textsf{Android} tablets
+
+\end{document}
+
diff --git a/macros/latex/contrib/ltx4yt/examples/ltx4yt-2.pdf b/macros/latex/contrib/ltx4yt/examples/ltx4yt-2.pdf
new file mode 100644
index 0000000000..fc9ec84a69
--- /dev/null
+++ b/macros/latex/contrib/ltx4yt/examples/ltx4yt-2.pdf
Binary files differ
diff --git a/macros/latex/contrib/ltx4yt/examples/ltx4yt-2.tex b/macros/latex/contrib/ltx4yt/examples/ltx4yt-2.tex
new file mode 100644
index 0000000000..83ca787605
--- /dev/null
+++ b/macros/latex/contrib/ltx4yt/examples/ltx4yt-2.tex
@@ -0,0 +1,98 @@
+\documentclass{article}
+\usepackage[usepopup]{ltx4yt}
+
+
+\hypersetup{pdfpagemode=UseNone,colorlinks,
+ pdfencoding=auto,
+ pdftitle={The \texorpdfstring{\textsf{ltx4yt} Package\\[3pt]}{ltx4yt Package: }Playing YouTube in a Browser using Forms and JavaScript},
+ pdfauthor=D. P. Story,
+ pdfsubject={Play YouTube videos in the default browser},
+ pdfkeywords={YouTube, AeB}
+}
+\title{The \texorpdfstring{\textsf{ltx4yt} Package\\[3pt]}{ltx4yt Package: }Playing YouTube videos in a browser using Forms and JavaScript}
+\author{D. P. Story}
+
+%\previewOn\pmpvOn
+
+\parindent=0pt\parskip6pt
+
+
+\begin{popupmenu}{YTMenu}
+ \puIdTitle{Select a YouTube Video}{} % A title has no ytId
+ \begin{submenu}{title=Music Videos}
+ \puIdTitle{Kung-Fu Fighting (Bruce Lee)}{GZ9e3Dy7obA}
+ \puIdTitle{Kung-Fu Fighting* (Carl Douglas)}{jhUkGIsKvn0}
+ \puIdTitle{Ink Spots - If I didn't care}{rvwfLe6sLis}
+ \puIdTitle{Ink Spots* - My Prayer}{h7KJCns5v3g}
+ \end{submenu}
+ \begin{submenu}{title=Adobe Related Videos}
+ \puIdTitle{Open at Adobe}{eNzrn8-JFSE}
+ \puIdTitle{Lori's Corner Episode \#1}{5y9-EVmreU4}
+ \puIdTitle{Intro to PDF Portfolios}{T9Yzo_hlwP0}
+ \end{submenu}
+ \begin{submenu}{title=Action Videos}
+ \puIdTitle{Rocket Jump}{7XzdZ4KcI8Y}
+ \puIdTitle{AimBot}{NYGlWjIKoY4}
+ \puIdTitle{Flower Warfare}{031Dshcnso4}
+ \puIdTitle{Modern Warfare: Frozen Crossing Pt. 1}{rzQMGMuD1sU}
+ \puIdTitle{Modern Warfare: Frozen Crossing Pt. 2}{a08ViuvORRM}
+ \end{submenu}
+\end{popupmenu}
+
+\begin{popupmenu}{YTSea}
+ \puIdTitle{\Esc"Sea Hunt\Esc" US TV series {(1958-61)} lead-in}{Lz0aMoWh8Q4}
+ \puIdTitle{Theme Song to Sea Hunt*}{2QxXk6X9GDo}
+ \puIdTitle{J\"{u}rgen's favorite song*}{mLDF5MBMWHE}
+ \puIdTitle{Learn \cs{LaTeX} in one video}{VhmkLrOjLsw}
+\end{popupmenu}
+
+
+% After defining all menus used with YouTube videos, declare them using \ytUseMenus
+\ytUseMenus{YTMenu,YTSea}
+
+\declarePlayList{\playList}{% note: put parentheses within braces
+ \ytIdTitle{Kung-Fu Fighting {(Bruce Lee)}}{GZ9e3Dy7obA}
+ \ytIdTitle{Kung-Fu Fighting* {(Carl Douglas)}}{jhUkGIsKvn0}
+ \ytIdTitle{RAF Sculthorpe {(Watch for my Mom at 6:22!)}}{K7H8QghVs9k}
+ \ytIdTitle{Rocket Jump}{7XzdZ4KcI8Y}
+ \ytIdTitle{Abdul And Cleopatra* - Jonathan Richman and the Modern Lovers}{mLDF5MBMWHE}
+%
+ \ytIdTitle{J\"{u}rgen's favorite song*}{mLDF5MBMWHE}
+ \ytIdTitle{Learn \cs{LaTeX} in one video}{VhmkLrOjLsw}
+ \ytIdTitle{"Sea Hunt" US TV series {(1958-61)} lead-in}{Lz0aMoWh8Q4}
+}
+
+\begin{document}
+
+\maketitle
+
+In this second sample file, the combo box and popup menu are
+demonstrated. Both of these use JavaScript methods that will
+function perfectly on \textsf{Adobe Acrobat}, \textsf{Adobe
+Acrobat Reader DC}, and \textsf{PDFX-Change Editor}. None of the fields
+work within the native PDF viewer of modern browsers.
+
+\textbf{Demo of combo box of favorites.} By convention of this
+package, items with an ``\texttt{*}" in their title is a signal to
+the document consumer that that video cannot be
+embedded and must be played on the YouTube site with
+advertisements and such. \vspace{-\parskip}
+\begin{quote}
+\ytPlayList{\tops{Kung-Fu Fighting {(Bruce Lee version)}}{GZ9e3Dy7obA}}{\playList}
+\ytComboList{YT1}{190bp}{11bp}\olBdry
+ \ytComboBtn[\TU{Click to play}]{YT1}{33bp}{11bp}
+\end{quote}
+
+\ytPopupBtn{YTMenu}{20bp}{5bp}
+\textbf{Demo of a popup menu of favorites.}
+On this page, with your mouse cursor, roll over the push button labeled \textcolor{blue}{\textsf{YT Menu}}, and a popup
+menu appears. Choose a YouTube video based on title.
+
+\ytPopupBtn[\CA{Sea Hunt}]{YTSea}{20bp}{5bp} Yes, you can have multiple popup menus in the document.
+
+\textbf{Demo of an interactive search}\\[3pt]
+\ytInputQuery{1.5in}{11bp}\olBdry
+\ytSearch{}{11bp}\olBdry
+\ytClearQuery{}{11bp}
+
+\end{document}
diff --git a/macros/latex/contrib/ltx4yt/examples/web-pkg/ltx4yt-w1.pdf b/macros/latex/contrib/ltx4yt/examples/web-pkg/ltx4yt-w1.pdf
new file mode 100644
index 0000000000..7069e972e2
--- /dev/null
+++ b/macros/latex/contrib/ltx4yt/examples/web-pkg/ltx4yt-w1.pdf
Binary files differ
diff --git a/macros/latex/contrib/ltx4yt/examples/web-pkg/ltx4yt-w1.tex b/macros/latex/contrib/ltx4yt/examples/web-pkg/ltx4yt-w1.tex
new file mode 100644
index 0000000000..8e55454731
--- /dev/null
+++ b/macros/latex/contrib/ltx4yt/examples/web-pkg/ltx4yt-w1.tex
@@ -0,0 +1,82 @@
+\documentclass{article}
+\usepackage[designv,extended]{web}
+\usepackage{ltx4yt}
+\usepackage{multicol}
+
+\parindent0pt \parskip6pt
+
+
+\textBgColor{lightgray}
+
+\DeclareDocInfo
+{
+ title=The \texorpdfstring{\textsf{ltx4yt} Package\\[3pt]}{ltx4yt Package: }Playing YouTube in a Browser,
+ author=D. P. Story,
+ university=Acro\negthinspace\TeX.Net,
+ email=dpstory@acrotex.net,
+ subject={Play YouTube video in the default browser},
+ keywords={YouTube, AeB},
+ talksite=\url{http://www.acrotex.net},
+ talkdate={\today}
+}
+\talkdateLabel{Published:}
+
+\parindent=0pt\parskip6pt
+\rheader{}
+
+\addtoWebHeight{7\baselineskip}
+
+\begin{document}
+
+\maketitle
+
+\begin{center}\bfseries\Large\color{blue}LTX4YT -- Links\end{center}
+
+\textbf{Favorites to play:} Itemized links below use the \verb~\ytvId~ and \verb~\ytvId*~ commands,
+the only \texttt{*} command is ``Kung-Fu Fighting* (Original),'' this one is played with advertisements
+and related/unrelated content. The links in this document should work across all PDF viewers and across all devices.
+\begin{flushleft}\raggedcolumns
+\begin{multicols}{2}\bfseries
+\begin{itemize}
+
+\item \ytvId{GZ9e3Dy7obA}{Kung-Fu Fighting (Bruce Lee)}
+
+\item \ytvId*{jhUkGIsKvn0}{Kung-Fu Fighting* (Original)}
+
+\item \ytvId{_iUnOpPEg0w}{TegrityGuy}
+
+\item \ytvId{eNzrn8-JFSE}{Open at Adobe}
+
+\item \ytvId{q-iiFo-6Vi0}{Digital Signature in 9.0 Pro}
+
+\item \ytvId{5y9-EVmreU4}{Lori's Corner: Episode \#1}
+
+\item \ytvId{T9Yzo_hlwP0}{Intro to PDF Portfolios}
+\end{itemize}
+\end{multicols}
+\end{flushleft}
+What follows are customized links created by \verb~\ytLink~.
+
+\ytLink{\watchId{5y9-EVmreU4}\params{autoplay=1}}{Lori's Corner: Episode \#1} (\verb~\watchId~ and \verb~\params~)
+
+\ytLink{\embedId{5y9-EVmreU4}\params{autoplay=1&modestbranding=1}}{Lori's Corner: Episode \#1} (\verb~\embedId~ and \verb~\params~)
+
+\ytLink{\embed{listType=search&list=Adobe Acrobat DC}}{Search for Adobe Acrobat DC} (\verb~\embed~ custom search)
+
+\ytLink{embed?listType=search&list=table tennis}{Totally custom search link} (surprise topic)
+
+
+\ytLink{\channel{rocketjump}}{The RocketJump Channel} (\verb~\channel~)
+
+\ytLink{\user{freddiew}}{Freddie Diew's channel} (\verb~\user~)
+
+\ytLink{\embedId{5y9-EVmreU4}\params{autoplay=1&controls=1&fs=1&modestbranding=1&playlist=T9Yzo_hlwP0,eNzrn8-JFSE}}{A playlist of three videos}
+
+\textbf{PDF viewers:} \textsf{Acrobat}, \textsf{Acrobat Reader DC}, \textsf{PDFX-Change}, \textsf{SumatraPDF}, \textsf{evince}, \textsf{TeXworks}
+
+\textbf{Browsers:} \textsf{Microsoft Edge}, \textsf{Firefox}, \textsf{Google Chrome}
+
+\textbf{Devices:} \textsf{Android} smart phones, \textsf{iPhones}, \textsf{Android} tablets
+
+\end{document}
+
diff --git a/macros/latex/contrib/ltx4yt/examples/web-pkg/ltx4yt-w2.pdf b/macros/latex/contrib/ltx4yt/examples/web-pkg/ltx4yt-w2.pdf
new file mode 100644
index 0000000000..958c36cbaf
--- /dev/null
+++ b/macros/latex/contrib/ltx4yt/examples/web-pkg/ltx4yt-w2.pdf
Binary files differ
diff --git a/macros/latex/contrib/ltx4yt/examples/web-pkg/ltx4yt-w2.tex b/macros/latex/contrib/ltx4yt/examples/web-pkg/ltx4yt-w2.tex
new file mode 100644
index 0000000000..31f3ca4917
--- /dev/null
+++ b/macros/latex/contrib/ltx4yt/examples/web-pkg/ltx4yt-w2.tex
@@ -0,0 +1,110 @@
+\documentclass{article}
+\usepackage[designv,extended]{web}
+\usepackage[usepopup]{ltx4yt}
+
+%\previewOn
+
+\parindent0pt \parskip6pt
+
+
+\textBgColor{lightgray}
+
+\DeclareDocInfo
+{
+ title=The \texorpdfstring{\textsf{ltx4yt} Package\\[3pt]}{ltx4yt Package: }Playing YouTube in a Browser,
+ author=D. P. Story,
+ university=Acro\negthinspace\TeX.Net,
+ email=dpstory@acrotex.net,
+ subject={Live streamed video from YouTube.com},
+ keywords={You Tube, AeB, rmannot},
+ talksite=\url{http://www.acrotex.net},
+ talkdate={\today}
+}
+\talkdateLabel{Published:}
+
+\parindent=0pt\parskip6pt
+\rheader{}
+
+\begin{popupmenu}{YTMenu}
+ \puIdTitle{Select a YouTube Video}{} % A title has no ytId
+ \begin{submenu}{title=Music Videos}
+ \puIdTitle{Kung-Fu Fighting (Bruce Lee)}{GZ9e3Dy7obA}
+ \puIdTitle{Kung-Fu Fighting* (Carl Douglas)}{jhUkGIsKvn0}
+ \puIdTitle{Ink Spots - If I didn't care}{rvwfLe6sLis}
+ \puIdTitle{Ink Spots* - My Prayer}{h7KJCns5v3g}
+ \end{submenu}
+ \begin{submenu}{title=Adobe Related Videos}
+ \puIdTitle{Open at Adobe}{eNzrn8-JFSE}
+ \puIdTitle{Lori's Corner Episode \#1}{5y9-EVmreU4}
+ \puIdTitle{Intro to PDF Portfolios}{T9Yzo_hlwP0}
+ \end{submenu}
+ \begin{submenu}{title=Action Videos}
+ \puIdTitle{Rocket Jump}{7XzdZ4KcI8Y}
+ \puIdTitle{AimBot}{NYGlWjIKoY4}
+ \puIdTitle{Flower Warfare}{031Dshcnso4}
+ \puIdTitle{Modern Warfare: Frozen Crossing Pt. 1}{rzQMGMuD1sU}
+ \puIdTitle{Modern Warfare: Frozen Crossing Pt. 2}{a08ViuvORRM}
+ \end{submenu}
+\end{popupmenu}
+
+\begin{popupmenu}{YTSea}
+ \puIdTitle{\Esc"Sea Hunt\Esc" US TV series {(1958-61)} lead-in}{Lz0aMoWh8Q4}
+ \puIdTitle{Theme Song to Sea Hunt*}{2QxXk6X9GDo}
+ \puIdTitle{J\"{u}rgen's favorite song*}{mLDF5MBMWHE}
+ \puIdTitle{Learn \cs{LaTeX} in one video}{VhmkLrOjLsw}
+\end{popupmenu}
+
+
+% After defining all menus used with YouTube videos, declare them using \ytUseMenus
+\ytUseMenus{YTMenu,YTSea}
+
+\declarePlayList{\playList}{% note: put parentheses within braces
+ \ytIdTitle{Kung-Fu Fighting {(Bruce Lee)}}{GZ9e3Dy7obA}
+ \ytIdTitle{Kung-Fu Fighting* {(Carl Douglas)}}{jhUkGIsKvn0}
+ \ytIdTitle{RAF Sculthorpe {(Watch for my Mom at 6:22!)}}{K7H8QghVs9k}
+ \ytIdTitle{Rocket Jump}{7XzdZ4KcI8Y}
+ \ytIdTitle{Abdul And Cleopatra* - Jonathan Richman and the Modern Lovers}{mLDF5MBMWHE}
+%
+ \ytIdTitle{J\"{u}rgen's favorite song*}{mLDF5MBMWHE}
+ \ytIdTitle{Learn \cs{LaTeX} in one video}{VhmkLrOjLsw}
+ \ytIdTitle{"Sea Hunt" US TV series {(1958-61)} lead-in}{Lz0aMoWh8Q4}
+}
+
+\begin{document}
+
+
+
+%\maketitle
+
+\begin{center}\bfseries\Large\color{blue}LTX4YT -- Forms\end{center}
+
+In this second sample file, the combo box and popup menu are
+demonstrated. Both of these use JavaScript methods that will
+function perfectly on \textsf{Adobe Acrobat}, \textsf{Adobe
+Acrobat Reader DC}, and \textsf{PDFX-Change Editor}. None of the fields
+work within the native PDF viewer of modern browsers.
+
+\textbf{Demo of combo box of favorites.} By convention of this
+package, items with an ``\texttt{*}" in their title is a signal to
+the document consumer that that video cannot be
+embedded and must be played on the YouTube site with
+advertisements and such. \vspace{-\parskip}
+\begin{quote}
+\ytPlayList{\tops{Kung-Fu Fighting {(Bruce Lee version)}}{GZ9e3Dy7obA}}{\playList}
+\ytComboList{YT1}{190bp}{11bp}\olBdry
+ \ytComboBtn[\TU{Click to play}]{YT1}{33bp}{11bp}
+\end{quote}
+
+\ytPopupBtn{YTMenu}{20bp}{5bp}
+\textbf{Demo of a popup menu of favorites.}
+On this page, with your mouse cursor, roll over the push button labeled \textcolor{blue}{\textsf{YT Menu}}, and a popup
+menu appears. Choose a YouTube video based on title.
+
+\ytPopupBtn[\CA{Sea Hunt}]{YTSea}{20bp}{5bp} Yes, you can have multiple popup menus in the document.
+
+\textbf{Demo of an interactive search}\\[3pt]
+\ytInputQuery{1.5in}{11bp}\olBdry
+\ytSearch{}{11bp}\olBdry
+\ytClearQuery{}{11bp}
+
+\end{document}