Nesting multiple \ifstrequal as follows shouldn't be an issue.
The basic syntax is
\let\mybibitem\bibitem
\renewcommand{\bibitem}[1]{%
\ifstrequal{#1}{<BibtexKey1>}%
{%
% what happens if you key == <BibtexKey1>
}%
{%
% what happens if it's another key
% this is where you want to define your next `\ifstrequal` statement.
}%
}
Thus, you get for highlighting both <BibtexKey1> and <BibtexKey2>, this gives:
\let\mybibitem\bibitem
\renewcommand{\bibitem}[1]{%
\ifstrequal{#1}{<BibtexKey1>}%
{%
% what happens if you key == <BibtexKey1>
\color{red}\mybibitem{#1}%
}%
{%
\ifstrequal{#1}{<BibtexKey2>}%
{%
% what happens if you key == <BibtexKey2>
\color{red}\mybibitem{#1}%
}%
{%
% what happens if it's another key
\color{black}\mybibitem{#1}%
}%
}%
}
If you want to highlight <BibtexKey3> as well, this gives:
\let\mybibitem\bibitem
\renewcommand{\bibitem}[1]{%
\ifstrequal{#1}{<BibtexKey1>}%
{%
% what happens if you key == <BibtexKey1>
\color{red}\mybibitem{#1}%
}%
{%
\ifstrequal{#1}{<BibtexKey2>}%
{%
% what happens if you key == <BibtexKey2>
\color{red}\mybibitem{#1}%
}%
{%
\ifstrequal{#1}{<BibtexKey3>}%
{%
% what happens if you key == <BibtexKey3>
\color{red}\mybibitem{#1}%
}%
{%
% what happens if it is another key
\color{black}\mybibitem{#1}%
}%
}%
}%
}
Et cætera.
This works as a quick solution — yet it is dirty indeed.
\ifstrequal". Are you getting error or warning messages (and, if so, what do the messages say?), or are you not sure how to carry out the additional nesting steps? – Mico Jan 25 '20 at 09:19