\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
Dear users help me please. How i can apply bold face font and align in column of table? E. g. if I use
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
Using »p« Column Type in Table
Hi,
use the
array package and the
Stefan
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}
LaTeX.org admin
Re: Using »p« Column Type in Table
But if i want apply command for row, how it's make? For string in all 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
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10