summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bengali/beng.sty
blob: b8ed4a437c927b44739bc67cb0e7d6a7741e7498 (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
% LaTeX2e package for using "Bengali for TeX".
% ============================================
%
% Sample input .bn file:
%
% \documentclass{article}
% \usepackage{beng}
% \begin{document}
% {\bn baa"ngalaa bhaa.saa}
% \end{document}
%

%\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesFile{beng.sty}[2002/03/27 v2.0 Bengali for TeX]

% Error message for someone running LaTeX 2.09:

\@ifundefined{selectfont}
{\@latexerr{This style option may only be used with LaTeX2e.}\@eha
        \endinput}{}
%

\DeclareFontSubstitution{U}{bn}{m}{n}

% Define \bn macro:

\DeclareRobustCommand\bn{%
  \usefont{U}{bn}{m}{n}%
  \tolerance=10000\pretolerance=10000
  \emergencystretch=.2\hsize
  \baselineskip1.30\baselineskip }

% Define counter for Bengali numerals. This allows for the
% printing of page numbers in Bengali: \pagenumbering{beng}

%\def\@beng#1{{\bn\number #1}}

% Define macros to access characters in font:

\def\3#1z{{\char"#1}}
\def\4#1z{{\usefont{U}{bnx}{m}{n}#1}}

%\newcommand*\bnnum{\let\nstyle=d}
%\newcommand*\cmnum{\let\nstyle=r}
%\cmnum
%\DeclareRobustCommand*\rn[1]{\if\nstyle r{\rm #1}\else#1\fi}

%\def\@bengali#1{{\bn\number #1}} % allows counters in bengali
%\def\bengali#1{\expandafter\@bengali\csname c@#1\endcsname}

\endinput