From a656c6f4d9acb1ac47cd5aae2b2e34d43e389216 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 23 Sep 2019 20:58:21 +0000 Subject: perltex (23sep19) git-svn-id: svn://tug.org/texlive/trunk@52162 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/latex/perltex/perltex.dtx | 52 ++++++++++++---------- Master/texmf-dist/source/latex/perltex/perltex.ins | 4 +- 2 files changed, 31 insertions(+), 25 deletions(-) (limited to 'Master/texmf-dist/source/latex/perltex') diff --git a/Master/texmf-dist/source/latex/perltex/perltex.dtx b/Master/texmf-dist/source/latex/perltex/perltex.dtx index 3f61570dda6..ec041818179 100644 --- a/Master/texmf-dist/source/latex/perltex/perltex.dtx +++ b/Master/texmf-dist/source/latex/perltex/perltex.dtx @@ -1,7 +1,7 @@ % \iffalse meta-comment % -% Copyright (C) 2010 Scott Pakin -% --------------------------------------------------- +% Copyright (C) 2003-2019 Scott Pakin +% -------------------------------------------------------- % % This file may be distributed and/or modified under the conditions of % the LaTeX Project Public License, either version 1.3c of this license @@ -22,7 +22,7 @@ %\NeedsTeXFormat{LaTeX2e}[1999/12/01] %\ProvidesPackage{perltex} %<*package> - [2010/07/10 v2.1 LaTeX macros for use with PerlTeX] + [2019/09/14 v2.2 LaTeX macros for use with PerlTeX] % % %<*driver> @@ -41,17 +41,15 @@ \usepackage{flafter} \usepackage{textcomp} \usepackage{graphicx} -\IfFileExists{hyperref.sty}{% - \usepackage{hyperref} - \hypersetup{% - hyperindex=false, - bookmarksopen, - pdftitle={PerlTeX: Defining LaTeX macros in terms of Perl code}, - pdfauthor={Scott Pakin, scott+pt@pakin.org}, - pdfsubject={Using Perl to define LaTeX macros}, - pdfkeywords={programming, LaTeX, macros, Perl} - } -}{} +\usepackage{hyperref} +\hypersetup{% + hyperindex=false, + bookmarksopen, + pdftitle={PerlTeX: Defining LaTeX macros in terms of Perl code}, + pdfauthor={Scott Pakin, scott+pt@pakin.org}, + pdfsubject={Using Perl to define LaTeX macros}, + pdfkeywords={programming, LaTeX, macros, Perl} +} \EnableCrossrefs \CodelineIndex \RecordChanges @@ -62,7 +60,7 @@ % % \fi % -% \CheckSum{602} +% \CheckSum{605} % % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -921,7 +919,7 @@ % \section{License agreement} % \label{sec:license} % -% Copyright \textcopyright{} 2010 Scott Pakin \texttt{} +% Copyright \textcopyright{} 2003--2019 Scott Pakin \texttt{} % % \providecommand{\url}[1]{\texttt{##1}} % @@ -943,9 +941,11 @@ % final draft; to Andrei Alexandrescu for providing a few bug fixes; to % Nick Andrewes for identifying and helping diagnose a problem running % \PerlTeX\ with \XeTeX\ and to Jonathan Kew for suggesting a -% workaround; and to Linus K\"allberg for reporting and helping diagnose -% some problems with running \PerlTeX\ on Windows. Also, thanks to the -% many people who have sent me fan mail or submitted bug reports, +% workaround; to Linus K\"allberg for reporting and helping diagnose +% some problems with running \PerlTeX\ on Windows; and to Ulrike Fischer +% for reporting and helping correct a bug encountered when using +% \noperlmac\ with newer versions of \LaTeX\@. Also, thanks to the many +% people who have sent me fan mail or submitted bug reports, % documentation corrections, or feature requests. (The % \texttt{\string\perldo} macro and the \texttt{--makesty} option were % particularly popular requests.) @@ -1049,8 +1049,10 @@ % option to suppress the ``must be compiled using perltex'' error % message} % \begin{macrocode} -\newif\ifplmac@required \plmac@requiredtrue -\DeclareOption{optional}{\plmac@requiredfalse} \ProcessOptions\relax +\newif\ifplmac@required +\plmac@requiredtrue +\DeclareOption{optional}{\plmac@requiredfalse} +\ProcessOptions\relax % \end{macrocode} % \end{macro} % \end{macro} @@ -1109,10 +1111,14 @@ % not defined, \perlmac{} gives an error message and---as we shall see % on page~\pageref{page:define-dummies}---defines dummy versions of % |\perl|[|re|]|newcommand| and |\perl|[|re|]|newenvironment|. +% \changes{v2.2}{2019/09/14}{Let-bind \cs{plmac@tag} to \cs{relax} if +% \cs{plmac@tag} is undefined. This corrects a problem when +% \noexpand\texttt{noperltex} is used with newer versions of +% \noexpand\LaTeX} % \begin{macrocode} \newif\ifperl \perltrue -\@ifundefined{plmac@tag}{\perlfalse}{} +\@ifundefined{plmac@tag}{\perlfalse\let\plmac@tag=\relax}{} \@ifundefined{plmac@tofile}{\perlfalse}{} \@ifundefined{plmac@fromfile}{\perlfalse}{} \@ifundefined{plmac@toflag}{\perlfalse}{} @@ -2145,7 +2151,7 @@ # # This is a generated file. # -# Copyright (C) 2010 Scott Pakin +# Copyright (C) 2003-2019 Scott Pakin # # This file may be distributed and/or modified under the conditions # of the LaTeX Project Public License, either version 1.3c of this diff --git a/Master/texmf-dist/source/latex/perltex/perltex.ins b/Master/texmf-dist/source/latex/perltex/perltex.ins index 6f5b1b2fa57..0d1ea5f2864 100644 --- a/Master/texmf-dist/source/latex/perltex/perltex.ins +++ b/Master/texmf-dist/source/latex/perltex/perltex.ins @@ -1,5 +1,5 @@ %% -%% Copyright (C) 2010 Scott Pakin +%% Copyright (C) 2003--2019 Scott Pakin %% %% This file may be distributed and/or modified under the conditions of %% the LaTeX Project Public License, either version 1.3c of this license @@ -21,7 +21,7 @@ This is a generated file. -Copyright (C) 2010 Scott Pakin +Copyright (C) 2003-2019 Scott Pakin This file may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3c of this license -- cgit v1.2.3