对于以下输入...
\documentclass{article}
\usepackage{paralist}
\begin{document}
\begin{inparaenum}[]
\item This is sentence one.
\item This is sentence two.
\end{inparaenum}
\end{document}
...我(可以理解地)收到以下警告:
Package paralist Warning: Incorrect label; no or multiple counters.
(paralist) The label is: on input line 5.
有没有办法保留结构但以不发出警告的方式指定它?
答案1
是的,只需使用inparaitem
代替inparaenum
:
\documentclass{article}
\usepackage{paralist}
\begin{document}
\begin{inparaitem}[]
\item This is sentence one.
\item This is sentence two.
\end{inparaitem}
\end{document}