Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm currently working on my thesis, and it is due next week. Until now I had no significant problems in LaTeX, and if I had, I was able to find answer on this site (thanks!). However, a few hours ago I tried to impliment a new lay-out. I got a .tex file from a friend called 'page-layout-definition' which she used. I tried to impliment it by placing \input{page-layout-definition} in my preamble, but it failed (40+ errors). Then I removed it, but when compiling, I kept 5 errors, which I couldn't remove uptil now. Here they are:

Latex Error: not in par mode ... l.1602 \begin{figure}[h]

! You can't use '\end' in internal vertical mode. \enddocument...\endgroup \deadcylces \z@ \@@end
l.1645 \end{document}

!Missing } inserted. l.1645 \end{document}

The other two are ! Emergency stop and ! ==> Fatal error.

I'm really confused since I didn't change anything, and the script is completely the same as before which didn't give the errors. Can anybody see what's wrong here?

    \documentclass[4pt,a4paper,onesize]{article}
    \usepackage[english]{babel}
    \usepackage[latin1]{inputenc}
    \usepackage{eurofont}
    \usepackage{float}
    \usepackage{marvosym}
    \usepackage{textcomp}
    \usepackage{graphicx,ctable,url,amsmath, marvosym}
    \usepackage[small,bf,hang]{caption2}
    \usepackage[top=3cm, bottom=2.5cm, left=2.2cm, right=2.2cm]{geometry}
    \usepackage{natbib}
    \usepackage{appendix}
    \usepackage{multicol}
    \usepackage{multirow, bigdelim}
    \usepackage{lipsum}
    \usepackage{remreset}
    \usepackage{fancyhdr}
    \usepackage{lscape}
    \setcounter{tocdepth}{5}
    \setcounter{secnumdepth}{5}
    \usepackage[all]{xy}
    \makeatletter
    \renewcommand{\l@section}{\@dottedtocline{1}{1em}{2.2em}}
    \renewcommand{\l@subsection}{\@dottedtocline{2}{3.0em}{2.2em}}
    \renewcommand{\l@subsubsection}{\@dottedtocline{3}{5em}{3.4em}}
    \makeatother
    \makeatletter
    \renewcommand{\thesection}{\thepart.\arabic{section}}
    \renewcommand{\thesubsection}{\arabic{section}.\arabic{subsection}}
    \makeatother
    \makeatletter
    \renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
      {-3.25ex\@plus -1ex \@minus -.2ex}%
      {1.5ex \@plus .2ex}%
      {\normalfont\normalsize\bfseries}}
    \makeatother
    \makeatletter
    \renewcommand\subparagraph{\@startsection{subparagraph}{4}{\z@}%
      {-3.25ex\@plus -1ex \@minus -.2ex}%
      {1.5ex \@plus .2ex}%
      {\normalfont\normalsize\bfseries}}
    \makeatother
    \pagestyle{fancy}
    \fancyhead{}
    \fancyhead[RO,RE]{Title}
    \bibliographystyle{apalike}
    \title{Title}
    \author{Name}

    \begin{document}
\end{document}

A quick response would be deeply appreciated.

share|improve this question
2  
Try to remove all auxiliary files and compile again. – lockstep Jun 2 '12 at 11:57
Which files are those? The bibtex? Or the figures? – JVLA Jun 2 '12 at 12:05
Basically everything save your .tex and .bib files and external graphics files. – lockstep Jun 2 '12 at 12:07
Ok, found my mistake. Apparantely I put a \table{X} instead of \ref{X} in the text. Thanks anyway! – JVLA Jun 2 '12 at 12:13

closed as too localized by lockstep, Joseph Wright Jun 2 '12 at 12:14

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.