diff options
author | Karl Berry <karl@freefriends.org> | 2012-08-26 23:07:28 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-08-26 23:07:28 +0000 |
commit | d3535e838cefea309221187bb9e62698c0df8c51 (patch) | |
tree | dbee8197e1bfecefe547d53e843f0acff729a3fe /Master/texmf-dist/doc/latex/latex-web-companion/ch7/inv2lat.pl | |
parent | 33353453d22fc5877a8ced58c673c7008ce8c00a (diff) |
latex-web-companion non-update
git-svn-id: svn://tug.org/texlive/trunk@27531 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/latex-web-companion/ch7/inv2lat.pl')
-rw-r--r-- | Master/texmf-dist/doc/latex/latex-web-companion/ch7/inv2lat.pl | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/latex-web-companion/ch7/inv2lat.pl b/Master/texmf-dist/doc/latex/latex-web-companion/ch7/inv2lat.pl new file mode 100644 index 00000000000..89e2f42015f --- /dev/null +++ b/Master/texmf-dist/doc/latex/latex-web-companion/ch7/inv2lat.pl @@ -0,0 +1,76 @@ +######################################################################## +# SGMLSPL script produced automatically by the script sgmlspl.pl +# +# Document Type: invitation --> customization for LaTeX +# Edited by: mg (August 14th 1998) +######################################################################## + +use SGMLS; # Use the SGMLS package. +use SGMLS::Output; # Use stack-based output. + +# +# Document Handlers. +# +sgml('start', sub {}); +sgml('end', sub {}); + +# +# Element Handlers. +# + +# Element: invitation +sgml('<invitation>', "\\documentclass[]{article}\n" . + "\\usepackage{invitation}\n" . + "\\begin{document}\n"); +sgml('</invitation>', "\\end{document}\n"); + +# Element: front +sgml('<front>', "\\begin{Front}\n"); +sgml('</front>', "\\end{Front}\n"); + +# Element: to +sgml('<to>', "\\To{"); +sgml('</to>', "}\n"); + +# Element: date +sgml('<date>', "\\Date{"); +sgml('</date>', "}\n"); + +# Element: where +sgml('<where>', "\\Where{"); +sgml('</where>', "}\n"); + +# Element: why +sgml('<why>', "\\Why{"); +sgml('</why>', "}\n"); + +# Element: body +sgml('<body>', "\\begin{Body}\n"); +sgml('</body>', "\\end{Body}\n"); + +# Element: par +sgml('<par>', "\\par "); +sgml('</par>', "\n"); + +# Element: emph +sgml('<emph>', "\\emph{"); +sgml('</emph>', "}"); + +# Element: back +sgml('<back>', "\\begin{Back}\n"); +sgml('</back>', "\\end{Back}\n"); + +# Element: signature +sgml('<signature>', "\\Signature{"); +sgml('</signature>', "}\n"); +# +# Default handlers +# +sgml('start_element',sub { die "Unknown element: " . $_[0]->name; }); +sgml('cdata',sub { output $_[0]; }); +sgml('re'," "); +sgml('pi',sub { die "Unknown processing instruction: " . $_[0]; }); +sgml('entity',sub { die "Unknown external entity: " . $_[0]->name; }); +sgml('conforming',''); + +1; |