我在环境中有一个列表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
以下\hyperlink
包hyperref
:
\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}