From 7334c1b476e2b804dc4a935b8209954429c9dc80 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 3 May 2013 23:36:50 +0000 Subject: bxdpx-beamer (29apr13) git-svn-id: svn://tug.org/texlive/trunk@30220 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/bxdpx-beamer/LICENSE | 27 ++++++++++ Master/texmf-dist/doc/latex/bxdpx-beamer/README | 31 ++++++++++++ .../latex/bxdpx-beamer/sample/test-framezoom.tex | 16 ++++++ .../latex/bxdpx-beamer/sample/test-navisymbol.tex | 24 +++++++++ .../tex/latex/bxdpx-beamer/bxdpx-beamer.sty | 57 ++++++++++++++++++++++ Master/tlpkg/bin/ctan2tl | 3 +- Master/tlpkg/bin/tlpkg-ctan-check | 3 +- Master/tlpkg/bin/tlpkginfo | 24 ++++----- Master/tlpkg/libexec/ctan2tds | 13 ++++- Master/tlpkg/tlpsrc/bxdpx-beamer.tlpsrc | 0 Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc | 1 + 11 files changed, 185 insertions(+), 14 deletions(-) create mode 100644 Master/texmf-dist/doc/latex/bxdpx-beamer/LICENSE create mode 100644 Master/texmf-dist/doc/latex/bxdpx-beamer/README create mode 100644 Master/texmf-dist/doc/latex/bxdpx-beamer/sample/test-framezoom.tex create mode 100644 Master/texmf-dist/doc/latex/bxdpx-beamer/sample/test-navisymbol.tex create mode 100644 Master/texmf-dist/tex/latex/bxdpx-beamer/bxdpx-beamer.sty create mode 100644 Master/tlpkg/tlpsrc/bxdpx-beamer.tlpsrc diff --git a/Master/texmf-dist/doc/latex/bxdpx-beamer/LICENSE b/Master/texmf-dist/doc/latex/bxdpx-beamer/LICENSE new file mode 100644 index 00000000000..4acbc245013 --- /dev/null +++ b/Master/texmf-dist/doc/latex/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(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 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/Master/texmf-dist/doc/latex/bxdpx-beamer/README b/Master/texmf-dist/doc/latex/bxdpx-beamer/README new file mode 100644 index 00000000000..e90f288cf3c --- /dev/null +++ b/Master/texmf-dist/doc/latex/bxdpx-beamer/README @@ -0,0 +1,31 @@ +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. + +Revision History +---------------- + + * Version 0.2 <2013/02/27> + - The first public version. + +-------------------- +Takayuki YATO (aka. "ZR") +http://zrbabbler.sp.land.to/ diff --git a/Master/texmf-dist/doc/latex/bxdpx-beamer/sample/test-framezoom.tex b/Master/texmf-dist/doc/latex/bxdpx-beamer/sample/test-framezoom.tex new file mode 100644 index 00000000000..6ed62896750 --- /dev/null +++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/bxdpx-beamer/sample/test-navisymbol.tex b/Master/texmf-dist/doc/latex/bxdpx-beamer/sample/test-navisymbol.tex new file mode 100644 index 00000000000..e196174d593 --- /dev/null +++ b/Master/texmf-dist/doc/latex/bxdpx-beamer/sample/test-navisymbol.tex @@ -0,0 +1,24 @@ +\documentclass[17pt]{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} 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{\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 diff --git a/Master/tlpkg/bin/ctan2tl b/Master/tlpkg/bin/ctan2tl index e685d4ba9c9..7eceea51f1d 100755 --- a/Master/tlpkg/bin/ctan2tl +++ b/Master/tlpkg/bin/ctan2tl @@ -129,7 +129,8 @@ cd $cooked || exit 1 printf "\n\f cooked\n" find $pkg -name TDS_READY -exec rm '{}' \; # remove sentinel file find -depth -type d | xargs rmdir 2>/dev/null # remove empty directories -find $pkg \! -type d -printf "%TY%Tm%Td.%TH%TM %p\n" | sort -k2 +find $pkg \! -type d -printf "%TY%Tm%Td.%TH%TM %p\n" | sort -k2 \ +| tee ${TMPDIR-/tmp}/ctan2tl.files printf "\n$0: calling place $place_chicken $pkg\n" rm -rf $pkg.done diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index 4a530fc7960..349fbd15cd4 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -78,7 +78,8 @@ my @TLP_working = qw( borceux bosisio boxedminipage boxhandler bpchem bpolynomial bracketkey braids braille braket breakcites breakurl bropd brushscr - bullcntr bundledoc burmese bussproofs bxbase bxjscls bxpict2e bytefield + bullcntr bundledoc burmese bussproofs + bxbase bxdpx-beamer bxjscls bxpict2e bytefield c-pascal cabin cachepic calcage calctab calculator calligra calligra-type1 calrsfs cals calxxxx-yyyy cancel canoniclayout cantarell diff --git a/Master/tlpkg/bin/tlpkginfo b/Master/tlpkg/bin/tlpkginfo index e19bc87b1ef..ac9131bbca6 100755 --- a/Master/tlpkg/bin/tlpkginfo +++ b/Master/tlpkg/bin/tlpkginfo @@ -83,17 +83,19 @@ sub find_ctan_dir { my $ctan_dir = &catalogue_find_ctan_path ($me); if (! $ctan_dir) { # fall back on many special cases - (my $menobin = $me) =~ s,^bin-,,; - (my $menopowerdot = $me) =~ s,^powerdot-,,; - (my $menotype1 = $me) =~ s,-type1$,,; + (my $me_wo_bin = $me) =~ s,^bin-,,; + (my $me_wo_babel = $me) =~ s,^babel-,,; + (my $me_wo_powerdot = $me) =~ s,^powerdot-,,; + (my $me_wo_type1 = $me) =~ s,-type1$,,; for my $dir ( "macros/latex/contrib/$me", # most everything - "macros/latex/contrib/biblatex/$me", # authoryear-icomp-tt + "macros/latex/contrib/babel-contrib/$me_wo_babel", # babel-* + "macros/latex/contrib/biblatex/$me", # authoryear-icomp-tt "macros/latex/contrib/biblatex-contrib/$me", # biblatex-* "macros/latex/contrib/gene/$me", # eqname "macros/latex/contrib/\L$me", # HA-prosper - "macros/latex/contrib/powerdot/contrib/$menopowerdot", # powerdot-doc-vn + "macros/latex/contrib/powerdot/contrib/$me_wo_powerdot", # powerdot-doc-vn "macros/latex/exptl/$me", # semioneside "macros/latex/required/$me", # babel "macros/plain/$me", # plnfss @@ -105,7 +107,7 @@ sub find_ctan_dir { "macros/generic/diagrams/$me", # circ "macros/$me", # eplain "support/$me", # thumbpdf - "support/$menobin", # bin-thumbpdf + "support/$me_wo_bin", # bin-thumbpdf "language/vietnamese/$me/unpacked", # vntex "language/polish/$me", # cc-pl "language/hyphenation/$me", # bghyphen @@ -131,11 +133,11 @@ sub find_ctan_dir { "fonts/$me", # MnSymbol "fonts/utilities/$me", # accfonts "fonts/ps-type1/$me", # cm-super - "fonts/ps-type1/$menotype1", # esint-type1 - "fonts/greek/$me", # lfb - "fonts/gothic/$me", # blacklettert1 - "fonts/cyrillic/$me/texmf", # lh - "fonts/chess/$me", # skaknew + "fonts/ps-type1/$me_wo_type1", # esint-type1 + "fonts/greek/$me", # lfb + "fonts/gothic/$me", # blacklettert1 + "fonts/cyrillic/$me/texmf", # lh + "fonts/chess/$me", # skaknew "biblio/bibtex/contrib/$me", # dk-bib ) { if (-d "$CTAN/$dir") { diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds index 40c5377a45f..6c9b5249fd8 100755 --- a/Master/tlpkg/libexec/ctan2tds +++ b/Master/tlpkg/libexec/ctan2tds @@ -2031,6 +2031,17 @@ $standardsource='\.(bat|c|drv|dtx|fea|fdd|ins|sfd)$|configure.*|install-sh'; ); $standardins='\.ins$'; +# if no .ins is present, but a .dtx is present, return a pattern for it +# (or them); else return the empty string. +# +sub specialins { + return ""; + + my ($package) = $_; + my @ins = `find $RAW_DIR/$packagedir -name $standardins -type f`; + warn "specialins: found ins @ins"; +} + # ltxtable.tex in carlisle uses the {filecontents} environment to write # ltxtable.sty. Unfortunately if the file exists anywhere in the input # tree, it won't be written, and of course TL already has it installed. @@ -2557,7 +2568,7 @@ for (@ARGV) { $whichformat = $specialfmt{$package} || $standardfmt; $whichdocformat = $specialdocfmt{$package} || $standarddocfmt; - $inspatt = $specialins{$package} || $standardins; + $inspatt = $specialins{$package} || &specialins($package) || $standardins; $insrunner = $specialinsrunner{$package} || $standardinsrunner; $Foundry = $specialfoundry{$package} || $standardfoundry; diff --git a/Master/tlpkg/tlpsrc/bxdpx-beamer.tlpsrc b/Master/tlpkg/tlpsrc/bxdpx-beamer.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc index 15930d9c32a..def7b0728bf 100644 --- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc @@ -79,6 +79,7 @@ depend braket depend breakurl depend bullcntr depend bussproofs +depend bxdpx-beamer depend calcage depend calctab depend calculator -- cgit v1.2.3