Is there any way to show all colored words at the end of a document?
Say I'm marking definitions as red and theorems as blue.
Is it possible to make a list of "keywords" where all red words is listed, and another list with all blue words.
Something like this
\documentclass[12pt,a4paper]{article}
\usepackage{color}
\newcommand{\RC}{\textcolor{red}}
\newcommand{\BC}{\textcolor{blue}}
\begin{document}
\RC{red1} test
\BC{blue1} test
\BC{blue2} test
\RC{red2} test
\vfill
\RC{Definitions:}
\begin{itemize}
\item red1
\item red2
\end{itemize}
\bigskip
\BC{Theorems:}
\begin{itemize}
\item blue1
\item blue2
\end{itemize}
\end{document}
thmtools's\listoftheoremmacro instead? If you really want colors you can always customize it… – MickG Feb 25 '16 at 13:15