LyXLAyout problem in Book

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
ssoleima
Posts: 2
Joined: Fri Sep 12, 2014 11:48 am

LAyout problem in Book

Post by ssoleima »

Hi everyone
I'm using Lyx 2.1.0 to write a book. I use document class Book (Standard class). I set in Page Layout, the two-sided document. But the new chapters start in a left page while they should start in a right page (or an odd page). Can someone guide me?

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

LAyout problem in Book

Post by Johannes_B »

Please add to your preamble \usepackage{showframe}. Do you see the marginpar column? It is always on the outside.
Are your chapters beeginning on an odd (right) page?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
ssoleima
Posts: 2
Joined: Fri Sep 12, 2014 11:48 am

Re: LAyout problem in Book

Post by ssoleima »

Thanks for fast response. I did what you said. I see some rectangles: one rectangle surrounding text, one on the right, one top and a line down but still the chapters do not start on right side (odd pages). May I ask you help?
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

LAyout problem in Book

Post by Johannes_B »

What you want to achieve is the very standard and default behaviour. I want to make sure that you aren't confusing anything. So please click on »open in writelatex« just above the code so we both are on the same page.

Code: Select all

\documentclass{book}
\usepackage{blindtext}
\usepackage{showframe}
\begin{document}
\chapter{I am on the right side, if the margin note is on the
right}
\marginpar{i am on a right side}
\blindtext
\chapter{another chapter, by default also on the right}
\end{document}
If your document really starts chapters on even (left) pages, there is a reason. The safest way to find the reason is to boil down the document to a minimal working example.

Did you somehow switch to openany in your global settings?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply