晚上好/早上好/下午好
如何将表格(下方)和章节(下方)放在同一页上?我更改了表格的比例,但表格仍然在下一页,而不是与章节文本在同一页。
谢谢你的帮助。
\documentclass[10pt,a6paper]{book}
\usepackage[utf8]{inputenc}
\usepackage[main=english,slovak]{babel}
\usepackage[cm]{fullpage}
\usepackage[a6paper, top=10mm, left=10mm, right=10mm,
bottom=10mm,foot=5mm,marginparsep=0mm,showframe]{geometry}
\usepackage{tipa}
\usepackage{tabularx,booktabs}
\usepackage{multirow}
\usepackage{rotating}
\usepackage{graphicx}
\begin{document}
\catcode`\-=12
\section*{Základný anglický slovosled oz\-na\-mo\-va\-cej ve\-ty}
\begin{sidewaystable}
\centering
\scalebox{0.8}{
\begin{tabular}{ccccc}
\toprule
$1.$ & $2.$ & $3.$ &
$4.$ & $5.$ \\
\toprule
podmet & prísudok & predmet & určenie miesta
& určenie času \\
(kto?) & & (koho? čo?) & (kde? kam?)
& (kedy?)\\
\toprule
\sffamily{subject} & \sffamily{verb} &
\sffamily{object} & \sffamily{place} &
\sffamily{time} \\
\textsl{[\textipa{\textprimstress s2b.dZekt}]} &
\textsl{[\textipa{v3:b}]} &
\textsl{[\textipa{\textprimstress 6b.dZIkt}]} &
\textsl{[\textipa{pleIs}]} &
\textsl{[\textipa{taIm}]} \\\\
I & learn & English & at home & every
evening. \\
Eva & goes & & to work & every
day.\\
\end{tabular}}
\end{sidewaystable}
答案1
来自包的文档rotating
:
横向的图形和表格总是占据整个页面。
因此,不可能sidewaystable
在同一页面上同时存在章节标题和。
也许您可以将sideways
或turn
用于表格:
\documentclass[10pt,a6paper]{book}
\usepackage[utf8]{inputenc}
\usepackage[main=english,slovak]{babel}
\usepackage[a6paper, margin=10mm,foot=5mm,marginparsep=0mm,showframe]{geometry}
\usepackage{tipa}
\usepackage{tabularx,booktabs}
\usepackage{multirow}
\usepackage{rotating}
\usepackage{graphicx}
%\usepackage{caption}
\begin{document}
\catcode`\-=12
\section*{Základný anglický slovosled oz\-na\-mo\-va\-cej ve\-ty}
\begin{minipage}{\linewidth}
\centering
\begin{sideways}
\scalebox{0.8}{%
\begin{tabular}{ccccc}
\toprule
$1.$ & $2.$ & $3.$ &
$4.$ & $5.$ \\
\toprule
podmet & prísudok & predmet & určenie miesta
& určenie času \\
(kto?) & & (koho? čo?) & (kde? kam?)
& (kedy?)\\
\toprule
\sffamily{subject} & \sffamily{verb} &
\sffamily{object} & \sffamily{place} &
\sffamily{time} \\
\textsl{[\textipa{\textprimstress s2b.dZekt}]} &
\textsl{[\textipa{v3:b}]} &
\textsl{[\textipa{\textprimstress 6b.dZIkt}]} &
\textsl{[\textipa{pleIs}]} &
\textsl{[\textipa{taIm}]} \\\\
I & learn & English & at home & every
evening. \\
Eva & goes & & to work & every
day.\\
\end{tabular}}
\end{sideways}
%\captionof{table}{Table caption}
\end{minipage}
\end{document}
如果需要标题,您可以加载caption
并使用\captionof{table}{...}
。