Fixing Latex Funky Formatting Error with Preamble

  • Context: LaTeX 
  • Thread starter Thread starter Ai52487963
  • Start date Start date
  • Tags Tags
    Latex
Click For Summary

Discussion Overview

The discussion revolves around a formatting issue encountered in LaTeX when using the twoside option in the document class. Participants explore the implications of this option on page margins and layout, particularly in the context of double-sided printing.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • One participant describes experiencing alternating page formatting issues, questioning if a missing preamble is the cause.
  • Another participant explains that the twoside option is intended for double-sided printing and affects margin placement, suggesting that omitting it would prevent the described formatting issue.
  • A further contribution corrects the previous explanation regarding margin placement, noting that the larger margin is actually on the side away from the spine, unless overridden by specific margin settings.
  • Participants express gratitude for clarifications and corrections regarding the behavior of the twoside option and its implications for document formatting.

Areas of Agreement / Disagreement

While there is agreement on the function of the twoside option, there are differing interpretations regarding margin placement and its implications for document layout. The discussion does not reach a consensus on the best approach to resolve the initial formatting issue.

Contextual Notes

Participants mention specific margin settings (oddsidemargin and evensidemargin) that may influence the outcome but do not provide detailed resolutions or assumptions regarding their use.

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: 475
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 ·
Replies
3
Views
3K
  • · Replies 11 ·
Replies
11
Views
9K
  • · Replies 11 ·
Replies
11
Views
6K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 8 ·
Replies
8
Views
13K
  • · Replies 3 ·
Replies
3
Views
6K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
7K
  • · Replies 1 ·
Replies
1
Views
8K