堆叠两个表格,其中“tikzpicture”左右对齐

堆叠两个表格,其中“tikzpicture”左右对齐

我修改了例如,将两个表堆叠在另一个表上。我确实遇到了Dimension too large. };锚定/对齐节点的问题。此外,它有时会在正确的位置编译,有时会抛出错误,然后看起来像:

在此处输入图片描述

表格确实适合从纸张顶部到底部的空间。向右稍微延伸是可以的。编译后它看起来像:
在此处输入图片描述

我认为它位于节点锚线中。

代码

\begin{table}[!b]
\begin{tikzpicture}[remember picture]
\node[anchor=north west,rotate=90,text width=1\textheight,align=left] (a) at ([xshift=0cm]current page text area.west) {
\begin{tabular}{@{}|lllllll@{}}
\toprule
category & hh\_mean & hh\_cons & hh\_prod & hh\_total & hh\_tax & ... \\ \midrule
now      & 35.13    & 763.99   & -61.42   & 702.58    & 397.28  & ... \\
2012     & 32.06    & 763.99   & -122.83  & 641.16    & 397.28  & ... \\
no\_eeg  & 36.93    & 763.99   & -25.49   & 738.51    & 397.28  & ... \\ \bottomrule
\end{tabular}
%\caption{idv1meta}
};
%
\node[anchor=north west,rotate=90,text width=1\textheight,align=right] at (a.south west) {
\begin{tabular}{@{}llllllllll|@{}}
\toprule
category & ... & ps\_rev\_hh & ps\_rev\_bepx & ps\_rev\_sepx & ps\_rev & dso\_rev\_loss & dso\_rev & state\_rev\_eegd & state\_rev \\ \midrule
now      & ... & 175.72      & -159.94       & 25.49         & 15.77   & -0.27          & 190.73   & -35.93           & 361.35     \\
2012     & ... & 175.72      & -159.94       & 25.49         & 15.77   & -0.27          & 190.73   & -97.35           & 299.93     \\
no\_eeg  & ... & 175.72      & -159.94       & 25.49         & 15.77   & -0.27          & 190.73   & -0.00            & 397.28     \\ \bottomrule
\end{tabular} 
%\caption{idv2meta}
\caption{Price totals and positions of grid entities on individual control.}
\label{idvmeta}
};
%
\node[anchor=north west,rotate=90,text width=1\textheight,align=left] (a) at ([xshift=5.5cm]current page text area.west) { 
\begin{tabular}{@{}|lllllll@{}}
\toprule
category              & hh\_mean & hh\_cons/\_res\_cons & hh\_prod/\_res\_prod & hh\_total & hh\_tax & ... \\ \midrule
now                   & 51.28    & 1391.94              & -366.255             & 1025.68   & 723.81  & ... \\
2012                  & 32.97    & 1391.94              & -732.51              & 659.43    & 723.81  & ... \\
no\_eeg               & 60.91    & 1391.94              & -173.812             & 1218.13   & 723.81  & ... \\
mmr                   & 27.24    & 1151.48/550.33       & -606.72/-5.57        & 544.76    & 286.17  & ... \\
mmr1:                 & 23.13    & 1042.44/508.64       & -579.78/-45.97       & 462.67    & 264.49  & ... \\
mmr\_up & 31.05    & 1151.48/628.95       & -606.72/-7.88        & 621.06    & 327.05  & ... \\ \bottomrule
\end{tabular}
%\captionof{table}{col1meta}
};
%
\node[anchor=north west,rotate=90,text width=1\textheight,align=right] at (a.south west) {
\begin{tabular}{@{}llllllllll|@{}}
\toprule
category              & ... & ps\_rev\_hh & ps\_rev\_bepx & ps\_rev\_sepx & ps\_rev    & dso\_rev\_loss & dso\_rev & state\_rev\_eegd & state\_rev \\ \midrule
now                   & ... & 320.15      & -285.02       & 173.81        & 35.12      & -0.43          & 347.55   & -192.44          & 531.36     \\
2012                  & ... & 320.15      & -285.02       & 173.81        & 35.12      & -0.43          & 347.55   & -558.70          & 165.11     \\
no\_eeg               & ... & 320.15      & -285.02       & 173.81        & 35.12      & -0.43          & 347.55   & -0.00            & 723.81     \\
mmr                   & ... & 126.58      & -113.41       & 2.20          & 13.17      & -0.43          & 137.15   & -3.37            & 282.80     \\
mmr1:                 & ... & 116.99      & -104.17       & 21.74         & 12.82      & -0.43          & 126.73   & -24.23           & 240.26     \\
mmr\_up & ... & 144.66      & -113.41       & 2.20          & 31.25-2.32 & -0.43          & 156.80   & -3.37            & 323.69     \\ \bottomrule
\end{tabular}
%\caption{col2meta}
\caption{Price totals and positions of grid entities on collective control.}
\label{colmeta}
};
\end{tikzpicture}
%\caption{Common caption}
%\label{cimeta}
\end{table}

答案1

你需要 TiZ?

\documentclass{book}

\usepackage{rotating,booktabs}

\usepackage{lipsum}% just for the example

\begin{document}

\setcounter{chapter}{8}
\chapter{Title}

\setcounter{section}{2}

\section{Grid entities and revenue streams}

\lipsum

\begin{sidewaystable}

\small

\begin{tabular}{@{}lllllll@{}}
\toprule
category & hh\_mean & hh\_cons & hh\_prod & hh\_total & hh\_tax & ... \\ \midrule
now      & 35.13    & 763.99   & -61.42   & 702.58    & 397.28  & ... \\
2012     & 32.06    & 763.99   & -122.83  & 641.16    & 397.28  & ... \\
no\_eeg  & 36.93    & 763.99   & -25.49   & 738.51    & 397.28  & ... \\ \bottomrule
\end{tabular}

\hspace*{\fill}%
\begin{tabular}{@{}llllllllll@{}}
\toprule
category & ... & ps\_rev\_hh & ps\_rev\_bepx & ps\_rev\_sepx & ps\_rev & dso\_rev\_loss & dso\_rev & state\_rev\_eegd & state\_rev \\ \midrule
now      & ... & 175.72      & -159.94       & 25.49         & 15.77   & -0.27          & 190.73   & -35.93           & 361.35     \\
2012     & ... & 175.72      & -159.94       & 25.49         & 15.77   & -0.27          & 190.73   & -97.35           & 299.93     \\
no\_eeg  & ... & 175.72      & -159.94       & 25.49         & 15.77   & -0.27          & 190.73   & -0.00            & 397.28     \\ \bottomrule
\end{tabular} 

\caption{Price totals and positions of grid entities on individual control.}
\label{idvmeta}

\bigskip

\begin{tabular}{@{}lllllll@{}}
\toprule
category              & hh\_mean & hh\_cons/\_res\_cons & hh\_prod/\_res\_prod & hh\_total & hh\_tax & ... \\ \midrule
now                   & 51.28    & 1391.94              & -366.255             & 1025.68   & 723.81  & ... \\
2012                  & 32.97    & 1391.94              & -732.51              & 659.43    & 723.81  & ... \\
no\_eeg               & 60.91    & 1391.94              & -173.812             & 1218.13   & 723.81  & ... \\
mmr                   & 27.24    & 1151.48/550.33       & -606.72/-5.57        & 544.76    & 286.17  & ... \\
mmr1:                 & 23.13    & 1042.44/508.64       & -579.78/-45.97       & 462.67    & 264.49  & ... \\
mmr\_up & 31.05    & 1151.48/628.95       & -606.72/-7.88        & 621.06    & 327.05  & ... \\ \bottomrule
\end{tabular}

\hspace*{\fill}%
\begin{tabular}{@{}llllllllll@{}}
\toprule
category              & ... & ps\_rev\_hh & ps\_rev\_bepx & ps\_rev\_sepx & ps\_rev    & dso\_rev\_loss & dso\_rev & state\_rev\_eegd & state\_rev \\ \midrule
now                   & ... & 320.15      & -285.02       & 173.81        & 35.12      & -0.43          & 347.55   & -192.44          & 531.36     \\
2012                  & ... & 320.15      & -285.02       & 173.81        & 35.12      & -0.43          & 347.55   & -558.70          & 165.11     \\
no\_eeg               & ... & 320.15      & -285.02       & 173.81        & 35.12      & -0.43          & 347.55   & -0.00            & 723.81     \\
mmr                   & ... & 126.58      & -113.41       & 2.20          & 13.17      & -0.43          & 137.15   & -3.37            & 282.80     \\
mmr1:                 & ... & 116.99      & -104.17       & 21.74         & 12.82      & -0.43          & 126.73   & -24.23           & 240.26     \\
mmr\_up & ... & 144.66      & -113.41       & 2.20          & 31.25-2.32 & -0.43          & 156.80   & -3.37            & 323.69     \\ \bottomrule
\end{tabular}

\caption{Price totals and positions of grid entities on collective control.}
\label{colmeta}

\end{sidewaystable}

\lipsum

\end{document}

在此处输入图片描述

相关内容