首先,感谢大家对我的帖子给予的帮助!希望我没有太烦人,但我还有另一个问题。
我正在输入格式良好的表格。以下代码可以编译;但是,标题和表格编号缺失,并且我收到神秘的“缺少结束组”错误。大量谷歌搜索表明这通常是包冲突,但我只在此 MWE 中加载了几个包,所以...帮忙?
\documentclass[class=article, crop=false]{standalone}
% Tables
\usepackage{floatrow} % Modifying the layout of floats
\usepackage{tabularx}
\floatsetup[table]{capposition=top} % Caption above table
% Custom captions in floating environments
\usepackage[{font=small,sc},labelfont={bf,sc},labelsep=newline]{caption}
%--- Table column commands with specified widths:
\newcolumntype{L}[1]{>{\hsize=#1\hsize\raggedright\arraybackslash}X}%
\newcolumntype{C}[1]{>{\hsize=#1\hsize\centering\arraybackslash}X}%
\begin{document}
% Treatment and Disposal Methods
\begin{table}[h!] \footnotesize
\caption{Test Table}
\label{tab:testtab}
\begin{tabularx}{\textwidth}{ C{0.3} L{2.1} L{0.6} }
\hline \hline
Reference & Focus & Approach\\
\hline
Ref1 & Overview of treatment methods
& Literature review \\
Ref2 & Overview of membrane methods
& Literature review \\
\hline\hline
\end{tabularx}
\end{table}
\end{document}