TransWikia.com

Change newtheorem numbering order in Arabic : from Right to Left

TeX - LaTeX Asked by Nour-Eddine Rahmani on December 11, 2020

Can i change the order of numbering using LuaLaTex

setcounter{section}{3}
setcounter{subsection}{2}      
newtheorem{thm}{مبرهنة}[subsection]

and the result should be looks like

مبرهنة 1.2.3

thanks in advance guys

One Answer

You don't provide a MWE or say what packages you are using. In case it's babel, you may need the option layout=counters:

documentclass{article}

usepackage[bidi=basic, layout=counters]{babel}
babelprovide[import, main]{arabic}
babelfont{rm}{FreeSerif}

newtheorem{thm}{مبرهنة}[subsection]

begin{document}

setcounter{section}{3}
setcounter{subsection}{2}    

begin{thm}
   ABC.
end{thm}

begin{thm}
   DEF.
end{thm}

end{document}

enter image description here

Correct answer by Javier Bezos on December 11, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP