Search code examples
listlatexenumeratepdflatex

Inside an enumerate enviroment have 2 columns, one of equations and one for text in latex


I have this problem:

\begin{center}
\begin{minipage}{2in}
    \begin{enumerate}[{1)}]
    \item $p \lor \neg q$ Agregacion
    \item $q \ent p$ Equivalenica  
\end{enumerate}
\end{minipage}
\end{center}

I want that the text in every item (not the math part) aligned with the text from above .

Like a list, where I can said what rule I applied with text.

Like if every item have "2 columns" the left one for the equation and the right one for a kind of explanation.


Solution

  • You could use \makebox to ensure that all your equations have the same width:

    \documentclass{article}
    
    \usepackage{mathtools}
    \usepackage{enumerate}
    
    \begin{document}
    
    \begin{center}
    \begin{minipage}{2in}
        \begin{enumerate}[{1)}]
        \item \makebox[2cm][l]{$p \lor \neg q$} Agregacion
        \item \makebox[2cm][l]{$q  p$} Equivalenica  
    \end{enumerate}
    \end{minipage}
    \end{center}
    
    
    
    \end{document}
    

    enter image description here