0

I have a table in excel which contains both Bengali and English text. I want to convert this to latex but texstudio cannot seem to display mixed text, either it displays only the Bengali text or only the English text.

I have tried this approach but it doesn't work for both languages at a time.

The following code only shows the Bengali part and not the English part. How do I make it show both?

\documentclass[12pt,notitlepage,oneside]{report}

\usepackage{buetcseugthesis} \usepackage{longtable} \usepackage{graphicx}

\usepackage[utf8]{inputenc}

% Uncomment the following lines if you need to write in Bangla \usepackage{fontspec} \usepackage{polyglossia} \setotherlanguage[numerals=Devanagari]{bengali} \setmainlanguage{english}

\newfontscript{BengaliOpenTypeOld}{beng} \newfontscript{BengaliOpenTypeNew}{bng2} \newfontfamily\bengalifont{Noto Sans Bengali}[Script=BengaliOpenTypeNew] \begin{document}

\begin{table}[!htp]\centering \caption{Generated by Spread-LaTeX}\label{tab: } \scriptsize \begin{bengali}

\begin{tabular}{|c|c|}
    text1 &ডায়াবেটিস রুগীদের ডায়াবেটিস থেকে কিভাবে ওষুধ ছাড়াই ভালো থাকবেন। \\
    text2 &মায়ের ডায়াবেটিসে নবজাতকের ঝুঁকি দ্বিগুণ #ইত্তেফাক #নিউজ #ittefaq #ডায়াবেটিস \\
\end{tabular}

\end{bengali}

\end{table} \end{document}

1 Answers1

0

For this, you can use pdflatex_bengali based on the bangtex package.

Quickstart Guide

  • Put the mf folder along with all its contents in the same directory as your LaTeX source code.
  • Put the bangla_commands.tex file in the same directory as your LaTeX source code.
  • Put \input{bangla_commands} in the preamble of your LaTeX source code
  • When you write বাংলা enclose it within the \bng command like this {\bng baNNGla \*l*ikhun} which should output বাংলা লিখুন
  • The \bng command can be replaced by commands specifying other sizes, and this is outlined in the demo.tex and demo.pdf files.
  • A simple example document is shown below
\documentclass{article}

\title{Bengali Test} \author{{\lbng Airt/r *gh*eaSh}}

\input{bangla_commands}

\begin{document}

\maketitle

\section{Example}

This is english {\bng baNNGla *l*ikhun}

\end{document}

Aritra
  • 111