0

I want to keep a list somewhere like this:

\usepackage{tocloft}

\newcommand{\listtodotitle}{To do}
\newlistof[8]{todos}{tod}{\listtodotitle}


\newcommand{\todolist}[1]{%
\refstepcounter{todos}
\addcontentsline{tod}{todos}
{\protect\numberline{\thechapter\thetodos} #1}}

\newcommand{\todo}[1]{\todolist{#1}\textbf{actp: #1}}

\todo{lorem ipsum}\\ % For person x
\todo{dolor sit amet}\\ % For person y
\todo{consectetur adipiscing elit} % For person x

\listoftodos{} % The actual printed todo list

But sort it. E.g. have the items for person x printed before person y, regardless of where they're added and a header saying "Person X" and "Person Y" above each section.

I've seen similar lists kept with floats but I'm not sure how to use those but if you have a solution using that, shoot.

EDIT: I fixed it using Ulrike Fischer's solution. Thanks a lot!

Ruaiks
  • 1
  • Perhaps you can use this https://tex.stackexchange.com/a/329809/2388 – Ulrike Fischer Jan 23 '17 at 13:00
  • Looks very promising, thanks! But instead of "1st reviewer nth comment" I'd like it the caption to be the same as the captioned text. Is that at all possible? – Ruaiks Jan 23 '17 at 13:30
  • Perhaps related http://tex.stackexchange.com/questions/128297/order-items-in-enumerate-environment-automatically? –  Jan 23 '17 at 13:37

0 Answers0