Hi Latex users,
How can I change the font size for different rows within a table? When I use commands like \scriptsize at the beginning of a particular row, it just changes the first entry of the row (not the whole row and my table has 10 columns in it).
Also, is it possible to right justify a column while using p{width} feature?
Thanks,
Santanu
Graphics, Figures & Tables ⇒ Different fontsize for different rows
NEW: TikZ book now 40% off at Amazon.com for a short time.

Different fontsize for different rows
Hi,
for the ragged right text, you can use the >{...} construct provided by the array package:
For the font size issue, I think that you'll have to use the font-size changing commands in every cell; of course, one could define a command with ten arguments to facilitate a little the job, but I am not sure that it's worth it.
for the ragged right text, you can use the >{...} construct provided by the array package:
Code: Select all
\documentclass{book}
\usepackage{array}
\usepackage{lipsum}% just to generate filler text
\begin{document}
\begin{tabular}{c>{\raggedright\arraybackslash}p{7cm}}
text & \lipsum[1]
\end{tabular}
\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...