AnswerBun.com

Numbering pages with hindi numerals using polyglossia

TeX - LaTeX Asked by Faouzi Bellalouna on December 8, 2020

I use polyglossia to produce multi-lingual documents, written in arabic and english. I use the usual numeration with arabic numbers 1,2,3 and I want to number the pages by using the hindi numbers, used in the arabic countries !! (see the MWE). How can I do this?

documentclass{article}

usepackage{polyglossia}
setmainlanguage[numerals=maghrib]{arabic}  %% The option `numerals=mashriq` gives the hindi numeration
setotherlanguage{english}

setmainfont[Script=Arabic]{Times New Roman}

newfontfamilyenglishfont{Times New Roman}

begin{document}

raggedrightLR{Page 1

The arabic numbers, used in almost all the word: 1 2 3
}

newpage

LR{Page 2

The hindi numbers, used by the arabic people: arabicdigits{1 2 3}
}
end{document}

One Answer

I found in my old documents some thing like, from what I obtain the following commands, renumbering the pages with hindi digits:

%%%%        The Hindi counter is pagenumstyled
%RequirePackage{arabicnumbers}
 newcounthindcnt
 defpagenumstyled{afterassignmentdopagenumstylehindcnt}
 defdopagenumstyle{arabicdigits{numberhindcnt}}
 renewcommand{thepage}{pagenumstyledarabic{page}}   

Answered by Faouzi Bellalouna on December 8, 2020

Add your own answers!

Related Questions

How to find correctly the .bib file?

1  Asked on May 15, 2021 by daniel-valencia-c

         

CSVREADER in creating a fancy table

0  Asked on May 14, 2021 by user221946

       

Tikz. How to draw arcs between nodes?

3  Asked on May 14, 2021 by mika-ike

     

How do I recreate these ornaments?

1  Asked on May 14, 2021

 

Problem footcitetext numbering

0  Asked on May 14, 2021 by fly

     

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir