summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorsno <sno@pkgsrc.org>2009-05-17 10:24:53 +0000
committersno <sno@pkgsrc.org>2009-05-17 10:24:53 +0000
commit0f679909f9ea3c13c5b3f85a91775a128a0eb848 (patch)
tree9e192f4f41fb70e3d18564958f80fb7f87e6a4c5 /print
parent09cfb98d07cc687d870c888131399633ec848c7f (diff)
downloadpkgsrc-0f679909f9ea3c13c5b3f85a91775a128a0eb848.tar.gz
Importing package for perl module LaTeX::Encode as a dependency of upcoming
LaTeX::Table and Template::Plugin::Latex packages. This module provides a function to encode text that is to be formatted with LaTeX. It encodes characters that are special to LaTeX or that are represented in LaTeX by LaTeX commands.
Diffstat (limited to 'print')
-rw-r--r--print/p5-LaTeX-Encode/DESCR18
-rw-r--r--print/p5-LaTeX-Encode/Makefile20
-rw-r--r--print/p5-LaTeX-Encode/distinfo5
3 files changed, 43 insertions, 0 deletions
diff --git a/print/p5-LaTeX-Encode/DESCR b/print/p5-LaTeX-Encode/DESCR
new file mode 100644
index 00000000000..018b09e7863
--- /dev/null
+++ b/print/p5-LaTeX-Encode/DESCR
@@ -0,0 +1,18 @@
+This module provides a function to encode text that is to be formatted with
+LaTeX. It encodes characters that are special to LaTeX or that are
+represented in LaTeX by LaTeX commands.
+
+The special characters are: \ (command character), { (open group), }
+(end group), & (table column separator), # (parameter specifier),
+% (comment character), _ (subscript), ^ (superscript),
+~ (non-breakable space), $ (mathematics mode).
+
+Note that some of the LaTeX commands for characters are defined in the LaTeX
+textcomp package. If your text includes such characters, you will need to
+include the following lines in the preamble to your LaTeX document.
+
+ \usepackage[T1]{fontenc}
+ \usepackage{textcomp}
+
+The function is useful for encoding data that is interpolated into LaTeX
+document templates, say with Template::Plugin::Latex (shameless plug!).
diff --git a/print/p5-LaTeX-Encode/Makefile b/print/p5-LaTeX-Encode/Makefile
new file mode 100644
index 00000000000..d7690adf02f
--- /dev/null
+++ b/print/p5-LaTeX-Encode/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/05/17 10:24:53 sno Exp $
+#
+
+DISTNAME= LaTeX-Encode-0.03
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= textproc
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=LaTeX/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://search.cpan.org/dist/LaTeX-Encode/
+COMMENT= Encode characters for LaTeX formatting
+LICENSE= gnu-gpl-v2 # OR artistic
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+PERL5_PACKLIST= auto/LaTeX/Encode/.packlist
+REPLACE_PERL+= scripts/build-character-table scripts/format-encoding-reference
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/print/p5-LaTeX-Encode/distinfo b/print/p5-LaTeX-Encode/distinfo
new file mode 100644
index 00000000000..661af7c305e
--- /dev/null
+++ b/print/p5-LaTeX-Encode/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/05/17 10:24:53 sno Exp $
+
+SHA1 (LaTeX-Encode-0.03.tar.gz) = 03d095b12bc425298fcb56cef5f0a2007cfc515b
+RMD160 (LaTeX-Encode-0.03.tar.gz) = e1dd766e6e2adf956b9c9c0eabe659c2dcab0671
+Size (LaTeX-Encode-0.03.tar.gz) = 22547 bytes