summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/perltex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-24 03:00:39 +0000
committerNorbert Preining <norbert@preining.info>2019-09-24 03:00:39 +0000
commit94c2e367c3690be2a3c715b4577c81200652ad81 (patch)
tree99f33eec6cc7707f418eb005b7cd93d115cecb18 /macros/latex/contrib/perltex
parentda6f3bd15942a19bc893c478d3afe97b6d13b954 (diff)
CTAN sync 201909240300
Diffstat (limited to 'macros/latex/contrib/perltex')
-rw-r--r--macros/latex/contrib/perltex/README2
-rw-r--r--macros/latex/contrib/perltex/perltex.135
-rw-r--r--macros/latex/contrib/perltex/perltex.dtx52
-rw-r--r--macros/latex/contrib/perltex/perltex.ins4
-rw-r--r--macros/latex/contrib/perltex/perltex.pdfbin333786 -> 283945 bytes
5 files changed, 54 insertions, 39 deletions
diff --git a/macros/latex/contrib/perltex/README b/macros/latex/contrib/perltex/README
index cf6fcdcb5e..4490549068 100644
--- a/macros/latex/contrib/perltex/README
+++ b/macros/latex/contrib/perltex/README
@@ -42,7 +42,7 @@ perltex.gls", then "latex perltex.dtx" again, then "dvips perltex.dvi
License
-------
-Copyright (C) 2010 Scott Pakin
+Copyright (C) 2003-2019 Scott Pakin
These files may be distributed and/or modified under the conditions of
the LaTeX Project Public License, either version 1.3c of this license or
diff --git a/macros/latex/contrib/perltex/perltex.1 b/macros/latex/contrib/perltex/perltex.1
index 28c0508e68..71ebe2ae45 100644
--- a/macros/latex/contrib/perltex/perltex.1
+++ b/macros/latex/contrib/perltex/perltex.1
@@ -1,4 +1,4 @@
-.\" Automatically generated by Pod::Man 2.1801 (Pod::Simple 3.05)
+.\" Automatically generated by Pod::Man 4.10 (Pod::Simple 3.35)
.\"
.\" Standard preamble:
.\" ========================================================================
@@ -38,27 +38,36 @@
. ds PI \(*p
. ds L" ``
. ds R" ''
+. ds C`
+. ds C'
'br\}
.\"
.\" Escape single quotes in literal strings from groff's Unicode transform.
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\"
-.\" If the F register is turned on, we'll generate index entries on stderr for
+.\" If the F register is >0, we'll generate index entries on stderr for
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
.\" entries marked with X<> in POD. Of course, you'll have to process the
.\" output yourself in some meaningful fashion.
-.ie \nF \{\
-. de IX
-. tm Index:\\$1\t\\n%\t"\\$2"
+.\"
+.\" Avoid warning from groff about undefined register 'F'.
+.de IX
..
-. nr % 0
-. rr F
-.\}
-.el \{\
-. de IX
+.nr rF 0
+.if \n(.g .if rF .nr rF 1
+.if (\n(rF:(\n(.g==0)) \{\
+. if \nF \{\
+. de IX
+. tm Index:\\$1\t\\n%\t"\\$2"
..
+. if !\nF==2 \{\
+. nr % 0
+. nr F 2
+. \}
+. \}
.\}
+.rr rF
.\"
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
.\" Fear. Run. Save yourself. No user-serviceable parts.
@@ -124,7 +133,7 @@
.\" ========================================================================
.\"
.IX Title "PERLTEX 1"
-.TH PERLTEX 1 "2010-07-10" "v2.1" " "
+.TH PERLTEX 1 "2019-09-15" "v2.2" " "
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
@@ -240,7 +249,7 @@ permissions (\f(CW\*(C`:browse\*(C'\fR) plus the ability to open files and invok
Specify the filename of the LaTeX compiler. The LaTeX compiler
defaults to ``\f(CW\*(C`latex\*(C'\fR''. The \f(CW\*(C`PERLTEX\*(C'\fR environment variable
overrides this default, and the \fB\-\-latex\fR command-line option (see
-\&\*(L"\s-1OPTIONS\s0\*(R") overrides that.
+\&\*(L"\s-1OPTIONS\*(R"\s0) overrides that.
.SH "FILES"
.IX Header "FILES"
While compiling \fIjobname.tex\fR, \fBperltex\fR makes use of the following
@@ -274,7 +283,7 @@ file generated by \fInoperltex.sty\fR for each PerlTeX macro invocation
\&\fBperltex\fR's sandbox defaults to what Opcode calls ``\f(CW\*(C`:browse\*(C'\fR''.
.SH "SEE ALSO"
.IX Header "SEE ALSO"
-\&\fIlatex\fR\|(1), \fIpdflatex\fR\|(1), \fIperl\fR\|(1), \fISafe\fR\|(3pm), \fIOpcode\fR\|(3pm)
+\&\fBlatex\fR\|(1), \fBpdflatex\fR\|(1), \fBperl\fR\|(1), \fBSafe\fR\|(3pm), \fBOpcode\fR\|(3pm)
.SH "AUTHOR"
.IX Header "AUTHOR"
Scott Pakin, \fIscott+pt@pakin.org\fR
diff --git a/macros/latex/contrib/perltex/perltex.dtx b/macros/latex/contrib/perltex/perltex.dtx
index 3f61570dda..ec04181817 100644
--- a/macros/latex/contrib/perltex/perltex.dtx
+++ b/macros/latex/contrib/perltex/perltex.dtx
@@ -1,7 +1,7 @@
% \iffalse meta-comment
%
-% Copyright (C) 2010 Scott Pakin <scott+pt@pakin.org>
-% ---------------------------------------------------
+% Copyright (C) 2003-2019 Scott Pakin <scott+pt@pakin.org>
+% --------------------------------------------------------
%
% 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 @@
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\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]
%</package>
%
%<*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 @@
%</driver>
% \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{<scott+pt@pakin.org>}
+% Copyright \textcopyright{} 2003--2019 Scott Pakin \texttt{<scott+pt@pakin.org>}
%
% \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 <scott+pt@pakin.org>
+# Copyright (C) 2003-2019 Scott Pakin <scott+pt@pakin.org>
#
# 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/macros/latex/contrib/perltex/perltex.ins b/macros/latex/contrib/perltex/perltex.ins
index 6f5b1b2fa5..0d1ea5f286 100644
--- a/macros/latex/contrib/perltex/perltex.ins
+++ b/macros/latex/contrib/perltex/perltex.ins
@@ -1,5 +1,5 @@
%%
-%% Copyright (C) 2010 Scott Pakin <scott+pt@pakin.org>
+%% Copyright (C) 2003--2019 Scott Pakin <scott+pt@pakin.org>
%%
%% 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 <scott+pt@pakin.org>
+Copyright (C) 2003-2019 Scott Pakin <scott+pt@pakin.org>
This file may be distributed and/or modified under the conditions of
the LaTeX Project Public License, either version 1.3c of this license
diff --git a/macros/latex/contrib/perltex/perltex.pdf b/macros/latex/contrib/perltex/perltex.pdf
index 7b66c014ab..1c4ae95046 100644
--- a/macros/latex/contrib/perltex/perltex.pdf
+++ b/macros/latex/contrib/perltex/perltex.pdf
Binary files differ