Fixing Latex Funky Formatting Error with Preamble

  • LaTeX
  • Thread starter Ai52487963
  • Start date
  • Tags
    Latex
In summary, the default behavior of twoside is to have the larger margin be the side away from the spine.
  • #1
Ai52487963
115
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: 430
Last edited by a moderator:
Physics news on Phys.org
  • #2
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.
 
  • #3
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.
 
  • #4
Hi D H,

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

FAQ: Fixing Latex Funky Formatting Error with Preamble

What is a "Funky Formatting Error" in Latex?

A "Funky Formatting Error" in Latex refers to any unexpected or incorrect formatting that occurs in a document created using the Latex typesetting system. This can include misplaced or missing symbols, incorrect spacing, or other issues that affect the appearance of the document.

What causes a "Funky Formatting Error" in Latex?

There can be several reasons for a "Funky Formatting Error" in Latex. It could be due to errors in the code, conflicting packages, or incorrect use of commands. Sometimes, it can also be caused by issues with the document's preamble, which is a section that contains commands and settings for the entire document.

How can I fix a "Funky Formatting Error" in Latex?

To fix a "Funky Formatting Error" in Latex, you can try the following steps:

  • Check for any errors or warnings in the log file and fix them.
  • Review the document's preamble and make sure all packages and commands are used correctly.
  • Remove any conflicting packages or commands.
  • If the error persists, try compiling the document on a different Latex compiler or editor.

Can I prevent "Funky Formatting Errors" in Latex?

While it is impossible to completely prevent "Funky Formatting Errors" in Latex, there are steps you can take to minimize the chances of them occurring. These include:

  • Writing clean and well-organized code.
  • Using packages and commands correctly.
  • Regularly checking the log file for errors and fixing them.
  • Using a reliable and updated Latex compiler or editor.

What should I do if I cannot fix a "Funky Formatting Error" in Latex?

If you have tried all the steps mentioned above and are still unable to fix the "Funky Formatting Error" in Latex, you can seek help from online forums or communities dedicated to Latex. You can also consult with a more experienced Latex user or seek professional services to help troubleshoot and fix the issue.

Similar threads

Replies
3
Views
458
Replies
11
Views
6K
Replies
11
Views
5K
Replies
4
Views
2K
Replies
8
Views
11K
Replies
4
Views
5K
Replies
3
Views
881
Replies
4
Views
3K
Replies
2
Views
6K
Replies
1
Views
7K
Back
Top