While attempting to implement 'hvindex' in a luatex-compiled document, I discovered that the nesting feature provided by hvindex doesn't work. Here a code sample, with the precise preamble that I am using in the actual document; I cannot grasp what the problem is---perhaps some disconnect between hvindex and lualatex ?
\documentclass[10pt, letterpaper,fleqn,leqno]{article}
\usepackage{fontspec}
\usepackage[math]{iwona}
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{xfrac}
\usepackage{expl3}
\usepackage{fontawesome5}
\usepackage{fontmfizz}
\usepackage{marvosym}
\usepackage{textcomp}
\usepackage{polyglossia}
\usepackage{todo}
\usepackage{marginnote}
\usepackage{multicol}
\usepackage{hycolor}
\usepackage[colorlinks,backref]{hyperref}
\usepackage[includehead=false,bottom=1in,top=1in,inner=.8in,outer=1.5in, heightrounded, marginparsep=4mm, marginparwidth=3cm]{geometry}
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
\usepackage{lipsum}
\usepackage{makeidx}
\usepackage[makeidx]{hvindex} % one must also load 'makeidx'
\PassOptionsToPackage{protrusion=true,final}{microtype}
\newfontfeature{Microtype}{protrusion=default;expansion=default;}
\setmainfont[Microtype,Ligatures=TeX]{iwona}
\hypersetup{pdfpagemode=FullScreen, bookmarks=true, bookmarksopen=true,linkcolor=ForestGreen, pdfhighlight =/I urlcolor=BlueViolet, anchorcolor=Maroon}
\makeindex
\begin{document}
What are possible explanations for why \Index{states!Democratic} states appear to have higher homeless rates per capita than \Index{states!Republican} states\\
Here, just to make sure that I don't need a ``states`` indexing entry to kick-off the sub-indexing of (republican and democratic), I will force them with two ``index`` entries: \index{states} \ \ \ \ \ \ and \index{States} \ \ \ \ \ ; neither of which will appear in the printout
\printindex
\end{document}
The printout is like this:
What are possible explanations for why Democratic states appear to have higher homeless rates per capita than Republican states. Here, just to make sure that I didn't / don’t need a states entry to kick off the indexing of (republican and democratic), I will force them with two “index“ entries: and ; neither of which will appear in the printout
here is the Index
Index
Democratic, 1
Republican, 1
States, 1
states, 1
The intent of course is that the Index should include nested entries such as:
states,
___Democratic, 1
___Republican, 1
States, 1



marvosymis loaded for example?texdoc hvindexdocuments many index commands such as\Indexbut not\indexthat you used. What features ofhvindexare you intending to use here? – David Carlisle Jan 19 '23 at 22:19