summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-08-09 21:03:43 +0000
committerKarl Berry <karl@freefriends.org>2021-08-09 21:03:43 +0000
commit57f947c6aa7497724bc2621e5a86d85c02580253 (patch)
treebe1f885910273603208019c934d26c422534a79f /Master/texmf-dist/tex/latex
parente22604df48fdc3213b65b82db86b913864a1a759 (diff)
cooltooltips (9aug21)
git-svn-id: svn://tug.org/texlive/trunk@60201 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/cooltooltips/cooltooltips.sty33
1 files changed, 22 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/latex/cooltooltips/cooltooltips.sty b/Master/texmf-dist/tex/latex/cooltooltips/cooltooltips.sty
index 07e5b3e16d3..8998eba92d4 100644
--- a/Master/texmf-dist/tex/latex/cooltooltips/cooltooltips.sty
+++ b/Master/texmf-dist/tex/latex/cooltooltips/cooltooltips.sty
@@ -8,24 +8,36 @@
%%
%% This is a generated file.
%%
-%% Copyright (C) 2006 by Scott Pakin <scott+ctip@pakin.org>
+%% Copyright (C) 2006-2021 by Scott Pakin <scott+ctip@pakin.org>
%%
%% This file may be distributed and/or modified under the conditions of
-%% the LaTeX Project Public License, either version 1.3b of this license
+%% the LaTeX Project Public License, either version 1.3c of this license
%% or (at your option) any later version. The latest version of this
%% license is in:
%%
%% http://www.latex-project.org/lppl.txt
%%
-%% and version 1.3b or later is part of all distributions of LaTeX version
-%% 2006/01/07 or later.
+%% and version 1.3c or later is part of all distributions of LaTeX version
+%% 2008/05/04 or later.
%%
\NeedsTeXFormat{LaTeX2e}[2001/06/01]
\ProvidesPackage{cooltooltips}
- [2006/03/07 v1.0 Cool PDF tooltips]
-\RequirePackage{ifpdf}
-\newcommand*{\ctip@form@fields}{}
+ [2021/08/08 v1.1 Cool PDF tooltips]
+\RequirePackage{iftex}
+\ifluatex
+ \RequirePackage{luatex85}
+\fi
+\newif\ifcoolpdf
\ifpdf
+ \ifluatex
+ \coolpdftrue
+ \fi
+ \ifpdftex
+ \coolpdftrue
+ \fi
+\fi
+\newcommand*{\ctip@form@fields}{}
+\ifcoolpdf
\AtEndDocument{%
\immediate\pdfobj {
<<
@@ -38,7 +50,7 @@
}%
}
\fi
-\ifpdf
+\ifcoolpdf
\setbox\@tempboxa=\hbox{}
\immediate\pdfxform\@tempboxa
\edef\ctip@empty@icon{\the\pdflastxform}
@@ -230,11 +242,10 @@
}%
\usebox{\ctip@content@box}%
}
-\RequirePackage{ifpdf}
-\ifpdf
+\ifcoolpdf
\else
\PackageWarning{cooltooltips}{%
- Not running pdfLaTeX in PDF mode; disabling cooltooltips%
+ Not running pdfLaTeX or LuaLaTeX in PDF mode; disabling cooltooltips%
}
\renewcommand*{\ctip@cooltooltip@i}[6][]{\mbox{#6}}
\fi