itemize中 如何在同一行显示三个item 财富值5

2019-11-11 19:32发布

我在网上找了一个方法 不完善 不能对齐而且有点复杂 MWE如下\documentclass{article}\begin{document}\newcommand\threeitems[3]{% ...


我在网上找了一个方法 不完善 不能对齐而且有点复杂 MWE如下
\documentclass{article}
\begin{document}
\newcommand\threeitems[3]{%
\item#1%
\hspace{15pt}%
\labelitemi
\hspace{\labelsep}#2
\hspace{10pt}
\labelitemi
\hspace{\labelsep}#3
}
\begin{itemize}
\centering
\threeitems{Foot Detector:34,35}{Hip Detector:13,14}{Wrist Detector:20,21 }
\threeitems{AnkleDetector: 5,6, 25,26}{ShoulderDetector: 16, 17 }{HandDetector: 38,39}
\end{itemize}
\end{document}

3条回答
Chennanzhang - 一介方粉,何德何能
2019-11-11 20:27 .采纳回答

其实你不妨用 tasks 宏包的同名环境。

\documentclass{article}
\usepackage[a4paper,margin=2.5cm]{geometry}
\usepackage{tasks}
\settasks{
  style=itemize,
  after-item-skip=0pt
}
\begin{document}
\begin{tasks}(3)
 \task Foot Detector:34,35
 \task Hip Detector:13,14
 \task Wrist Detector:20,21
 \task AnkleDetector: 5,6, 25,26
 \task ShoulderDetector: 16, 17 
 \task HandDetector: 38,39
 \task ShoulderDetector: 16, 17 
 \task HandDetector: 38,39
 \task ShoulderDetector: 16, 17 
 \task HandDetector: 38,39
\end{tasks}
\end{document}

效果图:

一周热门 更多>

相关问答