summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bengali/beng.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/bengali/beng.sty')
-rw-r--r--Master/texmf-dist/tex/latex/bengali/beng.sty51
1 files changed, 51 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/bengali/beng.sty b/Master/texmf-dist/tex/latex/bengali/beng.sty
new file mode 100644
index 00000000000..b8ed4a437c9
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/bengali/beng.sty
@@ -0,0 +1,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