jbezos / enumitem

Customize enumerate, itemize and description
MIT License
45 stars 5 forks source link

description style with dotfill #21

Open edusantana opened 4 years ago

edusantana commented 4 years ago

Thanks for the package. I was wondering, it would be nice to have a description style with dotfill like this:

How can we obtain that without define a new environment like this?

\documentclass[12pt, letter]{article}

\newenvironment{specifications}{%
  \let\olditem\item%
  \renewcommand\item[2][]{\olditem##1\dotfill##2}%
  \begin{description}}{\end{description}% 
}

\begin{document}

\begin{specifications}
    \item[Input Voltage Range] 36-72 V DC
    \item[Input Current] 80 mA
    \item[Power over Ethernet] 802.3af-compliant Powered Device
\end{specifications}

\end{document}

Can you help me?