I need to have a vertical rule between the text and an image. paracol package breaks across pages. I do not want to have that.
\documentclass[a5paper]{scrbook}
\usepackage{adjustbox}
\usepackage{tikz}
\begin{document}
\begin{adjustbox}{valign=t,minipage={.45\textwidth}}
\[
a=b
\]
\end{adjustbox}
\begin{adjustbox}{valign=t,minipage={.45\textwidth}}
\begin{tikzpicture}
\draw [thick,red] (0,0) rectangle (2,1);
\end{tikzpicture}
\end{adjustbox}
\end{document}
With multicol the text and image alignment is wrong.
\documentclass[a5paper]{scrbook}
%
\usepackage{tikz}
\usepackage{multicol}
\setlength\columnseprule{.4pt}
\begin{document}
\begin{multicols}{2}
\[
a=b
\]
\columnbreak
\begin{tikzpicture}
\draw [thick,red] (0,0) rectangle (2,1);
\end{tikzpicture}
\end{multicols}
\end{document}

multicol? It allows you to put a rule between columns and enables multiple columns for only part of a page. – cfr May 17 '14 at 13:38\hfill \vrule \hfillgives vertical rule. – sandu May 17 '14 at 13:58\hfill \vrule width 1mm \hfillgives the result – sandu May 17 '14 at 14:13\vrule width 2cmis quite thick – David Carlisle May 17 '14 at 14:14