Wikiversity:Semantic templates/Listings/Latex

%Enumerations

\newcommand{\enumerationone}[1]{\begin{enumerate} \item #1 \end{enumerate}}

\newcommand{\enumerationtwo}[2]{\begin{enumerate} \item #1 \item #2 \end{enumerate}}

\newcommand{\enumerationthree}[3]{\begin{enumerate} \item #1 \item #2 \item #3 \end{enumerate}}

\newcommand{\enumerationfour}[4]{\begin{enumerate} \item #1 \item #2 \item #3 \item #4 \end{enumerate}}

\newcommand{\enumerationfive}[5]{\begin{enumerate} \item #1 \item #2 \item #3 \item #4 \item #5 \end{enumerate}}

\newcommand{\enumerationsix}[6]{\begin{enumerate} \item #1 \item #2 \item #3 \item #4 \item #5 \item #6 \end{enumerate}}

\newcommand{\enumerationseven}[7]{\begin{enumerate} \item #1 \item #2 \item #3 \item #4 \item #5 \item #6 \item #7 \end{enumerate}}

\newcommand{\enumerationeight}[8]{\begin{enumerate} \item #1 \item #2 \item #3 \item #4 \item #5 \item #6 \item #7 \item #8 \end{enumerate}}

\newcommand{\enumerationnine}[9]{\begin{enumerate} \item #1 \item #2 \item #3 \item #4 \item #5 \item #6 \item #7 \item #8 \item #9 \end{enumerate}}

\newcommand{\itemfive}[5]{\item #1 \item #2 \item #3 \item #4 \item #5}

\newcommand{\itemsix}[6]{\item #1 \item #2 \item #3 \item #4 \item #5 \item #6}

\newcommand{\itemseven}[7]{\item #1 \item #2 \item #3 \item #4 \item #5 \item #6 \item #7}


\newcommand{\enumerationtworows}[2]{\begin{enumerate} #1 #2 \end{enumerate}}


%Listings

\newcommand{\listitem}{\par \listskip \listdot}

\newcommand{\listingtwo}[2]{\par \listskip \listdot #1 \par \listskip \listdot #2 \par \listskip}

\newcommand{\listingthree}[3]{\par \listskip \listdot #1 \par \listskip \listdot #2\par \listskip \listdot #3\par\listskip }

\newcommand{\listingfour}[4]{\par \listskip \listdot #1 \par \listskip \listdot #2\par \listskip \listdot #3\par \listskip \listdot #4 \par \listskip }

\newcommand{\listingfive}[5]{\par \listskip \listdot #1 \par \listskip \listdot #2\par \listskip \listdot #3\par \listskip \listdot #4 \par \listskip \listdot #5 \par \listskip }

\newcommand{\listingsix}[6]{\par \listskip \listdot #1 \par \listskip \listdot #2\par \listskip \listdot #3\par \listskip \listdot #4 \par \listskip \listdot #5 \par \listskip \listdot #6 \par \listskip}

\newcommand{\listingseven}[7]{\par \listskip \listdot #1 \par \listskip \listdot #2\par \listskip \listdot #3\par \listskip \listdot #4 \par \listskip \listdot #5 \par \listskip \listdot #6 \par \listskip \listdot #7 \par \listskip }

\newcommand{\listingeight}[8]{\par \listskip \listdot #1 \par \listskip \listdot #2\par \listskip \listdot #3\par \listskip \listdot #4 \par \listskip \listdot #5 \par \listskip \listdot #6 \par \listskip \listdot #7 \par \listskip \listdot #8 \par \listskip}

\newcommand{\listingnine}[9]{\par \listskip \listdot #1 \par \listskip \listdot #2\par \listskip \listdot #3\par \listskip \listdot #4 \par \listskip \listdot #5 \par \listskip \listdot #6 \par \listskip \listdot #7 \par \listskip \listdot #8 \par \listskip \listdot #9 \par \listskip }

\newcommand{\listitemfive}[5]{\listitem #1 \listitem #2 \listitem #3 \listitem #4 \listitem #5}

\newcommand{\listingtworows}[2]{ #1 #2 }


%design of listings


\newcommand{\listdot}{$\bullet \,$}