I would like to have
colored vertical rules separating columns in the vwcol package and
some method of referring to the current column width in the vwcol package.
We show a vwcol example and then extend it with these two features using multicol package. Is there some way of achieving them in vwcol? (This post inspired some of the code below and may be of some relevance to the second point although that post deals with the tabu package and not with vwcol.)
\documentclass{article}
\usepackage{graphicx}
\usepackage{multicol}
\usepackage{vwcol}
\usepackage[table]{xcolor}
\begin{document}
Seems ok but does not have a couple of features we would like:
\begin{center}
\begin{vwcol}[widths={.5,.5}]
\includegraphics[width=.45\textwidth]{myfig}
\includegraphics[width=.45\textwidth]{myfig}
\end{vwcol}
\end{center}
Here is an example using multicol that illustrates two things we
would like to add: (1) set color of vertical rule and (2) some
counterpart to \verb|\columnwidth|. Using \verb|.45\textwidth| as we
do above with vwcol is not ideal since it effectively means specifying
width information twice.
\begin{center}
\setlength{\tabcolsep}{8pt}
\setlength{\columnseprule}{1pt}
\renewcommand\columnseprulecolor{\color{blue}}
\begin{multicols}{2}
\includegraphics[width=\dimexpr\columnwidth-2\tabcolsep\relax]{myfig}
\includegraphics[width=\dimexpr\columnwidth-2\tabcolsep\relax]{myfig}
\end{multicols}
\end{center}
Is this possible with vwcol as it stands now?
\end{document}
EDIT: Added the output shown below.
Here is what the output from the above latex code looks like:
Creative commons info on elephant image is available here.