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:

Code, hier editierbar zum Übersetzen:
\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}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

So for example :

Code, hier editierbar zum Übersetzen:
\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}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Any help/direction will be greatly appreciated.

gefragt 01 Nov '20, 02:28

texla's gravatar image

texla
112
Akzeptiert-Rate: 0%

1

Please note that this is a German-speaking forum. Furthermore, it can save helpers time if the questioners link their crossposts.

(01 Nov '20, 05:37) Bartman

@ Bartman, thanks for that. I'll just use the other latex forum I guess.

(01 Nov '20, 06:58) texla

Nur als Hinweis: enumerate ist schlicht das falsche Konstrukt und enumitem daher das falsche Paket für diese Anforderung. Mit list basierten 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 mit enumerate erreichen 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.

(01 Nov '20, 12:24) gast3
Deine Antwort auf die Frage: (Bemerkungen bitte oben als Kommentar)
[Vorschau ausblenden]

Folgen dieser Frage

Per E-Mail:

Wenn sie sich anmelden, kommen Sie für alle Updates hier in Frage

Per RSS:

Antworten

Antworten und Kommentare

Frage-Themen:

×24
×22
×17

gestellte Frage: 01 Nov '20, 02:28

Frage wurde gesehen: 1,961 Mal

zuletzt geändert: 01 Nov '20, 12:28

Willkommen, erstes Mal hier? Schau mal unter FAQ!

×