%%
%% The LaTeX Companion, 3ed
%%
%% Example 2-3-16 on page I-74 in "Providing additional contents files".
%%
%% Copyright (C) 2022 Frank Mittelbach
%%
%% It may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%%
%% See https://www.latex-project.org/lppl.txt for details.
%%

\documentclass{tlc3exa}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{183.0pt}

% example pages normally start with page 6 but not here:
\setcounter{page}{1}
% small headings for the example
\makeatletter
\renewcommand\section{\@startsection{section}{1}{\z@}%
                                   {-1.25ex \@plus-1ex \@minus-.2ex}%
                                   {.5ex}%
                                   {\normalfont\large\bfseries}}
\makeatother
%StartShownPreambleCommands
\newcommand\artist[2]
          {#1\addcontentsline{rec}{note}{#1: #2}}
\makeatletter \newcommand\listofartistnotes
   {\section*{Notes on artists}\@starttoc{rec}}
\newcommand\l@note[2]
   {\par\noindent#1,~\textit{#2}\par}   \makeatother
%StopShownPreambleCommands

\begin{document}
The version of Ravel's Boléro by \artist{Jacques
Loussier Trio}{A strange experience} is rather
unusual. Quite interesting is Davis' Blue in Green
by \artist{Cassandra Wilson}{A wonderful version}.
\listofartistnotes
\end{document}