Is it possible to generate only one page per chapter(or section) without splitting the document file?
The page width is fixed but the page height should be automatically adjusted by the content length of each chapter(or section), so each page height may differ depending on each chapter.
For instance, the PDF result woud look like:
Note that there should be no page break in each chapter.
My document class is
memoir and I'm using pdflatex but, if I have to change class or compiler to accomplish this, I will.