Here is a plain LaTeX solution. Add the following lines to your preamble.
\makeatletter
\newcommand\dopairs[1]{\@for\@tmp:={#1}\do{\expandafter\dopair\@tmp}}
\makeatother
\newcommand\dopair[2]{\item #1\switchcolumn\item #2\switchcolumn*}
The command \dopair
is responsible for typesetting a pair, where #1
corresponds to the left item and #2
to the right one. \dopairs
takes a single argument, a comma separated list of left-right pairs.
\documentclass{article}
\usepackage{paracol}
\makeatletter
\newcommand\dopairs[1]{\@for\@tmp:={#1}\do{\expandafter\dopair\@tmp}}
\makeatother
\newcommand\dopair[2]{\item #1\switchcolumn\item #2\switchcolumn*}
\begin{document}
\begin{paracol}{2}
\begin{itemize}
\dopairs{
{$L_1$}{$R_1$},
{$L_2$}{$R_2$},
{$L_3$}{$R_3$},
{$L_4$}{$R_4$},
{$L_5$}{$R_5$}
}
\end{itemize}
\end{paracol}
\end{document}

Edit: There are several ways to keep the processing of pairs flexibel.
Redefine \dopair
before calling \dopairs
.
\renewcommand\dopair[2]{...}
\dopairs{...}
Prepare all the ways that pairs can be processed, and \let
the macro \dopair
to the required definition before calling \dopairs
.
\newcommand\dopairA[2]{...}
\newcommand\dopairB[2]{...}
\newcommand\dopairC[2]{...}
...
\let\dopair\dopairB
\dopairs{...}
Prepare all the ways that pairs can be processed as separate macros, and hand the name of the macro over to \dopairs
as another argument. In this case you have to redefine \dopairs
as follows.
\makeatletter
\newcommand\dopairs[2]{\@for\@tmp:={#2}\do{\expandafter#1\@tmp}}
\makeatother
\newcommand\dopairA[2]{...}
\newcommand\dopairB[2]{...}
\newcommand\dopairC[2]{...}
...
\dopairs\dopairA{{}{},{}{},...}
Specify the processing of pairs ad hoc when calling \dopairs
. Redefine \dopairs
as follows.
\makeatletter
\newcommand\dopairs[2]{%
\def\dopair[2]{#1}%
\@for\@tmp:={#2}\do{\expandafter\dopair\@tmp}%
}
\makeatother
For the example, \dopairs
has to be used as follows:
\dopairs{\item #1\switchcolumn\item #2\switchcolumn*}%
{{}{},{}{},{}{},...}
Here is the complete code of the example, giving the same output as shown above.
\documentclass{article}
\usepackage{paracol}
\makeatletter
\newcommand\dopairs[2]{%
\def\dopair[2]{#1}%
\@for\@tmp:={#2}\do{\expandafter\dopair\@tmp}%
}
\makeatother
\begin{document}
\begin{paracol}{2}
\begin{itemize}
\dopairs{\item #1\switchcolumn\item #2\switchcolumn*}%
{
{$L_1$}{$R_1$},
{$L_2$}{$R_2$},
{$L_3$}{$R_3$},
{$L_4$}{$R_4$},
{$L_5$}{$R_5$}
}
\end{itemize}
\end{paracol}
\end{document}