リスト内のエントリを指すブックマーク

リスト内のエントリを指すブックマーク

質問が組み込まれた次の例を考えてみましょう。

\documentclass{article}

\usepackage{enumitem}
\usepackage{bookmark}
\usepackage{hyperref}

\begin{document}

\section{The first section}
A list of entries where different bookmarks point to each entry.
\begin{enumerate}
  \item Bookmark~$1$ has to point at this entry in the list and be
        of `subsection' depth under the first section in the bookmark tree.
  \item Bookmark~$2$ has to point at this entry in the list and be
        of `subsection' depth under the first section in the bookmark tree.
  \item \dots
\end{enumerate}

\end{document}

これを実現するにはどうすればよいですか? (質問が不明瞭な場合はお知らせください。)

答え1

\documentclass{article}

\usepackage{enumitem}
\usepackage{bookmark}
\usepackage{hyperref}

\begin{document}

\section{The first section}
A list of entries where different bookmarks point to each entry.
\begin{enumerate}
  \item \bookmark[dest=\csname @currentHref\endcsname]{to item 1}Bookmark~$1$ has to point at this entry in the list and be
        of `subsection' depth under the first section in the bookmark tree.
  \item \bookmark[dest=\csname @currentHref\endcsname]{to item 2}Bookmark~$2$ has to point at this entry in the list and be
        of `subsection' depth under the first section in the bookmark tree.
  \item \dots
\end{enumerate}

\end{document}

関連情報