我有以下代码,但我无法真正弄清楚如何将表格旋转 180 度:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\graphicspath{{images/}}
\usepackage{setspace}
\usepackage{mathrsfs}
\usepackage{amsmath}
\usepackage{cellspace}
\setlength\cellspacetoplimit{4pt}
\setlength\cellspacebottomlimit{4pt}
\usepackage{tabularx,ragged2e,booktabs,caption}
\usepackage{rotating}
\newcolumntype{C}{>{\Centering\arraybackslash}X}
\newcommand\swb{{\scriptstyle\Box}} % "small white box"
\usepackage{mathtools}
\usepackage{amssymb,bm}
\begin{document}
\begin{sidewaystable}
\captionof{table}{Points on $E$ given by $nP + \varepsilon T$ with $\varepsilon = 0$} \label{table:2}
\scriptsize
\begin{tabular}{| *{4}{Sc|}}
\hline
$n$ & $nP=(x_n,y_n)$ & $Z(nP)$ & $\boxtimes$ / $\Box$ \\ \hline
$\vdots$ & $\vdots$ & $\vdots$ & $\boxtimes$ \\ \hline
$-10$ & $\bigg(\dfrac{56424579}{207025}, \dfrac{414903626892}{94196375}\bigg)$ & $2^{24} \cdot 3^{36} \cdot 5^{-32} \cdot 7^{-32} \cdot 13^{-32} \cdot 19^2 \cdot 29 \cdot 41 \cdot 83^2 \cdot 137^4 \cdot 661 \cdot 2677 \cdot 107581 \cdot 165713^{12} \cdot 631292953$ & $\boxtimes$ \\ \hline
$-9$ & $\bigg(\dfrac{-1094394}{18769}, \dfrac{500465142}{2571353}\bigg)$ & $2^{36} \cdot 3^{48} \cdot 11^{12} \cdot 13 \cdot 19^4 \cdot 37^2 \cdot 127^{12} \cdot 137^{-32} \cdot 9377 \cdot 96181 \cdot 1997236169$ & $\boxtimes$ \\ \hline
\end{tabular}
\end{sidewaystable}
\end{document}
答案1
据我了解,您希望表格与标题的位置相反。它由样式选项提供(%here PS
在示例中标记):
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\graphicspath{{images/}}
\usepackage{setspace}
\usepackage{mathrsfs}
\usepackage{amsmath}
\usepackage{cellspace}
\setlength\cellspacetoplimit{4pt}
\setlength\cellspacebottomlimit{4pt}
\usepackage{tabularx,ragged2e,booktabs,caption}
\usepackage[figuresleft]{rotating} %here PS
\newcolumntype{C}{>{\Centering\arraybackslash}X}
\newcommand\swb{{\scriptstyle\Box}} % "small white box"
\usepackage{mathtools}
\usepackage{amssymb,bm}
\begin{document}
\begin{sidewaystable}
\captionof{table}{Points on $E$ given by $nP + \varepsilon T$ with $\varepsilon = 0$} \label{table:2}
\scriptsize
\begin{tabular}{| *{4}{Sc|}}
\hline
$n$ & $nP=(x_n,y_n)$ & $Z(nP)$ & $\boxtimes$ / $\Box$ \\ \hline
$\vdots$ & $\vdots$ & $\vdots$ & $\boxtimes$ \\ \hline
$-10$ & $\bigg(\dfrac{56424579}{207025}, \dfrac{414903626892}{94196375}\bigg)$ & $2^{24} \cdot 3^{36} \cdot 5^{-32} \cdot 7^{-32} \cdot 13^{-32} \cdot 19^2 \cdot 29 \cdot 41 \cdot 83^2 \cdot 137^4 \cdot 661 \cdot 2677 \cdot 107581 \cdot 165713^{12} \cdot 631292953$ & $\boxtimes$ \\ \hline
$-9$ & $\bigg(\dfrac{-1094394}{18769}, \dfrac{500465142}{2571353}\bigg)$ & $2^{36} \cdot 3^{48} \cdot 11^{12} \cdot 13 \cdot 19^4 \cdot 37^2 \cdot 127^{12} \cdot 137^{-32} \cdot 9377 \cdot 96181 \cdot 1997236169$ & $\boxtimes$ \\ \hline
\end{tabular}
\end{sidewaystable}
\end{document}