\begin{tabular}{|p{.3\linewidth}|p{.3\linewidth}|p{.3\linewidth}|}
Graphics, Figures & Tables ⇒ Using »p« Column Type in Table
Using »p« Column Type in Table
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10362
- Joined: Mon Mar 10, 2008 9:44 pm
Using »p« Column Type in Table
use the

>{\command}
feature of array, for executing commands before a column. For example:Code: Select all
\documentclass{article}
\usepackage{array}
\begin{document}
\begin{tabular}{|>{\centering\bfseries}p{.3\linewidth}|p{.3\linewidth}|p{.3\linewidth}|}
text & text
\end{tabular}
\end{document}
Re: Using »p« Column Type in Table
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Using »p« Column Type in Table
TeX Frequently Asked Questions – How to change a whole row of a tablekruftin wrote:But if i want apply command for row, how it's make? For string in all table?
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10