निरंजन
Have a look at this example:


\documentclass{article}
\usepackage{imakeidx}
\makeindex[title={Index},name={myindex}]

\begin{document}
Hello world\index[myindex]{p}.

Hello world\index[myindex]{pq}.

Hello world\index[myindex]{q}.

\printindex[myindex]
\end{document}


Is there any way with which I can print the sequence pq after q?

I have almost zero knowledge of index-making with LaTeX. If there is any method better than the imakeidx package, please let me know.

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.