diff options
author | Karl Berry <karl@freefriends.org> | 2009-05-17 23:08:29 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-05-17 23:08:29 +0000 |
commit | 2f305f1450f27dd46fc0fd6fb643d4f02698d232 (patch) | |
tree | fce88cedc560f92e9737a5e1b940cc2b5f7d20a4 /Master/texmf-dist/source/generic/vntex/vntex.dtx | |
parent | d55fb5f4e69704bf78bff29b085a40e9912a9907 (diff) |
vntex 3.1.8+ (13may09)
git-svn-id: svn://tug.org/texlive/trunk@13192 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/generic/vntex/vntex.dtx')
-rw-r--r-- | Master/texmf-dist/source/generic/vntex/vntex.dtx | 153 |
1 files changed, 153 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/generic/vntex/vntex.dtx b/Master/texmf-dist/source/generic/vntex/vntex.dtx new file mode 100644 index 00000000000..1456da4fc06 --- /dev/null +++ b/Master/texmf-dist/source/generic/vntex/vntex.dtx @@ -0,0 +1,153 @@ +% \iffalse +% +% 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. +% +% 1.2 2006/10/18 +% +% * Add option varioref. +% +% vntex 1.0 2009/03/14 +% +% * Add vntex.sty. +% +%<*dtx> +\newlinechar=`^^J +\message{^^J^^JThis file currently doesn't contain any documantation.} +\message{See 'vntex.tex' instead.^^J^^J} +\csname stop\endcsname\end +%</dtx> +% \begin{macrocode} +%% +%<vietnam>%% File 'vietnam.sty', generated from vntex.dtx'. +%<vntex>%% File 'vntex.sty', generated from 'vntex.dtx'. +%% +%% Copyright 2000-2005 Werner Lemberg <WL@gnu.org> and +%% Han The Thanh <HanTheThanh@gmail.com>. +%% +%% This file is part of vntex. +%% +%% This work may be distributed and/or modified under the conditions +%% of the LaTeX Project Public License, either version 1.3 of this +%% license or (at your option) any later version. +%% +%% The latest version of this license is +%% +%% http://www.latex-project.org/lppl.txt +%% +%% The current maintainers are Werner Lemberg, Han The Thanh, and +%% Reinhard Kotucha. +%% +%<vntex>%% vntex.sty is a variant of 'vietnam.sty' which is using UTF-8 +%<vntex>%% as the default input encoding. +%<vntex>%% vntex.sty had been proposed by Huynh Ky Anh <xKyAnh@gmail.com>. +%<vntex>%% +%<vietnam>\ProvidesPackage{vietnam}[2006/10/18 v1.2 support for Vietnamese] +%<vntex>\ProvidesPackage{vntex}[2009/03/14 v1.0 support for Vietnamese] +%<vntex|vietnam> +\RequirePackage{ifthen} + +\newboolean{optenc} +\newboolean{noinputenc} +\newboolean{nocaptions} +\newboolean{vnutf8} +\newboolean{varioref} + +\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}} +\DeclareOption{varioref}{\setboolean{varioref}{true}} +\DeclareOption{cmap}{\setboolean{cmap}{true}} + +\ProcessOptions + +\ifthenelse{\boolean{vnutf8}} + {\RequirePackage{ucs}} + {} + +\ifthenelse{\boolean{cmap}} + {\RequirePackage{ifpdf} + \ifpdf\RequirePackage{cmap}\fi} + {} + +\RequirePackage[T5]{fontenc} + +\ifthenelse{\boolean{varioref}} + {\RequirePackage{varioref-vi}} + {} + +\ifthenelse{\boolean{noinputenc}} + {\ifthenelse{\boolean{optenc}} +%<vietnam> {\PackageWarning{vietnam} +%<vntex> {\PackageWarning{vntex} + {Selected input encoding is ignored if `noinputenc' is used}} + {}} + {\ifthenelse{\boolean{optenc}} + {} +%<vietnam> {\PackageWarning{vietnam} +%<vietnam> {No input encoding specified, using VISCII as default} +%<vietnam> \PassOptionsToPackage{viscii}{inputenc}} +%<vntex> {\PackageWarning{vntex} +%<vntex> {No input encoding specified, using UTF-8 as default} +%<vntex> \PassOptionsToPackage{utf8}{inputenc}} + \RequirePackage{inputenc}} + +\ifthenelse{\boolean{nocaptions}} + {} + {\input{vncaps.tex} + \AtBeginDocument{\captionsvietnam + \datevietnam}} + +\frenchspacing + +\endinput +%</package> +% \end{macrocode} +\endinput +%% +%% End of file 'vntex.dtx'. |