Skip to content

Instantly share code, notes, and snippets.

@Shakil-Shahadat
Last active December 30, 2022 00:52
Show Gist options
  • Save Shakil-Shahadat/c9562610ed2041d42ea46f393d658b19 to your computer and use it in GitHub Desktop.
Save Shakil-Shahadat/c9562610ed2041d42ea46f393d658b19 to your computer and use it in GitHub Desktop.
ল্যাটেক্সে বাংলা ব্যবহারের উদাহরণ
\documentclass[a4paper,11pt]{article}
% Use Bengali
% Must use XeLaTeX or LuaLaTeX compiler
\usepackage{polyglossia}
\setmainlanguage{english}
\newfontfamily\englishfont{Segoe UI}
% \setmainfont{Noto Serif}
% \setsansfont{Noto Sans}
% \setmonofont{Noto Mono}
\setotherlanguage[numerals=bengali]{bengali}
\newfontfamily\bengalifont{Siyam Rupali}
\begin{document}
% \title{
% \begin{bengali}
% শাকিল
% \end{bengali}
% }
\title{ \begin{bengali} ল্যাটেক্সে বাংলা ব্যবহারের উদাহরণ \end{bengali} }
\author{ \begin{bengali} শাকিল শাহাদাত \end{bengali} }
\date{ \begin{bengali} \today \end{bengali} }
\maketitle
\begin{bengali}
আমার সোনার বাংলা।
\end{bengali}
Hello World!
\textbengali{ আমার সোনার বাংলা। }
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment