I have been using LaTeX for a little while to write my thesis. I now need to include some fairly large tables, mainly containing text. I have tried to use suggestions from this forum and others to fix my problem but haven't managed to get my errors fixed.
The below code generates a table that has the last column missing off (title =Included) and the column named '16Sub' seems really large, not the size I specified in P{}.
Thanks in advance.
Code: Select all
\documentclass[a4paper]{article}
\usepackage{lscape}
\usepackage{longtable}
\begin{document}
\begin{landscape}
\begin{center}
\begin{longtable}{p{1cm} | p{1cm} l p{3.5cm} | p{3.5cm} l p{3cm} | p{3cm} l p{1cm} | p{1cm}}
\caption[Initial Sampling Details]{Title} \label{grid_mlmmh} \\
\hline \hline \\[-2ex]
\multicolumn{1}{c}{\textbf{Sch}} &
\multicolumn{1}{c}{\textbf{StuNo}} &
\multicolumn{1}{c}{\textbf{StuName}} &
\multicolumn{1}{c}{\textbf{GCSE Subjects}} &
\multicolumn{1}{c}{\textbf{Next}} &
\multicolumn{1}{c}{\textbf{16Sub}} &
\multicolumn{1}{c}{\textbf{Where}} &
\multicolumn{1}{c}{\textbf{Included}} \\[0.5ex] \hline
\\[-1.8ex]
\endfirsthead
\multicolumn{3}{c}{{\tablename} \thetable{} -- Continued} \\[0.5ex]
\hline \hline \\[-2ex]
\multicolumn{1}{c}{\textbf{Sch}} &
\multicolumn{1}{c}{\textbf{StuNo}} &
\multicolumn{1}{c}{\textbf{StuName}} &
\multicolumn{1}{c}{\textbf{GCSE Subjects}} &
\multicolumn{1}{c}{\textbf{Next}} &
\multicolumn{1}{c}{\textbf{16Sub}} &
\multicolumn{1}{c}{\textbf{Where}} &
\multicolumn{1}{c}{\textbf{Why included}} \\[0.5ex] \hline
\\[-1.8ex]
\endhead
\multicolumn{3}{l}{{Continued on Next Page\ldots}} \\
\endfoot
\\[-1.8ex] \hline \hline
\endlastfoot
Grange School & AA001 & Mikey Student & French, General Studies, Business Studies, History & Alevels & History, Law, English Literature, Sociology & Grange School 6th Form & 4 Alevels, school sixth form \\
Grange School & AA002 & Zippy Student & Business Studies, History, Media, Spanish & Alevels & English Language, Sociology, History & Burns College & Alevels, Burns College \\
Grange School & AA003 & Yesmin Student & History, Extended Project, Business & BTECs and Alevels & & NA & BTECs, no location \\
Grange School & AA004 & Ash Student & History, Business Studies & BTEC & Sports and Fitness & Burns College or Burns College & NA \\
Grange School & AA005 & Askina Student & Spanish, Business Studies, Geography, Sports Leader & Alevels & Business, Psychology, English Literature, Maths & Bashup and Richtown Grammar School 6th Form or Grange School 6th Form & Alevels, 2 locations \\
Grange School & AA006 & Todd School & Business Studies, Food Tech, History, Extended Project & Apprenticeship, NVQ & Business Management & Burns College & Burns College, Vocational \\
Grange School & AA007 & Harry Student & Graphics, Geography, Media, Business Studies & Alevels & Graphics, Media, Film, Sociology & Burns College & Burns College, Alevels \\
Grange School & AA008 & Mandy Student & Business Studies, Geography, Sports Leader, Resistant Materials? & Get a job, Apprenticeship, NVQ & Electrical Installation & Burns College & Burns College, Vocational \\
Grange School & AA009 & Debbie Student & Business Studies, Graphics, Art & Don't know, Alevels & Product Design & Grange School 6th Form & Not sure\\
Grange School & AA008 & Mandy Student & Business Studies, Geography, Sports Leader, Resistant Materials? & Get a job, Apprenticeship, NVQ & Electrical Installation & Burns College & Burns College, Vocational \\
Grange School & AA009 & Debbie Student & Business Studies, Graphics, Art & Don't know, Alevels & Product Design & Grange School 6th Form & Not sure\\
\end{longtable}
\end{center}
\end{landscape}
\end{document}