Re: Errors with including tables
- From: Joseph Wright <joseph.wright@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 28 Jun 2007 00:23:45 -0700
On Jun 28, 12:35 am, scott cunningham <scunn...@xxxxxxxxx> wrote:
Also, here is the file being included:
\begin{table}
\caption{Estimated US AIDS cases and rates by race and gender, 2003}
\begin{center}
\begin{tabular}{lrr} \toprule
\multicolumn{1}{c}{Ethnicity}&
\multicolumn{1}{r}{Infections}&
\multicolumn{1}{c}{Rate}\\
\midrule
White (non-Hispanic) Males & 10,450 & 12.8 \\
White (non-Hispanic) Females & 1,725 & 2.0 \\
\textbf{White (non-Hispanic) Total} & \textbf{12,175} & \textbf{7.2} \
\
\midrule
Black (non-Hispanic) Males & 13,624 & 103.8 \\
Black (non-Hispanic) Females & 7,551 & 50.2 \\
\textbf{Black (non-Hispanic) Total} & \textbf{21,174} & \textbf{75.2} \
\
\bottomrule
\multicolumn{3}{l}{\small\textit{Source: }CDC HIV Surveillance Report
2003}
\end{tabular}
\end{center}
\end{table}
On Jun 27, 7:19 pm, scott cunningham <scunn...@xxxxxxxxx> wrote:
I'm defending my dissertation soon, and am taking tables and figures
features in individual essays and trying to include them into the
dissertation, proper. I have never had problems including figures and
tables with the previous essays. They format fine, so I know there
are no problems in the actual tables or figures. Rather, it seems
like something with my school's style sheet (which we're required to
use) that I'm not catching. I'm getting errors when it attempts to
produce the pdf. The name of the school's stylesheet is uga.sty.
Here's my preamble, followed by the input command and the error. Any
help someone can provide me is much appreciated.
% File 'ugasample.tex' -- Michael A. Covington, Isidor Ruderfer
(Revised 2005 February 3)
% This is an example of how to format a thesis or dissertation
% using LaTeX 2e with 'uga.sty' VERSION 3.2 OR LATER.
\documentclass[12pt]{report}
% If there are any other \usepackage commands, put them here
\usepackage[longnamesfirst]{natbib}
\usepackage{rotating}
\usepackage{setspace}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{longtable,lscape}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{color}
\usepackage{float}
\usepackage[center]{caption2}
\usepackage{subfigure}
\usepackage{plain}
\bibliographystyle{apsr}
\usepackage{theorem}
\usepackage{multirow,dcolumn,booktabs}
\usepackage{uga}
% DO NOT put any more \usepackage commands after \usepackage{uga},
except:
% The following is recommended so you can have hyperlinks in the
eventual PDF output.
% It will produce profuse error messages when you have any unusual
symbols or italics
% in a section title, or when you use pseudochapters. Just ignore
them.
% To activate it, remove the initial %. In case of problems, put the
% back in.
==snip==
\bibliography{chapter1}
\clearpage
\input{sti.tex}
\end{document}
===============
Here's the error I get when i try to run this.
! LaTeX Error: \begin{document} ended by \end{table}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.19 \end{table}
?
Your example is not exactly minimal, as there is lots there that I
think has nothing to do with the problem. More crucially, your
example doesn't have a \begin{document} statement! I cut everything
down to:
\documentclass[12pt]{report}
\usepackage{multirow,dcolumn,booktabs}
\begin{document}
\input{sti}
\end{document}
Which works fine. Can you try adding content back into this and see
where the problem arises.
Joseph Wright
.
- References:
- Errors with including tables
- From: scott cunningham
- Re: Errors with including tables
- From: scott cunningham
- Errors with including tables
- Prev by Date: Re: Errors with including tables
- Next by Date: \so in center environment
- Previous by thread: Re: Errors with including tables
- Next by thread: Re: Errors with including tables
- Index(es):
Relevant Pages
|