我想使用 和 pifont 将“要点”置于中心tabular
,itemize
但它们似乎不能很好地结合在一起。
我累了如何在 Table 环境中使用 itemize但没有运气
有人可以帮我吗
\documentclass{article}
\usepackage{enumitem}
\usepackage{pifont}
\usepackage{xcolor}
\begin{document}
\begin{center}
\large
\begin{tabular}{c}
\begin{itemize}[font=\color{magenta} \Large, label=\ding{43}]
\item Prioritzing
\item Planning
\item Organization
\item Self-Discipline
\end{itemize}
\end{tabular}
\end{center}
\end{document}
答案1
您可以将 包装itemize
到某种盒子中。该varwidth
包允许您根据需要创建类似迷你页面的盒子,宽度不超过指定的最大宽度。
\documentclass{article}
\usepackage{enumitem}
\usepackage{pifont}
\usepackage{xcolor}
\usepackage{varwidth}
\begin{document}
\begin{center}
\large
\begin{tabular}{c|c|c}
first &
\begin{varwidth}{\textwidth}
\begin{itemize}[font=\color{magenta} \Large, label=\ding{43}]
\item Prioritzing
\item Planning
\item Organization
\item Self-Discipline
\end{itemize}
\end{varwidth}
& last \\
\end{tabular}
\end{center}
\end{document}
答案2
我提出了一种新的列类型,,I
它是一p{some length}
列,进入和离开itemize
具有方便参数的环境,这样您只需在每个单元格中键入项目:
\documentclass{article}
\usepackage{enumitem}
\usepackage{pifont}
\usepackage{xcolor}
\usepackage{array, bigstrut}
\makeatletter
\newcommand*{\compress}{\@minipagetrue}
\makeatother
\newcolumntype{I}[1]{>{\compress\itemize[font=\color{magenta} \Large, label=\ding{43}, wide=0pt, leftmargin=*, after =\vspace{-\dimexpr\baselineskip +\partopsep}]}p{#1}<{\enditemize}}
\begin{document}
\begin{center}
\begin{tabular}{|I{3cm}|}%
\item Prioritizing\bigstrut[t]
\item Planning
\item Organization
\item Self-Discipline
\end{tabular}
\end{center}
\end{document}
答案3
我会使用tabular
, 而不是itemize
。
\documentclass{article}
\usepackage{pifont}
\usepackage{xcolor}
\newenvironment{essentialpoints}[1][c]
{%
\renewcommand{\arraystretch}{1.2}%
\begin{tabular}[#1]{%
@{\enspace\textcolor{magenta}{\ding{43}}\enspace}
l
}%
}
{\end{tabular}}
\begin{document}
X
\begin{essentialpoints}
Prioritizing \\
Planning \\
Organization \\
Self-Discipline \\
\end{essentialpoints}
\begin{essentialpoints}[t]
Prioritizing \\
Planning \\
Organization \\
Self-Discipline \\
\end{essentialpoints}
\begin{essentialpoints}[b]
Prioritizing \\
Planning \\
Organization \\
Self-Discipline \\
\end{essentialpoints}
Y
\end{document}