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}
ucharclassesin XeLaTeX, or wrap the lines in\textbengalior\textenglish. – Davislor Feb 13 '21 at 05:25Package babel Error: Bad optionbidi=basic'. Either you have misspelled the(babel) key or there is a previous setting ofbidi'. \ProcessOptions*Package babel Error: You haven't specified a language option. ... try to proceed from here, type x to quit.}
– afsara_ben Feb 13 '21 at 06:05Package babel Error: Unknown language "english". Either you have(babel) install it or just rerun the file, respectively. \select@language {english}