From 2f305f1450f27dd46fc0fd6fb643d4f02698d232 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 17 May 2009 23:08:29 +0000 Subject: vntex 3.1.8+ (13may09) git-svn-id: svn://tug.org/texlive/trunk@13192 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/vntex/t5phv.fd | 18 +++-- Master/texmf-dist/tex/latex/vntex/vietnam.sty | 56 +++++++-------- Master/texmf-dist/tex/latex/vntex/vntex.sty | 99 +++++++++++++++++++++++++++ 3 files changed, 135 insertions(+), 38 deletions(-) create mode 100644 Master/texmf-dist/tex/latex/vntex/vntex.sty (limited to 'Master/texmf-dist/tex/latex/vntex') diff --git a/Master/texmf-dist/tex/latex/vntex/t5phv.fd b/Master/texmf-dist/tex/latex/vntex/t5phv.fd index 21254f4896b..4281bba8e5a 100644 --- a/Master/texmf-dist/tex/latex/vntex/t5phv.fd +++ b/Master/texmf-dist/tex/latex/vntex/t5phv.fd @@ -11,30 +11,36 @@ \ProvidesFile{t5uhv.fd} [2005/08/24 Fontinst v1.929 font definitions for T5/phv.] +\expandafter\ifx\csname Hv@scale\endcsname\relax + \let\Hv@@scale\@empty +\else + \edef\Hv@@scale{s*[\csname Hv@scale\endcsname]}% +\fi + \DeclareFontFamily{T5}{phv}{} \DeclareFontShape{T5}{phv}{m}{n}{ - <-> uhvr8v + <-> \Hv@@scale uhvr8v }{} \DeclareFontShape{T5}{phv}{m}{sl}{ - <-> uhvro8v + <-> \Hv@@scale uhvro8v }{} \DeclareFontShape{T5}{phv}{b}{n}{ - <-> uhvb8v + <-> \Hv@@scale uhvb8v }{} \DeclareFontShape{T5}{phv}{b}{sl}{ - <-> uhvbo8v + <-> \Hv@@scale uhvbo8v }{} \DeclareFontShape{T5}{phv}{m}{sc}{ - <-> uhvrc8v + <-> \Hv@@scale uhvrc8v }{} \DeclareFontShape{T5}{phv}{b}{sc}{ - <-> uhvbc8v + <-> \Hv@@scale uhvbc8v }{} \DeclareFontShape{T5}{phv}{m}{it}{<->ssub * phv/m/sl}{} diff --git a/Master/texmf-dist/tex/latex/vntex/vietnam.sty b/Master/texmf-dist/tex/latex/vntex/vietnam.sty index fc840372110..f02d87707db 100644 --- a/Master/texmf-dist/tex/latex/vntex/vietnam.sty +++ b/Master/texmf-dist/tex/latex/vntex/vietnam.sty @@ -1,35 +1,22 @@ -%% Copyright 2000-2005 Werner Lemberg and -%% Han The Thanh . -%% 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. -% -% 1.2 2006/10/18 -% -% . Add option varioref. -% - +%% File 'vietnam.sty', generated from vntex.dtx'. +%% +%% Copyright 2000-2005 Werner Lemberg and +%% Han The Thanh . +%% +%% 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. +%% \ProvidesPackage{vietnam}[2006/10/18 v1.2 support for Vietnamese] \RequirePackage{ifthen} @@ -64,7 +51,7 @@ \setboolean{optenc}{true} \setboolean{vnutf8}{true}} \DeclareOption{varioref}{\setboolean{varioref}{true}} - +\DeclareOption{cmap}{\setboolean{cmap}{true}} \ProcessOptions @@ -72,6 +59,11 @@ {\RequirePackage{ucs}} {} +\ifthenelse{\boolean{cmap}} + {\RequirePackage{ifpdf} + \ifpdf\RequirePackage{cmap}\fi} + {} + \RequirePackage[T5]{fontenc} \ifthenelse{\boolean{varioref}} diff --git a/Master/texmf-dist/tex/latex/vntex/vntex.sty b/Master/texmf-dist/tex/latex/vntex/vntex.sty new file mode 100644 index 00000000000..4aeb2ab6560 --- /dev/null +++ b/Master/texmf-dist/tex/latex/vntex/vntex.sty @@ -0,0 +1,99 @@ +%% +%% File 'vntex.sty', generated from 'vntex.dtx'. +%% +%% Copyright 2000-2005 Werner Lemberg and +%% Han The Thanh . +%% +%% 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.sty is a variant of 'vietnam.sty' which is using UTF-8 +%% as the default input encoding. +%% vntex.sty had been proposed by Huynh Ky Anh . +%% +\ProvidesPackage{vntex}[2009/03/14 v1.0 support for Vietnamese] + +\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}} + {\PackageWarning{vntex} + {Selected input encoding is ignored if `noinputenc' is used}} + {}} + {\ifthenelse{\boolean{optenc}} + {} + {\PackageWarning{vntex} + {No input encoding specified, using UTF-8 as default} + \PassOptionsToPackage{utf8}{inputenc}} + \RequirePackage{inputenc}} + +\ifthenelse{\boolean{nocaptions}} + {} + {\input{vncaps.tex} + \AtBeginDocument{\captionsvietnam + \datevietnam}} + +\frenchspacing + +\endinput +%% +%% End of file `vntex.sty'. -- cgit v1.2.3