LaTeX Fixing Latex Funky Formatting Error with Preamble

  • Thread starter Thread starter Ai52487963
  • Start date Start date
  • Tags Tags
    Latex
AI Thread Summary
The discussion revolves around a formatting issue encountered during code compilation, where the document's pages alternate between left and right alignment, affecting the layout of references as well. The user initially suspects a missing formatting preamble. It is clarified that the use of the "twoside" option in the document class affects page margins, with larger margins intended for the outer side of the page, which is beneficial for binding printed materials. The conversation highlights that omitting the "twoside" option would prevent the described formatting issue. Additionally, the "twoside" setting allows for different headers on odd and even pages, enhancing the document's presentation.
Ai52487963
Messages
111
Reaction score
0
For some reason, compiling my code gives me this wacky formatting error (see attached).

The pages seem to alternate between too far to the left on page 1, too far to the right on page 2, left on page 3, right on page 4 and so on. Even my references are skewed to the right.

Is there some sort of formatting preamble I'm missing here?Edit: my code at the beginning looks like so:

\documentclass[11pt,twoside,a4paper,draft]{article}
\begin{document}

\title{Dark Matter versus Modified Newtonian Dynamics}
\author{Scott V. Burger\\Western Washington University\\\texttt{<removed email address>}}
\date{June 6, 2008}
\maketitle

\begin{abstract}
 

Attachments

  • asdfsaf.jpg
    asdfsaf.jpg
    33.3 KB · Views: 454
Last edited by a moderator:
Physics news on Phys.org
Hi Ai52487963,

That's not a formatting error. The twoside option is used, for example, for binding double sided pages together in a book. The side of each page with the larger margin is the side that is toward the spine of the book. If you leave out the twoside option, the effect you're describing does not occur.
 
alphysicist said:
The twoside option is used, for example, for binding double sided pages together in a book. The side of each page with the larger margin is the side that is toward the spine of the book. If you leave out the twoside option, the effect you're describing does not occur.
Correct, except that the larger margin is the side away from the spine (unless of course you override the oddsidemargin and evensidemargin). It's kind of hard for authors to write margin notes (or for readers to jot notes down in the margins) if the larger margin is toward the spine. There are some other nifty things you get with the twoside option. Even and odd pages can have different headers, for example.
 
Hi D H,

Thanks for the correction about the default behavior of twoside. I guess my mind was in the gutter.
 
Thanks so much! I thought the twoside option was just so that printers would see it and print it accordingly.
 

Similar threads

Replies
3
Views
2K
Replies
4
Views
3K
Replies
8
Views
12K
Replies
3
Views
2K
Replies
3
Views
3K
Replies
2
Views
7K
Replies
1
Views
8K
Back
Top