# Mac vs Ubuntu LaTeX error [duplicate]

I'm getting a very strange error.

I have a LaTeX document that I compile with a Makefile (below), when I compile it on my Ubuntu machine everything is fine, but when I compile it on my mac the first page of my pdf displays an error, the second page is the title page and the rest compiled just fine.

The error on the first page I get is:

Latex error: missing document see the latex manual or latex
companion for explanation.
You're in trouble here. Try typing 'return' to proceed.
if that doesn't work type X return to quit.1111111


Any ideas what is going on?

My Makefile executes latex; bibtex; latex; latex; dvips; ps2pdf;

-

## marked as duplicate by Marco Daniel, Werner, Kurt, Stefan Kottwitz♦Apr 25 '13 at 20:03

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – Marco Daniel Apr 25 '13 at 18:40
I'd love to, but I have no idea where the error is coming from. I figured maybe someone had a similar problem in the past and could give me a hint where to look. – janjust Apr 25 '13 at 18:42
LaTeX documents are indented from OS. Maybe you have different TeX Live/MacTeX versions. – Marco Daniel Apr 25 '13 at 18:49
@janjust Follow the MWE link Marco provided, it provides help on how to find out where the error comes from. It does sound like an encoding error, or, to be precise, perhaps something about line-ending characters. Fortunately, Windows, Linux and Mac OS all use different things there ... – doncherry Apr 25 '13 at 18:51
Yeah so according the the link I provided this has something to do with some old .cls files incompatibility with relsize, which some packages use, and hence the error. Now just to find the package that is causing it. – janjust Apr 25 '13 at 19:00

## 1 Answer

Ok to answer my own question. Although this may be redundant because the description here answers it. The culprit was \usepackage{relsize} which is not supported by some .cls files. Moreover, packages that use relsize will also be affected.

-