blob: fc840372110e9f8fb13b1c98b8bd7ad29f60faa8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
%% 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.
%
% 1.2 2006/10/18
%
% . Add option varioref.
%
\ProvidesPackage{vietnam}[2006/10/18 v1.2 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}}
\ProcessOptions
\ifthenelse{\boolean{vnutf8}}
{\RequirePackage{ucs}}
{}
\RequirePackage[T5]{fontenc}
\ifthenelse{\boolean{varioref}}
{\RequirePackage{varioref-vi}}
{}
\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'.
|