Skip to content

Instantly share code, notes, and snippets.

@btbytes
Created April 3, 2009 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save btbytes/89754 to your computer and use it in GitHub Desktop.
Save btbytes/89754 to your computer and use it in GitHub Desktop.
\documentclass{article}
\usepackage{fontspec}
%
% This file is a sample tex file to illustrate use of
% XeTeX in typesetting Bengali document.
% License: GNU FDL: (C) Golam Mortuza Hossain, 2008
%
%
% Define fonts that you want to use
%
\font\serif=”FreeSerif:script=beng”
\font\serifbb=”FreeSerif:script=beng” at 24pt
\font\deffont=”FreeSerif:script=beng” at 14pt
\font\mukti=”Mukti Narrow Bold:script=beng”
%
% “script=beng” in above lines ensures that appropriate
% complex text rendering engines are used for proper
% rendering of Bengali.
%
\title{\bf\serifbb পাগলা দাশু}
\author{\bf\serif সুকুমার রায়}
\date{}
\begin{document}
\deffont %Default font used for the document
\maketitle
আমাদের স্কুলের যত ছাত্র তাহার মধ্যে এমন কেহই ছিল না, যে পাগলা দাশুকে
না চিনে। যে লোক আর কাহাকেও জানে না, সেও সকলের আগে পাগলা দাশুকে চিনিয়া
লয়। সেবার একজন নূতন দারোয়ান আসিল, একেবারে আনকোরা পাড়াগেঁয়ে লোক, কিন্তু
প্রথম যখন সে পাগলা দাশুর নাম শুনিল, তখনই সে আন্দাজে ঠিক ধরিয়া লইল যে,
এই ব্যক্তিই পাগলা দাশু। কারণ তার মুখের চেহারায়, কথাবার্তায়, চলনে চালনে
বোঝা যাইত যে তাহার মাথায় একটু ‘ছিট’ আছে। তাহার চোখদুটি গোল-গোল,
কানদুটা অনাবশ্যক রকমের বড়, মাথায় এক বস্তা ঝাঁকড়া চুল। চেহারাটা দেখিলেই
মনে হয়—
\vskip 10mm
% Specific font can be used for any part of the document
{\mukti বিঃদ্রঃ এই বাংলা পাতাটি লেখার জন্য XeTeX ব্যবহার করা হয়েছে।}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment