Hi, I have to put my table in the same page with the chapter heading. The code below gives two pages yet I want one.
\documentclass{report}
\usepackage{rotating}
\usepackage{colortbl}
\usepackage{titlesec}
\usepackage{setspace}
\titleformat{\chapter}[display]{\centering\normalfont\normalsize\bfseries}{\chaptername\ \thechapter}{16pt}{\normalsize}
\titlespacing*{\chapter}{10pt}{*-10}{*-01}
\usepackage[left=1.2in, right=1in, top=1in, bottom=1in]{geometry}
\begin{document}
\chapter{\normalsize{WORKPLAN}}
\begin{sidewaystable}[hb]
\begin{center}
\begin{tabular}{|p{3.0cm}|p{1.0cm}|p{1.0cm}|p{1.0cm}|p{1.0cm}|p{1.0cm}|p{1.0cm}|p{1.0cm}|p{1.0cm}|p{1.0cm}|}
\hline&
\textbf{Jan. 2011}&\textbf{Feb. 2011}&\textbf{Mar. 2011}&\textbf{Apr. 2011}& \textbf{May 2011}&\textbf{June 2011}& \textbf{July 2011}\\
\hline Proposal writing&\cellcolor[gray]{.5}&\cellcolor[gray]{0.5}&\cellcolor[gray]{0.5}&&&&\\
\hline
Proposal defence and submission&&&\cellcolor[gray]{.5}&\cellcolor[gray]{.5}&&&\\
\hline
Data simulation and study\vspace{40pt}&&&&&\cellcolor[gray]{0.5}&&\\
\hline
Project writing\vspace{50pt}&&&&&&\cellcolor[gray]{.5}&\\
\hline
Project defence and submission\vspace{50pt}&&&&&&&\cellcolor[gray]{0.5}\\
\hline
\end{tabular}
\end{center}
\caption{A Workplan Table}\label{tab:sample}
\end{sidewaystable}
\end{document}
Please help to put them in one page.
Graphics, Figures & Tables ⇒ chapter and landscape table on the same page
NEW: TikZ book now 40% off at Amazon.com for a short time.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
chapter and landscape table on the same page
The rotating package offers more stuff to rotate certain contents without starting a new page. Possible solutions are described in the document »Using Imported Graphics in LaTeX and pdfLaTeX«.
Thorsten
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10