I am attempting to create a critical edition with parallel texts in two languages. The paracol package seems to create all the left pages first with facing blank right pages, then all the right pages with facing blank left pages. The Contents page is followed by 3 blank pages with "Contents" in the header. Following is an MWE with lorem ipsum text. What am I coding wrong?
My question should have explained that my goal is facing pages: left columns on left pages that face right columns on right pages. You recommended removing the /switchcolumn commands. That worked.
Footnote: The book is a translated novel. It has named chapters. No sections.
Thus: \begin{paracol}[1]*{2} is what puts left columns on left pages and right columns on right pages.
Removing the \switchcolumn commands removed the unwanted blank pages.
Because I cannot use \chapter with the paracol package, the script cannot automatically create entries for the table of contents. I have added \contentsline commands to write the Contents page.
Thank you again.
Fixed code below:
% Preamble
\documentclass[openany]{book}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{tocloft}
\renewcommand{\cftpartleader}{\cftdotfill{\cftdotsep}} % for parts
\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}} % for chapters
%\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}} % for sections, if you really want! (It is default in report and book class (So you may not need it).
\begin{paracol}[1]*{2}
%\switchcolumn % Not needed if use leftcolumn and rightcolumn.
\begin{leftcolumn}
\section*{Foreword}
\lipsum[20-25]
\end{leftcolumn}
%\switchcolumn % Not needed if use leftcolumn and rightcolumn.
\begin{rightcolumn}
\section*{Foreword}
\lipsum[21-26]
\end{rightcolumn}
%\switchcolumn % Not needed if use leftcolumn and rightcolumn.
\end{paracol}
\cleardoublepage
\newpage
% Named chapters
\mainmatter
\setcounter{page}{8}
\begin{paracol}[1]*{2}
%\switchcolumn % Not needed if use leftcolumn and rightcolumn.
\begin{leftcolumn}
\section*{Chapter First}
\lipsum[2-8]
\end{leftcolumn}
%\switchcolumn % Not needed if use leftcolumn and rightcolumn.
\begin{rightcolumn}
\section*{Chapter First}
\lipsum[3-9]
\end{rightcolumn}
%\switchcolumn % Not needed if use leftcolumn and rightcolumn.
\end{paracol}