Featured Book

LaTeX Beginners Guide

Who is online

In total there are 7 users online :: 1 registered, 0 hidden and 6 guests (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: Yahoo [Bot] and 6 guests

Partner Sites

TeXwelt - Fragen und Antworten goLaTeX
TeXblog
TeXnicCenter
TeXample

chapter and landscape table on the same page

Add tags Information and discussion about graphics, figures & tables in LaTeX documents.

chapter and landscape table on the same page

Postby karisalk on Wed Mar 23rd, 2011

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.
karisalk
 
Posts: 12
Joined: Wed Jul 21st, 2010

Re: chapter and landscape table on the same page

Postby localghost on Wed Mar 23rd, 2011

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
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 13.1 (Linux 3.11.10), TeX Live 2013 (vanilla), TeXworks 0.5 (r1351)
² Posting stopped indefinitely due to offenses
User avatar
localghost
Site Moderator
 
Posts: 9219
Joined: Fri Feb 2nd, 2007
Location: Braunschweig, Germany


Return to Graphics, Figures & Tables

Who is online

Users browsing this forum: Yahoo [Bot] and 6 guests