I have copy-pasted the codes and usepackages from a colleague to help me set up a long table landscape style. When I try to compile the copied code in a fresh document the compiling stops at the \end{longtabu} and I can not figure out why.
This is what I have in my document:
Code: Select all
Code, edit and compile here:
\documentclass[a4paper, 12pt]{article}\usepackage{tabularx}\usepackage[english]{babel}%\usepackage[round,sort&compress]{natbib} % Natbib for better citations %longnamesfirst\usepackage{pdflscape} % landscape env\usepackage[bottom]{footmisc}% places footnotes at page bottom\usepackage{rotating}\usepackage{longtable}\usepackage{tabu}\usepackage{tablefootnote}\usepackage{lipsum}\usepackage{blindtext}%\usepackage{fancyref}%\renewcommand{\fancyrefdefaultformat}{plain}\usepackage[round,colon]{natbib}\title{xxx}\author{yyy}\begin{document}\tabcolsep=3pt % Half the width of the horizontal space between columns\extrarowsep=3pt\begin{landscape}\scriptsize\begin{longtabu} to \linewidth {p{14em} % paper col aligned leftc % levelsp{5em} % criterionX[2.5,l] % state varX[1,l] % stage lengthp{4em} % decisionsl % applicationX[2.5,l] % misc}\caption{Overview over literature using MDPs for modeling within cattle farming.}\label{tab:cattle}\\\toprulePaper\footnotemk{a} & Levels\footnotemk{b} & Criterion\footnotemk{c} & State variables\footnotemk{d} & Stage Length\footnotemk{e} & Decisions\footnotemk{f} & Application\footnotemk{g} & Misc\\\midrule\endfirsthead