帮助使用单个左括号为多个项目提供单个左标签

帮助使用单个左括号为多个项目提供单个左标签

我在环境中有一个列表itemize,我想用指向类似符号的左花括号将其全部分组,(*)这样就可以用作标签,以便我以后引用。目前,我的代码如下所示:

\documentclass[11pt]{article}
\begin{document}

$(*)\left\{
\begin{tabular}{p{.8\textwidth}}
\begin{itemize}
\item Second line 
\item Third line, which is quite long and seemingly tedious in the extreme
\item Fourth line, which isn't as long as the third 
\end{itemize}
\end{tabular}
\right.$
\end{document}

但是,这并不理想,因为我无法让\label{(*)}类似的东西工作,所以我以后无法使用\ref它。如果有人能帮助我,我将不胜感激。

答案1

借助\hypertarget以下\hyperlinkhyperref

在此处输入图片描述

\documentclass{article}
\usepackage{hyperref}
\begin{document}

\hypertarget{mylabel}{\[(*)\left\lbrace
\begin{tabular}{p{.8\textwidth}}
\begin{itemize}
\item Second line 
\item Third line, which is quite long and seemingly tedious in the extreme
\item Fourth line, which isn't as long as the third 
\end{itemize}
\end{tabular}
\right.\]}
This is some text with a ref to \hyperlink{mylabel}{(*)}

\end{document}

我建议还加载该enumitem包以改善itemize环境周围的空间,例如如下所示:

在此处输入图片描述

\documentclass{article}
\usepackage{enumitem}
\usepackage{hyperref}

\newlist{tabitem}{itemize}{1}
\setlist[tabitem]{label=\textbullet,leftmargin=*, nosep,leftmargin=*,before=\vspace{-0.5\baselineskip},after=\vspace{-1\baselineskip}}

\begin{document}

\hypertarget{mylabel}{\[(*)\left\lbrace
\begin{tabular}{@{}p{.8\textwidth}}
\begin{tabitem}
\item Second line 
\item Third line, which is quite long and seemingly tedious in the extreme
\item Fourth line, which isn't as long as the third 
\end{tabitem}
\end{tabular}
\right.\]}
This is some text with a ref to \hyperlink{mylabel}{(*)}

\end{document}

相关内容