比较以下横向表格,一次使用类svjour3
,一次使用类article
。为什么使用时表格被挤压到左边框svjour3
?纠正它的最佳方法是什么?
%\documentclass{svjour3}
\documentclass{article}
\usepackage{rotating}
\begin{document}
\begin{sidewaystable}
\caption{Your caption here}
\tabcolsep=2pt
\begin{tabular}{ccccccccccccccc}
\hline
& & 1& 2& 3& 4& 5& 6& 7& 8& 9& 10 &11& 12& 13\\
\hline
1& Physical& 1& & & & & & & & & & & & \\
\hline
2& Psychological&.8sdf*&1& & & & & & & & & & & \\
\hline
3& Relationships& .75345**& .8435**& 1&&&&&&&&&&\\
\hline
4& Environment& .459**& .53453**& .481**& 1& &&&&&&&&\\
\hline
5& Autonomy& .472**& .53345*& .4235**& .272**& 1&&&&&&&&\\ \hline
6& Competence& .821**& .935345** &.838**& .525**& .531**& 1&&&&&&&\\ \hline
7& Relatedness& .778**& 345918**& .800**& .512**& .531**& .902**& 1&&&&&&\\
\hline
8& Secure &.423**& .478**& 43531**& .300**& .251**& .455**& .427**& 1&&&&&\\
\hline
9& Avoidant& -.147*& 34588& -.345233& .009& 34587& -.030& -.091& -.047& 1&&&&\\
\hline
10& Ambivalent& 3456**& -.845**& -.745**& 34535**& -.480**& -.839**& -.798**& -.446**& .147*& 1&&&\\
\hline
11& Immature& -.588**& -.663**& -.595**& -.4345**& -.420**& -.663**& -.624**& -.292**& .023& .572**& 1&&\\
\hline
12& Mature &.681**& .762**& .707**& .475**& .440**& .753**& .737**& .409**& -.051& -.666**& -.499**& 1&\\
\hline
13& Neurotic& -.345**& -.345*&43562**& -.282**& -.266**& -.487**& -.462**& -.282**& .345& .406**& .345**& -.405**& 1\\
\hline
\end{tabular}
\end{sidewaystable}
\end{document}
答案1
您的基本问题已在问题的答案中得到解决(并得到解释)关于桌子旋转的问题。
无关: 我将重新设计表格如下:
- 用于
siunitx
格式化带有数字的列,在此我会对巨大的整数做出例外) - 使用包的舍入功能
siunitx
将数字四舍五入到小数点后三位 - 使用
booktabs
'规则使表格看起来更“专业”
\documentclass{article}%svjour3
\usepackage{rotating}
%\setlength{\rotFPtop}{0pt plus 1fil}
\usepackage[margin=25mm]{geometry}
\usepackage{booktabs}
\usepackage{siunitx}
\begin{document}
\begin{sidewaystable}%
\caption{Your caption here}
\setlength\tabcolsep{2pt}
% \small
\begin{tabular}{r l
S[table-format=-1.3,
table-space-text-post={sdf*},
table-align-text-post=false,
table-auto-round]
*{11}{S[table-format=-1.3,
table-space-text-post={**},
table-align-text-post=false,
table-auto-round]}
S[table-format=1.0]
}
\toprule
& & 1 & 2 & 3 & 4 & 5 & 6 & 7& 8& 9& 10 &11& 12& 13\\
\midrule
1 & Physical & 1 & & & & & & & & & & & & \\
%\hline
2 & Psychological & .8sdf* & 1 & & & & & & & & & & \\
%\hline
3 & Relationships & .75345** & .8435** & 1 & & &&&&&&&&\\
%\hline
4 & Environment & .459** & .53453** & .481** & 1 & &&&&&&&&\\
%\hline
5 & Autonomy & .472** & .53345* & .4235** & .272** & 1 &&&&&&&&\\
%\hline
6 & Competence & .821** & .935345** & .838** & .525** & .531** & 1 & & &&&&&\\
%\hline
7 & Relatedness & .778** & {345918**} & .800** & .512** & .531** & .902** & 1 & &&&&&\\
%\hline
8 & Secure & .423** & .478** & {43531**} & .300** & .251** & .455** & .427** & 1 &&&&&\\
%\hline
9 & Avoidant & -.147* & {34588} & -.345233 & .009 & {34587} & -.030 & -.091 & -.047 & 1 &&&&\\
%\hline
10 & Ambivalent & {3456**} & -.845** & -.745** & {34535**} & -.480** & -.839** & -.798** & -.446** & .147*& 1 &&&\\
%\hline
11 & Immature & -.588** & -.663** & -.595** & -.4345** & -.420** & -.663** & -.624** & -.292** & .023 & .572** & 1 &&\\
%\hline
12 & Mature & .681** & .762** & .707** & .475** & .440** & .753** & .737** & .409** & -.051 & -.666** & -.499** & 1 &\\
%\hline
13 & Neurotic & -.345** & -.345* & {43562**} & -.282** & -.266** & -.487** & -.462** & -.282** & .345 & .406** & .345** & -.405** & 1\\
\bottomrule
\end{tabular}
\end{sidewaystable}
\end{document}