blob: 496a310d3cfc543e164063f30b6f00bf681b0168 (
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% File: manju.sty
% Author: Oliver Corff
% Date: April 1st, 2001
% Version: 0.2
% Copyright: Ulaanbaatar, Beijing, Berlin
%
% Description: The manju style file providing access to all
% commands necessary for writing Manju.
%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ------------------- identification -------------------
%
\ifx\VersionDate\undefined
\newcommand{\VersionDate}{2001/04/01}
\fi
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{manju}[\VersionDate\ Manju for LaTeX2e]
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ------------------- initial code -------------------
%
\let\orgv\v
\let\orgd\=
%
{\gdef\@sv#1{\expandafter\ifx\csname #1\endcsname\s s'\else\orgv#1 \fi}}
{\gdef\@sd#1{\expandafter\ifx\csname #1\endcsname\u v\else\orgd#1 \fi}}
%
%
% One variable needed later:
%
\newif\ifRtoL
%
\ifx\SetDocumentEncodingNeutral\undefined
\newcommand{\SetDocumentEncodingNeutral}{%
\renewcommand{\encodingdefault}{T1}
\fontencoding{T1}\selectfont
% \DeclareErrorFont{T1}{cmr}{m}{n}{10}
}
\fi
%
\newcommand{\SetDocumentEncodingLigBithe}{%
\renewcommand{\encodingdefault}{LMA}
\fontencoding{LMA}
\fontfamily{\ifRtoL bthv\else bthh\fi}\selectfont
%\DeclareErrorFont{LMA}{bthhsm}{m}{n}{10}
}
%
%
% Finally we define the captions:
%
%\input bithe.def % Future provision!
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ------------------- declaration of options -------------------
%
\DeclareOption{english}{\captionsenglish\language0 }
%\renewcommand{\today}{\EnglishToday}}
\DeclareOption{bithe}{%\SetBithe
%\captionsbithe
%\renewcommand{\today}{\BitheToday}
}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ------------------- execution of options -------------------
%
\ProcessOptions
%
\RequirePackage[LMA,T1]{fontenc}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ------------------- package loading -------------------
%
\RequirePackage{diagnose}
%
\ifx\c@PostScriptAvailable\undefined
\PackageDiagnostics{rotating.sty}
{PostScriptAvailable}
{PostScript Support Available!}
{No Vertical Text without PostScript Support!}
\fi
%
\ifnum\thePostScriptAvailable=1
\RequirePackage{rotating}
\fi
%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ------------------- main code -------------------
%
% \ManjuTeX creates the ManjuTeX logo
%
\newcommand{\ManjuTeX}{Manju\TeX}
%
%
% Language switching commands; influence both
% document conventions and document encoding
%
\renewcommand{\selectlanguage}[1]{%
\ifthenelse{\equal{#1}{bithe}}{%
\SetDocumentEncodingBithe
\captionsbithe}{}
\ifthenelse{\equal{#1}{english}}{%
\SetDocumentEncodingNeutral
\language0
\captionsenglish}{}
}
%
\newcommand{\bthh}{
\fontencoding{LMA}\fontfamily{bthh}\selectfont
}
\newcommand{\bthv}{
\fontencoding{LMA}\fontfamily{bthv}\selectfont
}
%
\newcommand{\bth}{%
\let\v\@sv \let\=\@sd
\ifRtoL \bthv \else \bthh \fi }
%
%
% Some definitions for writing transliterated
% texts, useful mainly in Latin enviroments:
%
\DeclareTextCommand{\UU}{T1}{\={U}}
\DeclareTextCommand{\uu}{T1}{\={u}}
\DeclareTextCommand{\sh}{T1}{\char"0B2 }
\DeclareTextCommand{\Sh}{T1}{\char"092 }
%
%
% PostScript detection; necessary for user-friendly
% execution of vertical capsules
%
% \c@PostScriptAvailable=0 % Package testing
\ifx\bosoo\undefined
\ifthenelse{\value{PostScriptAvailable}=1}{%
\newcommand{\bosoo}[1]{%
\raisebox{2.25ex}{%
\begin{turn}{270}%
#1%
\end{turn}}}}
{\newcommand{\bosoo}[1]{#1}}
\fi
%
\newcommand{\mabosoo}[1]{\bosoo{{\bth #1}}}
%
% In any case, start with a clean document environment!
%
\SetDocumentEncodingNeutral
% \setlanguage=255
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% The \packagename\ package ends here.
|