有人可以提供一些关于如何实现以下两种类型的项目符号列表的提示吗?
类型-1:[钻石形子弹]
类型 2:[圆形子弹]
答案1
使用enumitem
包;一个小例子:
\documentclass{report}
\usepackage{enumitem}
\usepackage{bbding}
\usepackage{tikz}
\newcommand*\circled[1]{\tikz[baseline=(char.base)]{
\node[shape=circle,draw,inner sep=0.3pt] (char) {#1};}}
\begin{document}
\begin{itemize}[label=\EightFlowerPetalRemoved]
\item First item.
\item Second item.
\item Third item.
\end{itemize}
\begin{enumerate}[label=\protect\circled{\Alph{enumi}}]
\item First item.
\item Second item.
\item Third item.
\end{enumerate}
\end{document}
当然,你可以不用enumitem
:
\documentclass{report}
\usepackage{bbding}
\usepackage{tikz}
\newcommand*\circled[1]{\tikz[baseline=(char.base)]{
\node[shape=circle,draw,inner sep=1pt] (char) {#1};}}
\begin{document}
\renewcommand\labelitemi{\EightFlowerPetalRemoved}
\begin{itemize}
\item First item.
\item Second item.
\item Third item.
\end{itemize}
\renewcommand\labelenumi{\circled{\Alph{enumi}}}
\begin{enumerate}
\item First item.
\item Second item.
\item Third item.
\end{enumerate}
\end{document}
不带enumitem
and 的话TikZ
:
\documentclass[12pt]{report}
\usepackage{pifont}
\begin{document}
\renewcommand\labelitemi{\ding{117}}
\begin{itemize}
\item First item.
\item Second item.
\item Third item.
\end{itemize}
\renewcommand\labelenumi{\textcircled{\raisebox{-0.02ex}{\scriptsize\kern-0.2pt\Alph{enumi}}}}
\begin{enumerate}
\item First item.
\item Second item.
\item Third item.
\end{enumerate}
\end{document}