summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/vntex/vietnam.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-13 00:11:07 +0000
committerKarl Berry <karl@freefriends.org>2006-01-13 00:11:07 +0000
commit0f14293bc34ef7c1c902b00f6a2f6c1cb5e7a966 (patch)
tree85074a0e03e3b42c8806a463b4d8c42237087763 /Master/texmf-dist/tex/latex/vntex/vietnam.sty
parent799f98e6621cc3c0b6b90bfafa709a11da49b1be (diff)
vntex
git-svn-id: svn://tug.org/texlive/trunk@1443 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/vntex/vietnam.sty')
-rw-r--r--Master/texmf-dist/tex/latex/vntex/vietnam.sty92
1 files changed, 92 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/vntex/vietnam.sty b/Master/texmf-dist/tex/latex/vntex/vietnam.sty
new file mode 100644
index 00000000000..bd35b939eb4
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/vntex/vietnam.sty
@@ -0,0 +1,92 @@
+%% Copyright 2000-2005 Werner Lemberg <wl@gnu.org> and
+%% Han The Thanh <hanthethanh@gmx.net>.
+%% This file is part of vntex. License: LPPL, version 1.3 or newer,
+%% according to http://www.latex-project.org/lppl.txt
+%%
+%
+% 1.0 2000/01/27
+%
+% Initial release.
+%
+% post 1.0 ?
+%
+% . Require `ifthen' package.
+% . Don't require `t5' package.
+% . New options `mviscii', `noinputenc', `nocaptions', `utf8', and
+% `utf8x'.
+% . Don't define \prefacename and friends but include vncaps.tex (if
+% `nocaptions' isn't set).
+%
+% 1.1 2005/05/22
+%
+% . Simplify logic for `utf8' and `utf8x' options.
+% . Add copyright message and history.
+% . Use \endlinechar to avoid `%' at end of line.
+% . Fix package message.
+% . Some other minor clean-up.
+%
+
+\ProvidesPackage{vietnam}[2005/05/22 v1.1 support for Vietnamese]
+
+\RequirePackage{ifthen}
+
+\newboolean{optenc}
+\newboolean{noinputenc}
+\newboolean{nocaptions}
+\newboolean{vnutf8}
+
+\DeclareOption{viscii}
+ {\PassOptionsToPackage{viscii}{inputenc}
+ \setboolean{optenc}{true}}
+\DeclareOption{tcvn}
+ {\PassOptionsToPackage{tcvn}{inputenc}
+ \setboolean{optenc}{true}}
+\DeclareOption{vps}
+ {\PassOptionsToPackage{vps}{inputenc}
+ \setboolean{optenc}{true}}
+\DeclareOption{mviscii}
+ {\PassOptionsToPackage{mviscii}{inputenc}
+ \setboolean{optenc}{true}}
+\DeclareOption{noinputenc}
+ {\setboolean{noinputenc}{true}}
+\DeclareOption{nocaptions}
+ {\setboolean{nocaptions}{true}}
+\DeclareOption{utf8}
+ {\PassOptionsToPackage{utf8}{inputenc}
+ \setboolean{optenc}{true}}
+\DeclareOption{utf8x}
+ {\PassOptionsToPackage{utf8x}{inputenc}
+ \setboolean{optenc}{true}
+ \setboolean{vnutf8}{true}}
+
+\ProcessOptions
+
+\ifthenelse{\boolean{vnutf8}}
+ {\RequirePackage{ucs}}
+ {}
+
+\RequirePackage[T5]{fontenc}
+
+\ifthenelse{\boolean{noinputenc}}
+ {\ifthenelse{\boolean{optenc}}
+ {\PackageWarning{vietnam}
+ {Selected input encoding is ignored if `noinputenc' is used}}
+ {}}
+ {\ifthenelse{\boolean{optenc}}
+ {}
+ {\PackageWarning{vietnam}
+ {No input encoding specified, using VISCII as default}
+ \PassOptionsToPackage{viscii}{inputenc}}
+ \RequirePackage{inputenc}}
+
+\ifthenelse{\boolean{nocaptions}}
+ {}
+ {\input{vncaps.tex}
+ \AtBeginDocument{\captionsvietnam
+ \datevietnam}}
+
+\frenchspacing
+
+\endinput
+%%
+%% End of file `vietnam.sty'.