I am trying to create a nice looking style for my index.
Here is what I have achieved vs. what I want to reach :
Achieved :
Goal :
Here is my file tablealphab.ist :
heading_prefix "
\\vspace*{0.5cm}
\\nopagebreak\n
\\tikz
\\draw (0,0) [draw=gray, fill=gray] circle (0.35cm) node{" heading_suffix "};
\\tikz
\\draw (0,0) [color=gray, fill=gray] coordinate (a) [bend right=0] to +(4.4cm,0) coordinate (b) [bend right] to +(0,-0.7cm) coordinate (c) [bend right] to (a |- c) [bend right=60] to cycle ;
\\vspace*{0.2cm}
\\nopagebreak\n"
headings_flag 1
symhead_positive "Symboles"
symhead_negative "symboles"
numhead_positive "Nombres"
numhead_negative "nombres"
delim_0 "}\\hspace{0pt},\\hspace{6pt}"
delim_1 "\\hspace{0pt},\\hspace{5pt}"
delim_2 "\\hspace{0pt},\\hspace{4pt}"
delim_t "."
item_0 "\n \\item {\\acasB "
item_x1 "} \\acasR \\subitem "
item_1 "} \\acasR \\subitem "
item_01 "} \\acasR \\subitem "
And the rest of my code :
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{calc}
\usepackage{xcolor}
\definecolor{gray}{HTML}{999999}
\definecolor{white}{HTML}{FFFFFF}
\usepackage{tikz}
\usetikzlibrary{positioning, shapes.geometric, arrows.meta}
\usepackage{imakeidx}
\makeindex[columns=2, title=Alphabetical Index,
options= -s tablealphab.ist]
\begin{document}
\tableofcontents
\section{Introduction}
This is a test\index{test}, several keywords\index{keywords} will be used which are important and deserve to appear in the Index\index{index}.
Terms can be pretty long, who knows\index{terms can be pretty long, who knows}.
\clearpage
\section{Second section}
This second section\index{section} may include some special word, and expand the ones already used\index{used}.
\printindex
\end{document}
I have managed to get a circle and a one-side-rounded rectangle. But can I get an ellipse and an accordingly distorted rectangle? And how can I reduce the height of my rectangle? And choose its width so as it fills the whole line?
Thank you all for your help!


