LaTeX forum ⇒ Page LayoutI set the margins to 1, 0.5, 0.5, 0.5 in preamble but they are alternating

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
John_FTex
Posts: 10
Joined: Wed Dec 21, 2022 2:32 am

I set the margins to 1, 0.5, 0.5, 0.5 in preamble but they are alternating

Postby John_FTex » Fri Jan 06, 2023 6:19 pm

My margins alternate page by page - between indented and not indented. It's exactly alternating but I have no idea why it does this?

What is wrong?

For the most part, I can tell that my images and most text DO fit within the margins because if I usepackage{showframe} everything looks correct.

I just don't know why if I page through the document, it keeps alternating between left-aligned and indented.

I guess I'll turn showframe back on and see if it aligns correctly and doesn't alternate. Is it just the viewer of the document acting up?

I now realize that it has to do with the margins and the document page size I'm using, but I don't know how to fix this?

I believe someone else had this problem too.
https://tex.stackexchange.com/questions ... book-class

I now realize that it must be because a book has a left and a right page. So when I went 1, 0.5, 0.5. 0.5, it alternates left and right. But I really want the right-side of the left-page to be 1" for the binding to have some room and I want the left-side of the right page to have 1".

I had just wanted there to be room to glue the pages in place but maybe I went too far with that.

Should I do this maybe?
\usepackage[
top= 0.5in,
bottom=0.5in,
left=0.5in,
right=0.5in,
bindingoffset=0.25in,
heightrounded,
]{geometry}

I want the book to be roughly 8 1/2 x 11 because many of my photos are 6" wide and that leaves some nice extra space around the photos so that the photos are INSIDE of the margins a little bit.

Update:
The above tweak of the usepackage with bindingoffset did NOT help any, it still alternates.

Does Texworks have a viewer that allows visualizing the document side by side? But I also now realize that if it's going to be a book, how will I have two versions? One for simply browsing as a pdf file and one for the publishing of the book? Hmm.

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net
LaTeX Beginner's Guide LaTeX Cookbook
John_FTex
Posts: 10
Joined: Wed Dec 21, 2022 2:32 am

I set the margins to 1, 0.5, 0.5, 0.5 in preamble but they are alternating

Postby John_FTex » Fri Jan 06, 2023 7:06 pm

The following solved the problem for now, it no longer alternates - I can have two versions of my latex document, one for the pdf to be viewed and one for the book to be bound:

\documentclass[a4paper, 11pt, oneside]{book}

Now the pages don't alternate anymore - the margins are always the same and it looks fine.
[SOLUTION]


Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 2 guests