[Tex/LaTex] How to mix itemize and tabular environments

itemizeliststables

I have the following list:

\begin{itemize}
    \item És associativa:$\qquad(x+y)+z=x+(y+z)$
    \item És commutativa:$\qquad x+y=y+x$
    \item Té element neutre:$\qquad\exists 0\in\K : 0+x=x+0=x$
    \item Té element invers:$\qquad\forall x\in\K\;\exists(-x)\in\K : x+(-x)=(-x)+x=0$
\end{itemize}

But I want to align that like

\begin{tabular}{ll}
    És associativa:&$\quad(x+y)+z=x+(y+z)$\\
    És commutativa:&$\quad x+y=y+x$\\
    Té element neutre:&$\quad\exists 0\in\K : 0+x=x+0=x$\\
    Té element invers:&$\quad\forall x\in\K\;\exists(-x)\in\K : x+(-x)=(-x)+x=0$\\
\end{tabular}

How can I "mix" them?

Best Answer

Here is a minor enhancement to this solution.

Using the array package you can define a new column type L which automatically inserts the bullet at the start of the column in which it is used:

enter image description here

Notes:

  • This could also be done with the collcell package. This commented out in the code below, but that would only make sense if there was further processing you wanted to do with the entries in the first column.

Code:

\documentclass[a5paper]{article}
\usepackage[T1]{fontenc}
\usepackage{amsmath}  % add packages you need here ...

\usepackage{array}
\newcolumntype{L}{>{\labelitemi~~}l<{}}

%% Don't need above two lines if want to use `collcell` pacakage
%\usepackage{collcell} 
%\newcommand*{\AddBullet}[1]{\labelitemi~#1}%
%\newcolumntype{L}{>{\collectcell\AddBullet}{l}<{\endcollectcell}}

\newcommand*{\K}{\mathbf{K}}%  Not sure what \K is supposed to be

\begin{document}
\begin{tabular}{L l}
    És associativa:    & $\quad(x+y)+z=x+(y+z)$\\
    És commutativa:    & $\quad x+y=y+x$\\
    Té element neutre: & $\quad\exists 0\in\K : 0+x=x+0=x$\\
    Té element invers: & $\quad\forall x\in\K\;\exists(-x)\in\K : x+(-x)=(-x)+x=0$\\
\end{tabular}
\end{document}