how can I create a special cell like this?
Hi all.
I meet a problem:
I wanna create a sheet, one of the cell shoule look like this:
------------
|Population|
|.....of.....|
|.the.city..|
------------
The words are centered and wrapped under my control.
but, when I use "tabular*" or "tabularx":
\begin{tabular*}{250pt}{|p{10ex}|}
\hline
Population of the city \\
\hline
\end{tabular*}
the cell looks like this:
------------
|Population|
|of the.....|
|city........|
------------
Question:
What can I do? Is there any other package can resolve the issues?
Thanks in the advanced.
General ⇒ [help] how can I create a special cell like this?
NEW: TikZ book now 40% off at Amazon.com for a short time.

Re: [help] how can I create a special cell like this?
dots (".") in the cell mean the blank char.
[help] how can I create a special cell like this?
Hi umb365,
you can use p{length} or m{length} along with the \centering command. Please refer to the documentation of the array package for further information:
you can use p{length} or m{length} along with the \centering command. Please refer to the documentation of the array package for further information:
Code: Select all
\documentclass{article}
\usepackage{array}
\begin{document}
\begin{tabular}{|>{\centering\arraybackslash}p{1.7cm}p{3cm}|}
Population of\\ the city & some text \\
\end{tabular}
\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Re: [help] how can I create a special cell like this?
Thank you. I will read the article first.