I'm currently writting a new version of my French recipe book (I mean, that's in French).
My problem is I'd like to have recipes looking like:
This style is composed of two independent columns each containing a iemize-like structure.
My needs :
- the two columns should be independent
- It should break right at the end of the page (i.e. it should break as if the speudo-column went on on the other page).
1st try: tcolorbox
The above example uses sidebyside tcolorbor. It works well, as do the raster library of tcolorbox, but it does not break at the end of the page.
2nd try: parcolumns
This seems to work well for paragraphs such as given by lipsum, but is seems it has some problems with itemize-style environments. Here is what I get with and without page break.
The problems are: 1. The left itemize items space is too short 2. The space for right items is too large 3. Strange additional spaces (above the first enumerate).
I saw a solution in this forum where a minipage was proposed to solve these problems, but it would then be unbrakable :s
Conclusion
It seems I tried the different solutions and none really worked. Do you have an idea ?
Minimal Working Ex.
\documentclass{article}
\usepackage{showframe}
%% With tcolorbox
\usepackage[most]{tcolorbox}
\tcbuselibrary{raster}
\tcbuselibrary{breakable, skins}
\tcbset{colback=white,colframe=white, left skip=0pt, right skip=0pt, left=0pt, right=0pt, top=0pt, bottom=0pt, rightrule=0pt, leftrule=0pt, toprule=0pt, bottomrule=0pt, sharp corners, breakable}
\newcommand\itemlist{
\subsection{Ingredients}
\begin{itemize}
\item Element 1
\item Element 2
\item Element 3
\item Element that is quite long
\item Some nice cheeze
\end{itemize}
}
\newcommand\enumlist{
\subsection{Preparation}
\begin{itemize}
\item Preparation 1
\item Preparation 2
\item Preparation 3
\item Preparation that is quite long
\item Some nice cheeze at the end.
\end{itemize}
}
\newcommand\recipe{
\section{tcolorbox Lipsum}
\begin{tcolorbox}[sidebyside,lefthand width=3cm, sidebyside align=top seam, breakable]
\itemlist
\tcblower
\enumlist
\end{tcolorbox}
}
%% With parcolumns
\usepackage{parcolumns}
\newcommand\recipebis{
\section{parcolumns Lipsum}
\begin{parcolumns}[colwidths={1=3cm}, distance=3em]{2}
\colchunk[1]{\itemlist}
\colchunk[2]{\enumlist}
\colplacechunks
\end{parcolumns}
}
\begin{document}
% A test
\section{Test}
\itemlist
\enumlist
% With tcolorbox
\newpage
\recipe
\recipe
\rule{5cm}{1cm}
\recipe
% With parcolumns
\newpage
\recipebis
\recipebis
\recipebis
\rule{1cm}{1cm}
\recipebis
\recipebis
\end{document}
xcookybooky
? I've never used, but it says it allows recipies longer than one page.