LaTeX Document Layout: Bangla, English & Arabic

Complete code for multi-language document with proper formatting

This tutorial provides a complete LaTeX document setup for creating documents containing Bengali, Arabic, and English text with proper layout and formatting.

The code below is ready to copy and paste directly into Overleaf or any LaTeX editor. It includes proper margin settings, font configuration, and border drawing.

Complete LaTeX Code

\documentclass[20pt]{extarticle}
% Language & font setup
\usepackage{polyglossia}
\setdefaultlanguage{bengali}
\setotherlanguage{arabic}
\newfontfamily\bengalifont[Script=Bengali]{Kalpurush}
\newfontfamily\arabicfont[Script=Arabic]{Amiri-Regular.ttf}
% Margins
\usepackage[paperwidth=8in,paperheight=11in,top=0.8in,bottom=0.8in,left=0.8in,right=0.8in]{geometry}
% TikZ border
\usepackage{tikz, atbegshi}
\newcommand{\drawmarginborder}{\begin{tikzpicture}[remember picture, overlay]
\draw[line width=0.5pt] ([xshift=0.5in,yshift=-0.5in]current page.north west)--([xshift=-0.5in,yshift=-0.5in]current page.north east);
\draw[line width=0.5pt] ([xshift=0.5in,yshift=0.5in]current page.south west)--([xshift=-0.5in,yshift=0.5in]current page.south east);
\draw[line width=0.5pt] ([xshift=0.5in,yshift=-0.5in]current page.north west)--([xshift=0.5in,yshift=0.5in]current page.south west);
\draw[line width=0.5pt] ([xshift=-0.5in,yshift=-0.5in]current page.north east)--([xshift=-0.5in,yshift=0.5in]current page.south east);
\end{tikzpicture}}
\AtBeginShipout{\AtBeginShipoutUpperLeft{\drawmarginborder}}
% Footer
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}
\fancyhf{}
\setlength{\footskip}{45pt}
\fancyfoot[R]{\fcolorbox{blue!60!black}{blue!5}{\textcolor{blue!90!black}{\small \textbf{Your Name}}}}
\begin{document}
\setlength{\parindent}{0pt}
\begin{center}\textarabic{﷽}\end{center}
\begin{center}\textarabic{بِسْمِ ٱللّٰهِ ٱلرَّحْمَـٰنِ ٱلرَّحِيمِ}\end{center}
\textbengali{এটি বাংলা বাক্য। এটি পরীক্ষা করার জন্য লেখা হয়েছে।}
\bigskip
\textarabic{هذه جملة عربية مكتوبة لاختبار أن النص لا يلمس حدود الهوامش ولكن يبقى داخلها بشكل جميل.}
\bigskip
This is an English sentence added here to show English text works fine along with Bengali and Arabic.
\end{document}

Font Setup

Uses Polyglossia with Kalpurush for Bengali and Amiri for Arabic. Make sure these fonts are installed.

Page Layout

Custom 8x11 inch page with 0.8 inch margins and border at 1 inch for guidance.

Multi-Language Support

Configured for Bengali (primary), Arabic, and English text with examples.

Expected Output Preview

بِسْمِ ٱللّٰهِ ٱلرَّحْمَـٰنِ ٱلرَّحِيمِ
এটি বাংলা বাক্য। এটি পরীক্ষা করার জন্য লেখা হয়েছে।
هذه جملة عربية مكتوبة لاختبار أن النص لا يلمس حدود الهوامش ولكن يبقى داخلها بشكل جميل.
This is an English sentence added here to show English text works fine along with Bengali and Arabic.

Copy this code and use directly in Overleaf or any LaTeX editor

Back to Home Back