开发者

wide and long table in latex

开发者 https://www.devze.com 2022-12-25 03:58 出处:网络
I am using a wi开发者_如何转开发de and long table. I am not sure how to put it in my thesis. Since it is wide, sidewaystable may be the choice. Meanwhile it is also too long to fit in one page, so lon

I am using a wi开发者_如何转开发de and long table. I am not sure how to put it in my thesis. Since it is wide, sidewaystable may be the choice. Meanwhile it is also too long to fit in one page, so longtable comes into my mind. However, I cannot make sidewaystable and longtable working together for one table, e.g.

  \begin{sidewaystable}  

  \begin{longtable}{| c ||c| c| c |c| c|| c |c| c|c|c| }  
         \caption{A glance of images.}  
          \centering  

   % table content  

  \end{longtable}  

  \end{sidewaystable} 

What shall I do?


Use lscape package with longtable or supertabular.


use a p{width} in place of l,r, or c in your column declaration, like this:

\begin{longtable}{ | p{0.2\textwidth} | p{0.5\textwidth | }

Then, to keep your content centered, add a >{\centering} before the p{width}, like this:

 \begin{longtable}{ | >{\centering}p{0.2\textwidth} | >{\centering}p{0.5\textwidth | } 
0

精彩评论

暂无评论...
验证码 换一张
取 消