Page LayoutWriting a book

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
jhapk
Posts: 81
Joined: Tue Apr 20, 2010 9:33 pm

Writing a book

Post by jhapk »

I am writing a book. I have two parallel stories going on at the same time. Every time you flip the page, the left page has one story and the right page has another. Any ideas what is the best way to do this in latex?

If I simply continue to write on one continous tex file, its very hard to keep the format.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Writing a book

Post by Johannes_B »

How are both stories connected? Is there the need to wait for the other story before going on, i.e. adding white space in front of the next paragraph. What if one story is 4 pages long, and the other 30 pages?

Can you be a bit more verbose on what you are trying to achieve?

I think package parallel should give you a good start.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
jhapk
Posts: 81
Joined: Tue Apr 20, 2010 9:33 pm

Re: Writing a book

Post by jhapk »

The two stories are completely unrelated. I know for sure that there will always be full page stories on the right page all the time. The right hand page will be like a normal book. On the other hand, the left page will always be brief discussions or illustrations, which may or may not cover the entire page.

For example, it will be similar to a children's book where the right page has a text and the left page has a big image of something.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Writing a book

Post by Johannes_B »

If you are sure, that a story will never be longer than a page, it is more than easy.

Code: Select all

\documentclass{scrbook}
\usepackage{mwe}
\newcommand{\nextstory}{\clearpage}
\begin{document}
this is a right hand page
\nextstory
this is the first story, it is short.
\nextstory
The next story is longer.\blindtext
\nextstory
Just a picture 

\includegraphics[width=.6\textwidth]{example-image}
\nextstory
\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
jhapk
Posts: 81
Joined: Tue Apr 20, 2010 9:33 pm

Re: Writing a book

Post by jhapk »

The left hand page will never be longer than a page. The right hand page stories will be a continuous story like a normal book.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Writing a book

Post by Johannes_B »

If that is the case, it seems to be most simple to have to individual documents and later combine them in a third using package pdfpages.

You said yourself, that both sides are completely unrelated.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
jhapk
Posts: 81
Joined: Tue Apr 20, 2010 9:33 pm

Re: Writing a book

Post by jhapk »

Ok, that makes sense. Thanks for the tip :)
Post Reply