我正在尝试创建一个横向表格,但收到一条错误消息,提示标题超出浮动范围。我不知道该如何修复它。
这是代码。
\usepackage{lscape}
\begin{landscape}
\small
\begin{center}
\caption{Central composite design in the original and coded (between brackets) form of the independent variables percentage of modifier (A), temperature (B) and pressure (C) and experimental results for the response variables, retention factors of lycopene (k$_{1}$), beta-carotene (k$_{2}$), coenzyme Q10 (k$_{3}$) and lutein (k$_{4}$) and separation factors of the pairs lycopene/beta-carotene ($\alpha_{12}$), beta-carotene/coenzyme Q10 ($\alpha_{23}$) and coenzyme Q10/lutein ($\alpha_{34}$), between brackets the standard deviation.}
\label{ANOVA4a}
\begin{tabular}{P{1.0cm}|P{3cm}|P{2.9cm}|P{2.3cm}|P{1.5cm}|P{1.5cm}|P{1.5cm}|P{1.5cm}|P{1.5cm}|P{1.5cm}|P{1.5cm}}
\hline
\textbf{Run} & \multicolumn{3}{c}{\textbf{Factor}} & \multicolumn{7}{c}{\textbf{Response}}\\
\hline
& Percentage of modifier (A) & Temperature (B) & Pressure (C) & k$_{1}$ & k$_{2}$ & k$_{3}$ & k$_{4}$ & $\alpha_{12}$ & $\alpha_{23}$ & $\alpha_{34}$\\
\hline
1 & 24 (+1) & 25 (-1) & 2200 (+1) & 1.59 ($\pm$0.02) & 2.01 ($\pm$0.02) & 2.01 ($\pm$0.02) & 3.63 ($\pm$0.02) & 1.27 ($<$0.01) & 0.97 ($\pm$0.04) & 1.80 ($<$0.01)\\
\hline
\end{tabular}
\end{center}
\end{landscape}
答案1
landscape
是帮助旋转页面的环境,需要给出\begin{table}...\end{table}
,参考修改后的标签:
\documentclass{book}
\usepackage{lscape}
\begin{document}
\begin{landscape}
\begin{table}
\small
\begin{center}
\caption{Central composite design in the original and coded (between brackets) form of the independent variables percentage of modifier (A), temperature (B) and pressure (C) and experimental results for the response variables, retention factors of lycopene (k$_{1}$), beta-carotene (k$_{2}$), coenzyme Q10 (k$_{3}$) and lutein (k$_{4}$) and separation factors of the pairs lycopene/beta-carotene ($\alpha_{12}$), beta-carotene/coenzyme Q10 ($\alpha_{23}$) and coenzyme Q10/lutein ($\alpha_{34}$), between brackets the standard deviation.}
\label{ANOVA4a}
\begin{tabular}{p{1.0cm}|p{3cm}|p{2.9cm}|p{2.3cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}}
\hline
\textbf{Run} & \multicolumn{3}{c}{\textbf{Factor}} & \multicolumn{7}{c}{\textbf{Response}}\\
\hline
& Percentage of modifier (A) & Temperature (B) & Pressure (C) & k$_{1}$ & k$_{2}$ & k$_{3}$ & k$_{4}$ & $\alpha_{12}$ & $\alpha_{23}$ & $\alpha_{34}$\\
\hline
1 & 24 (+1) & 25 (-1) & 2200 (+1) & 1.59 ($\pm$0.02) & 2.01 ($\pm$0.02) & 2.01 ($\pm$0.02) & 3.63 ($\pm$0.02) & 1.27 ($<$0.01) & 0.97 ($\pm$0.04) & 1.80 ($<$0.01)\\
\hline
\end{tabular}
\end{center}
\end{table}
\end{landscape}
\end{document}
最好使用rotating
包而lscape
不是标签是
\begin{sidewaystable}...\end{sidewaystable}
附言:我已将您的tabular
对齐方式从P{1.0cm}
改为p{1.0cm}
...
答案2
我假设该P
列类型是基本列类型的居中版本p
。
我的主要建议是加载该rotating
包并使用其sidewaystable
环境。
\documentclass[10pt]{article} % or "11pt", "12pt", etc.
\usepackage[a4paper,margin=2.5cm]{geometry} % set page parameters suitably
\usepackage{rotating} % for "sidewaystable" environment
\usepackage{array} % for "\newcolumntype" and "\extrarowheight" macros
\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}} % ??
\begin{document}
\begin{sidewaystable}
%\centering
%\small
\setlength\extrarowheight{2pt} % for a more open "look"
\caption{Central composite design in the original and coded (between brackets) form
of the independent variables percentage of modifier~(A), temperature~(B) and
pressure~(C) and experimental results for the response variables, retention
factors of lycopene~($k_{1}$), beta-carotene~($k_{2}$), coenzyme Q10~($k_{3}$)
and lutein~($k_{4}$) and separation factors of the pairs lycopene\slash
beta-carotene~($\alpha_{12}$), beta-carotene\slash coenzyme Q10~($\alpha_{23}$)
and coenzyme Q10\slash lutein~($\alpha_{34}$), between brackets the
standard deviation.}
\label{ANOVA4a}
\medskip
\centering
\begin{tabular}{|c|P{2.7cm}|P{2.5cm}|P{1.7cm}|*{7}{P{1.5cm}|}}
\hline
\textbf{Run} &
\multicolumn{3}{c|}{\textbf{Factor}} &
\multicolumn{7}{c|}{\textbf{Response}}\\
\hline
& Percentage of modifier (A)
& Temperature (B)
& Pressure (C)
& $k_{1}$ & $k_{2}$ & $k_{3}$ & $k_{4}$
& $\alpha_{12}$ & $\alpha_{23}$ & $\alpha_{34}$\\
\hline
1 & 24 ($+1$) & 25 ($-1$) & 2200 ($+1$)
& 1.59 ($\pm0.02$) & 2.01 ($\pm0.02$) & 2.01 ($\pm0.02$)
& 3.63 ($\pm0.02$) & 1.27 ($<0.01$) & 0.97 ($\pm0.04$)
& 1.80 ($<0.01$)\\
\hline
\end{tabular}
\end{sidewaystable}
\end{document}