0

Preferably using the enumitem package, how can I create a list of this form?

(1), (2) First item
(3) Second item
(4) Third item
etc.
7
  • Are you going to reference the items as well?
    – Werner
    Commented Aug 29, 2017 at 20:28
  • Yes. I would like to be able to reference the numbers individually.
    – Janosh
    Commented Aug 29, 2017 at 20:30
  • 1
    Here is a start.
    – Werner
    Commented Aug 29, 2017 at 20:32
  • This sort of breaks the format of any normal list. What list features do you want to retain: hanging indentation, multiple paragraphs, nesting with other list environment, page breaking? Commented Aug 29, 2017 at 21:03
  • @JohnKormylo Indentation can be determined by the other list items. Multiple paragraphs and page breaking are essential. Nesting with other list environment is not currently needed but what would be the issue here?
    – Janosh
    Commented Aug 29, 2017 at 21:27

1 Answer 1

1

You could set the first item (and accompanying horizontal alignment) manually:

enter image description here

\documentclass{article}

\usepackage{enumitem}

\makeatletter
\newcommand{\setref}[1]{\def\@currentlabel{#1}}
\makeatother

\begin{document}

\begin{enumerate}[label={(\arabic*)}, start=3, leftmargin=*]
  \item[] \hspace*{\dimexpr-\labelindent-\labelwidth-\labelsep+\itemindent}%
    \setref{(1)}\label{first-a}\setref{(2)}\label{first-b}%
    (1), (2) \hspace{\itemindent}First item
  \item \label{second} Second item
  \item Third item
  \item etc.
\end{enumerate}

See items~\ref{first-a} and~\ref{first-b}, or~\ref{second}.

\end{document}

We also set the reference manually via \setref{<stuff>}, after which one can use \label in the usual way. If hyperref is loaded, consider adding \phantomsection to appropriately mark the hyperlink to jump to.

4
  • Are you interested in referencing (1) or (2)?
    – Werner
    Commented Aug 29, 2017 at 22:57
  • Both if possible. If not then (1) is fine.
    – Janosh
    Commented Aug 30, 2017 at 6:18
  • @Casimir: See the updated answer.
    – Werner
    Commented Aug 30, 2017 at 16:31
  • Very nice! hyperref is indeed loaded, thanks for the hint.
    – Janosh
    Commented Aug 30, 2017 at 16:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .