summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bxdpx-beamer
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-05-03 23:36:50 +0000
committerKarl Berry <karl@freefriends.org>2013-05-03 23:36:50 +0000
commit7334c1b476e2b804dc4a935b8209954429c9dc80 (patch)
tree1593fd2182cda406544b5a75521d50af765c34f9 /Master/texmf-dist/tex/latex/bxdpx-beamer
parent33351fa0ab6b4d044cc5b29d4ed4f0fc1540631a (diff)
bxdpx-beamer (29apr13)
git-svn-id: svn://tug.org/texlive/trunk@30220 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/bxdpx-beamer')
-rw-r--r--Master/texmf-dist/tex/latex/bxdpx-beamer/bxdpx-beamer.sty57
1 files changed, 57 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/bxdpx-beamer/bxdpx-beamer.sty b/Master/texmf-dist/tex/latex/bxdpx-beamer/bxdpx-beamer.sty
new file mode 100644
index 00000000000..8a427c20b14
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/bxdpx-beamer/bxdpx-beamer.sty
@@ -0,0 +1,57 @@
+% bxdpx-beamer.sty
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{bxdpx-beamer}[2013/02/27 v0.2]
+\def\bxqbd@pkgname{bxdpx-beamer}
+% environment check
+\@ifclassloaded{beamer}{}{%else
+ \PackageError\bxqbd@pkgname{Beamer is not in use}%
+ {Package loading is aborted.}%
+ \endinput}
+% if not in presentation mode, then abort silently
+\mode<presentation>{\let\bxqbd@tempa=t }
+\ifx t\bxqbd@tempa\else
+\expandafter\endinput\fi\relax
+% if PGF driver is not dvipdfmx/xetex, then abort silently
+\let\bxqbd@tempa=f
+\def\bxqbd@tempb{pgfsys-dvipdfmx.def}
+\ifx\pgfsysdriver\bxqbd@tempb \let\bxqbd@tempa=t \fi
+\def\bxqbd@tempb{pgfsys-xetex.def}
+\ifx\pgfsysdriver\bxqbd@tempb \let\bxqbd@tempa=t \fi
+\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