A stub of my document:
\documentclass{book}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{makeidx}
\makeindex
\begin{document}
\chapter{MyChapter}
This is a\index{A} test\index{\lstinline{TEST}}.
\printindex
\end{document}
I am compiling with pdflatex
and makeindex
.
I would like to use \lstinline{}
for formatting some keywords at the index. My problem is that there is a wrong order at the index. TEST
is ordered before A
.
Is there a way to achieve that TEST
would be ordered the right way?