|
I have two enumerate lists with n items each. What I want to do is link these two list in such that if: a) i move item 3 up/down from the first list, item 3 from the second list will also move up/down. b) i remove item 3 from the first list, item 3 from the second list will also be removed. I have a sample MWE: \documentclass{article} \usepackage{enumitem} \begin{document} % First list and the only list I make changes to. \begin{enumerate} \item This is item 1. % this item is linked to --> 1) \item This is item 2. % this item is linked to --> 2) \item This is item 3. % this item is linked to --> 3) \item This is item 4. % this item is linked to --> 4) \end{enumerate} % Second list \begin{enumerate} \item 1) \item 2) \item 3) \item 4) \end{enumerate} \end{document} So for example : \documentclass{article} \usepackage{enumitem} \begin{document} \begin{enumerate} \item This is item 1. % this item is linked to --> 1) \item This is item 3. % this item is linked to --> 3) % I moved item 3 up by one \item This is item 2. % this item is linked to --> 2) \item This is item 4. % this item is linked to --> 4) \end{enumerate} \begin{enumerate} \item 1) \item 3) \item 2) \item 4) \end{enumerate} \end{document} Any help/direction will be greatly appreciated. |
Please note that this is a German-speaking forum. Furthermore, it can save helpers time if the questioners link their crossposts.
@ Bartman, thanks for that. I'll just use the other latex forum I guess.
Nur als Hinweis:
enumerateist schlicht das falsche Konstrukt undenumitemdaher das falsche Paket für diese Anforderung. Mitlistbasierten Listen ist so etwas nicht zu machen. Dafür benötigt man komplexere Strukturen wie sie teilweise von Frage/Antworten-Systemen (siehe @Bartman's Link) oder eventuell Paketen für assoziative Listen bereitgestellt werden. Die Antwort auf die Frage, wie man das mitenumerateerreichen kann, wäre also: »Gar nicht!«. Die Frage, wie man es generell und ggf. mit einer komplett anderen Syntax erreichen kann, wäre eher beantwortbar.