![错误:\begin{table} 以 \end{document} 结束](https://linux22.com/image/355445/%E9%94%99%E8%AF%AF%EF%BC%9A%5Cbegin%7Btable%7D%20%E4%BB%A5%20%5Cend%7Bdocument%7D%20%E7%BB%93%E6%9D%9F.png)
该乳胶代码有效:
\documentclass[11pt,titlepage,oneside,openany]{book}
\usepackage{times}
\usepackage{multirow}
\usepackage{lscape}
\usepackage{graphicx}
\usepackage{latexsym}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage[hyphens]{url}
\usepackage{listings}
\usepackage{lstautogobble}
\usepackage{rotating}
\lstnewenvironment{test}[1][]{%
\lstset{basicstyle=\ttfamily,
autogobble=true,#1
}%
}{}
\usepackage{ntheorem}
\usepackage[authoryear,round]{natbib}
%
%% \usepackage{paralist}
\usepackage{tabularx}
%
%% this packaes are useful for nice algorithms
\usepackage{algorithm}
%\usepackage{algorithmic}
\usepackage{footnote}
\makesavenoteenv{tabular}
%\makesavenoteenv{table}
\begin{document}
%\chapter{Example Data from CSV Files produced by Parsing}
%\label{cha:appendixF}
Note: Entries in some of the columns are not mentioned in the main body of this bachelor thesis because they are irrelevant to the parsing and analysis but was collected during data parsing process from web API. Short description of these entries will be provided in this appendix.
\newpage
\begin{landscape}
\begin{table}[H]
\centering
\begin{tabular}{|l|l|l|l|l|l|l|l|l|} \hline
sendWallet & receWallet & tranHashString & time & value\_bitcoin & value\_dollar & type & estChanAddr & outputIndex \\ \hline
1474...oPEx & 1Ent...g56p & f3ac...d62e & 2016-01-14T07:24:53 & 10724 & 0.04592553 & pubkeyhash & null & 2513 \\ \hline
1474...oPEx & 1KvD...Zeqw & f3ac...d62e & 2016-01-14T07:24:53 & 29340 & 0.12564855 & pubkeyhash & null & 2514 \footnote{abc} \\ \hline
\end{tabular}
\caption{Example data in the csv files containing transaction information, the entries in the columns of ``sendWallet'' (corresponds to the value of ``primWallAdd'' of the wallet which spends the bitcoin in the transaction), ``receWallet'' (corresponds to the value of ``primWallAdd'' of the wallet which receives the bitcoin in the transaction) and tranHashString (the hash of the transaction) are shortened so that the table can be fit to the page. The column ``outputIndex'' indicate the index of the output in the output list of the transaction.}
\label{tab:tranCSV}
\end{table}
\end{landscape}
\end{document}
但是,在我取消注释该行之后%\makesavenoteenv{table}
,标题中出现了错误。(我需要此行作为表格中的脚注。)
是什么原因?
答案1
发布的代码(即使经过编辑)也会产生
! LaTeX Error: Unknown float option `H'.
所以删除[H]
它运行没有错误,但警告
Overfull \hbox (348.23416pt too wide) in paragraph at lines 14--19
所以表格是远的太宽。
但是,如果我添加指定的脚注包行,则不会产生任何错误。
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage[latin1]{inputenc}
\title{Getting started}
\date{\today}
\usepackage{footnote}
\makesavenoteenv{tabular}
\makesavenoteenv{table}
\begin{document}
\begin{table}
%\centering
\begin{tabular}{|l|l|l|l|l|l|l|l|l|} \hline
sendWallet & receWallet & tranHashString & time & value\_bitcoin & value\_dollar & type & estChanAddr & outputIndex \\ \hline
1474...oPEx & 1Ent...g56p & f3ac...d62e & 2016-01-14T07:24:53 & 10724 & 0.04592553 & pubkeyhash & null & 2513 \\ \hline
1474...oPEx & 1KvD...Zeqw & f3ac...d62e & 2016-01-14T07:24:53 & 29340 & 0.12564855 & pubkeyhash & null & 2514 \\ \hline
\end{tabular}
\caption{Example data in the csv files containing transaction information, the entries in the columns of ``sendWallet'' (corresponds to the value of ``primWallAdd'' of the wallet which spends the bitcoin in the transaction), ``receWallet'' (corresponds to the value of ``primWallAdd'' of the wallet which receives the bitcoin in the transaction) and tranHashString (the hash of the transaction) are shortened so that the table can be fit to the page. The column ``outputIndex'' indicate the index of the output in the output list of the transaction.}
\label{tab:tranCSV}
\end{table}
%\end{landscape}
\end{document}