Skip to content

Instantly share code, notes, and snippets.

@chudur-budur
Last active June 8, 2016 01:29
Show Gist options
  • Save chudur-budur/08a536a35228fb9e6c0b987e6ef27c57 to your computer and use it in GitHub Desktop.
Save chudur-budur/08a536a35228fb9e6c0b987e6ef27c57 to your computer and use it in GitHub Desktop.
xelatex bangla with polyglossia
\documentclass[10pt]{article}
\usepackage{fontspec}
\usepackage{polyglossia}
\setdefaultlanguage[numerals=Devanagari]{bengali}
\setotherlanguage{english}
\setmainfont[Script=Bengali]{Lohit Bengali}
%\newcommand{\devanagarinumeral}[1]{%
% \devanagaridigits{\number\csname c@#1\endcsname}}
% renew all representation of counters
% \renewcommand{\thesection}{\devanagarinumeral{section}}
% \renewcommand{\thepage}{\devanagarinumeral{page}}
% \renewcommand{\theenumi}{\devanagarinumeral{enumi}}
\title{মফিজের গরু}
\author{কোপা-শামসু}
\date{\today}
\begin{document}
\maketitle
\section{ভূমিকা}
পাশের বাড়ির মফিজের কুরবানীর গরু দেইখ্যা পুরা টাশকি মাইরা গেলাম। দাম নাকি পড়ছে ৫০ হাজার ট্যাকা।
হালায় এত টাকা কামায় ক্যামনে?
\end{document}
% compile with xelatex: xelatex bangla.tex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment