我现在正在写论文。我尝试将一个单页表格从我的出版物调整到我的论文,它们属于不同的类别和列结构。出版物使用的是
\documentclass[twocolumn]{svjour3}
而我的论文正在使用
\documentclass[listof=totoc,a4paper,11pt,oneside,
chapterprefix=true,sfdefaults=false]{scrbook}
我在期刊中使用的代码与下面写的论文中的代码相同 -
\documentclass[listof=totoc,a4paper,11pt,oneside,
chapterprefix=true,sfdefaults=false]{scrbook}
%Table packages
\usepackage[figuresright]{rotating}
\setlength{\rotFPtop}{0pt plus 1fil}
\usepackage{booktabs, makecell, multirow, tabularx}
\renewcommand{\theadfont}{\footnotesize\bfseries}
\renewcommand\theadgape{}
\newcolumntype{L}{>{\raggedright\arraybackslash}X}
\newcolumntype{P}[1]{>{\raggedright\arraybackslash}p{#1}}
\begin{document}
%%%BIG TABLE BEGIN
\begin{sidewaystable*}
\caption{Comparison among state of the art designs}
\label{tab:1} % Give a unique label
\begin{tabularx}{\linewidth}{>{\raggedright\arraybackslash}p{1in}
>{\raggedright\arraybackslash}p{0.75in}
c
c
>{\raggedright\arraybackslash}p{0.75in}
c
>{\raggedright\arraybackslash}p{1.5in}
X}
\toprule
\thead{Reference}&\thead{Sensors}&\thead{Dedicated.}&\thead{No. of\\ sensors}&\thead{Method}&\thead{Accuracy. \\ in \%}&\thead{Features}&\thead{Limitations}\\
\midrule\\
\textcite{Er2018}
& Sound sensor, accelerometer
& Yes & $>1$ & Non-ambulatory & 92
& Fuzzy logic based dual detection capability
& Indoor only, no location information, costly and non-portable solution.\\
\addlinespace
\textcite{He2020}
& RFID and Radar
& Yes & $>1$ & Non-ambulatory & 94
&Increased detection area up to 230\% compared to traditional systems.
&Indoor only, no location information, costly and non-portable solution. Implementation requires specialized training.\\
\addlinespace
\textcite{VanThanh2018}
& Proprietary accelerometer
& Yes & 1 & Wearable sensor & 92
&Fall as well as post fall posture recognition.
&Costly and bulky, no local processing on device, no text based warning SMS.\\
\addlinespace
\textcite{Zhang2020}
&Accelerometer, Gyroscope and Magnetometer
& Yes & $>1$ & Wearable sensor & 96
& Fall and post fall posture recognition. Warning SMS with location.
&Costly and bulky, no local processing on device, no text based warning SMS.\\
\addlinespace
\textcite{Zurbuchen2020}
& Accelerometer Gyroscope
& Yes & $>1$ & Wearable sensor & 97
& Multiclass fall and ADL detection.
& High initial cost, separate device, no local processing on device, no manual mode.\\
\addlinespace
\textcite{Yu2017}
& Camera
& Yes & $>1$ & Image and computer vision & 96
& Posture based detection (Laying is treated as fall).
& High initial cost, no local processing on device, not suitable for outdoor, privacy issues.\\
\addlinespace
\textcite{juang2015fall}
& Camera
& Yes & $>1$ & Image and computer vision & 100
& Human joint identification along with fall.
& High initial cost, no local processing on device,low portability, not suitable for outdoor, privacy issues. no manual mode and no local dataset used.\\
\addlinespace
\textcite{zhang2020human}
& Camera
& Yes & $>1$ & Image and computer vision & 98 &
Fall detection based on body posture, local dataset used.
& High initial cost, no local processing on device, not suitable for outdoor.\\
\addlinespace
\textcite{shu2021eight}
& Camera
& Yes & $>1$ & Image and computer vision & 94
& Multi genre fall detection using eight cameras.
& High initial cost,low portability, no local processing on device, not suitable for outdoor, privacy issues.\\
\bottomrule
\end{tabularx}
\end{sidewaystable*}
%%%BIG TABLE END
\end{document}
输出结果如下
但是,现在它不仅会切断标题,而且整个结构现在都乱七八糟,如下所示。请帮忙。
答案1
你的论文是否缺少关于边距宽度的说明,例如
\usepackage[margin=1in]{geometry}
如果我在您的代码中插入此指令,对您的代码进行一些小的修复,然后运行\providecommand\textcite[1]{}
以避免收到大量警告消息,我会得到以下结果,至少在我看来,结果还不错。
%\documentclass[twocolumn]{svjour3}
\documentclass[listof=totoc,a4paper,11pt,oneside,
chapterprefix=true,sfdefaults=false]{scrbook}
\usepackage[margin=1in]{geometry} % <-- new
%Table packages
\usepackage[figuresright]{rotating}
%\setlength{\rotFPtop}{0pt plus 1fil}
\usepackage{booktabs, makecell, tabularx, ragged2e}
\renewcommand{\theadfont}{\normalsize}
\renewcommand\theadgape{}
\newcolumntype{L}{>{\RaggedRight}X}
\newcolumntype{P}[1]{>{\RaggedRight}p{#1}}
\providecommand\textcite[1]{} % ??
\begin{document}
%%%BIG TABLE BEGIN
\begin{sidewaystable}
\setlength\tabcolsep{4pt} % default: 6pt
\caption{Comparison among state of the art designs}
\label{tab:1} % Give a unique label
\begin{tabularx}{\linewidth}{@{}%
l
%P{1in}
P{0.95in}
c
c
P{1.1in}
c
P{1.5in}
L @{}}
\toprule
Reference &
Sensors &
Dedicated &
\thead{No. of\\ sensors}&
Method&
\thead{Accuracy\\ in \%}&
Features&
Limitations\\
\midrule
\textcite{Er2018}
& Sound sensor, accelerometer
& Yes & $>1$ & Non-ambulatory & 92
& Fuzzy logic based dual detection capability
& Indoor only, no location information, costly and non-portable solution.\\
\addlinespace
\textcite{He2020}
& RFID and Radar
& Yes & $>1$ & Non-ambulatory & 94
& Increased detection area up to 230\% compared to traditional systems.
& Indoor only, no location information, costly and non-portable solution. Implementation requires specialized training.\\
\addlinespace
\textcite{VanThanh2018}
& Proprietary accelerometer
& Yes & $\phantom{{}>}1$ & Wearable sensor & 92
& Fall as well as post fall posture recognition.
& Costly and bulky, no local processing on device, no text based warning SMS.\\
\addlinespace
\textcite{Zhang2020}
& Accelerometer, Gyroscope and Magnetometer
& Yes & $>1$ & Wearable sensor & 96
& Fall and post fall posture recognition. Warning SMS with location.
& Costly and bulky, no local processing on device, no text based warning SMS.\\
\addlinespace
\textcite{Zurbuchen2020}
& Accelerometer Gyroscope
& Yes & $>1$ & Wearable sensor & 97
& Multiclass fall and ADL detection.
& High initial cost, separate device, no local processing on device, no manual mode.\\
\addlinespace
\textcite{Yu2017}
& Camera
& Yes & $>1$ & Image and computer vision & 96
& Posture based detection (Laying is treated as fall).
& High initial cost, no local processing on device, not suitable for outdoor, privacy issues.\\
\addlinespace
\textcite{juang2015fall}
& Camera
& Yes & $>1$ & Image and computer vision & 100
& Human joint identification along with fall.
& High initial cost, no local processing on device, low portability, not suitable for outdoor, privacy issues, no manual mode and no local dataset used.\\
\addlinespace
\textcite{zhang2020human}
& Camera
& Yes & $>1$ & Image and computer vision & 98
& Fall detection based on body posture, local dataset used.
& High initial cost, no local processing on device, not suitable for outdoor.\\
\addlinespace
\textcite{shu2021eight}
& Camera
& Yes & $>1$ & Image and computer vision & 94
& Multi genre fall detection using eight cameras.
& High initial cost, low portability, no local processing on device, not suitable for outdoor, privacy issues.\\
\bottomrule
\end{tabularx}
\end{sidewaystable}
%%%BIG TABLE END
\end{document}
答案2
您的表格的正常尺寸太大,无法容纳在页面中。
您还占用了太多空间来放置标题,而这些列本来应该很窄。我建议将最后两列都分配为X
。
\documentclass[
listof=totoc,
a4paper,
11pt,
oneside,
chapterprefix=true,
sfdefaults=false,
]{scrbook}
%Table packages
\usepackage[figuresright]{rotating}
\usepackage{booktabs, makecell, multirow, tabularx}
\usepackage{biblatex}
\setlength{\rotFPtop}{0pt plus 1fil}
\renewcommand{\theadfont}{\footnotesize\bfseries}
\renewcommand\theadgape{}
\newcolumntype{L}{>{\raggedright\arraybackslash}X}
\newcolumntype{P}[1]{>{\raggedright\arraybackslash}p{#1}}
\begin{document}
%%%BIG TABLE BEGIN
\begin{sidewaystable*}
\footnotesize
\captionabove{Comparison among state of the art designs}
\label{tab:1} % Give a unique label
\begin{tabularx}{\linewidth}{
@{}
P{0.75in}
P{0.75in}
c
c
P{0.75in}
c
L
L
@{}
}
\toprule
\thead{Reference}&\thead{Sensors}&\thead{D}&\thead{N}&\thead{Method}&
\thead{A}&\thead{Features}&\thead{Limitations}\\
\midrule\\
\textcite{Er2018}
& Sound sensor, accelerometer
& Yes & $>1$ & Non-ambulatory & 92
& Fuzzy logic based dual detection capability
& Indoor only, no location information, costly and non-portable solution.\\
\addlinespace
\textcite{He2020}
& RFID and Radar
& Yes & $>1$ & Non-ambulatory & 94
&Increased detection area up to 230\% compared to traditional systems.
&Indoor only, no location information, costly and non-portable solution. Implementation requires specialized training.\\
\addlinespace
\textcite{VanThanh2018}
& Proprietary accelerometer
& Yes & 1 & Wearable sensor & 92
&Fall as well as post fall posture recognition.
&Costly and bulky, no local processing on device, no text based warning SMS.\\
\addlinespace
\textcite{Zhang2020}
&Accelerometer, Gyroscope and Magnetometer
& Yes & $>1$ & Wearable sensor & 96
& Fall and post fall posture recognition. Warning SMS with location.
&Costly and bulky, no local processing on device, no text based warning SMS.\\
\addlinespace
\textcite{Zurbuchen2020}
& Accelerometer Gyroscope
& Yes & $>1$ & Wearable sensor & 97
& Multiclass fall and ADL detection.
& High initial cost, separate device, no local processing on device, no manual mode.\\
\addlinespace
\textcite{Yu2017}
& Camera
& Yes & $>1$ & Image and computer vision & 96
& Posture based detection (Laying is treated as fall).
& High initial cost, no local processing on device, not suitable for outdoor, privacy issues.\\
\addlinespace
\textcite{juang2015fall}
& Camera
& Yes & $>1$ & Image and computer vision & 100
& Human joint identification along with fall.
& High initial cost, no local processing on device,low portability, not suitable for outdoor, privacy issues. no manual mode and no local dataset used.\\
\addlinespace
\textcite{zhang2020human}
& Camera
& Yes & $>1$ & Image and computer vision & 98 &
Fall detection based on body posture, local dataset used.
& High initial cost, no local processing on device, not suitable for outdoor.\\
\addlinespace
\textcite{shu2021eight}
& Camera
& Yes & $>1$ & Image and computer vision & 94
& Multi genre fall detection using eight cameras.
& High initial cost,low portability, no local processing on device, not suitable for outdoor, privacy issues.\\
\midrule[\heavyrulewidth]
\multicolumn{8}{@{}p{\linewidth}@{}}{D = Dedicated, N = Number of Sensors, A = Accuracy in \%}
\end{tabularx}
\end{sidewaystable*}
%%%BIG TABLE END
\end{document}
当参考文献被正确处理后,第一列不应该填满。