summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/beamer-contrib/bxdpx-beamer
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/beamer-contrib/bxdpx-beamer
Initial commit
Diffstat (limited to 'macros/latex/contrib/beamer-contrib/bxdpx-beamer')
-rw-r--r--macros/latex/contrib/beamer-contrib/bxdpx-beamer/LICENSE27
-rw-r--r--macros/latex/contrib/beamer-contrib/bxdpx-beamer/README.md37
-rw-r--r--macros/latex/contrib/beamer-contrib/bxdpx-beamer/bxdpx-beamer.sty63
-rw-r--r--macros/latex/contrib/beamer-contrib/bxdpx-beamer/sample/test-framezoom.tex16
-rw-r--r--macros/latex/contrib/beamer-contrib/bxdpx-beamer/sample/test-navisymbol.tex24
5 files changed, 167 insertions, 0 deletions
diff --git a/macros/latex/contrib/beamer-contrib/bxdpx-beamer/LICENSE b/macros/latex/contrib/beamer-contrib/bxdpx-beamer/LICENSE
new file mode 100644
index 0000000000..5c4ad4f949
--- /dev/null
+++ b/macros/latex/contrib/beamer-contrib/bxdpx-beamer/LICENSE
@@ -0,0 +1,27 @@
+$BK\%=%U%H%&%'%"$O(B MIT $B%i%$%;%s%9$N2<$GG[I[$5$l$^$9!#(B
+$BCx:n8"$O:n<T$G$"$k!VH,EP(B $B?rG7!JJLL>(B ZR$B!K!W$KB0$7$^$9!#(B
+$B$^$?K\%=%U%H%&%'%"$OL5J]>Z$G$9!#(B
+
+This software is distributed under the MIT License.
+
+The MIT License
+
+Copyright (c) 2013-2016 Takayuki YATO (aka. "ZR")
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/macros/latex/contrib/beamer-contrib/bxdpx-beamer/README.md b/macros/latex/contrib/beamer-contrib/bxdpx-beamer/README.md
new file mode 100644
index 0000000000..4d63f2b5d7
--- /dev/null
+++ b/macros/latex/contrib/beamer-contrib/bxdpx-beamer/README.md
@@ -0,0 +1,37 @@
+bxdpx-beamer Package
+====================
+
+LaTeX: to fix some problems in use of Beamer with dvipdfmx
+
+This packges makes the two types of links work:
+ - Navigation symbols
+ - \framezoom'd regions
+
+### Installation
+
+ - `*.sty` → $TEXMF/tex/latex/bxdpx-beamer
+
+### Usage
+
+Load this package as usual in the preamble of Beamer documents:
+
+ \documentclass[dvipdfmx]{beamer}
+ \usepackage{bxdpx-beamer}
+
+This package does not provide any user commands.
+
+### License
+
+This package is distributed under the MIT License.
+
+Revision History
+----------------
+
+ * Version 0.3 〈2016/08/06〉
+ - The driver of geometry package is forced to be `dvipdfm`.
+ * Version 0.2 〈2013/02/27〉
+ - The first public version.
+
+--------------------
+Takayuki YATO (aka. "ZR")
+http://zrbabbler.sp.land.to/
diff --git a/macros/latex/contrib/beamer-contrib/bxdpx-beamer/bxdpx-beamer.sty b/macros/latex/contrib/beamer-contrib/bxdpx-beamer/bxdpx-beamer.sty
new file mode 100644
index 0000000000..ddb262915a
--- /dev/null
+++ b/macros/latex/contrib/beamer-contrib/bxdpx-beamer/bxdpx-beamer.sty
@@ -0,0 +1,63 @@
+% bxdpx-beamer.sty
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{bxdpx-beamer}[2016/08/06 v0.3]
+\def\bxqbd@pkgname{bxdpx-beamer}
+% if Beamer is not used, then abort with error
+\@ifclassloaded{beamer}{}{%else
+ \PackageError\bxqbd@pkgname{Beamer is not in use}%
+ {Package loading is aborted.}%
+ \endinput}
+% if PGF driver is not dvipdfmx/xetex, then abort silently
+\let\bxqbd@pgf=\relax
+\def\bxqbd@tempa{pgfsys-dvipdfmx.def}
+\ifx\pgfsysdriver\bxqbd@tempa \let\bxqbd@pgf=d \fi
+\def\bxqbd@tempa{pgfsys-xetex.def}
+\ifx\pgfsysdriver\bxqbd@tempa \let\bxqbd@pgf=x \fi
+\ifx\bxqbd@pgf\relax
+\expandafter\endinput\fi\relax
+%--------------------------------------- geometry
+% if geometry driver is not set, set it to 'dvipdfm'
+\ifx d\bxqbd@pgf \ifx\Gm@driver\@empty
+ \Gm@setdriver{dvipdfm}
+\fi\fi
+%--------------------------------------- hyperlink
+% if not in presentation mode, then abort silently
+\let\bxqbd@tempa=f
+\mode<presentation>{\let\bxqbd@tempa=t }
+\ifx t\bxqbd@tempa\else
+\expandafter\endinput\fi\relax
+% if ec-lmr10 is not available, then abort with warning
+\IfFileExists{t1lmr.fd}{}{%else
+ \PackageWarning\bxqbd@pkgname
+ {Some links are still out of order, since the\MessageBreak
+ hackery cannot be applied in absence of the \MessageBreak
+ LM Roman font}%
+ \endinput}
+% \bxqbd@enghost
+\newbox\bxqbd@ghost
+\font\bxqbd@font=ec-lmr10 at 1.1613pt % 10*0.5/4.3055
+\setbox\bxqbd@ghost\hbox{\bxqbd@font\char23}
+\def\bxqbd@enghost#1{%
+ \begingroup
+ \setbox\@tempboxa\hbox{#1}%
+ \lower\dp\@tempboxa\copy\bxqbd@ghost
+ \copy\@tempboxa
+ \@tempdima\ht\@tempboxa \advance\@tempdima\ht\bxqbd@ghost
+ \raise\@tempdima\copy\bxqbd@ghost
+ \endgroup}
+% patch to \beamer@linkspace
+\let\bxqbd@linkspace\beamer@linkspace
+\def\beamer@linkspace#1{%
+ \bxqbd@enghost{\bxqbd@linkspace{#1}}}
+% patch to \hyperlink
+\let\bxqbd@hyperlink\hyperlink
+\def\bxqbd@labelzoomed{\beamer@labelzoomed}
+\def\hyperlink#1#2{%
+ \def\bxqbd@tempa{#1}%
+ \ifx\bxqbd@tempa\bxqbd@labelzoomed \expandafter\@firstoftwo
+ \else \expandafter\@secondoftwo \fi
+ {\bxqbd@hyperlink{#1}{\bxqbd@enghost{#2}}}%
+ {\bxqbd@hyperlink{#1}{#2}}}
+%--------------------------------------- all done
+\endinput
+%% EOF
diff --git a/macros/latex/contrib/beamer-contrib/bxdpx-beamer/sample/test-framezoom.tex b/macros/latex/contrib/beamer-contrib/bxdpx-beamer/sample/test-framezoom.tex
new file mode 100644
index 0000000000..6ed6289675
--- /dev/null
+++ b/macros/latex/contrib/beamer-contrib/bxdpx-beamer/sample/test-framezoom.tex
@@ -0,0 +1,16 @@
+\documentclass[17pt,dvipdfmx]{beamer}
+\usepackage{type1cm}
+\usetheme{Warsaw}
+\usepackage{bxdpx-beamer}
+\begin{document}
+
+\begin{frame}{Zoooooooom!}
+\hypersetup{linkbordercolor={0 0.5 0.1}}
+\framezoom<1><2>[border=2](0pt,20pt)(32pt,24pt)%
+\framezoom<1><3>[border=2](50pt,28pt)(40pt,30pt)%
+\framezoom<1><4>[border=2](100pt,22pt)(18pt,18pt)%
+\strut\par
+Blah blah blah!!?
+\end{frame}
+
+\end{document}
diff --git a/macros/latex/contrib/beamer-contrib/bxdpx-beamer/sample/test-navisymbol.tex b/macros/latex/contrib/beamer-contrib/bxdpx-beamer/sample/test-navisymbol.tex
new file mode 100644
index 0000000000..03d22ca5bb
--- /dev/null
+++ b/macros/latex/contrib/beamer-contrib/bxdpx-beamer/sample/test-navisymbol.tex
@@ -0,0 +1,24 @@
+\documentclass[17pt,dvipdfmx]{beamer} % dvipdfmx needed
+\usetheme{Warsaw}
+\usepackage{bxdpx-beamer}
+% These settings make navigation symbols rendered in black.
+%\setbeamercolor{navigation symbols dimmed}{fg=black}
+%\setbeamercolor{navigation symbols}{fg=black}
+% This makes all links have a border.
+%\hypersetup{pdfborder={0 0 1},allbordercolors={0 0.5 0}}
+\begin{document}
+
+\section{Important but Meaningless}
+\begin{frame}{First}
+This slide \pause is \alert{meaningless}.
+\end{frame}
+\begin{frame}{Second}
+This slide \pause is also \alert{meaningless}.
+\end{frame}
+
+\section{Meaningless but Important}
+\begin{frame}{Third}
+This is yet another \alert{meaningless} slide.
+\end{frame}
+
+\end{document}