[Tex/LaTex] hfill in itemize environment

itemize

What is the correct/direct way to produce the following?
It's like a table with no borders but the first column is itemized
or should I use minipage. I also experimented with hfill but with no luck?

enter image description here

Best Answer

The good old tabbing environment can be very handy here!

\documentclass{article}

\usepackage{pifont}
\usepackage{amsmath}

\newcommand{\titem}{\ding{226}\quad}

\begin{document}

\begin{itemize}
\item \begin{tabbing}
Logical Operators\qquad \= greater or equal\qquad \= \kill
Matlab uses \emph{mostly} standard relational operators \\
\titem equal              \> $==$ \\
\titem \textbf{not} equal \> $\sim=$ \\
\titem greater than       \> $>$ \\
\titem less than          \> $<$ \\
\titem greater or equal   \> $>=$ \\
\titem less or equal      \> $<=$
\end{tabbing}

\item \begin{tabbing}
Logical Operators\qquad \= greater or equal\qquad \= \kill
Logical Operators   \> elementwise \> short-circuit (scalars) \\
\titem And          \> \&          \> \&\& \\
\titem Or           \> $|$         \> $||$ \\
\titem \textbf{Not} \> $\sim$  \\
\titem Xor          \> xor  \\
\titem All true     \> all \\
\titem Any true     \> any
\end{tabbing}

\end{itemize}

\end{document}

enter image description here

Add color, if you want to.

Related Question