Book class. TOC. XeLaTeX

by Niranjan   Last Updated May 16, 2019 06:23 AM

I am using book class with XeLaTeX. Referring to this answer I had a problem.

\def\[email protected]#1{%
 \ifcase#1\or क\or ख\or ग\or घ\or ङ\or च\or छ\or ज\or झ\or ञ\or
  ट\or ठ\or ड\or ढ\or ण\or त\or थ\or द\or ध\or न\or प\or फ\or ब\or भ\or म\or
   य\or र\or ल\or व\or श\or ष\or स\or ह\else\@ctrerr\fi}

\let\@alph\[email protected]
\let\@Alph\[email protected]
\let\@roman\[email protected]
\let\@Roman\[email protected]

This changed following things in my book.
1. Page numbers in the frontmatter.
2. Number of the part.
3. Counter of the part in the toc.

Changes in 2 and 3 were not desired. After some research I was able to modify these commands with an additional ifcase like this -

\def\[email protected]#1{%
    \ifcase#1\or एक\or दोन\or तीन\or चार\or पाच\or सहा\or सात\or आठ\or नऊ\or दहा\or
    अकरा\or बारा\or तेरा\or चौदा\or पंधरा\or सोळा\or सतरा\or अठरा\or एकोणीस\or वीस\or\else\@ctrerr\fi}
\let\@alph\[email protected]
\let\@Alph\[email protected]
\let\@roman\[email protected]
\let\@Roman\[email protected]

I had to change my partname to खंड. So I have खंड एक, खंड दोन and so on in the place of my partnames. The problem is I am having एक, दोन, तीन... as the toc counters of the same which is not desirable. It looks like this.1

I want to change that particular toc counter to a bullet.

PS - This is just an additional doubt and not the main issue. I am also using hyperref which automatically creates the outline for the pdf. As of now I am seeing एक, दोन, तीन in the outline also which means if we replace the counter with a bullet it will be changed in the outline too, I'll prefer a unicode-bassed bullet. Is it possible?



Related Questions


Updated June 28, 2017 18:23 PM

Updated February 28, 2017 12:23 PM

Updated June 16, 2017 18:23 PM

Updated September 06, 2018 18:23 PM