diff options
author | Karl Berry <karl@freefriends.org> | 2016-10-31 23:05:15 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-10-31 23:05:15 +0000 |
commit | a8b3f517a792da63b3a701e7a4890f024b2c8966 (patch) | |
tree | 62c458904fa1cc1aa2b42f73b3d2f7e932b8f8f2 | |
parent | 9ccc9c3898aab84f54fd9f05204a8cd6d2a134f4 (diff) |
rm banglatex, renamed to latexbangla
git-svn-id: svn://tug.org/texlive/trunk@42408 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/banglatex/README | 23 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/banglatex/banglatex.pdf | bin | 143874 -> 0 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/banglatex/banglatex.tex | 428 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/banglatex/banglatex.sty | 240 | ||||
-rwxr-xr-x | Master/tlpkg/bin/tlpkg-ctan-check | 4 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/banglatex.tlpsrc | 0 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/collection-langindic.tlpsrc | 2 |
7 files changed, 3 insertions, 694 deletions
diff --git a/Master/texmf-dist/doc/latex/banglatex/README b/Master/texmf-dist/doc/latex/banglatex/README deleted file mode 100644 index 6a1026316cd..00000000000 --- a/Master/texmf-dist/doc/latex/banglatex/README +++ /dev/null @@ -1,23 +0,0 @@ -% ---------------------------------------------------------------- -% BanglaTeX package - Enhanced LaTeX integration for Bangla -% E-mail: adib.hasan8@gmail.com -% Released under the LaTeX Project Public License v1.3c or later -% See http://www.latex-project.org/lppl.txt -% ---------------------------------------------------------------- -% This packgage symplifies the process of writing Bangla in LaTeX and -% addresses most of the common typesetting issues. Additional features -% include automated transition between languages and many more. (See -% examples) The user can just type in usual LaTeX syntax and expect -% everything to work as it should. -% ------------------------------------------------------------------ -% Copyright (C) 2016 by Adib Hasan adib.hasan8@gmail.com - -% This work may be distributed and/or modified under the -% conditions of the LaTeX Project Public License (LPPL), either -% version 1.3c of this license or (at your option) any later -% version. The latest version of this license is in the file: - -% http://www.latex-project.org/lppl.txt - -% This work is "maintained" (as per LPPL maintenance status) by -% Adib Hasan diff --git a/Master/texmf-dist/doc/latex/banglatex/banglatex.pdf b/Master/texmf-dist/doc/latex/banglatex/banglatex.pdf Binary files differdeleted file mode 100644 index 371ee65f2a9..00000000000 --- a/Master/texmf-dist/doc/latex/banglatex/banglatex.pdf +++ /dev/null diff --git a/Master/texmf-dist/doc/latex/banglatex/banglatex.tex b/Master/texmf-dist/doc/latex/banglatex/banglatex.tex deleted file mode 100644 index 97c66b1b7a3..00000000000 --- a/Master/texmf-dist/doc/latex/banglatex/banglatex.tex +++ /dev/null @@ -1,428 +0,0 @@ -\documentclass[11pt]{article} - -\usepackage[banglamainfont=Kalpurush, banglattfont=Siyam Rupali, feature=0, changecounternumbering=0]{banglatex} -\usepackage[top=8em, left=10em, right=10em, bottom=8em]{geometry} -\usepackage{verbatim,spverbatim, hyperref, tcolorbox, hologo, enumerate, amsthm, xpatch, amsfonts, amssymb, amsmath, enumerate, chngcntr, pgffor} -\hypersetup{hidelinks=yes} -\tcbuselibrary{breakable} - -\def\fileversion{v0.1} -\def\filedate{18 October, 2016} -\def\banglatex{\textsc{Bangla}\hologo{TeX}} -\newcommand{\pkn}[1]{\texttt{#1}} -\addto\captionsbengali{% - \renewcommand{\contentsname}{Table of Contents}% -} - -\makeatletter -%making the word "proof" in proof env. bold and adding a : after it. -\xpatchcmd{\proof}{\itshape}{\bfseries}{}{} -\xpatchcmd{\proof}{\@addpunct{.}}{\@addpunct{:}}{}{} -\linespread{1.1} -\def\@banglanumber#1{\expandafter\@@banglanumber\number#1\@nil} -\def\@@banglanumber#1{\ifx#1\@nil -\else\char\numexpr#1+"09E6\relax\expandafter\@@banglanumber\fi} -\def\tobangla#1{\expandafter\@banglanumber\csname c@#1\endcsname} -\def\numtobangla#1{\@@banglanumber#1\@nil}\addto\captionsbengali{\renewcommand\proofname{\bfseries প্রমাণ}} -\newenvironment{solution}{\proof[\bfseries সমাধান]}{\endproof} - -\newtheoremstyle{custom}% name -{3pt}% space above -{3pt}% space below -{\rm}% body font -{}% indent amount -{\bfseries}% theorem head font -{:}% punctuation after theorem head -{.5em}% space after theorem head -{}% theorem head spec -\theoremstyle{custom} -\newtheorem{problem}{\bfseries সমস্যা} -\renewcommand{\theequation}{\thesection.\tobangla{equation}} -\renewcommand{\theproblem}{\tobangla{problem}} -\makeatother - - - - -\title{The \banglatex~Package\\ -Enhanced \LaTeX\ integration for Bangla} -\author{Adib Hasan\\ -\texttt{adib.hasan8@gmail.com}} -\date{\filedate\qquad\fileversion} - -\begin{document} -\maketitle -\tableofcontents -\pagebreak -\section{Introduction} -Including any unicode text in \hologo{LaTeX} has become very simple thanks to the \hologo{XeLaTeX} engine. To do so, the user only has to use the {\tt fontspec} package and load an appropriate font. This is the standard technique for including multiple languages in one document. The {\tt polyglossia} package even facilitates the process for many languages by providing refined controls. Unfortunately, {\tt polyglossia}'s support for Bangla is too limited to produce good quality Bangla documents. - -So, I decided to address all the common Bangla typesetting problems in this package, \banglatex. I have also added useful functionalities to it such as, automated transition between Bangla and English (by exploiting \hologo{XeTeX}'s internal character class feature) and many more. -\section{How to use} -\subsection{Sample Code} -Here is the simplest example for \banglatex: -\begin{tcolorbox}[breakable] -\begin{verbatim} -\documentclass{article} -\usepackage[banglamainfont=Kalpurush, - banglattfont=Siyam Rupali - ]{banglatex} -\begin{document} -পিথাগোরাস(Pythagoras)-এর উপপাদ্যটি হল,\\ -\textit{সমকোণী ত্রিভুজের অতিভুজের উপর অঙ্কিত বর্গক্ষেত্রের ক্ষেত্রফল অপর দুই বাহুর -উপর অঙ্কিত বর্গক্ষেত্রের ক্ষেত্রফলের সমষ্টির সমান।}\\ -অর্থাৎ কোন সমকোণী ত্রিভুজের অতিভুজ $c$ এবং অপর দুই বাহু $a$ এবং $b$ হলে, -\[c^2=a^2+b^2\] -লক্ষ্য করুন, এখন পর্যন্ত টেক্সট প্রদর্শনের জন্য \textbf{কালপুরুষ} ফন্ট ব্যবহৃত হয়েছে।\\ -\texttt{এবার, টেলিটাইপ(Teletype) টেক্সট প্রদর্শনের জন্য \textbf{সিয়াম রূপালী} -ফন্ট ব্যবহৃত হল।}\\ -পুনরায় টেক্সট প্রদর্শনের জন্য \textbf{কালপুরুষ} ফন্ট ব্যবহৃত হচ্ছে। -\end{document} -\end{verbatim} -\end{tcolorbox} -\begin{tcolorbox}[breakable, colback=white] -পিথাগোরাস(Pythagoras)-এর উপপাদ্যটি হল,\\ -\textit{সমকোণী ত্রিভুজের অতিভুজের উপর অঙ্কিত বর্গক্ষেত্রের ক্ষেত্রফল অপর দুই বাহুর -উপর অঙ্কিত বর্গক্ষেত্রের ক্ষেত্রফলের সমষ্টির সমান।}\\ -অর্থাৎ কোন সমকোণী ত্রিভুজের অতিভুজ $c$ এবং অপর দুই বাহু $a$ এবং $b$ হলে, -\[c^2=a^2+b^2\] -লক্ষ্য করুন, এখন পর্যন্ত টেক্সট প্রদর্শনের জন্য \textbf{কালপুরুষ} ফন্ট ব্যবহৃত হয়েছে।\\ -\texttt{এবার, টেলিটাইপ(Teletype) টেক্সট প্রদর্শনের জন্য \textbf{সিয়াম রূপালী} -ফন্ট ব্যবহৃত হল।}\\ -পুনরায় টেক্সট প্রদর্শনের জন্য \textbf{কালপুরুষ} ফন্ট ব্যবহৃত হচ্ছে। -\end{tcolorbox} -As you see, no special command was required to switch language or to use any other facility. With \banglatex, you don't need to learn a hundred new commands to type Bangla. You simply type normal \hologo{LaTeX} syntax and expect everything to work as it should. - -\banglatex~does have some limitations, however. (Most of which are due to my lack of time to implement solutions.) So, do take a look at the known issues section. -\section{Functionalities} -\subsection{Package options} -Package options are listed below:\vspace*{2mm} -\begin{itemize} -\renewcommand\labelitemi{} - -\item\noindent\texttt{banglamainfont}\textbf{(Required)}\\ -Sets the default Bangla font for the document, but does not affect the Latin characters. (They are rendered by the \hologo{LaTeX} default Latin Modern font.) \banglatex will automatically fake bold, italic and bolditalic variants for \pkn{banglamainfont} if no font from the appropriate subfamily is found.\\ - -\item\texttt{banglattfont}\textbf{(Required)}\\ -The default Teletype Bangla font. (Again, Latin characters are rendered by the \hologo{LaTeX} default Latin Modern Teletype.) \banglatex~will also fake bold, italic and bolditalic variants automatically for this font if no font from the appropriate subfamily is found.\\ - -\item\texttt{feature}(Optional, default=1)(\texttt{0->none, 1->recommended, 2->full})\\ -To which extent \banglatex~should enable additional features. For \pkn{feature=1}, the following features will be enabled: -\begin{enumerate} -\item the following packages are loaded: \pkn{titlesec, amsthm, xpatch, amsfonts, amssymb, amsmath, enumerate, chngcntr}. -\item a ``Dot" is added after chapter, section, subsection etc. numbers. -\item \textit{প্রমাণ.} is replaced by \textbf{প্রমাণ:} in \pkn{proof} environment. -\item Line height is set to 110\%. -\item A new command \verb|\tobangla{counter name}| is defined. (See commands subsection for description) -\item \pkn{example, problem, solution, theorem} environments are defined. The counter associated with \texttt{theorem} environment resets in every section. -\item The counters associated with \pkn{enumerate, footnote} environments are converted to Bangla. -\end{enumerate} -\begin{tcolorbox}[breakable] -\begin{verbatim} -\usepackage[banglamainfont=Kalpurush, - banglattfont=Siyam Rupali, - ]{banglatex} -\begin{document} -\begin{problem} -$p$ একটি মৌলিক সংখ্যা এবং $n$ একটি স্বাভাবিক সংখ্যা হলে প্রমাণ কর যে -$p|n^p-n$ -\end{problem} -\begin{proof} -$p|n$ হলে এটি স্বাভাবিকভাবেই সত্যি। অন্যথায়, $\{n,2n,\ldots,(p-1)n\}$ - একটি পূর্ণাঙ্গ রেসিডিও ক্লাস তৈরি করে। যার ফলে... -\end{proof} -\begin{problem} -$a$ এবং $n$ পরস্পর সহমৌলিক স্বাভাবিক সংখ্যা হলে দেখাও যে $a^{\phi(n)} -\equiv 1\pmod n$ -\end{problem} -\end{document} -\end{verbatim} -\end{tcolorbox} -\begin{tcolorbox}[breakable, colback=white] -\begin{problem} -$p$ একটি মৌলিক সংখ্যা এবং $n$ একটি স্বাভাবিক সংখ্যা হলে প্রমাণ কর যে $p|n^p-n$ -\end{problem} -\begin{proof} -$p|n$ হলে এটি স্বাভাবিকভাবেই সত্যি। অন্যথায়, $\{n,2n,\ldots,(p-1)n\}$ একটি -পূর্ণাঙ্গ রেসিডিও ক্লাস তৈরি করে। যার ফলে... -\end{proof} -\begin{problem} -$a$ এবং $n$ পরস্পর সহমৌলিক স্বাভাবিক সংখ্যা হলে দেখাও যে $a^{\phi(n)}\equiv 1\pmod n$ -\end{problem} -\end{tcolorbox} - -If \pkn{feature} is set to 2, the following additional features will be enabled: -\begin{enumerate} -\item \texttt{corollary, property, hint, remarks} environments. The counters of \texttt{corollary} and \texttt{property} environment reset in every section. \pkn{hint} and \pkn{remarks} environments have no counter. -\item Automated parentheses around equation references, activated by the \pkn{autoref} command of the \pkn{hyperref} package. -\end{enumerate} -\item\pkn{changecounternumbering}(Optional, default=1)\\ -The \pkn{polyglossia} package does have an option to convert some important counters (like those of chapters and sections) to Bangla. This option asks whether \banglatex should enable that option. By default, it is set to be enabled. You may consider disabling it if your document mostly contains English text. -\end{itemize} -\subsection{Commands} -\begin{itemize} -\renewcommand\labelitemi\relax -\item\verb|\tobangla{counter name}|\\ -Converts a counter to Bangla. -\begin{tcolorbox}[breakable] -\begin{verbatim} -\newcounter{test} -A new counter `test' is defined.\\ -test is in English: \thetest\\ -\renewcommand{\thetest}{\tobangla{test}} -test is now in Bangla: \thetest\\ -\stepcounter{test} -Incrementing test: \thetest\\ -\renewcommand{\thetest}{\arabic{test}} -test is again in English: \thetest -\end{verbatim} -\end{tcolorbox} -\begin{tcolorbox}[breakable, colback=white] -\newcounter{test} -A new counter `test' is defined.\\ -test is in English: \thetest\\ -\renewcommand{\thetest}{\tobangla{test}} -test is now in Bangla: \thetest\\ -\stepcounter{test} -Incrementing test: \thetest\\ -\renewcommand{\thetest}{\arabic{test}} -test is again in English: \thetest -\end{tcolorbox} -\item\verb|\numtobangla{number}|\\ -same as \verb|\tobangla|. It converts an English number to Bangla. -\end{itemize} -\section{Known Issues} -You might face the following issues for this (v 0.1) release of \banglatex. I hope to fix them in the upcoming releases. If you have any question or suggestion, don't hesitate to contact me. -\begin{enumerate} -\item You \textit{must} define both {\tt banglamainfont} and {\tt banglattfont} even if you use only one or (possibly) none of them in the document. -\item A font can't be both {\tt banglamainfont} and {\tt banglattfont} due to limitation in the internal logics. Until I fix it, you can set Kalpurush and SolaimanLipi as your main and tt fonts since they look identical. -\item The whitespace character in many Bangla fonts is too short for \hologo{LaTeX}. This can't be `fixed', since it is purely a font specific issue. Nevertheless, I have manually reset relative whitespace lengths for ``Kalpurush'', ``SolaimanLipi'' and ``Siyam Rupali'' (precisely these names without the quotes). So, for the best results, you should consider installing these fonts before using \banglatex. (Other Bangla fonts \textit{will} work with \banglatex, but their interword spacings might be unsatisfactory.) My personal choice for main/tt font combination is Kalpurush/Siyam Rupali. -\item Package \texttt{listings} does not work with Teletype texts. -\end{enumerate} -\section{Implementation} -Because this package depends on \pkn{ucharclasses} (which itself depends on XeTeX's \pkn{interchar classes}). -\begin{tcolorbox}[breakable] -\begin{verbatim} -\RequirePackage{polyglossia, fontspec, xkeyval, ifxetex} -\RequireXeTeX -\end{verbatim} -\end{tcolorbox} -The following Bangla fonts are fully supported. (Other Bangla fonts \textit{are} supported, but some issues might arise with whitespaces. -\begin{tcolorbox}[breakable] -\begin{verbatim} -\def\@@Kalpurush{Kalpurush} -\def\@Kalpurush#1{ - \ifcase#1{Kalpurush} %name - \or{MatchLowercase} %Scale - \or{1.1} %main WordSpace - \or{1.5} %tt WordSpace - \else\fi -} -\def\@@SiyamRupali{SiyamRupali} -\def\@SiyamRupali#1{ - \ifcase#1{SiyamRupali} %name - \or{0.8} %Scale - \or{1.2} %main WordSpace - \or{1.8} %tt WordSpace - \else\fi -} -\def\@@SolaimanLipi{SolaimanLipi} -\def\@SolaimanLipi#1{ - \ifcase#1{SolaimanLipi} %name - \or{0.9} %Scale - \or{1.5} %main WordSpace - \or{2.1} %tt WordSpace - \else\fi -} -\end{verbatim} -\end{tcolorbox} -Now declaring options. -\begin{tcolorbox}[breakable] -\begin{verbatim} -\DeclareOptionX{banglamainfont}{% - \if\relax\detokenize{#1}\relax - \errmessage{Bangla main font not defined} - \else - \def\bm@name{#1} - \def\bm@@name{bmfont} - \bm@init{\bm@name} - \fi -} -\DeclareOptionX{banglattfont}{% - \if\relax\detokenize{#1}\relax - \errmessage{Bangla tt font not defined} - \else - \def\btt@name{#1} - \def\btt@@name{bttfont} - \btt@init{\btt@name} - \fi -} - -\newif\if@none -\newif\if@recom -\newif\if@full -\@recomtrue -\DeclareOptionX{feature}{ - \if\relax\detokenize{#1}\relax\fi - \ifcase#1 - \@recomfalse - \@nonetrue - \or\or\@fulltrue\fi -} - -\newif\ifchange@num -\change@numtrue -\DeclareOptionX{changecounternumbering}{ - \if\relax\detokenize{#1}\relax\fi - \ifcase#1\change@numfalse\fi -} -\end{verbatim} -\end{tcolorbox} -Now initialize \pkn{banglamain} and \pkn{banglatt} fonts. -\begin{tcolorbox}[breakable] -\begin{verbatim} -\def\bm@init#1{ - \ifx#1\@@Kalpurush - \def\bm@scale{\@Kalpurush{1}} - \def\bm@wordspace{\@Kalpurush{2}} - \else\ifx#1\@@SiyamRupali - \def\bm@scale{\@SiyamRupali{1}} - \def\bm@wordspace{\@SiyamRupali{2}} - \else\ifx#1\@@SolaimanLipi - \def\bm@scale{\@SolaimanLipi{1}} - \def\bm@wordspace{\@SolaimanLipi{2}} - \else - \def\bm@scale{MatchLowercase} - \def\bm@wordspace{1} - \fi\fi\fi -} -\def\btt@init#1{ - \ifx#1\@@Kalpurush - \def\btt@scale{\@Kalpurush{1}} - \def\btt@wordspace{\@Kalpurush{3}} - \else\ifx#1\@@SiyamRupali - \def\btt@scale{\@SiyamRupali{1}} - \def\btt@wordspace{\@SiyamRupali{3}} - \else\ifx#1\@@SolaimanLipi - \def\btt@scale{\@SolaimanLipi{1}} - \def\btt@wordspace{\@SolaimanLipi{3}} - \else - \def\btt@scale{MatchLowercase} - \def\btt@wordspace{1.2} - \fi\fi\fi -} - -\ProcessOptionsX\relax -\end{verbatim} -\end{tcolorbox} -Automating transition between Bangla and English. -\begin{tcolorbox}[breakable] -\begin{verbatim} -\ifchange@num - \setmainlanguage[changecounternumbering=true]{bengali} -\else - \setmainlanguage{bengali} -\fi - -\newfontfamily\bengalifont[% - Script=Bengali,% - Scale=\bm@scale,% - NFSSFamily=\bm@@name,% - WordSpace=\bm@wordspace,% - AutoFakeSlant, - AutoFakeBold - ]{\bm@name} - -\newfontfamily\bengalifonttt[% - Script=Bengali,% - Scale=\btt@scale,% - NFSSFamily=\btt@@name, - WordSpace=\btt@wordspace,% - AutoFakeSlant, - AutoFakeBold - ]{\btt@name} - -\newenvironment{latin} -{\fontencoding{OT1}\ifx\f@family\btt@@name\fontfamily{lmtt} -\else\fontfamily{lmr}\fi\selectfont}\relax -\end{verbatim} -\end{tcolorbox} -Devanagari is required since Bangla fullstop dari ("0964) is in Devanagari block of Unicode -\begin{tcolorbox}[breakable] -\begin{verbatim} -\RequirePackage[Latin, Bengali, Devanagari]{ucharclasses} -\setTransitionsForLatin{\begin{latin}}{\end{latin}} -\end{verbatim} -\end{tcolorbox} -if \pkn{feature=0} is provided no other modifications will be enabled. However, from my personal experience, I find the following modifications to be useful. (the default for feature option is 1, which enables the recommended modifications). -\begin{tcolorbox}[breakable] -\begin{verbatim} -\if@recom - \RequirePackage{titlesec, amsthm, xpatch, amsfonts, - amssymb, amsmath, enumerate, chngcntr} - \titlelabel{\thetitle.\enspace} - - \xpatchcmd{\proof}{\itshape}{\bfseries}{}{} - \xpatchcmd{\proof}{\@addpunct{.}}{\@addpunct{:}}{}{} - - \counterwithin{equation}{section} - - \linespread{1.1} - - \def\@banglanumber#1{\expandafter\@@banglanumber\number#1\@nil} - \def\@@banglanumber#1{\ifx#1\@nil\else\char\numexpr#1+"09E6\relax - \expandafter\@@banglanumber\fi} - \def\banglacounter#1 - {\expandafter\@banglanumber\csname c@#1\endcsname} - \def\banglanumeral#1{\@@banglanumber#1\@nil} - - \addto\captionsbengali{\renewcommand\proofname{\bfseries প্রমাণ}} - \newenvironment{solution}{\proof[\bfseries সমাধান]}{\endproof} - - \newtheoremstyle{custom}% name - {3pt}% space above - {3pt}% space below - {\rm}% body font - {}% indent amount - {\bfseries}% theorem head font - {:}% punctuation after theorem head - {.5em}% space after theorem head - {}% theorem head spec - \theoremstyle{custom} - \newtheorem{example}{\bfseries উদাহরণ} - \newtheorem{problem}{\bfseries সমস্যা} - \newtheorem{theorem}{\bfseries উপপাদ্য}[section] - \renewcommand{\theequation}{\thesection.\banglacounter{equation}} - \renewcommand{\thetheorem}{\thesection.\banglacounter{theorem}} - \renewcommand{\theexample}{\banglacounter{example}} - \renewcommand{\theproblem}{\banglacounter{problem}} - \renewcommand{\theenumi}{\banglacounter{enumi}} - \renewcommand{\theenumii}{\banglacounter{enumii}} - \renewcommand{\theenumiii}{\banglacounter{enumiii}} - \renewcommand{\thefootnote}{\banglacounter{footnote}} -\fi -\end{verbatim} -\end{tcolorbox} -\pkn{feature=2} enables further modifiations as follows. -\begin{tcolorbox}[breakable] -\begin{verbatim} -\if@full - \RequirePackage{titlesec, amsthm, xpatch, amsfonts, amssymb, - amsmath, enumerate, chngcntr} - \theoremstyle{custom} - \newtheorem{corollary}{\bfseries অনুসিদ্ধান্ত}[section] - \newtheorem{property}{\bfseries বৈশিষ্ট্য}[section] - \newtheorem*{remark}{\bfseries মন্তব্য} - \newtheorem*{hint} {\bfseries হিন্ট} - \renewcommand{\thecorollary}{\thesection.\banglacounter{corollary} - } - \renewcommand{\theproperty}{\thesection.\banglacounter{property}} - \addto\captionsbengali - {\renewcommand\abstractname{\bfseries সারসংক্ষেপ}} - \newenvironment{motive}{\proof[\bfseries মোটিভেশন]} - {\phantom\qedhere\endproof} - \def\equationautorefname~#1\null{(#1)\null} -\fi -\end{verbatim} -\end{tcolorbox} -\end{document} diff --git a/Master/texmf-dist/tex/latex/banglatex/banglatex.sty b/Master/texmf-dist/tex/latex/banglatex/banglatex.sty deleted file mode 100644 index a4a4b480b6c..00000000000 --- a/Master/texmf-dist/tex/latex/banglatex/banglatex.sty +++ /dev/null @@ -1,240 +0,0 @@ -% ---------------------------------------------------------------- -% BanglaTeX package - Enhanced LaTeX integration for Bangla -% E-mail: adib.hasan8@gmail.com -% Released under the LaTeX Project Public License v1.3c or later -% See http://www.latex-project.org/lppl.txt -% ---------------------------------------------------------------- -% This packgage symplifies the process of writing Bangla in LaTeX and -% addresses most of the common typesetting issues. Additional features -% include automated transition between languages and many more. (See -% examples) The user can just type in usual LaTeX syntax and expect -% everything to work as it should. -% ------------------------------------------------------------------ -% Copyright (C) 2016 by Adib Hasan adib.hasan8@gmail.com - -% This work may be distributed and/or modified under the -% conditions of the LaTeX Project Public License (LPPL), either -% version 1.3c of this license or (at your option) any later -% version. The latest version of this license is in the file: - -% http://www.latex-project.org/lppl.txt - -% This work is "maintained" (as per LPPL maintenance status) by -% Adib Hasan - -% This work consists of the files: banglatex.sty, -% banglatex.tex, and -% banglatex.pdf -% -% -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{banglatex}[2016/10/18 v0.1 Enhanced LaTeX integration for Bangla] - -\RequirePackage{polyglossia, fontspec, xkeyval, ifxetex} - -% Because this package depends on ucharclasses which itself -% requires XeTeX's interchar classes -\RequireXeTeX - -%Fully supported Bangla Fonts -%Other banglafonts *are* supported but there might be issues with whitespaces. -\def\@@Kalpurush{Kalpurush} -\def\@Kalpurush#1{ - \ifcase#1{Kalpurush} %name - \or{MatchLowercase} %Scale - \or{1.1} %main WordSpace - \or{1.5} %tt WordSpace - \else\fi -} -\def\@@SiyamRupali{SiyamRupali} -\def\@SiyamRupali#1{ - \ifcase#1{SiyamRupali} %name - \or{0.8} %Scale - \or{1.2} %main WordSpace - \or{1.8} %tt WordSpace - \else\fi -} -\def\@@SolaimanLipi{SolaimanLipi} -\def\@SolaimanLipi#1{ - \ifcase#1{SolaimanLipi} %name - \or{0.9} %Scale - \or{1.5} %main WordSpace - \or{2.1} %tt WordSpace - \else\fi -} - -\DeclareOptionX{banglamainfont}{% - \if\relax\detokenize{#1}\relax - \errmessage{Bangla main font not defined} - \else - \def\bm@name{#1} - \def\bm@@name{bmfont} - \bm@init{\bm@name} - \fi -} -\DeclareOptionX{banglattfont}{% - \if\relax\detokenize{#1}\relax - \errmessage{Bangla tt font not defined} - \else - \def\btt@name{#1} - \def\btt@@name{bttfont} - \btt@init{\btt@name} - \fi -} - -\newif\if@none -\newif\if@recom -\newif\if@full -\@recomtrue -\DeclareOptionX{feature}{ - \if\relax\detokenize{#1}\relax\fi - \ifcase#1 - \@recomfalse - \@nonetrue - \or\or\@fulltrue\fi -} - -\newif\ifchange@num -\change@numtrue -\DeclareOptionX{changecounternumbering}{ - \if\relax\detokenize{#1}\relax\fi - \ifcase#1\change@numfalse\fi -} - -\def\bm@init#1{ - \ifx#1\@@Kalpurush - \def\bm@scale{\@Kalpurush{1}} - \def\bm@wordspace{\@Kalpurush{2}} - \else\ifx#1\@@SiyamRupali - \def\bm@scale{\@SiyamRupali{1}} - \def\bm@wordspace{\@SiyamRupali{2}} - \else\ifx#1\@@SolaimanLipi - \def\bm@scale{\@SolaimanLipi{1}} - \def\bm@wordspace{\@SolaimanLipi{2}} - \else - \def\bm@scale{MatchLowercase} - \def\bm@wordspace{1} - \fi\fi\fi -} -\def\btt@init#1{ - \ifx#1\@@Kalpurush - \def\btt@scale{\@Kalpurush{1}} - \def\btt@wordspace{\@Kalpurush{3}} - \else\ifx#1\@@SiyamRupali - \def\btt@scale{\@SiyamRupali{1}} - \def\btt@wordspace{\@SiyamRupali{3}} - \else\ifx#1\@@SolaimanLipi - \def\btt@scale{\@SolaimanLipi{1}} - \def\btt@wordspace{\@SolaimanLipi{3}} - \else - \def\btt@scale{MatchLowercase} - \def\btt@wordspace{1.2} - \fi\fi\fi -} - -\ProcessOptionsX\relax - -%From polyglossia -\ifchange@num - \setmainlanguage[changecounternumbering=true]{bengali} -\else - \setmainlanguage{bengali} -\fi - -\newfontfamily\bengalifont[% - Script=Bengali,% - Scale=\bm@scale,% - NFSSFamily=\bm@@name,% - WordSpace=\bm@wordspace,% - AutoFakeSlant, - AutoFakeBold - ]{\bm@name} - -\newfontfamily\bengalifonttt[% - Script=Bengali,% - Scale=\btt@scale,% - NFSSFamily=\btt@@name, - WordSpace=\btt@wordspace,% - AutoFakeSlant, - AutoFakeBold - ]{\btt@name} - -\newenvironment{latin}{\fontencoding{OT1}\ifx\f@family\btt@@name\fontfamily{lmtt}\else\fontfamily{lmr}\fi\selectfont}\relax - -%Devanagari is required since Bangla fullstop dari ("0964) is in -%Devanagari block of Unicode -\RequirePackage[Latin, Bengali, Devanagari]{ucharclasses} -\setTransitionsForLatin{\begin{latin}}{\end{latin}} - -%if feature=0 is provided no other modifications will be enabled -%However, from my personal experience, I find the following modifications to be useful. - -%the default for feature option is 1, which enables the recommended modifications -\if@recom - \RequirePackage{titlesec, amsthm, xpatch, amsfonts, amssymb, amsmath, enumerate, chngcntr} - %adding a dot after the number in titles - \titlelabel{\thetitle.\enspace} - - %making the word "proof" in proof env. bold and adding a : after it. - \xpatchcmd{\proof}{\itshape}{\bfseries}{}{} - \xpatchcmd{\proof}{\@addpunct{.}}{\@addpunct{:}}{}{} - - \counterwithin{equation}{section} - - %increases gap between lines - \linespread{1.1} - - %defining a \tobangla which converts numbers in any counter to bangla - \def\@banglanumber#1{\expandafter\@@banglanumber\number#1\@nil} - \def\@@banglanumber#1{\ifx#1\@nil - \else\char\numexpr#1+"09E6\relax\expandafter\@@banglanumber\fi} - \def\tobangla#1{\expandafter\@banglanumber\csname c@#1\endcsname} - \def\numtobangla#1{\@@banglanumber#1\@nil} - - %Because polyglossia itself defines প্রমাণ as italic. I'm making it bold. - \addto\captionsbengali{\renewcommand\proofname{\bfseries প্রমাণ}} - - %a new solution environment - \newenvironment{solution}{\proof[\bfseries সমাধান]}{\endproof} - - \newtheoremstyle{custom}% name - {3pt}% space above - {3pt}% space below - {\rm}% body font - {}% indent amount - {\bfseries}% theorem head font - {:}% punctuation after theorem head - {.5em}% space after theorem head - {}% theorem head spec - \theoremstyle{custom} - \newtheorem{example}{\bfseries উদাহরণ} - \newtheorem{problem}{\bfseries সমস্যা} - \newtheorem{theorem}{\bfseries উপপাদ্য}[section] - - %converting all the useful counters not handled by polyglossia to bangla - \renewcommand{\theequation}{\thesection.\tobangla{equation}} - \renewcommand{\thetheorem}{\thesection.\tobangla{theorem}} - \renewcommand{\theexample}{\tobangla{example}} - \renewcommand{\theproblem}{\tobangla{problem}} - \renewcommand{\theenumi}{\tobangla{enumi}} - \renewcommand{\theenumii}{\tobangla{enumii}} - \renewcommand{\theenumiii}{\tobangla{enumiii}} - \renewcommand{\thefootnote}{\tobangla{footnote}} -\fi - -%feature=2 enabes further modifiations as follows -\if@full - \RequirePackage{titlesec, amsthm, xpatch, amsfonts, amssymb, amsmath, enumerate, chngcntr} - \theoremstyle{custom} - \newtheorem{corollary}{\bfseries অনুসিদ্ধান্ত}[section] - \newtheorem{property}{\bfseries বৈশিষ্ট্য}[section] - \newtheorem*{remark}{\bfseries মন্তব্য} - \newtheorem*{hint} {\bfseries হিন্ট} - \renewcommand{\thecorollary}{\thesection.\tobangla{corollary}} - \renewcommand{\theproperty}{\thesection.\tobangla{property}} - \addto\captionsbengali{\renewcommand\abstractname{\bfseries সারসংক্ষেপ}} - %\addto\captionsbengali{\renewcommand\referencename{\bfseries তথ্যসূত্রসমূহ}} - \newenvironment{motive}{\proof[\bfseries মোটিভেশন]}{\phantom\qedhere\endproof} - \def\equationautorefname~#1\null{(#1)\null} -\fi -\endinput diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index f3ffd90f952..f23c60cdade 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -69,7 +69,7 @@ my @TLP_working = qw( babel-spanish babel-swedish babel-thai babel-turkish babel-ukrainian babel-vietnamese babel-welsh babelbib background backnaur baekmuk - bagpipe banglatex bangorcsthesis bangorexam bangtex bankstatement + bagpipe bangorcsthesis bangorexam bangtex bankstatement barcodes bardiag barr bartel-chess-fonts bashful basicarith baskervald baskervaldx basque-book basque-date @@ -345,7 +345,7 @@ my @TLP_working = qw( latex-tds latex-veryshortguide latex-web-companion latex2e-help-texinfo latex2e-help-texinfo-fr latex2e-help-texinfo-spanish latex2man latex2nemeth - latex4wp latex4wp-it + latex4wp latex4wp-it latexbangla latexcheat latexcheat-de latexcheat-esmx latexcheat-ptbr latexcourse-rug latexdemo latexdiff latexfileinfo-pkgs latexfileversion latexgit latexindent diff --git a/Master/tlpkg/tlpsrc/banglatex.tlpsrc b/Master/tlpkg/tlpsrc/banglatex.tlpsrc deleted file mode 100644 index e69de29bb2d..00000000000 --- a/Master/tlpkg/tlpsrc/banglatex.tlpsrc +++ /dev/null diff --git a/Master/tlpkg/tlpsrc/collection-langindic.tlpsrc b/Master/tlpkg/tlpsrc/collection-langindic.tlpsrc index 6ef73295245..ba7284893d1 100644 --- a/Master/tlpkg/tlpsrc/collection-langindic.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-langindic.tlpsrc @@ -5,7 +5,7 @@ longdesc Support for Indic scripts. depend collection-basic # depend bangtex -depend banglatex +depend latexbangla depend bengali depend burmese depend ebong |