<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">% 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
</pre></body></html>