Background
I'm typesetting a list of conditions for a certain mathematical object. There are three conditions. Later on I wish to provide an equivalent condition for the third. Therefore, it would be nice to have this kind of numbering:
c) condition 1
b) condition 2
c) condition 3
while later on there would be
c') condition 3 (alternative)
My idea was to use a \label{c}
for the original condition and write
\item[\ref{c}]\label{c-prime} ...
and it hoping it would be able to refer to c') this way. But \ref{c-prime}
results in the number of the definition, not in the enumerate counter.
Solution
I've got a solution, based on a hard-coded starting point for the counter and fixed layout. Using enumitem
I can write
\begin{enumerate}[label=\alph*'),ref=(\alph*'),start=3]
and everything works smoothly
Question
There are some drawbacks:
- I have to hand pick the starting point for the counter, rendering it impossible to automatically change the ordering;
- the formatting for labels and references is hard-coded, if I change the global format I still have to adapt it locally.
What can I do to make this more flexible?
I am aware this is a rather academic question as it already works, but I'm curious