如何在书籍文档类中添加 latexbangla?

如何在书籍文档类中添加 latexbangla?

当我使用 latexbangla 包时

\usepackage[banglamainfont=Kalpurush, banglattfont=Siyam Rupali,
feature=0, changecounternumbering=0]{latexbangla}. 
\newfontfamily{\bengalifontsf}[Script=Bengali]{Noto Sans Bengali}

在以下书籍文档类中,页眉页脚不起作用。

梅威瑟:

 \documentclass[twoside,12pt,english]{book}
    %\usepackage[banglamainfont=Kalpurush, banglattfont=Siyam Rupali, feature=0, changecounternumbering=0]{latexbangla} % to write bengali in latex
    \usepackage{babel}
    \usepackage[utf8]{inputenc}
    \usepackage{color}
    \definecolor{marron}{RGB}{60,30,10}
    \definecolor{darkgray}{RGB}{0,80,0}
    \usepackage[demo]{graphicx}
    \usepackage{wallpaper}
    \usepackage{fancyhdr}
    
    \usepackage{geometry}
    \geometry{
    tmargin=5cm, 
    bmargin=5cm, 
    lmargin=5cm, 
    rmargin=3cm,
    headheight=1.5cm,
    headsep=0.8cm,
    footskip=0.5cm}
    
    \usepackage{fourier-orns}
    
    \newcommand{\ornpar}{\noindent \textcolor{darkgray}{ \raisebox{-1.9pt}[10pt][10pt]{\leafright} \hrulefill \raisebox{-1.9pt}[10pt][10pt]{\leafright \decofourleft \decothreeleft  \aldineright \decotwo \floweroneleft \decoone}}}
    
    \makeatletter
    \def\headrule{{\color{darkgray}\raisebox{-2.1pt}[10pt][10pt]{\leafright} \hrulefill \raisebox{-2.1pt}[10pt][10pt]{~~~\decofourleft \decotwo\decofourright~~~} \hrulefill \raisebox{-2.1pt}[10pt][10pt]{ \leafleft}}}
    \makeatother
    
    \fancyhf{}
    
    \renewcommand{\chaptermark}[1]{\markboth{#1}{}}
    \renewcommand{\sectionmark}[1]{\markright{#1}}
   \newcommand{\estcab}[1]{\itshape\textcolor{marron}{\nouppercase #1}}
   \fancyhead[LO]{\estcab{\rightmark}} % malo cuando no hay section ~~~ \thesection
   \fancyfoot[RE]{\ornpar   \\ \large  \sffamily\bf \textcolor{darkgray}{\thepage ~~~ \reflectbox{\leafNE}}  \hfill}
    
    \pagestyle{fancy}
    
    \renewcommand{\footnoterule}{\vspace{-0.5em}\noindent\textcolor{marron}{\decosix \raisebox{2.9pt}{\line(1,0){100}} \lefthand} \vspace{.5em} }
    \usepackage[hang,splitrule]{footmisc}
    \addtolength{\footskip}{0.5cm}
    \setlength{\footnotemargin}{0.3cm}
    \setlength{\footnotesep}{0.4cm} 
    
    %\newfontfamily{\bengalifontsf}[Script=Bengali]{Noto Sans Bengali}
    \begin{document}
    \tableofcontents
    
    \chapter{First Chapter}
    \newpage
    \section{New Section}
    \end{document}

不使用 latexbangla 包,一切都运行正常。但我想使用 latexbangla,并且页眉页脚应该与下面相同。

在此处输入图片描述 我该怎么做?

相关内容