On the Placement of a “See Also” Index Comment

cross-referencingidxlayoutimakeidxindexing

Consider the code

\documentclass{book}
\usepackage{imakeidx}
\let\cleardoublepage\clearpage
\makeindex
%\usepackage[font=normalsize]{idxlayout}
\usepackage{idxlayout}
\usepackage{xcolor}

\begin{document}
\Large

This sentence is to be indexed.\index{FAMOUS QUOTES@\textbf{FAMOUS QUOTES}!01@ \textbf{\textit{\color{red}{Ich bin ein Berliner}}} \textit{See also}, \textbf{DOUGHNUT}}

Another to be indexed. 
\index{FAMOUS QUOTES@\textbf{FAMOUS QUOTES}!02@ \textbf{\textit{\color{red}{Denkansto{\ss}}}}}
\idxlayout{columns=1}
\printindex
\end{document}

which produces the index:

enter image description here

I would like to place the "See also DOUGHNUT" comment a little to the right of the page number, and on the same line as "Ich bin ein Berliner". How may I accomplish this?

Thank you.

Best Answer

You want a version of |see that does not discard the page number:

enter image description here

\documentclass{book}
\usepackage{imakeidx}
\let\cleardoublepage\clearpage% hmmm
\makeindex
%\usepackage[font=normalsize]{idxlayout}
\usepackage{idxlayout}
\usepackage{xcolor}

\newcommand\seezz[2]{#2\quad\textit{see also} #1}

\begin{document}
\Large

This sentence is to be indexed.\index{FAMOUS QUOTES@\textbf{FAMOUS QUOTES}!01@ \textbf{\textit{\color{red}{Ich bin ein Berliner}}}|seezz{\textbf{DOUGHNUT}}}

Another to be indexed. 
\index{FAMOUS QUOTES@\textbf{FAMOUS QUOTES}!02@ \textbf{\textit{\color{red}{Denkansto{\ss}}}}}
\idxlayout{columns=1}
\printindex
\end{document}
Related Question