| 1 |
+------------------------------------+ |
| 2 |
| PERLTEX | |
| 3 |
| By Scott Pakin, [email protected] | |
| 4 |
+------------------------------------+ |
| 5 |
|
| 6 |
|
| 7 |
Description |
| 8 |
----------- |
| 9 |
|
| 10 |
PerlTeX is a combination Perl script (perltex.pl) and LaTeX2e style |
| 11 |
file (perltex.sty) that, together, give the user the ability to define |
| 12 |
LaTeX macros in terms of Perl code. Once defined, a Perl macro becomes |
| 13 |
indistinguishable from any other LaTeX macro. PerlTeX thereby combines |
| 14 |
LaTeX's typesetting power with Perl's programmability. |
| 15 |
|
| 16 |
|
| 17 |
Installation |
| 18 |
------------ |
| 19 |
|
| 20 |
In case it's not obvious, you'll need a Perl installation. Perl is |
| 21 |
freely available and runs on dozens of platforms. See the list of Perl |
| 22 |
binary distributions on CPAN (http://www.cpan.org/ports/index.html). |
| 23 |
|
| 24 |
Execute "latex perltex.ins" to generate perltex.sty and perltex.pl. |
| 25 |
Install perltex.sty in an appropriate directory (e.g., |
| 26 |
/usr/local/share/texmf/tex/latex/misc or C:\localtexmf\tex\latex\misc). |
| 27 |
perltex.pl is a Perl script. On Unix, you may want to rename it to |
| 28 |
just "perltex" and set execute permissions ("chmod +x perltex"). On |
| 29 |
Windows, you may want to create a batch-file wrapper for it ("pl2bat |
| 30 |
perltex.pl"). In either case, perltex should be installed somewhere in |
| 31 |
your executable path (e.g., /usr/local/bin). |
| 32 |
|
| 33 |
It's not necessary to produce the documentation as PerlTeX comes with |
| 34 |
prebuilt documentation in PDF format (perltex.pdf). However, if you |
| 35 |
want to build the documentation yourself (e.g., to use A4 paper instead |
| 36 |
of U.S. Letter), run "latex perltex.dtx" twice, then "makeindex -s |
| 37 |
gind.ist perltex.idx" and "makeindex -s gglo.ist perltex.glo -o |
| 38 |
perltex.gls", then "latex perltex.dtx" again, then "dvips perltex.dvi |
| 39 |
-o perltex.ps" if you want to produce PostScript. |
| 40 |
|
| 41 |
|
| 42 |
License |
| 43 |
------- |
| 44 |
|
| 45 |
Copyright (C) 2003-2024 Scott Pakin |
| 46 |
|
| 47 |
These files may be distributed and/or modified under the conditions of |
| 48 |
the LaTeX Project Public License, either version 1.3c of this license or |
| 49 |
(at your option) any later version. The latest version of this license |
| 50 |
is in: |
| 51 |
|
| 52 |
http://www.latex-project.org/lppl.txt |
| 53 |
|
| 54 |
and version 1.3c or later is part of all distributions of LaTeX version |
| 55 |
2006/05/20 or later. |