diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/cooltooltips')
-rw-r--r-- | Master/texmf-dist/tex/latex/cooltooltips/cooltooltips.sty | 33 |
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 |